1
Description: Add librhash function prototypes
2
The patch fixes crash on ia64 arch, caused by incorrect arguments marshalling.
4
Author: Aleksey Kravchenko <rhash.admin@gmail.com>
6
Forwarded: sent-to-upstream
7
Last-Update: 2012-05-09
9
--- rhash-1.2.9.orig/bindings/python/rhash.py
10
+++ rhash-1.2.9/bindings/python/rhash.py
11
@@ -82,6 +82,19 @@ else:
12
librhash = CDLL(libname)
13
librhash.rhash_library_init()
15
+# function prototypes
16
+librhash.rhash_init.argtypes = [c_uint]
17
+librhash.rhash_init.restype = c_void_p
18
+librhash.rhash_free.argtypes = [c_void_p]
19
+librhash.rhash_reset.argtypes = [c_void_p]
20
+librhash.rhash_update.argtypes = [c_void_p, c_char_p, c_size_t]
21
+librhash.rhash_final.argtypes = [c_void_p, c_char_p]
22
+librhash.rhash_print.argtypes = [c_char_p, c_void_p, c_uint, c_int]
23
+librhash.rhash_print.restype = c_size_t
24
+librhash.rhash_print_magnet.argtypes = [c_char_p, c_char_p, c_void_p, c_uint, c_int]
25
+librhash.rhash_print_magnet.restype = c_size_t
26
+librhash.rhash_transmit.argtypes = [c_uint, c_void_p, c_size_t, c_size_t]