aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_namestore_service.h
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2022-09-22 00:22:30 +0900
committerMartin Schanzenbach <schanzen@gnunet.org>2022-09-22 00:31:07 +0900
commit49d5c4da47bf1933e20944001f09ce75d05f4862 (patch)
tree7351f6ae16ade8802a9956568c9901397a82f319 /src/include/gnunet_namestore_service.h
parente1d8213bb3264ef384af84d01b0ad05f7911f829 (diff)
downloadgnunet-49d5c4da47bf1933e20944001f09ce75d05f4862.tar.gz
gnunet-49d5c4da47bf1933e20944001f09ce75d05f4862.zip
NAMESTORE: Remove unneeded functions and renames.
Diffstat (limited to 'src/include/gnunet_namestore_service.h')
-rw-r--r--src/include/gnunet_namestore_service.h60
1 files changed, 3 insertions, 57 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 */
427struct GNUNET_NAMESTORE_QueueEntry * 427struct GNUNET_NAMESTORE_QueueEntry *
428GNUNET_NAMESTORE_transaction_abort (struct GNUNET_NAMESTORE_Handle *h, 428GNUNET_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 */
460struct GNUNET_NAMESTORE_QueueEntry *
461GNUNET_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 */
491struct GNUNET_NAMESTORE_QueueEntry *
492GNUNET_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