New client side API to access svc_t entries without shared memory

This change is one of the required intermediate steps to remove the
shared memory store for all svc_t, this in turn to avoid any external
programs manipulating the internal memory of PID 1.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2017-12-18 11:06:19 +01:00
1 parent 9a8b55737f
commit c0515d112e
6 files changed
+169 -52

No files matched your search

+6 -3
View File
@@ -25,15 +25,18 @@
#define FINIT_CLIENT_H_
#include "finit.h"
#include "svc.h"
typedef struct {
char *cmd;
int (*cb)(char *arg);
} command_t;
int client_connect (void);
int client_disconnect (void);
int client_connect (void);
int client_disconnect (void);
int client_send (struct init_request *rq, ssize_t len);
int client_send (struct init_request *rq, ssize_t len);
svc_t *client_svc_iterator (int first);
svc_t *client_svc_find (char *arg);
#endif /* FINIT_CLIENT_H_ */