33#define MAX_NAME_LEN 256
#define GNUNET_NETWORK_STRUCT_BEGIN
Define as empty, GNUNET_PACKED should suffice, but this won't work on W32.
#define GNUNET_NETWORK_STRUCT_END
Define as empty, GNUNET_PACKED should suffice, but this won't work on W32;.
#define GNUNET_PACKED
gcc-ism to get packed structs.
Edit a record set and set editor hint/advisory lock.
uint16_t editor_hint_replacement_len
Unused.
struct GNUNET_NAMESTORE_Header gns_header
Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_EDIT_RECORD_SET_CANCEL.
uint16_t editor_hint_len
Unused.
uint16_t label_len
Length of the name.
uint16_t key_len
Length of the zone key.
Edit a record set and set editor hint/advisory lock.
struct GNUNET_NAMESTORE_Header gns_header
Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_EDIT_RECORD_SET.
uint16_t editor_hint_len
Unused.
uint16_t label_len
Length of the name.
uint16_t key_len
Length of the zone key.
Response to RecordSetEditMessage.
struct GNUNET_NAMESTORE_Header gns_header
Type will be GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_SET_EDIT_RESPONSE.
uint16_t editor_hint_len
Length of the editor hint.
uint16_t rd_count
Number of records contained.
uint16_t rd_len
Length of serialized record data.
Time for absolute time used by GNUnet, in microseconds and in network byte order.
struct GNUNET_NAMESTORE_Header gns_header
Type will be GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_LOOKUP.
uint16_t key_len
Length of the zone key.
uint16_t filter
The record filter.
uint16_t label_len
Length of the name.
uint16_t rd_len
Length of serialized record data.
struct GNUNET_NAMESTORE_Header gns_header
Type will be GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_LOOKUP_RESPONSE.
uint16_t reserved
Reserved (alignment)
uint16_t key_len
Length of the zone key.
uint16_t rd_count
Number of records contained.
uint16_t name_len
Name length.
int16_t found
Was the label found in the database?? GNUNET_YES or GNUNET_NO.
Response to a record storage request.
struct GNUNET_NAMESTORE_Header gns_header
Type will be GNUNET_MESSAGE_TYPE_NAMESTORE_GENERIC_RESPONSE.
uint32_t ec
GNUNET_ErrorCode.
Record is returned from the namestore (as authority).
uint16_t rd_len
Length of serialized record data.
uint16_t name_len
Name length.
uint16_t rd_count
Number of records contained.
struct GNUNET_TIME_AbsoluteNBO expire
Expiration time if the record result (if any).
struct GNUNET_NAMESTORE_Header gns_header
Type will be GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_RESULT.
uint16_t key_len
Length of the zone key.
uint16_t rd_len
Length of serialized record data.
uint16_t rd_count
Number of records contained.
uint16_t reserved
Reserved for alignment.
uint16_t name_len
Name length.
Store a record to the namestore (as authority).
uint16_t reserved
Reserved.
struct GNUNET_NAMESTORE_Header gns_header
Type will be GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_STORE.
uint16_t rd_set_count
Number of record sets.
uint16_t single_tx
GNUNET_YES if all sets should be stored in a single transaction (e.g.
uint16_t key_len
Length of the zone key.
Send a transaction control message.
uint16_t reserved
always zero (for alignment)
struct GNUNET_NAMESTORE_Header gns_header
Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_TX_CONTROL.
uint16_t control
The type of control message to send.
Result of a transaction control message.
uint32_t ec
Of type GNUNET_ErrorCode.
struct GNUNET_NAMESTORE_Header gns_header
Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_TX_CONTROL_RESULT.
Ask for next result of zone iteration for the given operation.
struct GNUNET_NAMESTORE_Header gns_header
Type will be GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_NEXT.
uint64_t limit
Number of records to return to the iterator in one shot (before GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_IT...
Start a zone iteration for the given zone.
uint16_t key_len
Length of the zone key.
uint16_t filter
Record set filter control flags.
struct GNUNET_NAMESTORE_Header gns_header
Type will be GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_START.
Stop zone iteration for the given operation.
struct GNUNET_NAMESTORE_Header gns_header
Type will be GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_STOP.
Ask for next result of zone iteration for the given operation.
struct GNUNET_MessageHeader header
Type will be GNUNET_MESSAGE_TYPE_NAMESTORE_MONITOR_NEXT.
uint64_t limit
Number of records to return to the iterator in one shot (before #GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_M...
uint32_t reserved
Always zero.
uint32_t iterate_first
GNUNET_YES to first iterate over all records, GNUNET_NO to only monitor changes.o
uint16_t filter
Record set filter control flags.
uint16_t key_len
Length of the zone key.
struct GNUNET_MessageHeader header
Type will be GNUNET_MESSAGE_TYPE_NAMESTORE_MONITOR_START.
Lookup a name for a zone hash.
uint16_t pkey_len
Length of the public value zone key.
uint16_t key_len
Length of the zone key.
struct GNUNET_NAMESTORE_Header gns_header
Type will be GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_TO_NAME.
Response for zone to name lookup.
uint16_t name_len
Length of the name.
int32_t ec
result in NBO: GNUNET_EC_NONE on success, GNUNET_EC_NAMESTORE_NO_RESULTS if there were no results.
uint16_t key_len
Length of the zone key.
struct GNUNET_NAMESTORE_Header gns_header
Type will be GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_TO_NAME_RESPONSE.
uint16_t rd_count
Number of records contained.
uint16_t rd_len
Length of serialized record data.