diff options
author | Susant Sahani <susant@redhat.com> | 2014-12-11 09:59:55 +0530 |
---|---|---|
committer | Susant Sahani <susant@redhat.com> | 2014-12-19 08:15:05 +0530 |
commit | 49699bac94d24b444274f91f85c82e6fad04d029 (patch) | |
tree | 617cd733775e4b23bcabc37de590f4f6ff8ef916 /src/libsystemd-network/sd-lldp.h | |
parent | ce43e484465050c619ea9a1991d49b3d6215028b (diff) |
LLDP: Add support for networkctl
Diffstat (limited to 'src/libsystemd-network/sd-lldp.h')
-rw-r--r-- | src/libsystemd-network/sd-lldp.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libsystemd-network/sd-lldp.h b/src/libsystemd-network/sd-lldp.h index 95d802df84..ee064c6fc8 100644 --- a/src/libsystemd-network/sd-lldp.h +++ b/src/libsystemd-network/sd-lldp.h @@ -28,6 +28,12 @@ typedef struct sd_lldp sd_lldp; typedef struct lldp_agent_statitics lldp_agent_statitics; +typedef void (*sd_lldp_cb_t)(sd_lldp *lldp, int event, void *userdata); + +enum { + UPDATE_INFO = 10, +}; + typedef enum LLDPPortStatus { LLDP_PORT_STATUS_NONE, LLDP_PORT_STATUS_ENABLED, @@ -48,4 +54,7 @@ int sd_lldp_stop(sd_lldp *lldp); int sd_lldp_attach_event(sd_lldp *lldp, sd_event *event, int priority); int sd_lldp_detach_event(sd_lldp *lldp); +int sd_lldp_set_callback(sd_lldp *lldp, sd_lldp_cb_t cb, void *userdata); +int sd_lldp_save(sd_lldp *lldp, const char *file); + int lldp_handle_packet(tlv_packet *m, uint16_t length); |