1*691668feSPatrick Williams /* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */ 204273e9fSRashmica Gupta #ifndef LIBPLDM_SRC_TRANSPORT_SOCKET_H 304273e9fSRashmica Gupta #define LIBPLDM_SRC_TRANSPORT_SOCKET_H 404273e9fSRashmica Gupta 504273e9fSRashmica Gupta struct pldm_socket_sndbuf { 604273e9fSRashmica Gupta int size; 704273e9fSRashmica Gupta int socket; 804273e9fSRashmica Gupta int max_size; 904273e9fSRashmica Gupta }; 1004273e9fSRashmica Gupta 1104273e9fSRashmica Gupta int pldm_socket_sndbuf_init(struct pldm_socket_sndbuf *ctx, int socket); 1204273e9fSRashmica Gupta int pldm_socket_sndbuf_accomodate(struct pldm_socket_sndbuf *ctx, int msg_len); 1304273e9fSRashmica Gupta int pldm_socket_sndbuf_get(struct pldm_socket_sndbuf *ctx); 1404273e9fSRashmica Gupta 1504273e9fSRashmica Gupta #endif // LIBPLDM_SRC_TRANSPORT_SOCKET_H 16