diff options
author | Christian Fuchs <christian.fuchs@cfuchs.net> | 2013-10-14 13:00:11 +0000 |
---|---|---|
committer | Christian Fuchs <christian.fuchs@cfuchs.net> | 2013-10-14 13:00:11 +0000 |
commit | ba5f1e5d05604ab91319aa1d7260ba7cd8a03b99 (patch) | |
tree | 26c9d13e2f62b9cb42b9e9c6e7071e5e51365100 /src/include/gnunet_scalarproduct_service.h | |
parent | e9dda4933275bc7e260981a8757ba8803c585907 (diff) | |
download | gnunet-ba5f1e5d05604ab91319aa1d7260ba7cd8a03b99.tar.gz gnunet-ba5f1e5d05604ab91319aa1d7260ba7cd8a03b99.zip |
more work on doxygenization for SP
Diffstat (limited to 'src/include/gnunet_scalarproduct_service.h')
-rw-r--r-- | src/include/gnunet_scalarproduct_service.h | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/include/gnunet_scalarproduct_service.h b/src/include/gnunet_scalarproduct_service.h index 5f09f6a8a..88b0a6586 100644 --- a/src/include/gnunet_scalarproduct_service.h +++ b/src/include/gnunet_scalarproduct_service.h | |||
@@ -49,12 +49,11 @@ enum GNUNET_SCALARPRODUCT_ResponseStatus | |||
49 | GNUNET_SCALARPRODUCT_Status_ServiceDisconnected | 49 | GNUNET_SCALARPRODUCT_Status_ServiceDisconnected |
50 | }; | 50 | }; |
51 | 51 | ||
52 | /** | ||
53 | * Opaque declaration of the SP-Handle | ||
54 | */ | ||
52 | struct GNUNET_SCALARPRODUCT_Handle; | 55 | struct GNUNET_SCALARPRODUCT_Handle; |
53 | 56 | ||
54 | typedef void (*GNUNET_SCALARPRODUCT_ResponseMessageHandler) (void *cls, | ||
55 | const struct GNUNET_MessageHeader *msg, | ||
56 | enum GNUNET_SCALARPRODUCT_ResponseStatus status); | ||
57 | |||
58 | /** | 57 | /** |
59 | * Continuation called to notify client about result of the | 58 | * Continuation called to notify client about result of the |
60 | * operation. | 59 | * operation. |
@@ -69,7 +68,7 @@ typedef void (*GNUNET_SCALARPRODUCT_ContinuationWithStatus) (void *cls, | |||
69 | * | 68 | * |
70 | * @param cls closure | 69 | * @param cls closure |
71 | * @param status Status of the request | 70 | * @param status Status of the request |
72 | * @param type result of the computation | 71 | * @param result result of the computation |
73 | */ | 72 | */ |
74 | typedef void (*GNUNET_SCALARPRODUCT_DatumProcessor) (void *cls, | 73 | typedef void (*GNUNET_SCALARPRODUCT_DatumProcessor) (void *cls, |
75 | enum GNUNET_SCALARPRODUCT_ResponseStatus status, | 74 | enum GNUNET_SCALARPRODUCT_ResponseStatus status, |
@@ -78,8 +77,8 @@ typedef void (*GNUNET_SCALARPRODUCT_DatumProcessor) (void *cls, | |||
78 | /** | 77 | /** |
79 | * Request by Alice's client for computing a scalar product | 78 | * Request by Alice's client for computing a scalar product |
80 | * | 79 | * |
81 | * @param h handle to the master context | 80 | * @param cfg the gnunet configuration handle |
82 | * @param key Session key - unique to the requesting client | 81 | * @param key Session key should be unique to the requesting client |
83 | * @param peer PeerID of the other peer | 82 | * @param peer PeerID of the other peer |
84 | * @param elements Array of elements of the vector | 83 | * @param elements Array of elements of the vector |
85 | * @param element_count Number of elements in the vector | 84 | * @param element_count Number of elements in the vector |
@@ -102,8 +101,8 @@ GNUNET_SCALARPRODUCT_request (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
102 | /** | 101 | /** |
103 | * Used by Bob's client to cooperate with Alice, | 102 | * Used by Bob's client to cooperate with Alice, |
104 | * | 103 | * |
105 | * @param h handle to our configuration | 104 | * @param cfg the gnunet configuration handle |
106 | * @param key Session key - unique to the requesting client | 105 | * @param key Session key unique to the requesting client |
107 | * @param elements Array of elements of the vector | 106 | * @param elements Array of elements of the vector |
108 | * @param element_count Number of elements in the vector | 107 | * @param element_count Number of elements in the vector |
109 | * @param cont Callback function | 108 | * @param cont Callback function |
@@ -120,7 +119,7 @@ GNUNET_SCALARPRODUCT_response (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
120 | * Cancel an ongoing computation or revoke our collaboration offer. | 119 | * Cancel an ongoing computation or revoke our collaboration offer. |
121 | * Closes the connection to the service | 120 | * Closes the connection to the service |
122 | * | 121 | * |
123 | * @param h handel to terminate | 122 | * @param h computation handle to terminate |
124 | */ | 123 | */ |
125 | void | 124 | void |
126 | GNUNET_SCALARPRODUCT_cancel (struct GNUNET_SCALARPRODUCT_ComputationHandle * h); | 125 | GNUNET_SCALARPRODUCT_cancel (struct GNUNET_SCALARPRODUCT_ComputationHandle * h); |
@@ -128,7 +127,6 @@ GNUNET_SCALARPRODUCT_cancel (struct GNUNET_SCALARPRODUCT_ComputationHandle * h); | |||
128 | /** | 127 | /** |
129 | * Cancel ALL ongoing computation or revoke our collaboration offer. | 128 | * Cancel ALL ongoing computation or revoke our collaboration offer. |
130 | * Closes ALL connections to the service | 129 | * Closes ALL connections to the service |
131 | * | ||
132 | */ | 130 | */ |
133 | void | 131 | void |
134 | GNUNET_SCALARPRODUCT_disconnect (); | 132 | GNUNET_SCALARPRODUCT_disconnect (); |