aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/namestore.h
diff options
context:
space:
mode:
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.