]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-lldp: hide internal information
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 22 Sep 2015 13:12:55 +0000 (15:12 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Tue, 22 Sep 2015 13:14:49 +0000 (15:14 +0200)
Don't export constant that are only used internally.

src/libsystemd-network/lldp-port.h
src/systemd/sd-lldp.h

index b2d3180091921450ae48ee655a82d124fb7c30ff..517b162a67083bb44428bce449f240545ec369a6 100644 (file)
 
 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;
 
index 700146aba69a5b87be6cb516a4e9b043d70e18f5..09551d4a1ab5ef1fa8f88b138fc061ca032562b5 100644 (file)
@@ -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);