mirror of
https://github.com/systemd/systemd.git
synced 2025-03-28 02:50:16 +03:00
Merge pull request #1497 from bengal/lldp-rename-struct
lldp: rename publicly visible structure
This commit is contained in:
commit
8f3db94d9d
@ -30,12 +30,12 @@
|
||||
|
||||
#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;
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user