blob: 09c697a6200df9aed348b5d74d41b408b9e73296 [file] [log] [blame]
Patrick Williams691668f2023-11-01 08:19:10 -05001/* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */
Rashmica Gupta04273e92023-06-16 16:03:37 +10002#ifndef LIBPLDM_SRC_TRANSPORT_SOCKET_H
3#define LIBPLDM_SRC_TRANSPORT_SOCKET_H
4
5struct pldm_socket_sndbuf {
6 int size;
7 int socket;
8 int max_size;
9};
10
11int pldm_socket_sndbuf_init(struct pldm_socket_sndbuf *ctx, int socket);
12int pldm_socket_sndbuf_accomodate(struct pldm_socket_sndbuf *ctx, int msg_len);
13int pldm_socket_sndbuf_get(struct pldm_socket_sndbuf *ctx);
14
15#endif // LIBPLDM_SRC_TRANSPORT_SOCKET_H