aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-12-06 22:41:30 +0000
committerChristian Grothoff <christian@grothoff.org>2014-12-06 22:41:30 +0000
commit9d487bb2fe029b369f362bdbe4697005061a4e5e (patch)
tree5c2eb6849a5dd7a813a07e29a7f2be60af9b9792 /src/include
parent6cd1fc3aa29926ce0326d07ba684e1b65a1a0db7 (diff)
downloadgnunet-9d487bb2fe029b369f362bdbe4697005061a4e5e.tar.gz
gnunet-9d487bb2fe029b369f362bdbe4697005061a4e5e.zip
massive rework of scalarproduct service, splitting into Alice and Bob
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_mq_lib.h8
-rw-r--r--src/include/gnunet_protocols.h22
2 files changed, 16 insertions, 14 deletions
diff --git a/src/include/gnunet_mq_lib.h b/src/include/gnunet_mq_lib.h
index 8da51d198..ca09e7196 100644
--- a/src/include/gnunet_mq_lib.h
+++ b/src/include/gnunet_mq_lib.h
@@ -231,7 +231,8 @@ typedef void
231 * @param error error code 231 * @param error error code
232 */ 232 */
233typedef void 233typedef void
234(*GNUNET_MQ_ErrorHandler) (void *cls, enum GNUNET_MQ_Error error); 234(*GNUNET_MQ_ErrorHandler) (void *cls,
235 enum GNUNET_MQ_Error error);
235 236
236 237
237/** 238/**
@@ -270,7 +271,9 @@ struct GNUNET_MQ_MessageHandler
270 * @return the allocated MQ message 271 * @return the allocated MQ message
271 */ 272 */
272struct GNUNET_MQ_Envelope * 273struct GNUNET_MQ_Envelope *
273GNUNET_MQ_msg_ (struct GNUNET_MessageHeader **mhp, uint16_t size, uint16_t type); 274GNUNET_MQ_msg_ (struct GNUNET_MessageHeader **mhp,
275 uint16_t size,
276 uint16_t type);
274 277
275 278
276/** 279/**
@@ -388,7 +391,6 @@ GNUNET_MQ_queue_for_callbacks (GNUNET_MQ_SendImpl send,
388 void *cls); 391 void *cls);
389 392
390 393
391
392/** 394/**
393 * Replace the handlers of a message queue with new handlers. Takes 395 * Replace the handlers of a message queue with new handlers. Takes
394 * effect immediately, even for messages that already have been 396 * effect immediately, even for messages that already have been
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h
index 747a252ff..f9e8df77f 100644
--- a/src/include/gnunet_protocols.h
+++ b/src/include/gnunet_protocols.h
@@ -2050,39 +2050,39 @@ extern "C"
2050#define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_CLIENT_TO_BOB 641 2050#define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_CLIENT_TO_BOB 641
2051 2051
2052/** 2052/**
2053 * Client -> Alice/Bob multipart 2053 * Client -> Alice multipart
2054 */ 2054 */
2055#define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_CLIENT_MUTLIPART 642 2055#define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_CLIENT_MUTLIPART_ALICE 642
2056 2056
2057/** 2057/**
2058 * Alice -> Bob session initialization 2058 * Client -> Bob multipart
2059 */ 2059 */
2060#define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_SESSION_INITIALIZATION 643 2060#define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_CLIENT_MUTLIPART_BOB 643
2061 2061
2062/** 2062/**
2063 * Alice -> Bob SP crypto-data (after intersection) 2063 * Alice -> Bob session initialization
2064 */ 2064 */
2065#define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_ALICE_CRYPTODATA 644 2065#define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_SESSION_INITIALIZATION 644
2066 2066
2067/** 2067/**
2068 * Alice -> Bob SP crypto-data multipart 2068 * Alice -> Bob SP crypto-data (after intersection)
2069 */ 2069 */
2070#define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_ALICE_CRYPTODATA_MULTIPART 645 2070#define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_ALICE_CRYPTODATA 645
2071 2071
2072/** 2072/**
2073 * Bob -> Alice SP crypto-data 2073 * Bob -> Alice SP crypto-data
2074 */ 2074 */
2075#define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_BOB_CRYPTODATA 646 2075#define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_BOB_CRYPTODATA 647
2076 2076
2077/** 2077/**
2078 * Bob -> Alice SP crypto-data multipart 2078 * Bob -> Alice SP crypto-data multipart
2079 */ 2079 */
2080#define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_BOB_CRYPTODATA_MULTIPART 647 2080#define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_BOB_CRYPTODATA_MULTIPART 648
2081 2081
2082/** 2082/**
2083 * Alice/Bob -> Client Result 2083 * Alice/Bob -> Client Result
2084 */ 2084 */
2085#define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_RESULT 648 2085#define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_RESULT 649
2086 2086
2087 2087
2088 2088