From 7a6f1457462840ed52f2a332e2bd56ca210cff2d Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Fri, 19 Dec 2014 22:42:03 +0100 Subject: sd-lldp: minor header cleanup * (potentially) public headers must reside in src/systemd/ (not in src/libsystemd*) * some private (not prefixed with sd_) functions moved from sd-lldp.h to lldp-internal.h * introduce lldp-util.h for the cleanup macro, as these should not be public * rename the cleanup macro, we always name them _cleanup_foo_, never _cleanup_sd_foo_ * mark some function arguments as 'const' --- src/libsystemd-network/lldp-port.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/libsystemd-network/lldp-port.h') diff --git a/src/libsystemd-network/lldp-port.h b/src/libsystemd-network/lldp-port.h index 1b1ae040d..b2d318009 100644 --- a/src/libsystemd-network/lldp-port.h +++ b/src/libsystemd-network/lldp-port.h @@ -27,6 +27,8 @@ #include "sd-event.h" #include "sd-lldp.h" +#include "util.h" + typedef struct lldp_port lldp_port; struct lldp_port { @@ -48,7 +50,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); -- cgit v1.2.3