diff options
Diffstat (limited to 'include/net/caif/caif_dev.h')
-rw-r--r-- | include/net/caif/caif_dev.h | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/include/net/caif/caif_dev.h b/include/net/caif/caif_dev.h index 6638435525fc..c011281d92c0 100644 --- a/include/net/caif/caif_dev.h +++ b/include/net/caif/caif_dev.h | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <net/caif/cfcnfg.h> | 11 | #include <net/caif/cfcnfg.h> |
12 | #include <linux/caif/caif_socket.h> | 12 | #include <linux/caif/caif_socket.h> |
13 | #include <linux/if.h> | 13 | #include <linux/if.h> |
14 | #include <linux/net.h> | ||
14 | 15 | ||
15 | /** | 16 | /** |
16 | * struct caif_param - CAIF parameters. | 17 | * struct caif_param - CAIF parameters. |
@@ -62,16 +63,18 @@ struct caif_connect_request { | |||
62 | * E.g. CAIF Socket will call this function for each socket it connects | 63 | * E.g. CAIF Socket will call this function for each socket it connects |
63 | * and have one client_layer instance for each socket. | 64 | * and have one client_layer instance for each socket. |
64 | */ | 65 | */ |
65 | int caif_connect_client(struct caif_connect_request *conn_req, | 66 | int caif_connect_client(struct net *net, |
67 | struct caif_connect_request *conn_req, | ||
66 | struct cflayer *client_layer, int *ifindex, | 68 | struct cflayer *client_layer, int *ifindex, |
67 | int *headroom, int *tailroom); | 69 | int *headroom, int *tailroom); |
68 | 70 | ||
69 | /** | 71 | /** |
70 | * caif_disconnect_client - Disconnects a client from the CAIF stack. | 72 | * caif_disconnect_client - Disconnects a client from the CAIF stack. |
71 | * | 73 | * |
72 | * @client_layer: Client layer to be removed. | 74 | * @client_layer: Client layer to be disconnected. |
73 | */ | 75 | */ |
74 | int caif_disconnect_client(struct cflayer *client_layer); | 76 | int caif_disconnect_client(struct net *net, struct cflayer *client_layer); |
77 | |||
75 | 78 | ||
76 | /** | 79 | /** |
77 | * caif_client_register_refcnt - register ref-count functions provided by client. | 80 | * caif_client_register_refcnt - register ref-count functions provided by client. |
@@ -91,21 +94,6 @@ void caif_client_register_refcnt(struct cflayer *adapt_layer, | |||
91 | void (*hold)(struct cflayer *lyr), | 94 | void (*hold)(struct cflayer *lyr), |
92 | void (*put)(struct cflayer *lyr)); | 95 | void (*put)(struct cflayer *lyr)); |
93 | /** | 96 | /** |
94 | * caif_connect_req_to_link_param - Translate configuration parameters | ||
95 | * from socket format to internal format. | ||
96 | * @cnfg: Pointer to configuration handler | ||
97 | * @con_req: Configuration parameters supplied in function | ||
98 | * caif_connect_client | ||
99 | * @channel_setup_param: Parameters supplied to the CAIF Core stack for | ||
100 | * setting up channels. | ||
101 | * | ||
102 | */ | ||
103 | |||
104 | int caif_connect_req_to_link_param(struct cfcnfg *cnfg, | ||
105 | struct caif_connect_request *con_req, | ||
106 | struct cfctrl_link_param *setup_param); | ||
107 | |||
108 | /** | ||
109 | * caif_free_client - Free memory used to manage the client in the CAIF Stack. | 97 | * caif_free_client - Free memory used to manage the client in the CAIF Stack. |
110 | * | 98 | * |
111 | * @client_layer: Client layer to be removed. | 99 | * @client_layer: Client layer to be removed. |