aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_mq_lib.h18
-rw-r--r--src/include/gnunet_protocols.h5
-rw-r--r--src/include/gnunet_transport_service.h4
3 files changed, 19 insertions, 8 deletions
diff --git a/src/include/gnunet_mq_lib.h b/src/include/gnunet_mq_lib.h
index 765647a98..a1c5c4957 100644
--- a/src/include/gnunet_mq_lib.h
+++ b/src/include/gnunet_mq_lib.h
@@ -305,7 +305,8 @@ enum GNUNET_MQ_PriorityPreferences
305 * @param cls closure 305 * @param cls closure
306 * @param msg the received message 306 * @param msg the received message
307 */ 307 */
308typedef void (*GNUNET_MQ_MessageCallback) ( 308typedef void
309(*GNUNET_MQ_MessageCallback) (
309 void *cls, 310 void *cls,
310 const struct GNUNET_MessageHeader *msg); 311 const struct GNUNET_MessageHeader *msg);
311 312
@@ -318,7 +319,8 @@ typedef void (*GNUNET_MQ_MessageCallback) (
318 * @return #GNUNET_OK if the message is well-formed, 319 * @return #GNUNET_OK if the message is well-formed,
319 * #GNUNET_SYSERR if not 320 * #GNUNET_SYSERR if not
320 */ 321 */
321typedef int (*GNUNET_MQ_MessageValidationCallback) ( 322typedef int
323(*GNUNET_MQ_MessageValidationCallback) (
322 void *cls, 324 void *cls,
323 const struct GNUNET_MessageHeader *msg); 325 const struct GNUNET_MessageHeader *msg);
324 326
@@ -826,7 +828,8 @@ GNUNET_MQ_get_length (struct GNUNET_MQ_Handle *mq);
826 * @param ev the envelope with the message to send. 828 * @param ev the envelope with the message to send.
827 */ 829 */
828void 830void
829GNUNET_MQ_send (struct GNUNET_MQ_Handle *mq, struct GNUNET_MQ_Envelope *ev); 831GNUNET_MQ_send (struct GNUNET_MQ_Handle *mq,
832 struct GNUNET_MQ_Envelope *ev);
830 833
831 834
832/** 835/**
@@ -859,7 +862,8 @@ GNUNET_MQ_send_cancel (struct GNUNET_MQ_Envelope *ev);
859 * @param assoc_data to associate 862 * @param assoc_data to associate
860 */ 863 */
861uint32_t 864uint32_t
862GNUNET_MQ_assoc_add (struct GNUNET_MQ_Handle *mq, void *assoc_data); 865GNUNET_MQ_assoc_add (struct GNUNET_MQ_Handle *mq,
866 void *assoc_data);
863 867
864 868
865/** 869/**
@@ -870,7 +874,8 @@ GNUNET_MQ_assoc_add (struct GNUNET_MQ_Handle *mq, void *assoc_data);
870 * @return the associated data 874 * @return the associated data
871 */ 875 */
872void * 876void *
873GNUNET_MQ_assoc_get (struct GNUNET_MQ_Handle *mq, uint32_t request_id); 877GNUNET_MQ_assoc_get (struct GNUNET_MQ_Handle *mq,
878 uint32_t request_id);
874 879
875 880
876/** 881/**
@@ -881,7 +886,8 @@ GNUNET_MQ_assoc_get (struct GNUNET_MQ_Handle *mq, uint32_t request_id);
881 * @return the associated data 886 * @return the associated data
882 */ 887 */
883void * 888void *
884GNUNET_MQ_assoc_remove (struct GNUNET_MQ_Handle *mq, uint32_t request_id); 889GNUNET_MQ_assoc_remove (struct GNUNET_MQ_Handle *mq,
890 uint32_t request_id);
885 891
886 892
887/** 893/**
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h
index 6b61dfc72..41f2876e6 100644
--- a/src/include/gnunet_protocols.h
+++ b/src/include/gnunet_protocols.h
@@ -660,6 +660,11 @@ extern "C" {
660#define GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET_RESULTS_KNOWN 156 660#define GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET_RESULTS_KNOWN 156
661 661
662/** 662/**
663 * DHT wants to use CORE to transmit data.
664 */
665#define GNUNET_MESSAGE_TYPE_DHT_CORE 143
666
667/**
663 * Further X-VINE DHT messages continued from 880 668 * Further X-VINE DHT messages continued from 880
664 */ 669 */
665 670
diff --git a/src/include/gnunet_transport_service.h b/src/include/gnunet_transport_service.h
index 545bb28d2..459efc506 100644
--- a/src/include/gnunet_transport_service.h
+++ b/src/include/gnunet_transport_service.h
@@ -117,8 +117,8 @@ struct GNUNET_TRANSPORT_AddressToStringContext;
117 */ 117 */
118typedef void 118typedef void
119(*GNUNET_TRANSPORT_AddressToStringCallback) (void *cls, 119(*GNUNET_TRANSPORT_AddressToStringCallback) (void *cls,
120 const char *address, 120 const char *address,
121 int res); 121 int res);
122 122
123 123
124/** 124/**