machinatrix
A very silly Matrix bot written in C
Loading...
Searching...
No Matches
config Struct Reference

machinatrix-specific configuration. More...

Collaboration diagram for config:

Data Fields

struct mtrix_config c
 Shared configuration fields.
 
int numeraria_fd
 Socket to communicate with numeraria, if enabled.
 
struct { 
 
   char   stats_file [MAX_PATH] 
 Optional path to the statistics file. More...
 
   char   numeraria_socket [MAX_PATH] 
 Optional address of the numeraria server socket. More...
 
   char   numeraria_unix [MAX_UNIX_PATH] 
 Optional path of the numeraria server Unix socket. More...
 
input 
 Fields read from the command line.
 
const char ** args
 Extra machinatrix arguments, in execvp format.
 
uint8_t flags
 Filter, etc.
 
int socket_fd
 TCP listening socket, if required.
 
int unix_fd
 Unix listening socket, if required.
 
int signal_fd
 Read end of the self-pipe used for signal notifications.
 
size_t n_fds
 Number of client file descriptors in fds.
 
struct pollfd fds [MAX_CONN]
 Client file descriptor list for poll(2).
 
sqlite3 * sqlite
 Database connection.
 
struct { 
 
   uint8_t   flags 
 
   char   db_path [MAX_PATH] 
 SQLite database path (:memory: is used if not set). More...
 
   char   socket_path [MAX_PATH] 
 TCP socket listening address. More...
 
   char   unix_path [MAX_UNIX_PATH] 
 Unix socket listening path. More...
 
input 
 Fields read from the command line.
 

Detailed Description

machinatrix-specific configuration.

numeraria global configuration.

Field Documentation

◆ args

const char** config::args

Extra machinatrix arguments, in execvp format.

◆ c

struct mtrix_config config::c

Shared configuration fields.

◆ db_path

char config::db_path[MAX_PATH]

SQLite database path (:memory: is used if not set).

◆ fds

struct pollfd config::fds[MAX_CONN]

Client file descriptor list for poll(2).

◆ flags

uint8_t config::flags

Filter, etc.

See also
HELP_FLAG,
VERBOSE_FLAG

◆ [struct] [1/2]

struct { ... } config::input

Fields read from the command line.

◆ [struct] [2/2]

struct { ... } config::input

Fields read from the command line.

◆ n_fds

size_t config::n_fds

Number of client file descriptors in fds.

◆ numeraria_fd

int config::numeraria_fd

Socket to communicate with numeraria, if enabled.

◆ numeraria_socket

char config::numeraria_socket[MAX_PATH]

Optional address of the numeraria server socket.

◆ numeraria_unix

char config::numeraria_unix[MAX_UNIX_PATH]

Optional path of the numeraria server Unix socket.

◆ signal_fd

int config::signal_fd

Read end of the self-pipe used for signal notifications.

◆ socket_fd

int config::socket_fd

TCP listening socket, if required.

◆ socket_path

char config::socket_path[MAX_PATH]

TCP socket listening address.

◆ sqlite

sqlite3* config::sqlite

Database connection.

◆ stats_file

char config::stats_file[MAX_PATH]

Optional path to the statistics file.

◆ unix_fd

int config::unix_fd

Unix listening socket, if required.

◆ unix_path

char config::unix_path[MAX_UNIX_PATH]

Unix socket listening path.


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