mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 19:36:35 +08:00
net/local: Remove local_initialize
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
9c1fc8da4e
commit
716e27cbeb
@@ -203,17 +203,6 @@ EXTERN const struct sock_intf_s g_local_sockif;
|
|||||||
struct sockaddr; /* Forward reference */
|
struct sockaddr; /* Forward reference */
|
||||||
struct socket; /* Forward reference */
|
struct socket; /* Forward reference */
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Name: local_initialize
|
|
||||||
*
|
|
||||||
* Description:
|
|
||||||
* Initialize the local, Unix domain connection structures. Called once
|
|
||||||
* and only from the common network initialization logic.
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
void local_initialize(void);
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: local_alloc
|
* Name: local_alloc
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -47,20 +47,6 @@ static dq_queue_t g_local_connections;
|
|||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Name: local_initialize
|
|
||||||
*
|
|
||||||
* Description:
|
|
||||||
* Initialize the local, Unix domain connection structures. Called once
|
|
||||||
* and only from the common network initialization logic.
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
void local_initialize(void)
|
|
||||||
{
|
|
||||||
dq_init(&g_local_connections);
|
|
||||||
}
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: local_nextconn
|
* Name: local_nextconn
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -41,7 +41,6 @@
|
|||||||
#include "pkt/pkt.h"
|
#include "pkt/pkt.h"
|
||||||
#include "bluetooth/bluetooth.h"
|
#include "bluetooth/bluetooth.h"
|
||||||
#include "ieee802154/ieee802154.h"
|
#include "ieee802154/ieee802154.h"
|
||||||
#include "local/local.h"
|
|
||||||
#include "can/can.h"
|
#include "can/can.h"
|
||||||
#include "netlink/netlink.h"
|
#include "netlink/netlink.h"
|
||||||
#include "igmp/igmp.h"
|
#include "igmp/igmp.h"
|
||||||
@@ -125,12 +124,6 @@ void net_initialize(void)
|
|||||||
ieee802154_initialize();
|
ieee802154_initialize();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_NET_LOCAL
|
|
||||||
/* Initialize the local, "Unix domain" socket support */
|
|
||||||
|
|
||||||
local_initialize();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_NET_CAN
|
#ifdef CONFIG_NET_CAN
|
||||||
/* Initialize SocketCAN support */
|
/* Initialize SocketCAN support */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user