File: ipc_pipe.h

package info (click to toggle)
openvas-scanner 23.38.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 22,468 kB
  • sloc: ansic: 41,621; xml: 6,251; pascal: 3,723; yacc: 1,250; sh: 1,068; makefile: 333; sql: 282; javascript: 12
file content (29 lines) | stat: -rw-r--r-- 503 bytes parent folder | download
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