csp_if_socket.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 Kubos Corporation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
23 #ifndef _CSP_IF_SOCKET_H
24 #define _CSP_IF_SOCKET_H
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 #include <stdint.h>
31 
32 /* CSP includes */
33 #include <csp/csp.h>
34 #include <csp/csp_interface.h>
35 
39 typedef struct {
43 
47 typedef enum {
53 
60 int csp_socket_init(csp_iface_t * socket_iface, csp_socket_handle_t * socket_driver);
61 
62 #ifdef __cplusplus
63 } /* extern "C" */
64 #endif
65 
66 #endif /* _CSP_IF_SOCKET_H */
67 
68 /* @} */
Unix socket driver handle.
Definition: csp_if_socket.h:39
csp_if_socket_modes
Enum for csp socket mode.
Definition: csp_if_socket.h:47
Interface struct.
Definition: csp_types.h:190
Definition: csp_if_socket.h:51
int socket_handle
Definition: csp_if_socket.h:41
int csp_socket_init(csp_iface_t *socket_iface, csp_socket_handle_t *socket_driver)
Init function for CSP socket interface.
Definition: csp_if_socket.h:49