No description
Find a file
Arend van Spriel 522cf98fc2 python: allow callback function to be a class method
The callback functionality only worked for regular Python
functions. With this patch it also allows the callback
to be a class method (bounded or unbounded) as show in
example below.

class test_class(object):
	def my_callback(self, msg, arg):
		print('handling %s' % str(msg))

s = netlink.core.Socket()
testobj = test_class()
netlink.capi.py_nl_cb_set(cb, netlink.capi.NL_CB_VALID,
			  netlink.capi.NL_CB_CUSTOM,
			  test_class.my_callback, testobj)
netlink.capi.py_nl_cb_err(cb, netlink.capi.NL_CB_CUSTOM,
                          test_class.my_callback, s)

Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-09-05 17:46:00 +02:00
doc Add VXLAN support. 2013-08-04 15:43:54 +09:00
etc pktloc: support to specify a shift operator for packet locations 2010-11-04 20:01:36 +01:00
include nl_cb: store nl_cb_type in struct nl_cb 2013-09-05 17:46:00 +02:00
lib nl_cb: store nl_cb_type in struct nl_cb 2013-09-05 17:46:00 +02:00
m4 doc: Check documentation generation requirements with autoconf 2012-05-09 10:06:24 +02:00
man genl: Update genl-ctrl-list(8) 2012-06-01 13:10:03 +02:00
python python: allow callback function to be a class method 2013-09-05 17:46:00 +02:00
src Priority of the '<' operator is higher than that of the '=' operator 2013-08-26 10:06:30 +02:00
tests Add VXLAN support. 2013-08-04 15:43:54 +09:00
.gitignore Enable linker versioning 2013-08-07 14:51:03 +02:00
autogen.sh doc: Split doc/ into separate packages 2012-10-19 16:16:06 +02:00
ChangeLog libnl 3.2.10 2012-06-06 11:43:53 +02:00
configure.ac Enable linker versioning 2013-08-07 14:51:03 +02:00
COPYING Update COPYING to fix FSF address 2012-01-17 12:38:37 +01:00
libnl-3.0.pc.in Switch to libtool versioning system 2011-09-13 22:58:08 +02:00
libnl-cli-3.0.pc.in Add libnl-cli-3.0 to pkg-config tool 2011-10-10 11:39:24 +02:00
libnl-genl-3.0.pc.in Switch to libtool versioning system 2011-09-13 22:58:08 +02:00
libnl-idiag-3.0.pc.in Add support for inet diag Netlink protocol. 2013-07-19 02:06:21 -07:00
libnl-nf-3.0.pc.in Switch to libtool versioning system 2011-09-13 22:58:08 +02:00
libnl-route-3.0.pc.in Switch to libtool versioning system 2011-09-13 22:58:08 +02:00
libnl.sym.in Enable linker versioning 2013-08-07 14:51:03 +02:00
Makefile.am make: automake provides a cscope target these days 2012-12-21 13:30:21 +01:00