summaryrefslogtreecommitdiff
path: root/src/ipcpd/shim-data.h
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2017-08-29 16:58:11 +0200
committerSander Vrijders <sander.vrijders@ugent.be>2017-08-29 17:51:38 +0200
commit407f1e70cedcf8d7694a5fefa5faf3225abebc81 (patch)
tree8b5e53f8eddc06beddec927d6a506e3c55fca0b3 /src/ipcpd/shim-data.h
parent00aeb6ee00efa98c7e2d6d9bebeb1c4799ba1705 (diff)
downloadouroboros-407f1e70cedcf8d7694a5fefa5faf3225abebc81.tar.gz
ouroboros-407f1e70cedcf8d7694a5fefa5faf3225abebc81.zip
shim-eth-llc: Hide directory query locking
The locking of the directory queries was happening in the shim-eth-llc, but it should be done within the shim-data functions. Fixes #30
Diffstat (limited to 'src/ipcpd/shim-data.h')
-rw-r--r--src/ipcpd/shim-data.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/ipcpd/shim-data.h b/src/ipcpd/shim-data.h
index 983f97f6..6380eea7 100644
--- a/src/ipcpd/shim-data.h
+++ b/src/ipcpd/shim-data.h
@@ -85,11 +85,14 @@ bool shim_data_dir_has(struct shim_data * data,
uint64_t shim_data_dir_get_addr(struct shim_data * data,
const uint8_t * hash);
-struct dir_query * shim_data_dir_query_create(const uint8_t * hash);
+struct dir_query * shim_data_dir_query_create(struct shim_data * data,
+ const uint8_t * hash);
-void shim_data_dir_query_respond(struct dir_query * query);
+void shim_data_dir_query_destroy(struct shim_data * data,
+ struct dir_query * query);
-void shim_data_dir_query_destroy(struct dir_query * query);
+void shim_data_dir_query_respond(struct shim_data * data,
+ const uint8_t * hash);
int shim_data_dir_query_wait(struct dir_query * query,
const struct timespec * timeout);