Tor  0.4.7.0-alpha-dev
Data Structures | Macros
subsys.h File Reference

Types used to declare a subsystem. More...

#include <stdbool.h>

Go to the source code of this file.

Data Structures

struct  subsys_fns_t
 

Macros

#define SUBSYS_DECLARE_LOCATION()    .location = __FILE__
 
#define MIN_SUBSYS_LEVEL   -100
 
#define MAX_SUBSYS_LEVEL   100
 
#define SUBSYS_LEVEL_LIBS   -10
 

Detailed Description

Types used to declare a subsystem.

Definition in file subsys.h.

Macro Definition Documentation

◆ MAX_SUBSYS_LEVEL

#define MAX_SUBSYS_LEVEL   100

Highest allowed subsystem level.

Definition at line 222 of file subsys.h.

◆ MIN_SUBSYS_LEVEL

#define MIN_SUBSYS_LEVEL   -100

Lowest allowed subsystem level.

Definition at line 218 of file subsys.h.

◆ SUBSYS_DECLARE_LOCATION

#define SUBSYS_DECLARE_LOCATION ( )     .location = __FILE__

Macro to declare a subsystem's location.

Definition at line 211 of file subsys.h.

◆ SUBSYS_LEVEL_LIBS

#define SUBSYS_LEVEL_LIBS   -10

All tor "libraries" (in src/libs) should have a subsystem level equal to or less than this value.

Definition at line 228 of file subsys.h.