summaryrefslogtreecommitdiff
path: root/module/storage.h
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2009-06-18 17:12:19 +0000
committerStef Walter <stef@memberwebs.com>2009-06-18 17:12:19 +0000
commit407df90ad78d83cf3666db25af71a9f534123472 (patch)
tree3fca4a2d180056ca76f0d429943865dcba042cd4 /module/storage.h
parenta7557acb5423ea8e4c6bcce27472918c638d56f8 (diff)
A bunch of fixes toward compilation. Finish today's work.
Diffstat (limited to 'module/storage.h')
-rw-r--r--module/storage.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/module/storage.h b/module/storage.h
index b3a2ad7..4c73da6 100644
--- a/module/storage.h
+++ b/module/storage.h
@@ -1,31 +1,33 @@
#ifndef BOARD_H_
#define BOARD_H_
+#include <stdlib.h>
+
/* Communications white-board between processes/threads */
-typedef struct singleid_board singleid_board_t;
+typedef struct sid_storage sid_storage_t;
-typedef struct singleid_assoc {
+typedef struct sid_assoc {
const char *server;
const char *handle;
const char *type;
const unsigned char *secret;
const size_t n_secret;
time_t expires;
-} singleid_assoc_t;
+} sid_assoc_t;
-int singleid_board_check_nonce (singleid_board_t *board,
+int singleid_board_check_nonce (sid_storage_t *storage,
const char *nonce);
-int singleid_board_store_assoc (singleid_board_t *board,
- const singleid_assoc_t *assoc);
+int singleid_board_store_assoc (sid_storage_t *storage,
+ const sid_assoc_t *assoc);
-int singleid_board_find_assoc (singleid_board_t *board,
+int singleid_board_find_assoc (sid_storage_t *storage,
const char *server,
const char *handle,
- singleid_assoc_t *assoc);
+ sid_assoc_t *assoc);
-void singleid_board_invalidate_assoc (singleid_board_t *board,
+void singleid_board_invalidate_assoc (sid_storage_t *storage,
const char *server,
const char *handle);