aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_identity_service.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-07-13 19:28:44 +0000
committerChristian Grothoff <christian@grothoff.org>2013-07-13 19:28:44 +0000
commit4c16cbd08c3213883d315a4c11624870337f1c2d (patch)
treef3bac3e97f5975d183e6c835d160f59abd8e5661 /src/include/gnunet_identity_service.h
parentc69d7c308e4ecb4c74820026220baddfb3f981fa (diff)
downloadgnunet-4c16cbd08c3213883d315a4c11624870337f1c2d.tar.gz
gnunet-4c16cbd08c3213883d315a4c11624870337f1c2d.zip
-adding missing functions to identity service to make it more complete wrt replacing namestore functions from FS
Diffstat (limited to 'src/include/gnunet_identity_service.h')
-rw-r--r--src/include/gnunet_identity_service.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/include/gnunet_identity_service.h b/src/include/gnunet_identity_service.h
index 1d55c16d2..f34f7adf2 100644
--- a/src/include/gnunet_identity_service.h
+++ b/src/include/gnunet_identity_service.h
@@ -91,6 +91,14 @@ GNUNET_IDENTITY_pseudonym_get_key (struct GNUNET_IDENTITY_Pseudonym *pseudonym);
91 * call to the identity callback of 'GNUNET_IDENTITY_connect' (if 91 * call to the identity callback of 'GNUNET_IDENTITY_connect' (if
92 * that one was not NULL). 92 * that one was not NULL).
93 * 93 *
94 * When an identity is renamed, this function is called with the
95 * (known) pseudonym but the NEW identifier.
96 *
97 * When an identity is deleted, this function is called with the
98 * (known) pseudonym and "NULL" for the 'identifier'. In this case,
99 * the 'pseu' is henceforth invalid (and the 'ctx' should also be
100 * cleaned up).
101 *
94 * @param cls closure 102 * @param cls closure
95 * @param pseu pseudonym handle 103 * @param pseu pseudonym handle
96 * @param pseu_ctx context for application to store data for this pseudonym 104 * @param pseu_ctx context for application to store data for this pseudonym
@@ -190,6 +198,40 @@ GNUNET_IDENTITY_create (struct GNUNET_IDENTITY_Handle *id,
190 void *cb_cls); 198 void *cb_cls);
191 199
192 200
201/**
202 * Renames an existing identity.
203 *
204 * @param id identity service to use
205 * @param old_identifier old identifier
206 * @param new_identifier desired new identifier
207 * @param cb function to call with the result (will only be called once)
208 * @param cb_cls closure for cb
209 * @return handle to abort the operation
210 */
211struct GNUNET_IDENTITY_Operation *
212GNUNET_IDENTITY_rename (struct GNUNET_IDENTITY_Handle *id,
213 const char *old_identifier,
214 const char *new_identifier,
215 GNUNET_IDENTITY_Continuation cb,
216 void *cb_cls);
217
218
219/**
220 * Delete an existing identity.
221 *
222 * @param id identity service to use
223 * @param identifier identifier of the identity to delete
224 * @param cb function to call with the result (will only be called once)
225 * @param cb_cls closure for cb
226 * @return handle to abort the operation
227 */
228struct GNUNET_IDENTITY_Operation *
229GNUNET_IDENTITY_delete (struct GNUNET_IDENTITY_Handle *id,
230 const char *identifier,
231 GNUNET_IDENTITY_Continuation cb,
232 void *cb_cls);
233
234
193/** 235/**
194 * Cancel an identity operation. 236 * Cancel an identity operation.
195 * 237 *