Skip to content

chamaken/cylmnl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cylmnl

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.

sample

see examples

installation

Only copying .pxd files to proper dir, I think. Or

$ python setup.py install
$ cd examples/rtnl
$ make
$ ./rtnl_link_dump

requires

  • libmnl
  • Cython >= 0.19 ? (debian wheezy)

links

from C to Cython

  • 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'')

memo

cdef array in function is not cleared? see tb[] in example

comparison

could not implement:

  • mnl_attr_for_each_nested
  • mnl_attr_for_each
  • mnl_attr_for_each_payload

About

libmnl wrapper using cython

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published