Tor  0.4.7.0-alpha-dev
Data Fields
control_cmd_def_t Struct Reference

Data Fields

const char * name
 
handler_fn_t handler
 
unsigned flags
 
const control_cmd_syntax_tsyntax
 

Detailed Description

Definition for a controller command.

Definition at line 2053 of file control_cmd.c.

Field Documentation

◆ flags

unsigned flags

Zero or more CMD_FL_* flags, or'd together.

Definition at line 2065 of file control_cmd.c.

◆ handler

handler_fn_t handler

A function to execute the command.

Definition at line 2061 of file control_cmd.c.

◆ name

const char* name

The name of the command. If the command is multiline, the name must begin with "+". This is not case-sensitive.

Definition at line 2057 of file control_cmd.c.

Referenced by handle_control_command().

◆ syntax

const control_cmd_syntax_t* syntax

For parsed command: a syntax description.

Definition at line 2069 of file control_cmd.c.

Referenced by handle_single_control_command().


The documentation for this struct was generated from the following file: