Skip to content

Commit

Permalink
Fix return and argument types for various libiptc API calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
radhermit committed Feb 22, 2014
1 parent 0ece237 commit 6c30ca0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions iptc/ip4tc.py
Expand Up @@ -103,7 +103,7 @@ class IPTCError(Exception):
class iptc(object):
"""This class contains all libiptc API calls."""
iptc_init = _libiptc.iptc_init
iptc_init.restype = ct.c_void_p
iptc_init.restype = ct.POINTER(ct.c_int)
iptc_init.argstype = [ct.c_char_p]

iptc_free = _libiptc.iptc_free
Expand All @@ -120,11 +120,11 @@ class iptc(object):

iptc_first_chain = _libiptc.iptc_first_chain
iptc_first_chain.restype = ct.c_char_p
iptc_first_chain.argstype = [ct.c_char_p, ct.c_void_p]
iptc_first_chain.argstype = [ct.c_void_p]

iptc_next_chain = _libiptc.iptc_next_chain
iptc_next_chain.restype = ct.c_char_p
iptc_next_chain.argstype = [ct.c_char_p, ct.c_void_p]
iptc_next_chain.argstype = [ct.c_void_p]

iptc_is_chain = _libiptc.iptc_is_chain
iptc_is_chain.restype = ct.c_int
Expand Down
6 changes: 3 additions & 3 deletions iptc/ip6tc.py
Expand Up @@ -82,7 +82,7 @@ class ip6t_entry(ct.Structure):
class ip6tc(object):
"""This class contains all libip6tc API calls."""
iptc_init = _libiptc.ip6tc_init
iptc_init.restype = ct.c_void_p
iptc_init.restype = ct.POINTER(ct.c_int)
iptc_init.argstype = [ct.c_char_p]

iptc_free = _libiptc.ip6tc_free
Expand All @@ -99,11 +99,11 @@ class ip6tc(object):

iptc_first_chain = _libiptc.ip6tc_first_chain
iptc_first_chain.restype = ct.c_char_p
iptc_first_chain.argstype = [ct.c_char_p, ct.c_void_p]
iptc_first_chain.argstype = [ct.c_void_p]

iptc_next_chain = _libiptc.ip6tc_next_chain
iptc_next_chain.restype = ct.c_char_p
iptc_next_chain.argstype = [ct.c_char_p, ct.c_void_p]
iptc_next_chain.argstype = [ct.c_void_p]

iptc_is_chain = _libiptc.ip6tc_is_chain
iptc_is_chain.restype = ct.c_int
Expand Down

0 comments on commit 6c30ca0

Please sign in to comment.