Cython wrapper of libmnl, just to satisfy my curiosity.
My impression is cdef extern libc is troublesome, but the way I use might be wrong.
see examples
Only copying .pxd files to proper dir, I think. Or
$ python setup.py install
$ cd examples/rtnl
$ make
$ ./rtnl_link_dump
- libmnl
- Cython >= 0.19 ? (debian wheezy)
-
add ``h'' to header file name.
-
struct / enum name is converted ... like my_c_sample to MyCSample
-
tried to keep remain original struct member name, but a few could not because of reserved word (like ``to'')
cdef array in function is not cleared? see tb[] in example
could not implement:
- mnl_attr_for_each_nested
- mnl_attr_for_each
- mnl_attr_for_each_payload