diff options
Diffstat (limited to 'src/include/gnunet_scalarproduct_service.h')
-rw-r--r-- | src/include/gnunet_scalarproduct_service.h | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/src/include/gnunet_scalarproduct_service.h b/src/include/gnunet_scalarproduct_service.h index 5d61946bb..512d72260 100644 --- a/src/include/gnunet_scalarproduct_service.h +++ b/src/include/gnunet_scalarproduct_service.h | |||
@@ -11,7 +11,7 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
@@ -49,9 +49,7 @@ extern "C" { | |||
49 | /** | 49 | /** |
50 | * Result status values for the computation. | 50 | * Result status values for the computation. |
51 | */ | 51 | */ |
52 | enum GNUNET_SCALARPRODUCT_ResponseStatus | 52 | enum GNUNET_SCALARPRODUCT_ResponseStatus { |
53 | { | ||
54 | |||
55 | /** | 53 | /** |
56 | * Operation is still active (never returned, used internally). | 54 | * Operation is still active (never returned, used internally). |
57 | */ | 55 | */ |
@@ -95,8 +93,7 @@ GNUNET_NETWORK_STRUCT_BEGIN | |||
95 | /** | 93 | /** |
96 | * An element key-value pair for scalarproduct | 94 | * An element key-value pair for scalarproduct |
97 | */ | 95 | */ |
98 | struct GNUNET_SCALARPRODUCT_Element | 96 | struct GNUNET_SCALARPRODUCT_Element { |
99 | { | ||
100 | /** | 97 | /** |
101 | * Key used to identify matching pairs of values to multiply. | 98 | * Key used to identify matching pairs of values to multiply. |
102 | */ | 99 | */ |
@@ -155,13 +152,13 @@ struct GNUNET_SCALARPRODUCT_ComputationHandle; | |||
155 | * @return a new handle for this computation | 152 | * @return a new handle for this computation |
156 | */ | 153 | */ |
157 | struct GNUNET_SCALARPRODUCT_ComputationHandle * | 154 | struct GNUNET_SCALARPRODUCT_ComputationHandle * |
158 | GNUNET_SCALARPRODUCT_start_computation (const struct GNUNET_CONFIGURATION_Handle *cfg, | 155 | GNUNET_SCALARPRODUCT_start_computation(const struct GNUNET_CONFIGURATION_Handle *cfg, |
159 | const struct GNUNET_HashCode *session_key, | 156 | const struct GNUNET_HashCode *session_key, |
160 | const struct GNUNET_PeerIdentity *peer, | 157 | const struct GNUNET_PeerIdentity *peer, |
161 | const struct GNUNET_SCALARPRODUCT_Element *elements, | 158 | const struct GNUNET_SCALARPRODUCT_Element *elements, |
162 | uint32_t element_count, | 159 | uint32_t element_count, |
163 | GNUNET_SCALARPRODUCT_DatumProcessor cont, | 160 | GNUNET_SCALARPRODUCT_DatumProcessor cont, |
164 | void *cont_cls); | 161 | void *cont_cls); |
165 | 162 | ||
166 | 163 | ||
167 | /** | 164 | /** |
@@ -176,12 +173,12 @@ GNUNET_SCALARPRODUCT_start_computation (const struct GNUNET_CONFIGURATION_Handle | |||
176 | * @return a new handle for this computation | 173 | * @return a new handle for this computation |
177 | */ | 174 | */ |
178 | struct GNUNET_SCALARPRODUCT_ComputationHandle * | 175 | struct GNUNET_SCALARPRODUCT_ComputationHandle * |
179 | GNUNET_SCALARPRODUCT_accept_computation (const struct GNUNET_CONFIGURATION_Handle *cfg, | 176 | GNUNET_SCALARPRODUCT_accept_computation(const struct GNUNET_CONFIGURATION_Handle *cfg, |
180 | const struct GNUNET_HashCode *key, | 177 | const struct GNUNET_HashCode *key, |
181 | const struct GNUNET_SCALARPRODUCT_Element *elements, | 178 | const struct GNUNET_SCALARPRODUCT_Element *elements, |
182 | uint32_t element_count, | 179 | uint32_t element_count, |
183 | GNUNET_SCALARPRODUCT_ContinuationWithStatus cont, | 180 | GNUNET_SCALARPRODUCT_ContinuationWithStatus cont, |
184 | void *cont_cls); | 181 | void *cont_cls); |
185 | 182 | ||
186 | 183 | ||
187 | /** | 184 | /** |
@@ -191,7 +188,7 @@ GNUNET_SCALARPRODUCT_accept_computation (const struct GNUNET_CONFIGURATION_Handl | |||
191 | * @param h computation handle to terminate | 188 | * @param h computation handle to terminate |
192 | */ | 189 | */ |
193 | void | 190 | void |
194 | GNUNET_SCALARPRODUCT_cancel (struct GNUNET_SCALARPRODUCT_ComputationHandle *h); | 191 | GNUNET_SCALARPRODUCT_cancel(struct GNUNET_SCALARPRODUCT_ComputationHandle *h); |
195 | 192 | ||
196 | 193 | ||
197 | #if 0 /* keep Emacsens' auto-indent happy */ | 194 | #if 0 /* keep Emacsens' auto-indent happy */ |