Link namesotre to libgnunetgnsrecord too
[oweals/gnunet.git] / src / include / gnunet_protocols.h
index afc56cfe20a16156ff144ecf4215266b3111c25f..a3e40afd35c48c770e5d90036492efb213fc7235 100644 (file)
@@ -23,7 +23,7 @@
  * @brief constants for network protocols
  * @author Christian Grothoff
  * @defgroup protocols Types of messages used in GNUnet
- * @{ 
+ * @{
  */
 
 /*******************************************************************************
@@ -149,7 +149,7 @@ extern "C"
  ******************************************************************************/
 
 /**
- * Type of data messages from the plugin to the gnunet-wlan-helper 
+ * Type of data messages from the plugin to the gnunet-wlan-helper
  */
 #define GNUNET_MESSAGE_TYPE_WLAN_DATA_TO_HELPER 39
 
@@ -843,7 +843,7 @@ extern "C"
 #define GNUNET_MESSAGE_TYPE_MESH_CONNECTION_DESTROY     266
 
 /**
- * Request the destruction of a whole tunnel 
+ * Request the destruction of a whole tunnel
  */
 #define GNUNET_MESSAGE_TYPE_MESH_TUNNEL_DESTROY         267
 
@@ -1350,38 +1350,46 @@ extern "C"
 
 
 /*******************************************************************************
- * NAMESTORE message types
+ * NAMECACHE message types
  ******************************************************************************/
 
 /**
  * Client to service: lookup block
  */
 #define GNUNET_MESSAGE_TYPE_NAMESTORE_LOOKUP_BLOCK 431
+#define GNUNET_MESSAGE_TYPE_NAMECACHE_LOOKUP_BLOCK 431
 
 /**
  * Service to client: result of block lookup
  */
 #define GNUNET_MESSAGE_TYPE_NAMESTORE_LOOKUP_BLOCK_RESPONSE 432
+#define GNUNET_MESSAGE_TYPE_NAMECACHE_LOOKUP_BLOCK_RESPONSE 432
 
 /**
- * Client to service: store records (as authority)
+ * Client to service: cache a block
  */
-#define GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_STORE 433
+#define GNUNET_MESSAGE_TYPE_NAMESTORE_BLOCK_CACHE 433
+#define GNUNET_MESSAGE_TYPE_NAMECACHE_BLOCK_CACHE 433
 
 /**
- * Service to client: result of store operation.
+ * Service to client: result of block cache request
  */
-#define GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_STORE_RESPONSE 434
+#define GNUNET_MESSAGE_TYPE_NAMESTORE_BLOCK_CACHE_RESPONSE 434
+#define GNUNET_MESSAGE_TYPE_NAMECACHE_BLOCK_CACHE_RESPONSE 434
+
+/*******************************************************************************
+ * NAMESTORE message types
+ ******************************************************************************/
 
 /**
- * Client to service: cache a block
+ * Client to service: store records (as authority)
  */
-#define GNUNET_MESSAGE_TYPE_NAMESTORE_BLOCK_CACHE 435
+#define GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_STORE 435
 
 /**
- * Service to client: result of block cache request
+ * Service to client: result of store operation.
  */
-#define GNUNET_MESSAGE_TYPE_NAMESTORE_BLOCK_CACHE_RESPONSE 436
+#define GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_STORE_RESPONSE 436
 
 /**
  * Client to service: "reverse" lookup for zone name based on zone key
@@ -1888,7 +1896,7 @@ extern "C"
 
 /**
  * Result in response to regex search.
- */ 
+ */
 #define GNUNET_MESSAGE_TYPE_REGEX_RESULT 622
 
 /*******************************************************************************
@@ -1981,15 +1989,25 @@ extern "C"
  */
 #define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_ALICE_TO_BOB 642
 
+/**
+ * Vector-Product Service request -> remote VP Service Multipart
+ */
+#define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_ALICE_TO_BOB_MULTIPART 643
+
 /**
  * remote Vector-Product Service response -> requesting VP Service
  */
-#define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_BOB_TO_ALICE 643
+#define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_BOB_TO_ALICE 644
+
+/**
+ * remote Vector-Product Service response -> requesting VP Service Multipart
+ */
+#define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_BOB_TO_ALICE_MULTIPART 645
 
 /**
  * Vector-Product Service response -> Client
  */
-#define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_SERVICE_TO_CLIENT 644
+#define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_SERVICE_TO_CLIENT 646
 
 
 /*******************************************************************************
@@ -2073,163 +2091,41 @@ extern "C"
 #define GNUNET_MESSAGE_TYPE_PSYC_CHANNEL_SLAVE_RM 690
 
 
-#define GNUNET_MESSAGE_TYPE_PSYC_TRANSMIT_METHOD 691
+#define GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_METHOD 691
 
-#define GNUNET_MESSAGE_TYPE_PSYC_TRANSMIT_MODIFIER 692
+#define GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_MODIFIER 692
 
-#define GNUNET_MESSAGE_TYPE_PSYC_TRANSMIT_MOD_CONT 693
+#define GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_MOD_CONT 693
 
-#define GNUNET_MESSAGE_TYPE_PSYC_TRANSMIT_DATA 694
+#define GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_DATA 694
 
 #define GNUNET_MESSAGE_TYPE_PSYC_TRANSMIT_ACK 695
 
 
-#define GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_METHOD 696
-
-#define GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_MODIFIER 697
-
-#define GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_MOD_CONT 698
-
-#define GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_DATA 699
-
-#define GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_ACK 700
-
-
 #define GNUNET_MESSAGE_TYPE_PSYC_STORY_REQUEST 701
 
-#define GNUNET_MESSAGE_TYPE_PSYC_STORY_METHOD 702
-
-#define GNUNET_MESSAGE_TYPE_PSYC_STORY_MODIFIER 703
+#define GNUNET_MESSAGE_TYPE_PSYC_STORY_RESPONSE 702
 
-#define GNUNET_MESSAGE_TYPE_PSYC_STORY_MOD_CONT 704
 
-#define GNUNET_MESSAGE_TYPE_PSYC_STORY_DATA 705
+#define GNUNET_MESSAGE_TYPE_PSYC_STATE_GET 703
 
-#define GNUNET_MESSAGE_TYPE_PSYC_STORY_ACK 706
+#define GNUNET_MESSAGE_TYPE_PSYC_STATE_GET_PREFIX 704
 
+#define GNUNET_MESSAGE_TYPE_PSYC_STATE_RESPONSE 705
 
-#define GNUNET_MESSAGE_TYPE_PSYC_STATE_GET 707
+#define GNUNET_MESSAGE_TYPE_PSYC_STATE_MODIFIER 706
 
-#define GNUNET_MESSAGE_TYPE_PSYC_STATE_GET_PREFIX 708
-
-#define GNUNET_MESSAGE_TYPE_PSYC_STATE_MODIFIER 709
-
-#define GNUNET_MESSAGE_TYPE_PSYC_STATE_MOD_CONT 710
+#define GNUNET_MESSAGE_TYPE_PSYC_STATE_MOD_CONT 707
 
 
 /*******************************************************************************
  * CONVERSATION message types
  ******************************************************************************/
 
-/**
- * Client <-> Server message to initiate a new call
- */
-#define GNUNET_MESSAGE_TYPE_CONVERSATION_CS_SESSION_INITIATE 730
-
-/**
- * Client <-> Server meessage to accept an incoming call
- */
-#define GNUNET_MESSAGE_TYPE_CONVERSATION_CS_SESSION_ACCEPT 731
-
-/**
- * Client <-> Server message to reject an incoming call
- */
-#define GNUNET_MESSAGE_TYPE_CONVERSATION_CS_SESSION_REJECT 732
-
-/**
- * Client <-> Server message to terminate a call
- */
-#define GNUNET_MESSAGE_TYPE_CONVERSATION_CS_SESSION_TERMINATE 733
-
-/**
- * Client <-> Server message to initiate a new call
- */
-#define GNUNET_MESSAGE_TYPE_CONVERSATION_CS_TEST 734
-
-/**
- * Server <-> Client message to initiate a new call
- */
-#define GNUNET_MESSAGE_TYPE_CONVERSATION_SC_SESSION_INITIATE 735
-
-/**
- * Server <-> Client meessage to accept an incoming call
- */
-#define GNUNET_MESSAGE_TYPE_CONVERSATION_SC_SESSION_ACCEPT 736
-
-/**
- * Server <-> Client message to reject an incoming call
- */
-#define GNUNET_MESSAGE_TYPE_CONVERSATION_SC_SESSION_REJECT 737
-
-/**
- * Server <-> Client message to terminat a call
- */
-#define GNUNET_MESSAGE_TYPE_CONVERSATION_SC_SESSION_TERMINATE 738
-
-/**
- * Server <-> Client message to signalize the client that the service is already in use
- */
-#define GNUNET_MESSAGE_TYPE_CONVERSATION_SC_SERVICE_BLOCKED 739
-
-/**
- * Server <-> Client message to signalize the client that the called peer is not connected
- */
-#define GNUNET_MESSAGE_TYPE_CONVERSATION_SC_PEER_NOT_CONNECTED 740
-
-/**
- * Server <-> Client message to signalize the client that called peer does not answer
- */
-#define GNUNET_MESSAGE_TYPE_CONVERSATION_SC_NO_ANSWER 741
-
-/**
- * Server <-> Client message to notify client of missed call
- */
-#define GNUNET_MESSAGE_TYPE_CONVERSATION_SC_MISSED_CALL 742
-
-/**
- * Server <-> Client message to signalize the client that there occured an error
- */
-#define GNUNET_MESSAGE_TYPE_CONVERSATION_SC_ERROR 743
-
-/**
- * Server <-> Client message to notify client of peer being available
- */
-#define GNUNET_MESSAGE_TYPE_CONVERSATION_SC_PEER_AVAILABLE 744
-
-/**
- * Mesh message to sinal the remote peer the wish to initiate a new call
- */
-#define GNUNET_MESSAGE_TYPE_CONVERSATION_MESH_SESSION_INITIATE 745
-
-/**
- * Mesh message to signal the remote peer the acceptance of an initiated call
- */
-#define GNUNET_MESSAGE_TYPE_CONVERSATION_MESH_SESSION_ACCEPT 746
-
-/**
- * Mesh message to reject an a wish to initiate a new call
- */
-#define GNUNET_MESSAGE_TYPE_CONVERSATION_MESH_SESSION_REJECT 747
-
-/**
- * Mesh message to signal a remote peer the terminatation of a call
- */
-#define GNUNET_MESSAGE_TYPE_CONVERSATION_MESH_SESSION_TERMINATE 748
-
-/**
- * Server <-> Client message to notify client of peer being available
- */
-#define GNUNET_MESSAGE_TYPE_CONVERSATION_MESH_PEER_AVAILABLE 749
-
-
-#define GNUNET_MESSAGE_TYPE_CONVERSATION_TEST 750
-
-
-
 /**
  * Message to transmit the audio between helper and speaker/microphone library.
  */
-#define GNUNET_MESSAGE_TYPE_CONVERSATION_AUDIO 751
+#define GNUNET_MESSAGE_TYPE_CONVERSATION_AUDIO 730
 
 /**
  * Client -> Server message register a phone.
@@ -2271,6 +2167,30 @@ extern "C"
  */
 #define GNUNET_MESSAGE_TYPE_CONVERSATION_CS_AUDIO 737
 
+/**
+ * Mesh: call initiation
+ */
+#define GNUNET_MESSAGE_TYPE_CONVERSATION_MESH_PHONE_RING 738
+
+/**
+ * Mesh: hang up / refuse call
+ */
+#define GNUNET_MESSAGE_TYPE_CONVERSATION_MESH_PHONE_HANG_UP 739
+
+/**
+ * Mesh: pick up phone (establish audio channel)
+ */
+#define GNUNET_MESSAGE_TYPE_CONVERSATION_MESH_PHONE_PICK_UP 740
+
+/**
+ * Mesh: phone is busy (refuse nicely)
+ */
+#define GNUNET_MESSAGE_TYPE_CONVERSATION_MESH_PHONE_BUSY 741
+
+/**
+ * Mesh: audio data
+ */
+#define GNUNET_MESSAGE_TYPE_CONVERSATION_MESH_AUDIO 742
 
 
 /*******************************************************************************
@@ -2283,7 +2203,7 @@ extern "C"
 /**
  * Multicast message from the origin to all members.
  */
-#define GNUNET_MESSAGE_TYPE_MULTICAST_MESSAGE 760
+#define GNUNET_MESSAGE_TYPE_MULTICAST_MESSAGE 750
 
 /**
  * A unicast message from a group member to the origin.