mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-09-21 13:34:59 +02:00
Implement a function to list the subsystems to stdout.
This commit is contained in:
parent
3f6e37b1bc
commit
8f49943459
@ -293,6 +293,19 @@ subsystems_thread_cleanup(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Dump a human- and machine-readable list of all the subsystems to stdout,
|
||||||
|
* in their initialization order, prefixed with their level.
|
||||||
|
**/
|
||||||
|
void
|
||||||
|
subsystems_dump_list(void)
|
||||||
|
{
|
||||||
|
for (unsigned i = 0; i < n_tor_subsystems - 1; ++i) {
|
||||||
|
const subsys_fns_t *sys = tor_subsystems[i];
|
||||||
|
printf("% 4d\t%s\n", sys->level, sys->name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register all subsystem-declared options formats in <b>mgr</b>.
|
* Register all subsystem-declared options formats in <b>mgr</b>.
|
||||||
*
|
*
|
||||||
|
@ -31,6 +31,8 @@ void subsystems_prefork(void);
|
|||||||
void subsystems_postfork(void);
|
void subsystems_postfork(void);
|
||||||
void subsystems_thread_cleanup(void);
|
void subsystems_thread_cleanup(void);
|
||||||
|
|
||||||
|
void subsystems_dump_list(void);
|
||||||
|
|
||||||
struct config_mgr_t;
|
struct config_mgr_t;
|
||||||
int subsystems_register_options_formats(struct config_mgr_t *mgr);
|
int subsystems_register_options_formats(struct config_mgr_t *mgr);
|
||||||
int subsystems_register_state_formats(struct config_mgr_t *mgr);
|
int subsystems_register_state_formats(struct config_mgr_t *mgr);
|
||||||
|
Loading…
Reference in New Issue
Block a user