1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
/* SPDX-FileCopyrightText: 2023 Greenbone AG
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef MISC_IPC_PIPE_H
#define MISC_IPC_PIPE_H
struct ipc_pipe_context
{
int fd[2];
};
int
ipc_pipe_send (struct ipc_pipe_context *context, const char *msg, int len);
char *
ipc_pipe_retrieve (struct ipc_pipe_context *context);
int
ipc_pipe_destroy (struct ipc_pipe_context *context);
int
ipc_pipe_close (struct ipc_pipe_context *context);
struct ipc_pipe_context *
ipc_init_pipe (void);
#endif
|