gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r28004 - gnunet/src/include


From: gnunet
Subject: [GNUnet-SVN] r28004 - gnunet/src/include
Date: Sat, 13 Jul 2013 21:28:44 +0200

Author: grothoff
Date: 2013-07-13 21:28:44 +0200 (Sat, 13 Jul 2013)
New Revision: 28004

Modified:
   gnunet/src/include/gnunet_identity_service.h
Log:
-adding missing functions to identity service to make it more complete wrt 
replacing namestore functions from FS

Modified: gnunet/src/include/gnunet_identity_service.h
===================================================================
--- gnunet/src/include/gnunet_identity_service.h        2013-07-13 18:55:10 UTC 
(rev 28003)
+++ gnunet/src/include/gnunet_identity_service.h        2013-07-13 19:28:44 UTC 
(rev 28004)
@@ -91,6 +91,14 @@
  * call to the identity callback of 'GNUNET_IDENTITY_connect' (if 
  * that one was not NULL).
  *
+ * When an identity is renamed, this function is called with the
+ * (known) pseudonym but the NEW identifier.  
+ *
+ * When an identity is deleted, this function is called with the
+ * (known) pseudonym and "NULL" for the 'identifier'.  In this case,
+ * the 'pseu' is henceforth invalid (and the 'ctx' should also be
+ * cleaned up).
+ *
  * @param cls closure
  * @param pseu pseudonym handle
  * @param pseu_ctx context for application to store data for this pseudonym
@@ -190,6 +198,40 @@
                        void *cb_cls);
 
 
+/** 
+ * Renames an existing identity.
+ *
+ * @param id identity service to use
+ * @param old_identifier old identifier
+ * @param new_identifier desired new identifier
+ * @param cb function to call with the result (will only be called once)
+ * @param cb_cls closure for cb
+ * @return handle to abort the operation
+ */
+struct GNUNET_IDENTITY_Operation *
+GNUNET_IDENTITY_rename (struct GNUNET_IDENTITY_Handle *id,
+                       const char *old_identifier,
+                       const char *new_identifier,
+                       GNUNET_IDENTITY_Continuation cb,
+                       void *cb_cls);
+
+
+/** 
+ * Delete an existing identity.
+ *
+ * @param id identity service to use
+ * @param identifier identifier of the identity to delete
+ * @param cb function to call with the result (will only be called once)
+ * @param cb_cls closure for cb
+ * @return handle to abort the operation
+ */
+struct GNUNET_IDENTITY_Operation *
+GNUNET_IDENTITY_delete (struct GNUNET_IDENTITY_Handle *id,
+                       const char *identifier,
+                       GNUNET_IDENTITY_Continuation cb,
+                       void *cb_cls);
+
+
 /**
  * Cancel an identity operation.
  *




reply via email to

[Prev in Thread] Current Thread [Next in Thread]