aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/namestore.h
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2022-09-23 13:00:30 +0900
committerMartin Schanzenbach <schanzen@gnunet.org>2022-09-23 13:00:30 +0900
commit8ecf052b2976ee8148b20013b45114ba32e8cd78 (patch)
tree4b48f2145e0dfa1293481488f1df6e5ebd27f113 /src/namestore/namestore.h
parent1672c85ad702146521dc830298dcb3f802533539 (diff)
parente238c132f9e9d75437c465d8641b45427c622df5 (diff)
downloadgnunet-8ecf052b2976ee8148b20013b45114ba32e8cd78.tar.gz
gnunet-8ecf052b2976ee8148b20013b45114ba32e8cd78.zip
Merge branch 'dev/schanzen/namestore_transactions'
Diffstat (limited to 'src/namestore/namestore.h')
-rw-r--r--src/namestore/namestore.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/namestore/namestore.h b/src/namestore/namestore.h
index 583ec1e68..06feee13a 100644
--- a/src/namestore/namestore.h
+++ b/src/namestore/namestore.h
@@ -305,6 +305,54 @@ struct RecordResultMessage
305 */ 305 */
306}; 306};
307 307
308/**
309 * Send a transaction control message.
310 */
311struct TxControlMessage
312{
313 /**
314 * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_TX_CONTROL
315 */
316 struct GNUNET_NAMESTORE_Header gns_header;
317
318 /**
319 * The type of control message to send
320 */
321 uint16_t control GNUNET_PACKED;
322
323 /**
324 * always zero (for alignment)
325 */
326 uint16_t reserved GNUNET_PACKED;
327
328};
329
330/**
331 * Result of a transaction control message.
332 */
333struct TxControlResultMessage
334{
335 /**
336 * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_TX_CONTROL_RESULT
337 */
338 struct GNUNET_NAMESTORE_Header gns_header;
339
340 /**
341 * The type of control message to send
342 */
343 uint16_t control GNUNET_PACKED;
344
345 /**
346 * Of type GNUNET_GenericReturnValue
347 */
348 uint16_t success GNUNET_PACKED;
349
350 /* followed by:
351 * an error message if status != ntohs(GNUNET_OK)
352 */
353};
354
355
308 356
309/** 357/**
310 * Start monitoring a zone. 358 * Start monitoring a zone.