aboutsummaryrefslogtreecommitdiff
path: root/src/identity/gnunet-service-identity.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-07-15 21:43:30 +0000
committerChristian Grothoff <christian@grothoff.org>2013-07-15 21:43:30 +0000
commitd0550c56cee3e21663b5a09e97024aef69fb83a7 (patch)
treed0a64c6ea37780f0dcce9f7fcfe4e32cd7118494 /src/identity/gnunet-service-identity.c
parente1f35f347f36df880838d5a208d2998e218aaecf (diff)
-notes on what is left
Diffstat (limited to 'src/identity/gnunet-service-identity.c')
-rw-r--r--src/identity/gnunet-service-identity.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/identity/gnunet-service-identity.c b/src/identity/gnunet-service-identity.c
index 62485f3538..8284b6537c 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"
@@ -488,6 +492,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.
*
* @param cls closure
@@ -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);
}