xref: /openbmc/libpldm/src/transport/socket.h (revision d9b70ba7)
1 /* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */
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
16