]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/libsystemd-network/lldp-port.h
sd-lldp: hide internal information
[thirdparty/systemd.git] / src / libsystemd-network / lldp-port.h
index 1b1ae040d145ff8f3d07236d73dbaece4bb3f5c5..517b162a67083bb44428bce449f240545ec369a6 100644 (file)
 #include "sd-event.h"
 #include "sd-lldp.h"
 
+#include "util.h"
+
 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;
 
@@ -48,7 +58,7 @@ struct lldp_port {
 };
 
 int lldp_port_new(int ifindex,
-                  char *ifname,
+                  const char *ifname,
                   const struct ether_addr *addr,
                   void *userdata,
                   lldp_port **ret);