summaryrefslogtreecommitdiff
path: root/src/systemd
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2015-09-22 15:19:42 +0200
committerDavid Herrmann <dh.herrmann@gmail.com>2015-09-22 15:19:42 +0200
commit9ef61f2e4802abdb4a2853a82126420b1e77b419 (patch)
treed4bb3f57e4b6828b9e8be1748a3dd2899481de63 /src/systemd
parent8955cf0a4586010f913bb7e0f8d05f1fc116c246 (diff)
sd-lldp: hide internal details
Currently, sd-lldp.h exports "UPDATE_INFO".. and defines it to a magic constant '10'. This is completely bogus, so fix it to follow our coding standards: - Prefix exported symbols by SD_LLDP_* - Define a separate event-enum for event types - Translate internal state to external event-types
Diffstat (limited to 'src/systemd')
-rw-r--r--src/systemd/sd-lldp.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/systemd/sd-lldp.h b/src/systemd/sd-lldp.h
index 09551d4a1a..0680e526b0 100644
--- a/src/systemd/sd-lldp.h
+++ b/src/systemd/sd-lldp.h
@@ -24,14 +24,14 @@
#include "sd-event.h"
+enum {
+ SD_LLDP_EVENT_UPDATE_INFO = 0,
+};
+
typedef struct sd_lldp sd_lldp;
typedef void (*sd_lldp_cb_t)(sd_lldp *lldp, int event, void *userdata);
-enum {
- UPDATE_INFO = 10,
-};
-
int sd_lldp_new(int ifindex, const char *ifname, const struct ether_addr *mac, sd_lldp **ret);
void sd_lldp_free(sd_lldp *lldp);