diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-09-22 00:22:30 +0900 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-09-22 00:31:07 +0900 |
commit | 49d5c4da47bf1933e20944001f09ce75d05f4862 (patch) | |
tree | 7351f6ae16ade8802a9956568c9901397a82f319 | |
parent | e1d8213bb3264ef384af84d01b0ad05f7911f829 (diff) | |
download | gnunet-49d5c4da47bf1933e20944001f09ce75d05f4862.tar.gz gnunet-49d5c4da47bf1933e20944001f09ce75d05f4862.zip |
NAMESTORE: Remove unneeded functions and renames.
-rw-r--r-- | src/include/gnunet_namestore_service.h | 60 | ||||
-rw-r--r-- | src/namestore/namestore_api.c | 6 |
2 files changed, 6 insertions, 60 deletions
diff --git a/src/include/gnunet_namestore_service.h b/src/include/gnunet_namestore_service.h index 15d3be727..8b42945e1 100644 --- a/src/include/gnunet_namestore_service.h +++ b/src/include/gnunet_namestore_service.h | |||
@@ -425,9 +425,9 @@ GNUNET_NAMESTORE_transaction_begin (struct GNUNET_NAMESTORE_Handle *h, | |||
425 | * @return handle to abort the request | 425 | * @return handle to abort the request |
426 | */ | 426 | */ |
427 | struct GNUNET_NAMESTORE_QueueEntry * | 427 | struct GNUNET_NAMESTORE_QueueEntry * |
428 | GNUNET_NAMESTORE_transaction_abort (struct GNUNET_NAMESTORE_Handle *h, | 428 | GNUNET_NAMESTORE_transaction_rollback (struct GNUNET_NAMESTORE_Handle *h, |
429 | GNUNET_SCHEDULER_TaskCallback error_cb, | 429 | GNUNET_SCHEDULER_TaskCallback error_cb, |
430 | void *error_cb_cls); | 430 | void *error_cb_cls); |
431 | /** | 431 | /** |
432 | * Commit a namestore transaction. | 432 | * Commit a namestore transaction. |
433 | * Saves all actions performed since #GNUNET_NAMESTORE_transaction_begin | 433 | * Saves all actions performed since #GNUNET_NAMESTORE_transaction_begin |
@@ -443,60 +443,6 @@ GNUNET_NAMESTORE_transaction_commit (struct GNUNET_NAMESTORE_Handle *h, | |||
443 | GNUNET_SCHEDULER_TaskCallback error_cb, | 443 | GNUNET_SCHEDULER_TaskCallback error_cb, |
444 | void *error_cb_cls); | 444 | void *error_cb_cls); |
445 | 445 | ||
446 | /** | ||
447 | * Lookup an item in the namestore. | ||
448 | * | ||
449 | * @param h handle to the namestore | ||
450 | * @param pkey private key of the zone | ||
451 | * @param label name that is being mapped | ||
452 | * @param error_cb function to call on error (i.e. disconnect) | ||
453 | * the handle is afterwards invalid | ||
454 | * @param error_cb_cls closure for @a error_cb | ||
455 | * @param rm function to call with the result (with 0 records if we don't have that label); | ||
456 | * the handle is afterwards invalid | ||
457 | * @param rm_cls closure for @a rm | ||
458 | * @return handle to abort the request | ||
459 | */ | ||
460 | struct GNUNET_NAMESTORE_QueueEntry * | ||
461 | GNUNET_NAMESTORE_records_select (struct GNUNET_NAMESTORE_Handle *h, | ||
462 | const struct | ||
463 | GNUNET_IDENTITY_PrivateKey *pkey, | ||
464 | const char *label, | ||
465 | GNUNET_SCHEDULER_TaskCallback error_cb, | ||
466 | void *error_cb_cls, | ||
467 | GNUNET_NAMESTORE_RecordMonitor rm, | ||
468 | void *rm_cls); | ||
469 | |||
470 | |||
471 | /** | ||
472 | * Creates, deletes or updates an item in the namestore. | ||
473 | * If the item is already present, it is replaced with the new record set. | ||
474 | * Use an empty array to remove all records under the given name. | ||
475 | * | ||
476 | * The continuation is called after the value has been stored in the | ||
477 | * database. Monitors may be notified asynchronously (basically with | ||
478 | * a buffer). However, if any monitor is consistently too slow to | ||
479 | * keep up with the changes, calling @a cont will be delayed until the | ||
480 | * monitors do keep up. | ||
481 | * | ||
482 | * @param h handle to the namestore | ||
483 | * @param pkey private key of the zone | ||
484 | * @param label name that is being mapped | ||
485 | * @param rd_count number of records in the 'rd' array | ||
486 | * @param rd array of records with data to store | ||
487 | * @param cont continuation to call when done | ||
488 | * @param cont_cls closure for @a cont | ||
489 | * @return handle to abort the request | ||
490 | */ | ||
491 | struct GNUNET_NAMESTORE_QueueEntry * | ||
492 | GNUNET_NAMESTORE_records_replace (struct GNUNET_NAMESTORE_Handle *h, | ||
493 | const struct GNUNET_IDENTITY_PrivateKey *pkey, | ||
494 | const char *label, | ||
495 | unsigned int rd_count, | ||
496 | const struct GNUNET_GNSRECORD_Data *rd, | ||
497 | GNUNET_NAMESTORE_ContinuationWithStatus cont, | ||
498 | void *cont_cls); | ||
499 | |||
500 | #if 0 /* keep Emacsens' auto-indent happy */ | 446 | #if 0 /* keep Emacsens' auto-indent happy */ |
501 | { | 447 | { |
502 | #endif | 448 | #endif |
diff --git a/src/namestore/namestore_api.c b/src/namestore/namestore_api.c index 73f985803..67541b45a 100644 --- a/src/namestore/namestore_api.c +++ b/src/namestore/namestore_api.c | |||
@@ -1355,9 +1355,9 @@ GNUNET_NAMESTORE_transaction_begin (struct GNUNET_NAMESTORE_Handle *h, | |||
1355 | 1355 | ||
1356 | 1356 | ||
1357 | struct GNUNET_NAMESTORE_QueueEntry * | 1357 | struct GNUNET_NAMESTORE_QueueEntry * |
1358 | GNUNET_NAMESTORE_transaction_abort (struct GNUNET_NAMESTORE_Handle *h, | 1358 | GNUNET_NAMESTORE_transaction_rollback (struct GNUNET_NAMESTORE_Handle *h, |
1359 | GNUNET_SCHEDULER_TaskCallback error_cb, | 1359 | GNUNET_SCHEDULER_TaskCallback error_cb, |
1360 | void *error_cb_cls) | 1360 | void *error_cb_cls) |
1361 | { | 1361 | { |
1362 | GNUNET_break (0); | 1362 | GNUNET_break (0); |
1363 | return NULL; | 1363 | return NULL; |