diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-16 20:21:27 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-16 20:21:27 +0000 |
commit | accfd6bd85274da2f19e7230c8da6b273cfb2ece (patch) | |
tree | 60966194963795ff07b4da94f4efb6c46d6a23cf /src/namestore/namestore_api.c | |
parent | 3d670727232e79b7e49a1df7ba9260db4e5798a0 (diff) | |
download | gnunet-accfd6bd85274da2f19e7230c8da6b273cfb2ece.tar.gz gnunet-accfd6bd85274da2f19e7230c8da6b273cfb2ece.zip |
-another renaming fest for GNUNET_NAMESTORE_ to GNUNET_GNSRECORD_ symbols that were moved
Diffstat (limited to 'src/namestore/namestore_api.c')
-rw-r--r-- | src/namestore/namestore_api.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/namestore/namestore_api.c b/src/namestore/namestore_api.c index c4282ec71..03e40ca17 100644 --- a/src/namestore/namestore_api.c +++ b/src/namestore/namestore_api.c | |||
@@ -85,7 +85,7 @@ struct GNUNET_NAMESTORE_QueueEntry | |||
85 | /** | 85 | /** |
86 | * Function to call with the blocks we get back; or NULL. | 86 | * Function to call with the blocks we get back; or NULL. |
87 | */ | 87 | */ |
88 | GNUNET_NAMESTORE_BlockProcessor block_proc; | 88 | GNUNET_GNSRECORD_BlockProcessor block_proc; |
89 | 89 | ||
90 | /** | 90 | /** |
91 | * Closure for @e block_proc. | 91 | * Closure for @e block_proc. |
@@ -271,8 +271,8 @@ handle_lookup_block_response (struct GNUNET_NAMESTORE_QueueEntry *qe, | |||
271 | const struct LookupBlockResponseMessage *msg, | 271 | const struct LookupBlockResponseMessage *msg, |
272 | size_t size) | 272 | size_t size) |
273 | { | 273 | { |
274 | struct GNUNET_NAMESTORE_Block *block; | 274 | struct GNUNET_GNSRECORD_Block *block; |
275 | char buf[size + sizeof (struct GNUNET_NAMESTORE_Block) | 275 | char buf[size + sizeof (struct GNUNET_GNSRECORD_Block) |
276 | - sizeof (struct LookupBlockResponseMessage)]; | 276 | - sizeof (struct LookupBlockResponseMessage)]; |
277 | 277 | ||
278 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 278 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
@@ -286,7 +286,7 @@ handle_lookup_block_response (struct GNUNET_NAMESTORE_QueueEntry *qe, | |||
286 | return GNUNET_OK; | 286 | return GNUNET_OK; |
287 | } | 287 | } |
288 | 288 | ||
289 | block = (struct GNUNET_NAMESTORE_Block *) buf; | 289 | block = (struct GNUNET_GNSRECORD_Block *) buf; |
290 | block->signature = msg->signature; | 290 | block->signature = msg->signature; |
291 | block->derived_key = msg->derived_key; | 291 | block->derived_key = msg->derived_key; |
292 | block->purpose.purpose = htonl (GNUNET_SIGNATURE_PURPOSE_GNS_RECORD_SIGN); | 292 | block->purpose.purpose = htonl (GNUNET_SIGNATURE_PURPOSE_GNS_RECORD_SIGN); |
@@ -298,7 +298,7 @@ handle_lookup_block_response (struct GNUNET_NAMESTORE_QueueEntry *qe, | |||
298 | &msg[1], | 298 | &msg[1], |
299 | size - sizeof (struct LookupBlockResponseMessage)); | 299 | size - sizeof (struct LookupBlockResponseMessage)); |
300 | if (GNUNET_OK != | 300 | if (GNUNET_OK != |
301 | GNUNET_NAMESTORE_block_verify (block)) | 301 | GNUNET_GNSRECORD_block_verify (block)) |
302 | { | 302 | { |
303 | GNUNET_break (0); | 303 | GNUNET_break (0); |
304 | return GNUNET_SYSERR; | 304 | return GNUNET_SYSERR; |
@@ -419,9 +419,9 @@ handle_record_result (struct GNUNET_NAMESTORE_QueueEntry *qe, | |||
419 | } | 419 | } |
420 | rd_tmp = &name[name_len]; | 420 | rd_tmp = &name[name_len]; |
421 | { | 421 | { |
422 | struct GNUNET_NAMESTORE_RecordData rd[rd_count]; | 422 | struct GNUNET_GNSRECORD_Data rd[rd_count]; |
423 | 423 | ||
424 | if (GNUNET_OK != GNUNET_NAMESTORE_records_deserialize(rd_len, rd_tmp, rd_count, rd)) | 424 | if (GNUNET_OK != GNUNET_GNSRECORD_records_deserialize(rd_len, rd_tmp, rd_count, rd)) |
425 | { | 425 | { |
426 | GNUNET_break (0); | 426 | GNUNET_break (0); |
427 | return GNUNET_SYSERR; | 427 | return GNUNET_SYSERR; |
@@ -490,9 +490,9 @@ handle_zone_to_name_response (struct GNUNET_NAMESTORE_QueueEntry *qe, | |||
490 | } | 490 | } |
491 | rd_tmp = &name_tmp[name_len]; | 491 | rd_tmp = &name_tmp[name_len]; |
492 | { | 492 | { |
493 | struct GNUNET_NAMESTORE_RecordData rd[rd_count]; | 493 | struct GNUNET_GNSRECORD_Data rd[rd_count]; |
494 | 494 | ||
495 | if (GNUNET_OK != GNUNET_NAMESTORE_records_deserialize(rd_ser_len, rd_tmp, rd_count, rd)) | 495 | if (GNUNET_OK != GNUNET_GNSRECORD_records_deserialize(rd_ser_len, rd_tmp, rd_count, rd)) |
496 | { | 496 | { |
497 | GNUNET_break (0); | 497 | GNUNET_break (0); |
498 | return GNUNET_SYSERR; | 498 | return GNUNET_SYSERR; |
@@ -633,9 +633,9 @@ handle_zone_iteration_response (struct GNUNET_NAMESTORE_ZoneIterator *ze, | |||
633 | } | 633 | } |
634 | rd_ser_tmp = (const char *) &name_tmp[name_len]; | 634 | rd_ser_tmp = (const char *) &name_tmp[name_len]; |
635 | { | 635 | { |
636 | struct GNUNET_NAMESTORE_RecordData rd[rd_count]; | 636 | struct GNUNET_GNSRECORD_Data rd[rd_count]; |
637 | 637 | ||
638 | if (GNUNET_OK != GNUNET_NAMESTORE_records_deserialize (rd_len, | 638 | if (GNUNET_OK != GNUNET_GNSRECORD_records_deserialize (rd_len, |
639 | rd_ser_tmp, | 639 | rd_ser_tmp, |
640 | rd_count, | 640 | rd_count, |
641 | rd)) | 641 | rd)) |
@@ -1020,7 +1020,7 @@ GNUNET_NAMESTORE_disconnect (struct GNUNET_NAMESTORE_Handle *h) | |||
1020 | */ | 1020 | */ |
1021 | struct GNUNET_NAMESTORE_QueueEntry * | 1021 | struct GNUNET_NAMESTORE_QueueEntry * |
1022 | GNUNET_NAMESTORE_block_cache (struct GNUNET_NAMESTORE_Handle *h, | 1022 | GNUNET_NAMESTORE_block_cache (struct GNUNET_NAMESTORE_Handle *h, |
1023 | const struct GNUNET_NAMESTORE_Block *block, | 1023 | const struct GNUNET_GNSRECORD_Block *block, |
1024 | GNUNET_NAMESTORE_ContinuationWithStatus cont, | 1024 | GNUNET_NAMESTORE_ContinuationWithStatus cont, |
1025 | void *cont_cls) | 1025 | void *cont_cls) |
1026 | { | 1026 | { |
@@ -1085,7 +1085,7 @@ GNUNET_NAMESTORE_records_store (struct GNUNET_NAMESTORE_Handle *h, | |||
1085 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *pkey, | 1085 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *pkey, |
1086 | const char *label, | 1086 | const char *label, |
1087 | unsigned int rd_count, | 1087 | unsigned int rd_count, |
1088 | const struct GNUNET_NAMESTORE_RecordData *rd, | 1088 | const struct GNUNET_GNSRECORD_Data *rd, |
1089 | GNUNET_NAMESTORE_ContinuationWithStatus cont, | 1089 | GNUNET_NAMESTORE_ContinuationWithStatus cont, |
1090 | void *cont_cls) | 1090 | void *cont_cls) |
1091 | { | 1091 | { |
@@ -1117,7 +1117,7 @@ GNUNET_NAMESTORE_records_store (struct GNUNET_NAMESTORE_Handle *h, | |||
1117 | GNUNET_CONTAINER_DLL_insert_tail (h->op_head, h->op_tail, qe); | 1117 | GNUNET_CONTAINER_DLL_insert_tail (h->op_head, h->op_tail, qe); |
1118 | 1118 | ||
1119 | /* setup msg */ | 1119 | /* setup msg */ |
1120 | rd_ser_len = GNUNET_NAMESTORE_records_get_size (rd_count, rd); | 1120 | rd_ser_len = GNUNET_GNSRECORD_records_get_size (rd_count, rd); |
1121 | msg_size = sizeof (struct RecordStoreMessage) + name_len + rd_ser_len; | 1121 | msg_size = sizeof (struct RecordStoreMessage) + name_len + rd_ser_len; |
1122 | pe = GNUNET_malloc (sizeof (struct PendingMessage) + msg_size); | 1122 | pe = GNUNET_malloc (sizeof (struct PendingMessage) + msg_size); |
1123 | pe->size = msg_size; | 1123 | pe->size = msg_size; |
@@ -1135,7 +1135,7 @@ GNUNET_NAMESTORE_records_store (struct GNUNET_NAMESTORE_Handle *h, | |||
1135 | memcpy (name_tmp, label, name_len); | 1135 | memcpy (name_tmp, label, name_len); |
1136 | rd_ser = &name_tmp[name_len]; | 1136 | rd_ser = &name_tmp[name_len]; |
1137 | GNUNET_break (rd_ser_len == | 1137 | GNUNET_break (rd_ser_len == |
1138 | GNUNET_NAMESTORE_records_serialize (rd_count, rd, | 1138 | GNUNET_GNSRECORD_records_serialize (rd_count, rd, |
1139 | rd_ser_len, | 1139 | rd_ser_len, |
1140 | rd_ser)); | 1140 | rd_ser)); |
1141 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 1141 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
@@ -1162,7 +1162,7 @@ GNUNET_NAMESTORE_records_store (struct GNUNET_NAMESTORE_Handle *h, | |||
1162 | struct GNUNET_NAMESTORE_QueueEntry * | 1162 | struct GNUNET_NAMESTORE_QueueEntry * |
1163 | GNUNET_NAMESTORE_lookup_block (struct GNUNET_NAMESTORE_Handle *h, | 1163 | GNUNET_NAMESTORE_lookup_block (struct GNUNET_NAMESTORE_Handle *h, |
1164 | const struct GNUNET_HashCode *derived_hash, | 1164 | const struct GNUNET_HashCode *derived_hash, |
1165 | GNUNET_NAMESTORE_BlockProcessor proc, void *proc_cls) | 1165 | GNUNET_GNSRECORD_BlockProcessor proc, void *proc_cls) |
1166 | { | 1166 | { |
1167 | struct GNUNET_NAMESTORE_QueueEntry *qe; | 1167 | struct GNUNET_NAMESTORE_QueueEntry *qe; |
1168 | struct PendingMessage *pe; | 1168 | struct PendingMessage *pe; |