From d0550c56cee3e21663b5a09e97024aef69fb83a7 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 15 Jul 2013 21:43:30 +0000 Subject: -notes on what is left --- src/identity/gnunet-service-identity.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src') diff --git a/src/identity/gnunet-service-identity.c b/src/identity/gnunet-service-identity.c index 62485f353..8284b6537 100644 --- a/src/identity/gnunet-service-identity.c +++ b/src/identity/gnunet-service-identity.c @@ -25,6 +25,10 @@ * * The purpose of this service is to manage private keys that * represent the various egos/pseudonyms/identities of a GNUnet user. + * + * TODO: + * - disk operations + * - default identity set/get handlers */ #include "platform.h" #include "gnunet_util_lib.h" @@ -487,6 +491,21 @@ handle_delete_message (void *cls, struct GNUNET_SERVER_Client *client, } +/** + * Process the given file from the "EGODIR". Parses the file + * and creates the respective 'struct Ego' in memory. + * + * @param cls NULL + * @param filename name of the file to parse + */ +static void +process_ego_file (void *cls, + const char *filename) +{ + GNUNET_break (0); // not implemented +} + + /** * Handle network size estimate clients. * @@ -550,6 +569,9 @@ run (void *cls, stats = GNUNET_STATISTICS_create ("identity", cfg); GNUNET_SERVER_add_handlers (server, handlers); nc = GNUNET_SERVER_notification_context_create (server, 1); + GNUNET_DISK_directory_scan (ego_directory, + &process_ego_file, + NULL); GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &shutdown_task, NULL); } -- cgit v1.2.3