]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
lldp: rename publicly visible structure 1497/head
authorBeniamino Galvani <bgalvani@redhat.com>
Thu, 8 Oct 2015 13:26:43 +0000 (15:26 +0200)
committerBeniamino Galvani <bgalvani@redhat.com>
Thu, 8 Oct 2015 13:48:33 +0000 (15:48 +0200)
Rename struct 'tlv_packet' to 'sd_lldp_packet' and struct
'tlv_section' to 'sd_lldp_section' since the former is referenced in
public header sd-lldp.h.

Signed-off-by: Beniamino Galvani <bgalvani@redhat.com>
src/libsystemd-network/lldp-tlv.h
src/systemd/sd-lldp.h

index 2d2c776be6eca224023687a202e4d2c7c1059a58..ca1da113d59c44620261fd32b674cd97a0c22e4c 100644 (file)
 
 #include "sd-lldp.h"
 
-typedef struct tlv_packet tlv_packet;
-typedef struct tlv_section tlv_section;
+typedef struct sd_lldp_packet tlv_packet;
+typedef struct sd_lldp_section tlv_section;
 
 #define LLDP_OUI_LEN 3
 
-struct tlv_section {
+struct sd_lldp_section {
         uint16_t type;
         uint16_t length;
         uint8_t *oui;
@@ -54,7 +54,7 @@ struct tlv_section {
 int tlv_section_new(tlv_section **ret);
 void tlv_section_free(tlv_section *ret);
 
-struct tlv_packet {
+struct sd_lldp_packet {
         unsigned n_ref;
 
         uint16_t type;
index 308d42c6e92ac4f40b6a82a13cf87dc5e3f3b0ce..30d9dedf2c5c22d5088ee50885e116136807a15d 100644 (file)
@@ -35,7 +35,7 @@ enum {
 };
 
 typedef struct sd_lldp sd_lldp;
-typedef struct tlv_packet sd_lldp_packet;
+typedef struct sd_lldp_packet sd_lldp_packet;
 
 typedef void (*sd_lldp_cb_t)(sd_lldp *lldp, int event, void *userdata);