Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

Commit

Permalink
(#18) Added init.cpp for the lz4 sub-module
Browse files Browse the repository at this point in the history
Added definition of pybind sub-module for containing the lz4
encapsulation.
  • Loading branch information
leandor committed Jul 1, 2017
1 parent 1c0d854 commit 7a55ed5
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/papi/lz4/context.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include "module.h"
#include <lz4.h>

using namespace lz4;

context::context()
{
}

context::~context()
{
}
8 changes: 8 additions & 0 deletions src/papi/lz4/init.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#include "../cint.h"

#include "module.h"

static test_initializer modules([](py::module &m) {
auto lz4 = m.def_submodule("lz4");

});
14 changes: 14 additions & 0 deletions src/papi/lz4/module.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#ifndef __CINT_LZ4_MODULE__
#define __CINT_LZ4_MODULE__

#pragma once

namespace lz4 {

class context {
context();
~context();
};

};
#endif // __CINT_LZ4_MODULE__

0 comments on commit 7a55ed5

Please sign in to comment.