From 819edccd0695ef75a21bd64a012606b5723fc18f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 14 Jul 2013 18:57:40 +0000 Subject: [PATCH] -identity IPC definitions: message types --- src/include/gnunet_identity_service.h | 5 ++- src/include/gnunet_protocols.h | 48 ++++++++++++++++++++++++--- 2 files changed, 48 insertions(+), 5 deletions(-) diff --git a/src/include/gnunet_identity_service.h b/src/include/gnunet_identity_service.h index f34f7adf2..2ad40791d 100644 --- a/src/include/gnunet_identity_service.h +++ b/src/include/gnunet_identity_service.h @@ -233,7 +233,10 @@ GNUNET_IDENTITY_delete (struct GNUNET_IDENTITY_Handle *id, /** - * Cancel an identity operation. + * Cancel an identity operation. Note that the operation MAY still + * be executed; this merely cancels the continuation; if the request + * was already transmitted, the service may still choose to complete + * the operation. * * @param op operation to cancel */ diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h index b60fe65d4..a338d7b8e 100644 --- a/src/include/gnunet_protocols.h +++ b/src/include/gnunet_protocols.h @@ -1821,9 +1821,6 @@ extern "C" */ #define GNUNET_MESSAGE_TYPE_TESTBED_LOGGER_ACK 601 -/** - * Next available: 605 - */ /******************************************************************************* * EXPERIMENTATION message types @@ -1854,12 +1851,55 @@ extern "C" */ #define GNUNET_MESSAGE_TYPE_REGEX_RESULT 622 +/******************************************************************************* + * IDENTITY message types + ******************************************************************************/ + +/** + * First message send from identity client to service (to subscribe to + * updates). + */ +#define GNUNET_MESSAGE_TYPE_IDENTITY_START 624 + +/** + * Generic response from identity service with success and/or error message. + */ +#define GNUNET_MESSAGE_TYPE_IDENTITY_RESULT_CODE 625 /** - * Next available: 624 + * Update about identity status from service to clients. */ +#define GNUNET_MESSAGE_TYPE_IDENTITY_UPDATE 626 +/** + * Client requests to know default identity for a subsystem. + */ +#define GNUNET_MESSAGE_TYPE_IDENTITY_GET_DEFAULT 627 +/** + * Client sets default identity; or service informs about default identity. + */ +#define GNUNET_MESSAGE_TYPE_IDENTITY_SET_DEFAULT 628 + +/** + * Create new identity (client->service). + */ +#define GNUNET_MESSAGE_TYPE_IDENTITY_CREATE 629 + +/** + * Rename existing identity (client->service). + */ +#define GNUNET_MESSAGE_TYPE_IDENTITY_RENAME 630 + +/** + * Delete identity (client->service). + */ +#define GNUNET_MESSAGE_TYPE_IDENTITY_DELETE 631 + + +/** + * Next available: 640 + */ /* WIP: no numbers assigned yet */ -- 2.25.1