rename xxx_create() / xxx_destory() -> xxx_new() / xxx_free()

This commit is contained in:
luwenpeng
2024-03-08 14:20:36 +08:00
parent 9d562ffee6
commit c945931620
56 changed files with 330 additions and 330 deletions

View File

@@ -65,7 +65,7 @@ static int is_keepalive_packet(const char *data, int len)
* Public API
******************************************************************************/
struct packet_io_marsio *packet_io_marsio_create(struct packet_io_marsio_confg *config)
struct packet_io_marsio *packet_io_marsio_new(struct packet_io_marsio_confg *config)
{
int opt = 1;
cpu_set_t coremask;
@@ -115,11 +115,11 @@ struct packet_io_marsio *packet_io_marsio_create(struct packet_io_marsio_confg *
return handle;
error_out:
packet_io_marsio_destory(handle);
packet_io_marsio_free(handle);
return NULL;
}
void packet_io_marsio_destory(struct packet_io_marsio *handle)
void packet_io_marsio_free(struct packet_io_marsio *handle)
{
if (handle)
{