make distinct names for structs and tyepdefs

This commit is contained in:
Laurent THOMAS
2026-02-27 16:53:58 +01:00
parent 46b7670672
commit d6858d01a0
38 changed files with 264 additions and 346 deletions
+5 -8
View File
@@ -20,19 +20,16 @@
#include "nfapi_vnf_interface.h"
struct vnf_t
{
typedef struct vnf_s {
nfapi_vnf_config_t _public;
nfapi_vnf_config_t _public;
uint8_t terminate;
uint8_t terminate;
uint8_t sctp;
uint8_t tx_message_buffer[NFAPI_MAX_PACKED_MESSAGE_SIZE];
uint16_t next_phy_id;
};
uint16_t next_phy_id;
} vnf_t;
int vnf_pack_and_send_p5_message(vnf_t* vnf, uint16_t p5_idx, nfapi_p4_p5_message_header_t* msg, uint16_t msg_len);
+5 -6
View File
@@ -107,11 +107,10 @@ typedef struct nfapi_vnf_p7_connection_info {
} nfapi_vnf_p7_connection_info_t;
struct vnf_p7_t{
typedef struct vnf_p7_s {
nfapi_vnf_p7_config_t _public;
nfapi_vnf_p7_config_t _public;
// private data
// private data
uint8_t terminate;
nfapi_vnf_p7_connection_info_t* p7_connections;
int socket;
@@ -119,8 +118,8 @@ struct vnf_p7_t{
uint32_t slot_start_time_hr;
uint8_t* rx_message_buffer; // would this be better put in the p7 conenction info?
uint16_t rx_message_buffer_size;
};
} vnf_p7_t;
uint32_t vnf_get_current_time_hr(void);
@@ -30,9 +30,8 @@
extern "C" {
#endif
typedef struct vnf_t vnf_t;
typedef struct vnf_p7_t vnf_p7_t;
typedef struct vnf_s vnf_t;
typedef struct vnf_p7_s vnf_p7_t;
/*! The nfapi VNF phy configuration information
*/