aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Fuchs <christian.fuchs@cfuchs.net>2013-10-14 14:21:41 +0000
committerChristian Fuchs <christian.fuchs@cfuchs.net>2013-10-14 14:21:41 +0000
commitaf9252228fabc0b9bea2964fe395ec824c7abffa (patch)
tree1eb49d215a469246a837de97c57768950fae386b
parent41fe47de194f6d005eba16715804ca62ef18a0f1 (diff)
downloadgnunet-af9252228fabc0b9bea2964fe395ec824c7abffa.tar.gz
gnunet-af9252228fabc0b9bea2964fe395ec824c7abffa.zip
more doxygen compliance, should no longer generate warnings, except for one wired warning which is not in the sourcecode, will talk to christian grothoff about that
-rw-r--r--src/include/gnunet_scalarproduct_service.h12
-rw-r--r--src/scalarproduct/scalarproduct_api.c12
2 files changed, 16 insertions, 8 deletions
diff --git a/src/include/gnunet_scalarproduct_service.h b/src/include/gnunet_scalarproduct_service.h
index 88b0a6586..1146db1e4 100644
--- a/src/include/gnunet_scalarproduct_service.h
+++ b/src/include/gnunet_scalarproduct_service.h
@@ -86,9 +86,11 @@ typedef void (*GNUNET_SCALARPRODUCT_DatumProcessor) (void *cls,
86 * @param mask_bytes number of bytes in the mask 86 * @param mask_bytes number of bytes in the mask
87 * @param cont Callback function 87 * @param cont Callback function
88 * @param cont_cls Closure for the callback function 88 * @param cont_cls Closure for the callback function
89 *
90 * @return a new handle for this computation
89 */ 91 */
90struct GNUNET_SCALARPRODUCT_ComputationHandle * 92struct GNUNET_SCALARPRODUCT_ComputationHandle *
91GNUNET_SCALARPRODUCT_request (const struct GNUNET_CONFIGURATION_Handle *cfg, 93GNUNET_SCALARPRODUCT_request (const struct GNUNET_CONFIGURATION_Handle * cfg,
92 const struct GNUNET_HashCode * key, 94 const struct GNUNET_HashCode * key,
93 const struct GNUNET_PeerIdentity *peer, 95 const struct GNUNET_PeerIdentity *peer,
94 const int32_t * elements, 96 const int32_t * elements,
@@ -96,7 +98,7 @@ GNUNET_SCALARPRODUCT_request (const struct GNUNET_CONFIGURATION_Handle *cfg,
96 const unsigned char * mask, 98 const unsigned char * mask,
97 uint32_t mask_bytes, 99 uint32_t mask_bytes,
98 GNUNET_SCALARPRODUCT_DatumProcessor cont, 100 GNUNET_SCALARPRODUCT_DatumProcessor cont,
99 void *cont_cls); 101 void * cont_cls);
100 102
101/** 103/**
102 * Used by Bob's client to cooperate with Alice, 104 * Used by Bob's client to cooperate with Alice,
@@ -107,14 +109,16 @@ GNUNET_SCALARPRODUCT_request (const struct GNUNET_CONFIGURATION_Handle *cfg,
107 * @param element_count Number of elements in the vector 109 * @param element_count Number of elements in the vector
108 * @param cont Callback function 110 * @param cont Callback function
109 * @param cont_cls Closure for the callback function 111 * @param cont_cls Closure for the callback function
112 *
113 * @return a new handle for this computation
110 */ 114 */
111struct GNUNET_SCALARPRODUCT_ComputationHandle * 115struct GNUNET_SCALARPRODUCT_ComputationHandle *
112GNUNET_SCALARPRODUCT_response (const struct GNUNET_CONFIGURATION_Handle *cfg, 116GNUNET_SCALARPRODUCT_response (const struct GNUNET_CONFIGURATION_Handle * cfg,
113 const struct GNUNET_HashCode * key, 117 const struct GNUNET_HashCode * key,
114 const int32_t * elements, 118 const int32_t * elements,
115 uint32_t element_count, 119 uint32_t element_count,
116 GNUNET_SCALARPRODUCT_ContinuationWithStatus cont, 120 GNUNET_SCALARPRODUCT_ContinuationWithStatus cont,
117 void *cont_cls); 121 void * cont_cls);
118/** 122/**
119 * Cancel an ongoing computation or revoke our collaboration offer. 123 * Cancel an ongoing computation or revoke our collaboration offer.
120 * Closes the connection to the service 124 * Closes the connection to the service
diff --git a/src/scalarproduct/scalarproduct_api.c b/src/scalarproduct/scalarproduct_api.c
index 96b176080..ad5fc1a54 100644
--- a/src/scalarproduct/scalarproduct_api.c
+++ b/src/scalarproduct/scalarproduct_api.c
@@ -318,14 +318,16 @@ transmit_request (void *cls, size_t size,
318 * @param element_count Number of elements in the vector 318 * @param element_count Number of elements in the vector
319 * @param cont Callback function 319 * @param cont Callback function
320 * @param cont_cls Closure for the callback function 320 * @param cont_cls Closure for the callback function
321 *
322 * @return a new handle for this computation
321 */ 323 */
322struct GNUNET_SCALARPRODUCT_ComputationHandle * 324struct GNUNET_SCALARPRODUCT_ComputationHandle *
323GNUNET_SCALARPRODUCT_response (const struct GNUNET_CONFIGURATION_Handle *cfg, 325GNUNET_SCALARPRODUCT_response (const struct GNUNET_CONFIGURATION_Handle * cfg,
324 const struct GNUNET_HashCode * key, 326 const struct GNUNET_HashCode * key,
325 const int32_t * elements, 327 const int32_t * elements,
326 uint32_t element_count, 328 uint32_t element_count,
327 GNUNET_SCALARPRODUCT_ContinuationWithStatus cont, 329 GNUNET_SCALARPRODUCT_ContinuationWithStatus cont,
328 void *cont_cls) 330 void * cont_cls)
329{ 331{
330 struct GNUNET_SCALARPRODUCT_ComputationHandle *h; 332 struct GNUNET_SCALARPRODUCT_ComputationHandle *h;
331 struct GNUNET_SCALARPRODUCT_client_request *msg; 333 struct GNUNET_SCALARPRODUCT_client_request *msg;
@@ -406,9 +408,11 @@ GNUNET_SCALARPRODUCT_response (const struct GNUNET_CONFIGURATION_Handle *cfg,
406 * @param mask_bytes number of bytes in the mask 408 * @param mask_bytes number of bytes in the mask
407 * @param cont Callback function 409 * @param cont Callback function
408 * @param cont_cls Closure for the callback function 410 * @param cont_cls Closure for the callback function
411 *
412 * @return a new handle for this computation
409 */ 413 */
410struct GNUNET_SCALARPRODUCT_ComputationHandle * 414struct GNUNET_SCALARPRODUCT_ComputationHandle *
411GNUNET_SCALARPRODUCT_request (const struct GNUNET_CONFIGURATION_Handle *cfg, 415GNUNET_SCALARPRODUCT_request (const struct GNUNET_CONFIGURATION_Handle * cfg,
412 const struct GNUNET_HashCode * key, 416 const struct GNUNET_HashCode * key,
413 const struct GNUNET_PeerIdentity *peer, 417 const struct GNUNET_PeerIdentity *peer,
414 const int32_t * elements, 418 const int32_t * elements,
@@ -416,7 +420,7 @@ GNUNET_SCALARPRODUCT_request (const struct GNUNET_CONFIGURATION_Handle *cfg,
416 const unsigned char * mask, 420 const unsigned char * mask,
417 uint32_t mask_bytes, 421 uint32_t mask_bytes,
418 GNUNET_SCALARPRODUCT_DatumProcessor cont, 422 GNUNET_SCALARPRODUCT_DatumProcessor cont,
419 void *cont_cls) 423 void * cont_cls)
420{ 424{
421 struct GNUNET_SCALARPRODUCT_ComputationHandle *h; 425 struct GNUNET_SCALARPRODUCT_ComputationHandle *h;
422 struct GNUNET_SCALARPRODUCT_client_request *msg; 426 struct GNUNET_SCALARPRODUCT_client_request *msg;