Patrick Williams | 691668f | 2023-11-01 08:19:10 -0500 | [diff] [blame] | 1 | /* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */ |
Rashmica Gupta | 04273e9 | 2023-06-16 16:03:37 +1000 | [diff] [blame] | 2 | #ifndef LIBPLDM_SRC_TRANSPORT_SOCKET_H |
| 3 | #define LIBPLDM_SRC_TRANSPORT_SOCKET_H |
| 4 | |
| 5 | struct pldm_socket_sndbuf { |
| 6 | int size; |
| 7 | int socket; |
| 8 | int max_size; |
| 9 | }; |
| 10 | |
| 11 | int pldm_socket_sndbuf_init(struct pldm_socket_sndbuf *ctx, int socket); |
| 12 | int pldm_socket_sndbuf_accomodate(struct pldm_socket_sndbuf *ctx, int msg_len); |
| 13 | int pldm_socket_sndbuf_get(struct pldm_socket_sndbuf *ctx); |
| 14 | |
| 15 | #endif // LIBPLDM_SRC_TRANSPORT_SOCKET_H |