~ubuntu-branches/ubuntu/trusty/rhash/trusty

« back to all changes in this revision

Viewing changes to debian/patches/02_python_function_prototypes.patch

  • Committer: Package Import Robot
  • Author(s): Aleksey Kravchenko
  • Date: 2012-05-09 14:26:29 UTC
  • Revision ID: package-import@ubuntu.com-20120509142629-5xvsaxhno9540cza
Tags: 1.2.9-4
* Fixed failed parallel build on amd64 (Closes: #671989)
* Fixed jni compilation on kfreebsd-* archs
* Fixed crash of python test on ia64
* Extended descriptions to fix lintian informational warnings
* Disabled mono compilation for binary-arch builds

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Add librhash function prototypes
 
2
 The patch fixes crash on ia64 arch, caused by incorrect arguments marshalling.
 
3
 
 
4
Author: Aleksey Kravchenko <rhash.admin@gmail.com>
 
5
Origin: other
 
6
Forwarded: sent-to-upstream
 
7
Last-Update: 2012-05-09
 
8
 
 
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()
 
14
 
 
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]
 
27
+
 
28
 # hash_id values
 
29
 CRC32 = 0x01
 
30
 MD4   = 0x02