1
0
Fork 0
mirror of https://github.com/pygos/init.git synced 2024-05-20 04:36:12 +02:00
init/lib/include/initsock.h
David Oberhollenzer c78bbd2f73 Add helpers for initd socket
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2019-03-18 14:15:58 +01:00

24 lines
407 B
C

/* 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 */