summaryrefslogtreecommitdiff
path: root/ed2k/ed2k_wrapper.cpp
diff options
context:
space:
mode:
authorzyp <zyp@localhost>2006-01-26 20:07:15 +0100
committerzyp <zyp@localhost>2006-01-26 20:07:15 +0100
commit21559e9f4bd58b1504cc0fda7b0dceee0c833862 (patch)
tree119240a883b5bda7e4c11f60dc39206e87b1e04f /ed2k/ed2k_wrapper.cpp
[project @ zyp-20060126190715-557e941315671b81]
[project @ 18] Moved disccat and pyanidb to the right location. Added pyqtmpc and ophidia.
Diffstat (limited to 'ed2k/ed2k_wrapper.cpp')
-rw-r--r--ed2k/ed2k_wrapper.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/ed2k/ed2k_wrapper.cpp b/ed2k/ed2k_wrapper.cpp
new file mode 100644
index 0000000..0a9f8c8
--- /dev/null
+++ b/ed2k/ed2k_wrapper.cpp
@@ -0,0 +1,10 @@
+#include "ed2k.h"
+
+#include <boost/python.hpp>
+using namespace boost::python;
+
+BOOST_PYTHON_MODULE(_ed2k) {
+ class_<Ed2k>("Ed2k")
+ .def("update", &Ed2k::update)
+ .def("digest", &Ed2k::digest);
+}