aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_set_service.h
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2013-07-10 01:31:13 +0000
committerFlorian Dold <florian.dold@gmail.com>2013-07-10 01:31:13 +0000
commit6b8400966a5e6c2194785b3a33f91b748cfa7b7b (patch)
tree0dafa7ba24c7a6dbb852fdedfd1822cd1e4835c0 /src/include/gnunet_set_service.h
parent084cb3e09007ef50a3d9bd29514c8ec455249633 (diff)
downloadgnunet-6b8400966a5e6c2194785b3a33f91b748cfa7b7b.tar.gz
gnunet-6b8400966a5e6c2194785b3a33f91b748cfa7b7b.zip
- set service working
- set profiler
Diffstat (limited to 'src/include/gnunet_set_service.h')
-rw-r--r--src/include/gnunet_set_service.h20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/include/gnunet_set_service.h b/src/include/gnunet_set_service.h
index ffc7f1c5b..b434e4474 100644
--- a/src/include/gnunet_set_service.h
+++ b/src/include/gnunet_set_service.h
@@ -74,9 +74,16 @@ struct GNUNET_SET_OperationHandle;
74enum GNUNET_SET_OperationType 74enum GNUNET_SET_OperationType
75{ 75{
76 /** 76 /**
77 * A purely local set that does not support any
78 * operation.
79 */
80 GNUNET_SET_OPERATION_NONE,
81
82 /**
77 * Set intersection, only return elements that are in both sets. 83 * Set intersection, only return elements that are in both sets.
78 */ 84 */
79 GNUNET_SET_OPERATION_INTERSECTION, 85 GNUNET_SET_OPERATION_INTERSECTION,
86
80 /** 87 /**
81 * Set union, return all elements that are in at least one of the sets. 88 * Set union, return all elements that are in at least one of the sets.
82 */ 89 */
@@ -116,6 +123,7 @@ enum GNUNET_SET_Status
116 GNUNET_SET_STATUS_DONE 123 GNUNET_SET_STATUS_DONE
117}; 124};
118 125
126
119/** 127/**
120 * The way results are given to the client. 128 * The way results are given to the client.
121 */ 129 */
@@ -137,6 +145,7 @@ enum GNUNET_SET_ResultMode
137 GNUNET_SET_RESULT_REMOVED 145 GNUNET_SET_RESULT_REMOVED
138}; 146};
139 147
148
140/** 149/**
141 * Element stored in a set. 150 * Element stored in a set.
142 */ 151 */
@@ -182,18 +191,19 @@ typedef void (*GNUNET_SET_ResultIterator) (void *cls,
182 191
183/** 192/**
184 * Called when another peer wants to do a set operation with the 193 * Called when another peer wants to do a set operation with the
185 * local peer. 194 * local peer. If a listen error occurs, the 'request' is NULL.
186 * 195 *
187 * @param cls closure 196 * @param cls closure
188 * @param other_peer the other peer 197 * @param other_peer the other peer
189 * @param context_msg message with application specific information from 198 * @param context_msg message with application specific information from
190 * the other peer 199 * the other peer
191 * @param request request from the other peer, use GNUNET_SET_accept 200 * @param request request from the other peer, use GNUNET_SET_accept
201 * Will be NULL if the listener failed.
192 * to accept it, otherwise the request will be refused 202 * to accept it, otherwise the request will be refused
193 * Note that we don't use a return value here, as it is also 203 * Note that we can't just return value from the listen callback,
194 * necessary to specify the set we want to do the operation with, 204 * as it is also necessary to specify the set we want to do the
195 * whith sometimes can be derived from the context message. 205 * operation with, whith sometimes can be derived from the context
196 * Also necessary to specify the timeout. 206 * message. It's necessary to specify the timeout.
197 */ 207 */
198typedef void 208typedef void
199(*GNUNET_SET_ListenCallback) (void *cls, 209(*GNUNET_SET_ListenCallback) (void *cls,