]> git.ipfire.org Git - thirdparty/lldpd.git/commit
lib: introduce lldpctl_watch_callback2() fix/locked-conn 388/head
authorVincent Bernat <vincent@bernat.ch>
Fri, 24 Apr 2020 17:29:36 +0000 (19:29 +0200)
committerVincent Bernat <vincent@bernat.ch>
Fri, 24 Apr 2020 17:31:53 +0000 (19:31 +0200)
commit9d7e82a1e45050d9fe8adb458cb967aa68f646b0
tree2a539be127dbe68824a4237bad12a6884dc72212
parentcb38337c2b6f28cf56b29ffc2519012b7d342e61
lib: introduce lldpctl_watch_callback2()

This is similar to `lldpctl_watch_callback()` (which is getting
deprecated), except the callback won't receive the current connection.
This prevents a user to use the connection which is unusable because
it is now dedicated to watch events.

Minor ABI dump due to new function, but everything is
backward-compatible, except you may now get an error if you use the
connection while watching (but this was already not supported).

Fix #380
NEWS
src/client/display.c
src/client/show.c
src/lib/Makefile.am
src/lib/atom.c
src/lib/atom.h
src/lib/connection.c
src/lib/lldpctl.h
src/lib/lldpctl.map