Re: [B.A.T.M.A.N.] [RFC v2 0/5] batman-adv netlink query API

Matthias Schiffer
2016-04-20T07:49:25Z

[-- Attachment #1.1: Type: text/plain, Size: 1230 bytes --]

On 04/20/2016 09:39 AM, Sven Eckelmann wrote:
> On Wednesday 20 April 2016 09:32:19 Matthias Schiffer wrote:
> [...]
>> As I've mentioned before, regarding the batctl support, I'd love to see a
>> little library ("libbatadv"?) on top of libnl that could be used by batctl,
>> alfred and other monitoring tools (like the ones we are using in the Gluon
>> Freifunk firmwares).
>
> Hm, then we would have to make everything ABI stable. So we would loose the
> flexibility of netlink (adding more fields) again just to keep the library
> stable.
>
> Or what kind of functionality should this library expose that can be easily be
> kept stable?
>
> Kind regards,
> Sven
>

I don't understand. The same code that would we added to batctl and alfred
could just be made a library with a nicer API, so other projects can easily
reuse it. Of course, the library API/ABI would need to be designed in a way
that keeps it extensible without breaking ABI.

I'm thinking of functions like "iterate over all originators", which would
query the netlink API, and then just call a callback with the netlink
attribute set for each originator. Just a thin wrapper making things more
usable.

Regards,
Matthias

[-- Attachment #2: OpenPGP digital signature --]