From df9c15d40a50ed17baa7bdbb11ef6cca9d410cf3 Mon Sep 17 00:00:00 2001 From: zyp Date: Mon, 8 May 2006 13:23:20 +0000 Subject: [project @ zyp-20060508132320-2c118d1a7e2505db] [project @ 24] Converted from make to distutils. --- src/hash_wrapper.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/hash_wrapper.cpp (limited to 'src/hash_wrapper.cpp') diff --git a/src/hash_wrapper.cpp b/src/hash_wrapper.cpp new file mode 100644 index 0000000..a4173b9 --- /dev/null +++ b/src/hash_wrapper.cpp @@ -0,0 +1,14 @@ +#include "hash.h" + +#include +using namespace boost::python; + +BOOST_PYTHON_MODULE(_hash) +{ + class_("Hash") + .def("update", &Hash::update) + .def("crc32", &Hash::crc32) + .def("ed2k", &Hash::ed2k) + .def("md5", &Hash::md5) + .def("sha1", &Hash::sha1); +} -- cgit v1.2.3