Tchatator413
TripEnArvor instant messaging protocol - JSON-based
|
General types - Standalone header. More...
Go to the source code of this file.
Data Structures | |
struct | user_identity_t |
Information about the identity of an user. More... | |
struct | msg_t |
Represents a message in the chat application. More... | |
Macros | |
#define | EMAIL_LENGTH 319 |
Maximum length of an user e-mail. | |
#define | PSEUDO_LENGTH 255 |
Maximum length of a client (member) user pseudo. | |
Typedefs | |
typedef uuid4_t | api_key_t |
An user API key. | |
typedef int64_t | token_t |
A session token. | |
typedef int32_t | page_number_t |
A page number (1..2^31-1) | |
typedef int32_t | serial_t |
A PosrgreSQL SERIAL primary key value starting at 1. (1..2^31-1) | |
typedef enum ATTR_FLAG_ENUM | role_flags_t |
A bit flags enumeration representing the roles of an user. | |
Enumerations | |
enum | user_kind_t { user_kind_member , user_kind_pro_prive , user_kind_pro_public } |
The kind of an user. More... | |
enum | ATTR_FLAG_ENUM { role_admin = 1 << 0 , min_role = role_admin , role_membre = 1 << 1 , role_pro = 1 << 2 , role_all = role_admin | role_membre | role_pro , max_role = role_all } |
A bit flags enumeration representing the roles of an user. More... | |
#define PSEUDO_LENGTH 255 |
typedef int32_t page_number_t |
typedef int32_t serial_t |
enum ATTR_FLAG_ENUM |
A bit flags enumeration representing the roles of an user.
Enumerator | |
---|---|
role_admin | Administrator role. |
min_role | Smallest value of the enumeration. |
role_membre | Member role. |
role_pro | Professional role. |
max_role | Largest value of the enumeration. |
Definition at line 37 of file types.h.
enum user_kind_t |
The kind of an user.
Enumerator | |
---|---|
user_kind_member | Member (client). |
user_kind_pro_prive | Private professionnal. |
user_kind_pro_public | Public professionnal. |