Reformat sources with up-to-date clang-format-17
This commit is contained in:
@@ -78,15 +78,15 @@ extern unsigned int dns_pps;
|
||||
*****/
|
||||
|
||||
typedef struct dns_dbmethods {
|
||||
void (*destroy)(dns_db_t *db);
|
||||
void (*destroy)(dns_db_t *db);
|
||||
isc_result_t (*beginload)(dns_db_t *db,
|
||||
dns_rdatacallbacks_t *callbacks);
|
||||
isc_result_t (*endload)(dns_db_t *db, dns_rdatacallbacks_t *callbacks);
|
||||
void (*currentversion)(dns_db_t *db, dns_dbversion_t **versionp);
|
||||
isc_result_t (*newversion)(dns_db_t *db, dns_dbversion_t **versionp);
|
||||
void (*attachversion)(dns_db_t *db, dns_dbversion_t *source,
|
||||
void (*attachversion)(dns_db_t *db, dns_dbversion_t *source,
|
||||
dns_dbversion_t **targetp);
|
||||
void (*closeversion)(dns_db_t *db, dns_dbversion_t **versionp,
|
||||
void (*closeversion)(dns_db_t *db, dns_dbversion_t **versionp,
|
||||
bool commit DNS__DB_FLARG);
|
||||
isc_result_t (*findnode)(dns_db_t *db, const dns_name_t *name,
|
||||
bool create,
|
||||
@@ -103,7 +103,7 @@ typedef struct dns_dbmethods {
|
||||
dns_name_t *dcname,
|
||||
dns_rdataset_t *rdataset,
|
||||
dns_rdataset_t *sigrdataset DNS__DB_FLARG);
|
||||
void (*attachnode)(dns_db_t *db, dns_dbnode_t *source,
|
||||
void (*attachnode)(dns_db_t *db, dns_dbnode_t *source,
|
||||
dns_dbnode_t **targetp DNS__DB_FLARG);
|
||||
void (*detachnode)(dns_db_t *db, dns_dbnode_t **targetp DNS__DB_FLARG);
|
||||
isc_result_t (*createiterator)(dns_db_t *db, unsigned int options,
|
||||
@@ -131,9 +131,9 @@ typedef struct dns_dbmethods {
|
||||
dns_dbversion_t *version,
|
||||
dns_rdatatype_t type,
|
||||
dns_rdatatype_t covers DNS__DB_FLARG);
|
||||
bool (*issecure)(dns_db_t *db);
|
||||
bool (*issecure)(dns_db_t *db);
|
||||
unsigned int (*nodecount)(dns_db_t *db, dns_dbtree_t);
|
||||
void (*setloop)(dns_db_t *db, isc_loop_t *);
|
||||
void (*setloop)(dns_db_t *db, isc_loop_t *);
|
||||
isc_result_t (*getoriginnode)(dns_db_t *db,
|
||||
dns_dbnode_t **nodep DNS__DB_FLARG);
|
||||
isc_result_t (*getnsec3parameters)(dns_db_t *db,
|
||||
@@ -164,7 +164,7 @@ typedef struct dns_dbmethods {
|
||||
dns_rdataset_t *rdataset,
|
||||
dns_rdataset_t *sigrdataset DNS__DB_FLARG);
|
||||
isc_result_t (*setcachestats)(dns_db_t *db, isc_stats_t *stats);
|
||||
size_t (*hashsize)(dns_db_t *db);
|
||||
size_t (*hashsize)(dns_db_t *db);
|
||||
isc_result_t (*getsize)(dns_db_t *db, dns_dbversion_t *version,
|
||||
uint64_t *records, uint64_t *bytes);
|
||||
isc_result_t (*setservestalettl)(dns_db_t *db, dns_ttl_t ttl);
|
||||
|
||||
@@ -68,7 +68,7 @@ ISC_LANG_BEGINDECLS
|
||||
*****/
|
||||
|
||||
typedef struct dns_dbiteratormethods {
|
||||
void (*destroy)(dns_dbiterator_t **iteratorp DNS__DB_FLARG);
|
||||
void (*destroy)(dns_dbiterator_t **iteratorp DNS__DB_FLARG);
|
||||
isc_result_t (*first)(dns_dbiterator_t *iterator DNS__DB_FLARG);
|
||||
isc_result_t (*last)(dns_dbiterator_t *iterator DNS__DB_FLARG);
|
||||
isc_result_t (*seek)(dns_dbiterator_t *iterator,
|
||||
|
||||
@@ -287,9 +287,9 @@ dns_keynode_trust(dns_keynode_t *keynode);
|
||||
|
||||
void
|
||||
dns_keytable_forall(dns_keytable_t *keytable,
|
||||
void (*func)(dns_keytable_t *, dns_keynode_t *,
|
||||
dns_name_t *, void *),
|
||||
void *arg);
|
||||
void (*func)(dns_keytable_t *, dns_keynode_t *,
|
||||
dns_name_t *, void *),
|
||||
void *arg);
|
||||
/*%<
|
||||
* Call 'func' on each keynode in 'keytable'.
|
||||
*/
|
||||
|
||||
@@ -282,11 +282,11 @@ typedef struct dns_qpchain {
|
||||
* readable identifier into `buf` which has max length `size`.
|
||||
*/
|
||||
typedef struct dns_qpmethods {
|
||||
void (*attach)(void *uctx, void *pval, uint32_t ival);
|
||||
void (*detach)(void *uctx, void *pval, uint32_t ival);
|
||||
void (*attach)(void *uctx, void *pval, uint32_t ival);
|
||||
void (*detach)(void *uctx, void *pval, uint32_t ival);
|
||||
size_t (*makekey)(dns_qpkey_t key, void *uctx, void *pval,
|
||||
uint32_t ival);
|
||||
void (*triename)(void *uctx, char *buf, size_t size);
|
||||
void (*triename)(void *uctx, char *buf, size_t size);
|
||||
} dns_qpmethods_t;
|
||||
|
||||
/*%
|
||||
|
||||
@@ -698,7 +698,7 @@ dns_rbt_destroy2(dns_rbt_t **rbtp, unsigned int quantum);
|
||||
|
||||
void
|
||||
dns_rbt_printtext(dns_rbt_t *rbt, void (*data_printer)(FILE *, void *),
|
||||
FILE *f);
|
||||
FILE *f);
|
||||
/*%<
|
||||
* Print an ASCII representation of the internal structure of the red-black
|
||||
* tree of trees to the passed stream.
|
||||
|
||||
@@ -75,11 +75,11 @@ typedef enum {
|
||||
} dns_rdatasetadditional_t;
|
||||
|
||||
typedef struct dns_rdatasetmethods {
|
||||
void (*disassociate)(dns_rdataset_t *rdataset DNS__DB_FLARG);
|
||||
void (*disassociate)(dns_rdataset_t *rdataset DNS__DB_FLARG);
|
||||
isc_result_t (*first)(dns_rdataset_t *rdataset);
|
||||
isc_result_t (*next)(dns_rdataset_t *rdataset);
|
||||
void (*current)(dns_rdataset_t *rdataset, dns_rdata_t *rdata);
|
||||
void (*clone)(dns_rdataset_t *source,
|
||||
void (*current)(dns_rdataset_t *rdataset, dns_rdata_t *rdata);
|
||||
void (*clone)(dns_rdataset_t *source,
|
||||
dns_rdataset_t *target DNS__DB_FLARG);
|
||||
unsigned int (*count)(dns_rdataset_t *rdataset);
|
||||
isc_result_t (*addnoqname)(dns_rdataset_t *rdataset,
|
||||
@@ -92,9 +92,9 @@ typedef struct dns_rdatasetmethods {
|
||||
isc_result_t (*getclosest)(dns_rdataset_t *rdataset, dns_name_t *name,
|
||||
dns_rdataset_t *neg,
|
||||
dns_rdataset_t *negsig DNS__DB_FLARG);
|
||||
void (*settrust)(dns_rdataset_t *rdataset, dns_trust_t trust);
|
||||
void (*expire)(dns_rdataset_t *rdataset DNS__DB_FLARG);
|
||||
void (*clearprefetch)(dns_rdataset_t *rdataset);
|
||||
void (*settrust)(dns_rdataset_t *rdataset, dns_trust_t trust);
|
||||
void (*expire)(dns_rdataset_t *rdataset DNS__DB_FLARG);
|
||||
void (*clearprefetch)(dns_rdataset_t *rdataset);
|
||||
void (*setownercase)(dns_rdataset_t *rdataset, const dns_name_t *name);
|
||||
void (*getownercase)(const dns_rdataset_t *rdataset, dns_name_t *name);
|
||||
isc_result_t (*addglue)(dns_rdataset_t *rdataset,
|
||||
|
||||
@@ -67,10 +67,10 @@ ISC_LANG_BEGINDECLS
|
||||
*****/
|
||||
|
||||
typedef struct dns_rdatasetitermethods {
|
||||
void (*destroy)(dns_rdatasetiter_t **iteratorp DNS__DB_FLARG);
|
||||
void (*destroy)(dns_rdatasetiter_t **iteratorp DNS__DB_FLARG);
|
||||
isc_result_t (*first)(dns_rdatasetiter_t *iterator DNS__DB_FLARG);
|
||||
isc_result_t (*next)(dns_rdatasetiter_t *iterator DNS__DB_FLARG);
|
||||
void (*current)(dns_rdatasetiter_t *iterator,
|
||||
void (*current)(dns_rdatasetiter_t *iterator,
|
||||
dns_rdataset_t *rdataset DNS__DB_FLARG);
|
||||
} dns_rdatasetitermethods_t;
|
||||
|
||||
|
||||
@@ -27,8 +27,8 @@
|
||||
#include <dns/types.h>
|
||||
|
||||
typedef struct {
|
||||
void (*func)(void *arg, dns_zone_t *zone, int level,
|
||||
const char *message);
|
||||
void (*func)(void *arg, dns_zone_t *zone, int level,
|
||||
const char *message);
|
||||
void *arg;
|
||||
} dns_update_log_t;
|
||||
|
||||
|
||||
@@ -212,13 +212,13 @@ struct dns_view {
|
||||
* XXX: This should be a pointer to an opaque type that
|
||||
* named implements.
|
||||
*/
|
||||
char *new_zone_dir;
|
||||
char *new_zone_file;
|
||||
char *new_zone_db;
|
||||
void *new_zone_dbenv;
|
||||
uint64_t new_zone_mapsize;
|
||||
void *new_zone_config;
|
||||
void (*cfg_destroy)(void **);
|
||||
char *new_zone_dir;
|
||||
char *new_zone_file;
|
||||
char *new_zone_db;
|
||||
void *new_zone_dbenv;
|
||||
uint64_t new_zone_mapsize;
|
||||
void *new_zone_config;
|
||||
void (*cfg_destroy)(void **);
|
||||
isc_mutex_t new_zone_lock;
|
||||
|
||||
unsigned char secret[32]; /* Client secret */
|
||||
@@ -230,11 +230,11 @@ struct dns_view {
|
||||
|
||||
/* Registered module instances */
|
||||
void *plugins;
|
||||
void (*plugins_free)(isc_mem_t *, void **);
|
||||
void (*plugins_free)(isc_mem_t *, void **);
|
||||
|
||||
/* Hook table */
|
||||
void *hooktable; /* ns_hooktable */
|
||||
void (*hooktable_free)(isc_mem_t *, void **);
|
||||
void (*hooktable_free)(isc_mem_t *, void **);
|
||||
};
|
||||
|
||||
#define DNS_VIEW_MAGIC ISC_MAGIC('V', 'i', 'e', 'w')
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include <isc/types.h>
|
||||
#include <isc/urcu.h>
|
||||
|
||||
typedef void (*isc_job_cb)(void *);
|
||||
typedef void (*isc_job_cb)(void *);
|
||||
typedef struct isc_job isc_job_t;
|
||||
|
||||
struct isc_job {
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
ISC_LANG_BEGINDECLS
|
||||
|
||||
typedef pthread_t isc_thread_t;
|
||||
typedef void *(*isc_threadfunc_t)(void *);
|
||||
typedef void *(*isc_threadfunc_t)(void *);
|
||||
|
||||
/*%
|
||||
* like isc_thread_create(), but run the function on the current
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
#include <isc/lang.h>
|
||||
#include <isc/loop.h>
|
||||
|
||||
typedef void (*isc_work_cb)(void *arg);
|
||||
typedef void (*isc_after_work_cb)(void *arg);
|
||||
typedef void (*isc_work_cb)(void *arg);
|
||||
typedef void (*isc_after_work_cb)(void *arg);
|
||||
typedef struct isc_work isc_work_t;
|
||||
|
||||
ISC_LANG_BEGINDECLS
|
||||
|
||||
@@ -501,11 +501,11 @@ cfg_listelt_value(const cfg_listelt_t *elt);
|
||||
|
||||
void
|
||||
cfg_print(const cfg_obj_t *obj,
|
||||
void (*f)(void *closure, const char *text, int textlen),
|
||||
void *closure);
|
||||
void (*f)(void *closure, const char *text, int textlen),
|
||||
void *closure);
|
||||
void
|
||||
cfg_printx(const cfg_obj_t *obj, unsigned int flags,
|
||||
void (*f)(void *closure, const char *text, int textlen),
|
||||
void (*f)(void *closure, const char *text, int textlen),
|
||||
void *closure);
|
||||
|
||||
#define CFG_PRINTER_XKEY 0x1 /* '?' out shared keys. */
|
||||
@@ -527,7 +527,7 @@ cfg_printx(const cfg_obj_t *obj, unsigned int flags,
|
||||
|
||||
void
|
||||
cfg_print_grammar(const cfg_type_t *type, unsigned int flags,
|
||||
void (*f)(void *closure, const char *text, int textlen),
|
||||
void (*f)(void *closure, const char *text, int textlen),
|
||||
void *closure);
|
||||
/*%<
|
||||
* Print a summary of the grammar of the configuration type 'type'.
|
||||
|
||||
@@ -87,9 +87,9 @@ typedef struct cfg_rep cfg_rep_t;
|
||||
|
||||
typedef isc_result_t (*cfg_parsefunc_t)(cfg_parser_t *, const cfg_type_t *type,
|
||||
cfg_obj_t **);
|
||||
typedef void (*cfg_printfunc_t)(cfg_printer_t *, const cfg_obj_t *);
|
||||
typedef void (*cfg_docfunc_t)(cfg_printer_t *, const cfg_type_t *);
|
||||
typedef void (*cfg_freefunc_t)(cfg_parser_t *, cfg_obj_t *);
|
||||
typedef void (*cfg_printfunc_t)(cfg_printer_t *, const cfg_obj_t *);
|
||||
typedef void (*cfg_docfunc_t)(cfg_printer_t *, const cfg_type_t *);
|
||||
typedef void (*cfg_freefunc_t)(cfg_parser_t *, cfg_obj_t *);
|
||||
|
||||
/*
|
||||
* Structure definitions
|
||||
@@ -101,7 +101,7 @@ typedef void (*cfg_freefunc_t)(cfg_parser_t *, cfg_obj_t *);
|
||||
* by calling the function 'f'.
|
||||
*/
|
||||
struct cfg_printer {
|
||||
void (*f)(void *closure, const char *text, int textlen);
|
||||
void (*f)(void *closure, const char *text, int textlen);
|
||||
void *closure;
|
||||
int indent;
|
||||
int flags;
|
||||
@@ -574,7 +574,7 @@ cfg_clause_validforzone(const char *name, unsigned int ztype);
|
||||
|
||||
void
|
||||
cfg_print_zonegrammar(const unsigned int zonetype, unsigned int flags,
|
||||
void (*f)(void *closure, const char *text, int textlen),
|
||||
void (*f)(void *closure, const char *text, int textlen),
|
||||
void *closure);
|
||||
/*%<
|
||||
* Print a summary of the grammar of the zone type represented by
|
||||
|
||||
@@ -184,13 +184,13 @@ struct ns_client {
|
||||
uint16_t extflags;
|
||||
int16_t ednsversion; /* -1 noedns */
|
||||
uint16_t additionaldepth;
|
||||
void (*cleanup)(ns_client_t *);
|
||||
ns_query_t query;
|
||||
isc_time_t requesttime;
|
||||
isc_stdtime_t now;
|
||||
isc_time_t tnow;
|
||||
dns_name_t signername; /*%< [T]SIG key name */
|
||||
dns_name_t *signer; /*%< NULL if not valid sig */
|
||||
void (*cleanup)(ns_client_t *);
|
||||
ns_query_t query;
|
||||
isc_time_t requesttime;
|
||||
isc_stdtime_t now;
|
||||
isc_time_t tnow;
|
||||
dns_name_t signername; /*%< [T]SIG key name */
|
||||
dns_name_t *signer; /*%< NULL if not valid sig */
|
||||
|
||||
isc_sockaddr_t peeraddr;
|
||||
bool peeraddr_valid;
|
||||
|
||||
Reference in New Issue
Block a user