implemented CommonQueries

This commit is contained in:
2025-12-15 23:26:32 +05:00
parent 72696dea70
commit 49793e2929
29 changed files with 540 additions and 495 deletions

View File

@@ -28,7 +28,7 @@ Result(void) Client_getServerName(Client* self, str* out_name);
Result(void) Client_getServerDescription(Client* self, str* out_desc);
/// Create new account on connected server
Result(void) Client_register(Client* self, u64* out_user_id);
Result(void) Client_register(Client* self, i64* out_user_id);
/// Authorize on connected server
Result(void) Client_login(Client* self, u64* out_user_id, u64* out_landing_channel_id);
Result(void) Client_login(Client* self, i64* out_user_id, i64* out_landing_channel_id);

View File

@@ -18,4 +18,4 @@
#define CHANNEL_DESC_SIZE_MAX 1023
#define MESSAGE_SIZE_MIN 1
#define MESSAGE_SIZE_MAX 4000
#define MESSAGE_BLOCK_SIZE (64*1024)
#define MESSAGE_BLOCK_COUNT_MAX 50