libnl icon indicating copy to clipboard operation
libnl copied to clipboard

regression - exposing nl_{msgtype,cache_ops,object}

Open commonism opened this issue 12 years ago • 1 comments

Previous versions of libnl3 exposed nl_msgtype, nl_cache_ops and nl_object. That way it was possible to use nl_cache_get_ops(arg) to overwrite co_include_event and define your own nl_cache_include. In my case the default nl_cache_include was overwritten to get a copy of the old object, so I could compare which aspect of the object changed.

In current (3.2.23) version of libnl, the required structures are private and can not be used. As there is no workaround other than using an old version of libnl or copying the required declarations into my own project, I'd appreciate if this regression could be resolved by exposing the mentioned structures again.

commonism avatar Nov 16 '13 12:11 commonism

This happened between libnl3_2_20 and libnl3_2_21.

These functions were not supposed to be public API.

I agree that it might make sense to expose more functionality here, but this would need more thought and work.

thom311 avatar Apr 14 '14 17:04 thom311