|
machinatrix
A very silly Matrix bot written in C
|
machinatrix-specific configuration.
More...

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