Rashmica Gupta | 04273e9 | 2023-06-16 16:03:37 +1000 | [diff] [blame] | 1 | #ifndef LIBPLDM_SRC_TRANSPORT_SOCKET_H |
2 | #define LIBPLDM_SRC_TRANSPORT_SOCKET_H | ||||
3 | |||||
4 | struct pldm_socket_sndbuf { | ||||
5 | int size; | ||||
6 | int socket; | ||||
7 | int max_size; | ||||
8 | }; | ||||
9 | |||||
10 | int pldm_socket_sndbuf_init(struct pldm_socket_sndbuf *ctx, int socket); | ||||
11 | int pldm_socket_sndbuf_accomodate(struct pldm_socket_sndbuf *ctx, int msg_len); | ||||
12 | int pldm_socket_sndbuf_get(struct pldm_socket_sndbuf *ctx); | ||||
13 | |||||
14 | #endif // LIBPLDM_SRC_TRANSPORT_SOCKET_H |