Tor  0.4.7.0-alpha-dev
Functions | Variables
btrack.c File Reference

Bootstrap trackers. More...

#include "feature/control/btrack_circuit.h"
#include "feature/control/btrack_orconn.h"
#include "feature/control/btrack_sys.h"
#include "lib/pubsub/pubsub.h"
#include "lib/subsys/subsys.h"

Go to the source code of this file.

Functions

static int btrack_init (void)
 
static void btrack_fini (void)
 
static int btrack_add_pubsub (pubsub_connector_t *connector)
 

Variables

const subsys_fns_t sys_btrack
 

Detailed Description

Bootstrap trackers.

Initializes and shuts down the specific bootstrap trackers. These trackers help the reporting of bootstrap progress by maintaining state information about various subsystems within tor. When the correct state changes happen, these trackers emit controller events.

These trackers avoid referring directly to the internals of state objects of other subsystems.

btrack_circuit.c contains the tracker for origin circuits.

btrack_orconn.c contains the tracker for OR connections.

Eventually there will be a tracker for directory downloads as well.

Definition in file btrack.c.

Variable Documentation

◆ sys_btrack

const subsys_fns_t sys_btrack
Initial value:
= {
.name = "btrack",
.supported = true,
.level = 55,
.initialize = btrack_init,
.shutdown = btrack_fini,
.add_pubsub = btrack_add_pubsub,
}
#define SUBSYS_DECLARE_LOCATION()
Definition: subsys.h:211

Definition at line 57 of file btrack.c.