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

Configuration structure used by all programs. More...

#include <config.h>

Data Fields

uint8_t flags
 Configuration flags.
 
char server [MAX_SERVER]
 Matrix server URL.
 
char token [MAX_TOKEN]
 Matrix access token.
 
char user [MAX_USER]
 User name used to send messages, in the form @username:server.
 
char short_user [MAX_USER]
 Short version of the user name, stripped of the @ sign and server.
 
char batch [MAX_BATCH]
 Last batch received from the Matrix server.
 

Detailed Description

Configuration structure used by all programs.

Can be safely zero-initialized.

Field Documentation

◆ batch

char mtrix_config::batch[MAX_BATCH]

Last batch received from the Matrix server.

◆ flags

uint8_t mtrix_config::flags

Configuration flags.

◆ server

char mtrix_config::server[MAX_SERVER]

Matrix server URL.

◆ short_user

char mtrix_config::short_user[MAX_USER]

Short version of the user name, stripped of the @ sign and server.

◆ token

char mtrix_config::token[MAX_TOKEN]

Matrix access token.

◆ user

char mtrix_config::user[MAX_USER]

User name used to send messages, in the form @username:server.


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