[15:46] <schopin> slyon: how would you feel about a dependency on python-gi for netplan?
[15:46] <schopin> (not a huge fan myself)
[15:48] <schopin> I'm working on LP: #1942930 and to solve the problem I need to get a list of files from the C library. The easiest way to return said list would probably be to use the GLib bindings from python-gi, but I don't like the idea of pulling yet another dependency.
[15:51] <schopin> Other solutions would be to design the C API to work as an iterator, where for each call you provide the previous value as argument, or to design our own simple list data structure of which we control the data layout and can thus reproduce it in ctypes.
[15:55] <schopin> Stepping back, what I need is a way to identify all files where interfaces of a given type are defined. I couldn't find anything already written, but I might be missing something?