You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently a programmer has to use nvlist_in and nvlist_out that introduce Python objects corresponding to C nvlist_t objects (or placeholders) to a local namespace.
It would be better to use a proxy object that would transparently convert the Python dict arguments as
necessary that invoke a proper C function (via cffi) passing appropriate nvlist_t * and nvlist_t ** arguments to it. cffi provides necessary introspection tools to find out which arguments need translation.
An example of this idea could be seen here: ac179a2
The text was updated successfully, but these errors were encountered:
Currently a programmer has to use
nvlist_in
andnvlist_out
that introduce Python objects corresponding to Cnvlist_t
objects (or placeholders) to a local namespace.It would be better to use a proxy object that would transparently convert the Python dict arguments as
necessary that invoke a proper C function (via cffi) passing appropriate
nvlist_t *
andnvlist_t **
arguments to it. cffi provides necessary introspection tools to find out which arguments need translation.An example of this idea could be seen here: ac179a2
The text was updated successfully, but these errors were encountered: