]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
lib: document the inability to do anything else when processing notifications
authorVincent Bernat <vincent@bernat.im>
Wed, 13 Jun 2018 06:29:46 +0000 (08:29 +0200)
committerVincent Bernat <vincent@bernat.im>
Wed, 13 Jun 2018 06:29:46 +0000 (08:29 +0200)
The code doesn't handle notifications with regular operations on the
same connection. Tell the user to open a another connection.

src/lib/lldpctl.h

index bb996d9efb164991636de190ca2bbe5f03b3c694..45b29f7d3d709c41755b6c95580f8e84bcd0eda0 100644 (file)
@@ -489,6 +489,9 @@ typedef void (*lldpctl_change_callback)(lldpctl_conn_t *conn,
  * This function will register the necessity to push neighbor changes to lldpd
  * and therefore will issue IO operations. The error code could then be @c
  * LLDPCTL_ERR_WOULDBLOCK.
+ *
+ * Once a callback is registered, the connection shouldn't be used for anything
+ * else than receiving notifications.
  */
 int lldpctl_watch_callback(lldpctl_conn_t *conn,
     lldpctl_change_callback cb,