chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sd-lldp: minor header cleanup
[elogind.git]
/
src
/
systemd
/
sd-lldp.h
diff --git
a/src/libsystemd-network/sd-lldp.h
b/src/systemd/sd-lldp.h
similarity index 82%
rename from
src/libsystemd-network/sd-lldp.h
rename to
src/systemd/sd-lldp.h
index ee064c6fc893adc83502de898241851711739fd5..700146aba69a5b87be6cb516a4e9b043d70e18f5 100644
(file)
--- a/
src/libsystemd-network/sd-lldp.h
+++ b/
src/systemd/sd-lldp.h
@@
-22,11
+22,9
@@
#pragma once
#pragma once
-#include "lldp-tlv.h"
#include "sd-event.h"
typedef struct sd_lldp sd_lldp;
#include "sd-event.h"
typedef struct sd_lldp sd_lldp;
-typedef struct lldp_agent_statitics lldp_agent_statitics;
typedef void (*sd_lldp_cb_t)(sd_lldp *lldp, int event, void *userdata);
typedef void (*sd_lldp_cb_t)(sd_lldp *lldp, int event, void *userdata);
@@
-42,12
+40,9
@@
typedef enum LLDPPortStatus {
_LLDP_PORT_STATUS_INVALID = -1,
} LLDPPortStatus;
_LLDP_PORT_STATUS_INVALID = -1,
} LLDPPortStatus;
-int sd_lldp_new(int ifindex, c
har *ifname,
struct ether_addr *mac, sd_lldp **ret);
+int sd_lldp_new(int ifindex, c
onst char *ifname, const
struct ether_addr *mac, sd_lldp **ret);
void sd_lldp_free(sd_lldp *lldp);
void sd_lldp_free(sd_lldp *lldp);
-DEFINE_TRIVIAL_CLEANUP_FUNC(sd_lldp *, sd_lldp_free);
-#define _cleanup_sd_lldp_free_ _cleanup_(sd_lldp_freep)
-
int sd_lldp_start(sd_lldp *lldp);
int sd_lldp_stop(sd_lldp *lldp);
int sd_lldp_start(sd_lldp *lldp);
int sd_lldp_stop(sd_lldp *lldp);
@@
-56,5
+51,3
@@
int sd_lldp_detach_event(sd_lldp *lldp);
int sd_lldp_set_callback(sd_lldp *lldp, sd_lldp_cb_t cb, void *userdata);
int sd_lldp_save(sd_lldp *lldp, const char *file);
int sd_lldp_set_callback(sd_lldp *lldp, sd_lldp_cb_t cb, void *userdata);
int sd_lldp_save(sd_lldp *lldp, const char *file);
-
-int lldp_handle_packet(tlv_packet *m, uint16_t length);