mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Merge branch 'ticket31705_v2' into ticket31705_v2_merged
Conflicts: src/feature/dirparse/authcert_parse.c src/feature/dirparse/ns_parse.c src/feature/hs/hs_service.c src/lib/conf/conftesting.h src/lib/log/log.h src/lib/thread/threads.h src/test/test_options.c These conflicts were mostly related to autostyle improvements, with one or two due to doxygen fixes.
This commit is contained in:
@@ -2248,6 +2248,7 @@ typedef struct control_cmd_def_t {
|
||||
*/
|
||||
#define CMD_FL_WIPE (1u<<0)
|
||||
|
||||
#ifndef COCCI
|
||||
/** Macro: declare a command with a one-line argument, a given set of flags,
|
||||
* and a syntax definition.
|
||||
**/
|
||||
@@ -2280,6 +2281,7 @@ typedef struct control_cmd_def_t {
|
||||
0, \
|
||||
&obsolete_syntax, \
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* An array defining all the recognized controller commands.
|
||||
|
||||
@@ -1663,6 +1663,7 @@ control_event_status(int type, int severity, const char *format, va_list args)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifndef COCCI
|
||||
#define CONTROL_EVENT_STATUS_BODY(event, sev) \
|
||||
int r; \
|
||||
do { \
|
||||
@@ -1674,6 +1675,7 @@ control_event_status(int type, int severity, const char *format, va_list args)
|
||||
r = control_event_status((event), (sev), format, ap); \
|
||||
va_end(ap); \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
/** Format and send an EVENT_STATUS_GENERAL event whose main text is obtained
|
||||
* by formatting the arguments using the printf-style <b>format</b>. */
|
||||
|
||||
@@ -18,11 +18,13 @@
|
||||
|
||||
#include "core/mainloop/periodic.h"
|
||||
|
||||
#ifndef COCCI
|
||||
#define DECLARE_EVENT(name, roles, flags) \
|
||||
static periodic_event_item_t name ## _event = \
|
||||
PERIODIC_EVENT(name, \
|
||||
PERIODIC_EVENT_ROLE_##roles, \
|
||||
flags)
|
||||
#endif
|
||||
|
||||
#define FL(name) (PERIODIC_EVENT_FLAG_##name)
|
||||
|
||||
|
||||
@@ -530,10 +530,12 @@ typedef struct router_id_iterator_t {
|
||||
cdline_t hash;
|
||||
} router_id_iterator_t;
|
||||
|
||||
#ifndef COCCI
|
||||
/**
|
||||
* Initializer for a router_id_iterator_t.
|
||||
*/
|
||||
#define ROUTER_ID_ITERATOR_INIT { { NULL, 0 }, { NULL, 0 } }
|
||||
#endif
|
||||
|
||||
/** Given an index *<b>idxp</b> into the consensus at <b>cons</b>, advance
|
||||
* the index to the next router line ("r ...") in the consensus, or to
|
||||
|
||||
@@ -67,6 +67,7 @@
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifndef COCCI
|
||||
/** Helper macro. Iterate over every service in the global map. The var is the
|
||||
* name of the service pointer. */
|
||||
#define FOR_EACH_SERVICE_BEGIN(var) \
|
||||
@@ -88,6 +89,7 @@
|
||||
(var = service->desc_next); \
|
||||
if (var == NULL) continue;
|
||||
#define FOR_EACH_DESCRIPTOR_END } STMT_END ;
|
||||
#endif
|
||||
|
||||
/* Onion service directory file names. */
|
||||
static const char fname_keyfile_prefix[] = "hs_ed25519";
|
||||
|
||||
@@ -31,11 +31,13 @@
|
||||
#include "feature/nodelist/routerinfo_st.h"
|
||||
#include "feature/control/control_events.h"
|
||||
|
||||
#ifndef COCCI
|
||||
#define DECLARE_EVENT(name, roles, flags) \
|
||||
static periodic_event_item_t name ## _event = \
|
||||
PERIODIC_EVENT(name, \
|
||||
PERIODIC_EVENT_ROLE_##roles, \
|
||||
flags)
|
||||
#endif
|
||||
|
||||
#define FL(name) (PERIODIC_EVENT_FLAG_##name)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user