diff options
author | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-12-02 17:16:02 +0000 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-12-02 17:16:02 +0000 |
commit | 08aa32a59162e4383e2782dbf0419c61a0d22524 (patch) | |
tree | 941b20c216e21bceb8741704debfe6efc07f2c2f /src/ipcpd/normal/ro.h | |
parent | 552f2eb19f04968c0c5ebc7b16f6aa1cb61b6b29 (diff) | |
parent | 85b3822a4cc121dcb3d87937c2a44395d8887ae3 (diff) | |
download | ouroboros-08aa32a59162e4383e2782dbf0419c61a0d22524.tar.gz ouroboros-08aa32a59162e4383e2782dbf0419c61a0d22524.zip |
Merged in sandervrijders/ouroboros/be-normal-dir (pull request #314)
ipcpd: normal: Provide directory for registered names
Diffstat (limited to 'src/ipcpd/normal/ro.h')
-rw-r--r-- | src/ipcpd/normal/ro.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/ipcpd/normal/ro.h b/src/ipcpd/normal/ro.h index 278c9213..99ea81f1 100644 --- a/src/ipcpd/normal/ro.h +++ b/src/ipcpd/normal/ro.h @@ -20,8 +20,8 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#ifndef OUROBOROS_IPCP_RO_H -#define OUROBOROS_IPCP_RO_H +#ifndef OUROBOROS_IPCPD_NORMAL_RO_H +#define OUROBOROS_IPCPD_NORMAL_RO_H enum ro_recv_set { NO_SYNC = 0, @@ -54,6 +54,11 @@ int ro_write(const char * name, ssize_t ro_read(const char * name, uint8_t ** data); +ssize_t ro_children(const char * name, + char *** children); + +bool ro_exists(const char * name); + /* Callback passes ownership of the data */ struct ro_sub_ops { void (* ro_created)(const char * name, @@ -71,4 +76,4 @@ int ro_subscribe(const char * name, int ro_unsubscribe(int sid); -#endif +#endif /* OUROBOROS_IPCPD_NORMAL_RO_H */ |