From c78bbd2f731ae44c7d2588b9bb3d19005f192fc6 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 15 Mar 2019 11:23:40 +0100 Subject: Add helpers for initd socket Signed-off-by: David Oberhollenzer --- lib/include/initsock.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 lib/include/initsock.h (limited to 'lib/include/initsock.h') diff --git a/lib/include/initsock.h b/lib/include/initsock.h new file mode 100644 index 0000000..5c1437c --- /dev/null +++ b/lib/include/initsock.h @@ -0,0 +1,23 @@ +/* SPDX-License-Identifier: ISC */ +#ifndef INITSOCK_H +#define INITSOCK_H + +#include "config.h" + +#define INIT_SOCK_PATH SOCKDIR "/init.sock" + +typedef enum { + EIR_STATUS = 0x00, +} E_INIT_REQUEST; + +typedef struct { + E_INIT_REQUEST rq; +} init_request_t; + +int init_socket_create(void); + +int init_socket_open(const char *tmppath); + +int init_socket_send_request(int fd, E_INIT_REQUEST rq); + +#endif /* INITSOCK_H */ -- cgit v1.2.3