aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_set_service.h
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2015-09-22 01:47:36 +0000
committerFlorian Dold <florian.dold@gmail.com>2015-09-22 01:47:36 +0000
commit68e2709a38f9c481f96024138a6f9ae57a280a57 (patch)
tree92fa0952ea1e9c3387194bc54aa06c819a8d2270 /src/include/gnunet_set_service.h
parentafc7d17dc798216e89506fb4e66aabb7e0f0077b (diff)
downloadgnunet-68e2709a38f9c481f96024138a6f9ae57a280a57.tar.gz
gnunet-68e2709a38f9c481f96024138a6f9ae57a280a57.zip
set api changes
Diffstat (limited to 'src/include/gnunet_set_service.h')
-rw-r--r--src/include/gnunet_set_service.h45
1 files changed, 40 insertions, 5 deletions
diff --git a/src/include/gnunet_set_service.h b/src/include/gnunet_set_service.h
index 1000aea7b..f9ae122b4 100644
--- a/src/include/gnunet_set_service.h
+++ b/src/include/gnunet_set_service.h
@@ -99,10 +99,33 @@ enum GNUNET_SET_Status
99 * Everything went ok, we are transmitting an element of the 99 * Everything went ok, we are transmitting an element of the
100 * result (in set, or to be removed from set, depending on 100 * result (in set, or to be removed from set, depending on
101 * the `enum GNUNET_SET_ResultMode`). 101 * the `enum GNUNET_SET_ResultMode`).
102 *
103 * Only applies to
104 * #GNUNET_SET_RESULT_FULL,
105 * #GNUNET_SET_RESULT_ADDED,
106 * #GNUNET_SET_RESULT_REMOVED,
102 */ 107 */
103 GNUNET_SET_STATUS_OK, 108 GNUNET_SET_STATUS_OK,
104 109
105 /** 110 /**
111 * Element should be added to the result set
112 * of the local peer, i.e. the local peer is
113 * missing an element.
114 *
115 * Only applies to #GNUNET_SET_RESULT_SYMMETRIC
116 */
117 GNUNET_SET_STATUS_ADD_LOCAL,
118
119 /**
120 * Element should be added to the result set
121 * of the remove peer, i.e. the remote peer is
122 * missing an element.
123 *
124 * Only applies to #GNUNET_SET_RESULT_SYMMETRIC
125 */
126 GNUNET_SET_STATUS_ADD_REMOTE,
127
128 /**
106 * The other peer refused to to the operation with us, 129 * The other peer refused to to the operation with us,
107 * or something went wrong. 130 * or something went wrong.
108 */ 131 */
@@ -129,20 +152,32 @@ enum GNUNET_SET_ResultMode
129{ 152{
130 /** 153 /**
131 * Client gets every element in the resulting set. 154 * Client gets every element in the resulting set.
155 *
156 * Only supported for set intersection.
132 */ 157 */
133 GNUNET_SET_RESULT_FULL, 158 GNUNET_SET_RESULT_FULL,
134 159
135 /** 160 /**
136 * Client gets only elements that have been added to the set. 161 * Client gets notified of the required changes
137 * Only works with set union. 162 * for both the local and the remote set.
163 *
164 * Only supported for set
165 */
166 GNUNET_SET_RESULT_SYMMETRIC,
167
168 /**
169 * Client gets only elements that have been removed from the set.
170 *
171 * Only supported for set intersection.
138 */ 172 */
139 GNUNET_SET_RESULT_ADDED, 173 GNUNET_SET_RESULT_REMOVED,
140 174
141 /** 175 /**
142 * Client gets only elements that have been removed from the set. 176 * Client gets only elements that have been removed from the set.
143 * Only works with set intersection. 177 *
178 * Only supported for set union.
144 */ 179 */
145 GNUNET_SET_RESULT_REMOVED 180 GNUNET_SET_RESULT_ADDED
146}; 181};
147 182
148 183