summaryrefslogtreecommitdiff
path: root/hash/hash_wrapper.cpp
blob: a4173b94928af41313a490c5a4186ef459666b0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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);
}