From 407df90ad78d83cf3666db25af71a9f534123472 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Thu, 18 Jun 2009 17:12:19 +0000 Subject: A bunch of fixes toward compilation. Finish today's work. --- module/storage.h | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'module/storage.h') 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 + /* 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); -- cgit v1.2.3