diff options
| author | Patrick | 2023-07-21 23:04:48 +0200 |
|---|---|---|
| committer | Patrick | 2023-07-21 23:04:48 +0200 |
| commit | c7aba5979c820958aa08947903afb47ace496a16 (patch) | |
| tree | 42dbeb78e724c62199e127ddf1712e662ab14419 /src/matrix.h | |
| parent | 07e667e29883740aa0b82199cf0518a2e2684e26 (diff) | |
| download | matrix_esp_thesis-c7aba5979c820958aa08947903afb47ace496a16.tar.gz matrix_esp_thesis-c7aba5979c820958aa08947903afb47ace496a16.zip | |
share, save, load, init, print megolm out sessions
Diffstat (limited to 'src/matrix.h')
| -rw-r--r-- | src/matrix.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/matrix.h b/src/matrix.h index 073f610..3614b6a 100644 --- a/src/matrix.h +++ b/src/matrix.h @@ -11,6 +11,7 @@ #define USER_ID_SIZE 64
+#define ROOM_ID_SIZE 128
#define SERVER_SIZE 20
#define ACCESS_TOKEN_SIZE 40
#define DEVICE_ID_SIZE 20
@@ -102,7 +103,7 @@ typedef struct MatrixMegolmInSession { } MatrixMegolmInSession;
typedef struct MatrixMegolmOutSession {
- const char * roomId;
+ char roomId[ROOM_ID_SIZE];
OlmOutboundGroupSession * session;
char memory[MEGOLM_OUTBOUND_SESSION_MEMORY_SIZE];
@@ -265,6 +266,11 @@ MatrixClientSetMegolmOutSession( MatrixMegolmOutSession session);
bool
+MatrixClientInitMegolmOutSession(
+ MatrixClient * client,
+ const char * roomId);
+
+bool
MatrixClientGetOlmSession(
MatrixClient * client,
const char * userId,
|
