diff options
author | zyp <zyp@localhost> | 2006-05-08 14:54:40 +0200 |
---|---|---|
committer | zyp <zyp@localhost> | 2006-05-08 14:54:40 +0200 |
commit | 3a5b32f44a95b989e39273527fc924ad3d32465e (patch) | |
tree | ad977e8cdaf459f5a8b0c08f120a8ed604b5f561 /hash_wrapper.cpp |
[project @ zyp-20060508125440-a3cc6ea65de180a0]
[project @ 23]
Seperated from disccat to a standalone project.
Diffstat (limited to 'hash_wrapper.cpp')
-rw-r--r-- | hash_wrapper.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/hash_wrapper.cpp b/hash_wrapper.cpp new file mode 100644 index 0000000..a4173b9 --- /dev/null +++ b/hash_wrapper.cpp @@ -0,0 +1,14 @@ +#include "hash.h" + +#include <boost/python.hpp> +using namespace boost::python; + +BOOST_PYTHON_MODULE(_hash) +{ + class_<Hash>("Hash") + .def("update", &Hash::update) + .def("crc32", &Hash::crc32) + .def("ed2k", &Hash::ed2k) + .def("md5", &Hash::md5) + .def("sha1", &Hash::sha1); +} |