diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2015-09-22 15:12:55 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2015-09-22 15:14:49 +0200 |
commit | 8955cf0a4586010f913bb7e0f8d05f1fc116c246 (patch) | |
tree | 011d1f7c4b22b4ba1d907417e5b43e72e2885656 /src | |
parent | e4c3b8e856024519014bd91bae32b9a4261395a9 (diff) |
sd-lldp: hide internal information
Don't export constant that are only used internally.
Diffstat (limited to 'src')
-rw-r--r-- | src/libsystemd-network/lldp-port.h | 8 | ||||
-rw-r--r-- | src/systemd/sd-lldp.h | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/libsystemd-network/lldp-port.h b/src/libsystemd-network/lldp-port.h index b2d3180091..517b162a67 100644 --- a/src/libsystemd-network/lldp-port.h +++ b/src/libsystemd-network/lldp-port.h @@ -31,6 +31,14 @@ typedef struct lldp_port lldp_port; +typedef enum LLDPPortStatus { + LLDP_PORT_STATUS_NONE, + LLDP_PORT_STATUS_ENABLED, + LLDP_PORT_STATUS_DISABLED, + _LLDP_PORT_STATUS_MAX, + _LLDP_PORT_STATUS_INVALID = -1, +} LLDPPortStatus; + struct lldp_port { LLDPPortStatus status; diff --git a/src/systemd/sd-lldp.h b/src/systemd/sd-lldp.h index 700146aba6..09551d4a1a 100644 --- a/src/systemd/sd-lldp.h +++ b/src/systemd/sd-lldp.h @@ -32,14 +32,6 @@ enum { UPDATE_INFO = 10, }; -typedef enum LLDPPortStatus { - LLDP_PORT_STATUS_NONE, - LLDP_PORT_STATUS_ENABLED, - LLDP_PORT_STATUS_DISABLED, - _LLDP_PORT_STATUS_MAX, - _LLDP_PORT_STATUS_INVALID = -1, -} LLDPPortStatus; - int sd_lldp_new(int ifindex, const char *ifname, const struct ether_addr *mac, sd_lldp **ret); void sd_lldp_free(sd_lldp *lldp); |