From 49d5c4da47bf1933e20944001f09ce75d05f4862 Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Thu, 22 Sep 2022 00:22:30 +0900 Subject: NAMESTORE: Remove unneeded functions and renames. --- src/include/gnunet_namestore_service.h | 60 ++-------------------------------- 1 file changed, 3 insertions(+), 57 deletions(-) (limited to 'src/include/gnunet_namestore_service.h') 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, * @return handle to abort the request */ struct GNUNET_NAMESTORE_QueueEntry * -GNUNET_NAMESTORE_transaction_abort (struct GNUNET_NAMESTORE_Handle *h, - GNUNET_SCHEDULER_TaskCallback error_cb, - void *error_cb_cls); +GNUNET_NAMESTORE_transaction_rollback (struct GNUNET_NAMESTORE_Handle *h, + GNUNET_SCHEDULER_TaskCallback error_cb, + void *error_cb_cls); /** * Commit a namestore transaction. * Saves all actions performed since #GNUNET_NAMESTORE_transaction_begin @@ -443,60 +443,6 @@ GNUNET_NAMESTORE_transaction_commit (struct GNUNET_NAMESTORE_Handle *h, GNUNET_SCHEDULER_TaskCallback error_cb, void *error_cb_cls); -/** - * Lookup an item in the namestore. - * - * @param h handle to the namestore - * @param pkey private key of the zone - * @param label name that is being mapped - * @param error_cb function to call on error (i.e. disconnect) - * the handle is afterwards invalid - * @param error_cb_cls closure for @a error_cb - * @param rm function to call with the result (with 0 records if we don't have that label); - * the handle is afterwards invalid - * @param rm_cls closure for @a rm - * @return handle to abort the request - */ -struct GNUNET_NAMESTORE_QueueEntry * -GNUNET_NAMESTORE_records_select (struct GNUNET_NAMESTORE_Handle *h, - const struct - GNUNET_IDENTITY_PrivateKey *pkey, - const char *label, - GNUNET_SCHEDULER_TaskCallback error_cb, - void *error_cb_cls, - GNUNET_NAMESTORE_RecordMonitor rm, - void *rm_cls); - - -/** - * Creates, deletes or updates an item in the namestore. - * If the item is already present, it is replaced with the new record set. - * Use an empty array to remove all records under the given name. - * - * The continuation is called after the value has been stored in the - * database. Monitors may be notified asynchronously (basically with - * a buffer). However, if any monitor is consistently too slow to - * keep up with the changes, calling @a cont will be delayed until the - * monitors do keep up. - * - * @param h handle to the namestore - * @param pkey private key of the zone - * @param label name that is being mapped - * @param rd_count number of records in the 'rd' array - * @param rd array of records with data to store - * @param cont continuation to call when done - * @param cont_cls closure for @a cont - * @return handle to abort the request - */ -struct GNUNET_NAMESTORE_QueueEntry * -GNUNET_NAMESTORE_records_replace (struct GNUNET_NAMESTORE_Handle *h, - const struct GNUNET_IDENTITY_PrivateKey *pkey, - const char *label, - unsigned int rd_count, - const struct GNUNET_GNSRECORD_Data *rd, - GNUNET_NAMESTORE_ContinuationWithStatus cont, - void *cont_cls); - #if 0 /* keep Emacsens' auto-indent happy */ { #endif -- cgit v1.2.3