diff options
author | Dimitri Staessens <[email protected]> | 2021-12-27 12:57:50 +0100 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2021-12-29 09:12:20 +0100 |
commit | ebf1b0c7415f394712c8dd71ae8c8e6821fd5fa3 (patch) | |
tree | 8a976b5541b97617b7edece8329754acaa5ed48c /src/ipcpd/unicast/dir/ops.h | |
parent | 0a0c244b9939059b86d304dd127763fed7d10af4 (diff) | |
download | ouroboros-ebf1b0c7415f394712c8dd71ae8c8e6821fd5fa3.tar.gz ouroboros-ebf1b0c7415f394712c8dd71ae8c8e6821fd5fa3.zip |
ipcpd: Allow creation of multiple directories
To allow merging large network layers, a situation will arise where
multiple directories need to coexist within the layer. This reverts
commit 9422e6be94ac1007e8115a920379fd545055e531.
Signed-off-by: Dimitri Staessens <[email protected]>
Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/ipcpd/unicast/dir/ops.h')
-rw-r--r-- | src/ipcpd/unicast/dir/ops.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/ipcpd/unicast/dir/ops.h b/src/ipcpd/unicast/dir/ops.h index 7eabb680..e74324da 100644 --- a/src/ipcpd/unicast/dir/ops.h +++ b/src/ipcpd/unicast/dir/ops.h @@ -23,20 +23,24 @@ #ifndef OUROBOROS_IPCPD_UNICAST_DIR_OPS_H #define OUROBOROS_IPCPD_UNICAST_DIR_OPS_H + struct dir_ops { - int (* init)(void); + void * (* create)(void); - void (* fini)(void); + void (* destroy)(void * dir); - int (* bootstrap)(void); + int (* bootstrap)(void * dir); - int (* reg)(const uint8_t * hash); + int (* reg)(void * dir, + const uint8_t * hash); - int (* unreg)(const uint8_t * hash); + int (* unreg)(void * dir, + const uint8_t * hash); - uint64_t (* query)(const uint8_t * hash); + uint64_t (* query)(void * dir, + const uint8_t * hash); - int (* wait_running)(void); + int (* wait_running)(void * dir); }; #endif /* OUROBOROS_IPCPD_UNICAST_DIR_OPS_H */ |