[PATCH 4/8] python: remove unnecessary callback type definitions
Arend van Spriel
arend at broadcom.com
Thu Sep 5 08:11:28 EDT 2013
Copied the typedefs when adding callback support, but they serve
no actual use in the swig input file.
Signed-off-by: Arend van Spriel <arend at broadcom.com>
---
python/netlink/capi.i | 18 ------------------
1 file changed, 18 deletions(-)
diff --git a/python/netlink/capi.i b/python/netlink/capi.i
index 507c220..1e13d46 100644
--- a/python/netlink/capi.i
+++ b/python/netlink/capi.i
@@ -539,24 +539,6 @@ struct nlmsgerr {
%{
-/**
- * nl_recvmsgs() callback for message processing customization
- * @ingroup cb
- * @arg msg netlink message being processed
- * @arg arg argument passwd on through caller
- */
-typedef int (*nl_recvmsg_msg_cb_t)(struct nl_msg *msg, void *arg);
-
-/**
- * nl_recvmsgs() callback for error message processing customization
- * @ingroup cb
- * @arg nla netlink address of the peer
- * @arg nlerr netlink error message being processed
- * @arg arg argument passed on through caller
- */
-typedef int (*nl_recvmsg_err_cb_t)(struct sockaddr_nl *nla,
- struct nlmsgerr *nlerr, void *arg);
-
struct pynl_callback {
PyObject *cbf;
PyObject *cba;
--
1.7.10.4
More information about the libnl
mailing list