aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_escrow_lib.h
diff options
context:
space:
mode:
authorjospaeth <spaethj@in.tum.de>2020-08-06 14:33:34 +0200
committerjospaeth <spaethj@in.tum.de>2020-08-06 14:33:34 +0200
commit7359d93752bfe39d1154ea0e67f556dab0020cff (patch)
tree207713d099a540a9b247320089f52fb82cc6f8e3 /src/include/gnunet_escrow_lib.h
parentf7272dfc42de5b4cd0f9b27308e82e91d5f64ee3 (diff)
downloadgnunet-7359d93752bfe39d1154ea0e67f556dab0020cff.tar.gz
gnunet-7359d93752bfe39d1154ea0e67f556dab0020cff.zip
add unique operation ID for distinction in the cb
Diffstat (limited to 'src/include/gnunet_escrow_lib.h')
-rw-r--r--src/include/gnunet_escrow_lib.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/include/gnunet_escrow_lib.h b/src/include/gnunet_escrow_lib.h
index 4eeaff3fd..9a6849a52 100644
--- a/src/include/gnunet_escrow_lib.h
+++ b/src/include/gnunet_escrow_lib.h
@@ -157,6 +157,11 @@ struct GNUNET_ESCROW_Handle
157 * Tail of active operations. 157 * Tail of active operations.
158 */ 158 */
159 struct GNUNET_ESCROW_Operation *op_tail; 159 struct GNUNET_ESCROW_Operation *op_tail;
160
161 /**
162 * The last operation id used for an ESCROW operation.
163 */
164 uint32_t last_op_id_used;
160}; 165};
161 166
162 167
@@ -171,6 +176,11 @@ struct GNUNET_ESCROW_Operation
171 struct GNUNET_ESCROW_Handle *h; 176 struct GNUNET_ESCROW_Handle *h;
172 177
173 /** 178 /**
179 * ID of the operation.
180 */
181 uint32_t id;
182
183 /**
174 * We keep operations in a DLL. 184 * We keep operations in a DLL.
175 */ 185 */
176 struct GNUNET_ESCROW_Operation *next; 186 struct GNUNET_ESCROW_Operation *next;