diff options
author | Omar Tarabai <tarabai@devegypt.com> | 2014-05-16 16:45:43 +0000 |
---|---|---|
committer | Omar Tarabai <tarabai@devegypt.com> | 2014-05-16 16:45:43 +0000 |
commit | 3c9e8b1b0f7f83f27fefb02bd67b481c67cad0c8 (patch) | |
tree | 525ae2f8cec03f298783aa693d465f789171cf51 /src/peerstore/gnunet-service-peerstore.c | |
parent | aeaf5c97d7d115d99f30e86be66c622b7a6ebf4f (diff) |
peerstore API now uses MQ
Diffstat (limited to 'src/peerstore/gnunet-service-peerstore.c')
-rw-r--r-- | src/peerstore/gnunet-service-peerstore.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/peerstore/gnunet-service-peerstore.c b/src/peerstore/gnunet-service-peerstore.c index be5394ff52..50af4342c6 100644 --- a/src/peerstore/gnunet-service-peerstore.c +++ b/src/peerstore/gnunet-service-peerstore.c @@ -87,7 +87,7 @@ handle_client_disconnect (void *cls, * @param sub_system name of the GNUnet sub system responsible * @param value stored value * @param size size of stored value - */ + * int record_iterator(void *cls, const char *sub_system, const struct GNUNET_PeerIdentity *peer, @@ -108,7 +108,7 @@ int record_iterator(void *cls, GNUNET_MESSAGE_TYPE_PEERSTORE_ITERATE); GNUNET_SERVER_transmit_context_append_message(tc, (const struct GNUNET_MessageHeader *)srm); return GNUNET_YES; -} +}*/ /** * Handle an iterate request from client @@ -116,7 +116,7 @@ int record_iterator(void *cls, * @param cls unused * @param client identification of the client * @param message the actual message - */ + * void handle_iterate (void *cls, struct GNUNET_SERVER_Client *client, const struct GNUNET_MessageHeader *message) @@ -147,7 +147,7 @@ void handle_iterate (void *cls, { } -} +}*/ /** * Handle a store request from client @@ -190,7 +190,7 @@ void handle_store (void *cls, record->key, record->value, record->value_size, - record->expiry)) + *record->expiry)) { response_type = GNUNET_MESSAGE_TYPE_PEERSTORE_STORE_RESULT_OK; } @@ -220,7 +220,7 @@ run (void *cls, { static const struct GNUNET_SERVER_MessageHandler handlers[] = { {&handle_store, NULL, GNUNET_MESSAGE_TYPE_PEERSTORE_STORE, 0}, - {&handle_iterate, NULL, GNUNET_MESSAGE_TYPE_PEERSTORE_ITERATE, 0}, +// {&handle_iterate, NULL, GNUNET_MESSAGE_TYPE_PEERSTORE_ITERATE, 0}, {NULL, NULL, 0, 0} }; char *database; |