OpenVAS Scanner  22.7.9
ipc_pipe.h
Go to the documentation of this file.
1 /* SPDX-FileCopyrightText: 2023 Greenbone AG
2  *
3  * SPDX-License-Identifier: GPL-2.0-or-later
4  */
5 
6 #ifndef MISC_IPC_PIPE_H
7 #define MISC_IPC_PIPE_H
8 
10 {
11  int fd[2];
12 };
13 
14 int
15 ipc_pipe_send (struct ipc_pipe_context *context, const char *msg, int len);
16 
17 char *
18 ipc_pipe_retrieve (struct ipc_pipe_context *context);
19 
20 int
21 ipc_pipe_destroy (struct ipc_pipe_context *context);
22 
23 int
24 ipc_pipe_close (struct ipc_pipe_context *context);
25 
26 struct ipc_pipe_context *
27 ipc_init_pipe (void);
28 
29 #endif
ipc_pipe_send
int ipc_pipe_send(struct ipc_pipe_context *context, const char *msg, int len)
sends given msg via the given context. Do not use this method directly, use ipc_send of ipc....
Definition: ipc_pipe.c:32
ipc_pipe_context::fd
int fd[2]
Definition: ipc_pipe.h:11
ipc_pipe_retrieve
char * ipc_pipe_retrieve(struct ipc_pipe_context *context)
retrieves message from the given context. Do not use this method directly, use ipc_retrieve of ipc....
Definition: ipc_pipe.c:50
len
uint8_t len
Definition: nasl_packet_forgery.c:1
ipc_pipe_context
Definition: ipc_pipe.h:10
ipc_pipe_destroy
int ipc_pipe_destroy(struct ipc_pipe_context *context)
destroys given context. Do not use this method directly, use ipc_destroy of ipc.h instead.
Definition: ipc_pipe.c:110
ipc_pipe_close
int ipc_pipe_close(struct ipc_pipe_context *context)
closes given context. Do not use this method directly, use ipc_close of ipc.h instead.
Definition: ipc_pipe.c:85
ipc_init_pipe
struct ipc_pipe_context * ipc_init_pipe(void)
initializes a new context. Do not use this method directly, use ipc_init of ipc.h instead.
Definition: ipc_pipe.c:132