From c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 5 Oct 2019 15:09:28 +0200 Subject: global reindent, now with uncrustify hook enabled --- src/include/gnunet_dht_service.h | 76 +++++++++++++++++++++------------------- 1 file changed, 39 insertions(+), 37 deletions(-) (limited to 'src/include/gnunet_dht_service.h') diff --git a/src/include/gnunet_dht_service.h b/src/include/gnunet_dht_service.h index e22d2b5df..573a800e5 100644 --- a/src/include/gnunet_dht_service.h +++ b/src/include/gnunet_dht_service.h @@ -51,7 +51,8 @@ extern "C" /** * Default republication frequency for stored data in the DHT. */ -#define GNUNET_DHT_DEFAULT_REPUBLISH_FREQUENCY GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MINUTES, 60) +#define GNUNET_DHT_DEFAULT_REPUBLISH_FREQUENCY GNUNET_TIME_relative_multiply ( \ + GNUNET_TIME_UNIT_MINUTES, 60) @@ -74,7 +75,8 @@ struct GNUNET_DHT_FindPeerHandle; /** * Options for routing. */ -enum GNUNET_DHT_RouteOption { +enum GNUNET_DHT_RouteOption +{ /** * Default. Do nothing special. */ @@ -118,8 +120,8 @@ enum GNUNET_DHT_RouteOption { * @return NULL on error */ struct GNUNET_DHT_Handle * -GNUNET_DHT_connect(const struct GNUNET_CONFIGURATION_Handle *cfg, - unsigned int ht_len); +GNUNET_DHT_connect (const struct GNUNET_CONFIGURATION_Handle *cfg, + unsigned int ht_len); /** @@ -128,7 +130,7 @@ GNUNET_DHT_connect(const struct GNUNET_CONFIGURATION_Handle *cfg, * @param handle connection to shut down */ void -GNUNET_DHT_disconnect(struct GNUNET_DHT_Handle *handle); +GNUNET_DHT_disconnect (struct GNUNET_DHT_Handle *handle); /* *************** Standard API: get and put ******************* */ @@ -159,16 +161,16 @@ struct GNUNET_DHT_PutHandle; * (size too big) */ struct GNUNET_DHT_PutHandle * -GNUNET_DHT_put(struct GNUNET_DHT_Handle *handle, - const struct GNUNET_HashCode *key, - uint32_t desired_replication_level, - enum GNUNET_DHT_RouteOption options, - enum GNUNET_BLOCK_Type type, - size_t size, - const void *data, - struct GNUNET_TIME_Absolute exp, - GNUNET_SCHEDULER_TaskCallback cont, - void *cont_cls); +GNUNET_DHT_put (struct GNUNET_DHT_Handle *handle, + const struct GNUNET_HashCode *key, + uint32_t desired_replication_level, + enum GNUNET_DHT_RouteOption options, + enum GNUNET_BLOCK_Type type, + size_t size, + const void *data, + struct GNUNET_TIME_Absolute exp, + GNUNET_SCHEDULER_TaskCallback cont, + void *cont_cls); /** @@ -183,7 +185,7 @@ GNUNET_DHT_put(struct GNUNET_DHT_Handle *handle, * @param ph put operation to cancel ('cont' will no longer be called) */ void -GNUNET_DHT_put_cancel(struct GNUNET_DHT_PutHandle *ph); +GNUNET_DHT_put_cancel (struct GNUNET_DHT_PutHandle *ph); /** @@ -233,15 +235,15 @@ typedef void * @return handle to stop the async get */ struct GNUNET_DHT_GetHandle * -GNUNET_DHT_get_start(struct GNUNET_DHT_Handle *handle, - enum GNUNET_BLOCK_Type type, - const struct GNUNET_HashCode *key, - uint32_t desired_replication_level, - enum GNUNET_DHT_RouteOption options, - const void *xquery, - size_t xquery_size, - GNUNET_DHT_GetIterator iter, - void *iter_cls); +GNUNET_DHT_get_start (struct GNUNET_DHT_Handle *handle, + enum GNUNET_BLOCK_Type type, + const struct GNUNET_HashCode *key, + uint32_t desired_replication_level, + enum GNUNET_DHT_RouteOption options, + const void *xquery, + size_t xquery_size, + GNUNET_DHT_GetIterator iter, + void *iter_cls); /** @@ -255,9 +257,9 @@ GNUNET_DHT_get_start(struct GNUNET_DHT_Handle *handle, * to be blocked */ void -GNUNET_DHT_get_filter_known_results(struct GNUNET_DHT_GetHandle *get_handle, - unsigned int num_results, - const struct GNUNET_HashCode *results); +GNUNET_DHT_get_filter_known_results (struct GNUNET_DHT_GetHandle *get_handle, + unsigned int num_results, + const struct GNUNET_HashCode *results); /** * Stop async DHT-get. Frees associated resources. @@ -265,7 +267,7 @@ GNUNET_DHT_get_filter_known_results(struct GNUNET_DHT_GetHandle *get_handle, * @param get_handle GET operation to stop. */ void -GNUNET_DHT_get_stop(struct GNUNET_DHT_GetHandle *get_handle); +GNUNET_DHT_get_stop (struct GNUNET_DHT_GetHandle *get_handle); /* *************** Extended API: monitor ******************* */ @@ -368,13 +370,13 @@ typedef void * @return Handle to stop monitoring. */ struct GNUNET_DHT_MonitorHandle * -GNUNET_DHT_monitor_start(struct GNUNET_DHT_Handle *handle, - enum GNUNET_BLOCK_Type type, - const struct GNUNET_HashCode *key, - GNUNET_DHT_MonitorGetCB get_cb, - GNUNET_DHT_MonitorGetRespCB get_resp_cb, - GNUNET_DHT_MonitorPutCB put_cb, - void *cb_cls); +GNUNET_DHT_monitor_start (struct GNUNET_DHT_Handle *handle, + enum GNUNET_BLOCK_Type type, + const struct GNUNET_HashCode *key, + GNUNET_DHT_MonitorGetCB get_cb, + GNUNET_DHT_MonitorGetRespCB get_resp_cb, + GNUNET_DHT_MonitorPutCB put_cb, + void *cb_cls); /** @@ -385,7 +387,7 @@ GNUNET_DHT_monitor_start(struct GNUNET_DHT_Handle *handle, * #GNUNET_DHT_monitor_start(). */ void -GNUNET_DHT_monitor_stop(struct GNUNET_DHT_MonitorHandle *handle); +GNUNET_DHT_monitor_stop (struct GNUNET_DHT_MonitorHandle *handle); #if 0 /* keep Emacsens' auto-indent happy */ -- cgit v1.2.3