abouttreesummaryrefslogcommitdiff
path: root/src/matrix.h
diff options
context:
space:
mode:
authorpatrick-scho2023-10-15 14:11:51 +0200
committerpatrick-scho2023-10-15 14:11:51 +0200
commitb231ec39ba5b9df6288a50204e5dabe9f591c830 (patch)
tree51af5285e95ca548982f233cc7e15853920eeacf /src/matrix.h
parent8ceca98f04b88798794748572fce184b92144d2d (diff)
downloadmatrix_esp_thesis-b231ec39ba5b9df6288a50204e5dabe9f591c830.tar.gz
matrix_esp_thesis-b231ec39ba5b9df6288a50204e5dabe9f591c830.zip
use global static buffers to save memory, get Verify example working on ESP32
Diffstat (limited to 'src/matrix.h')
-rw-r--r--src/matrix.h15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/matrix.h b/src/matrix.h
index d31a7f6..c07c742 100644
--- a/src/matrix.h
+++ b/src/matrix.h
@@ -47,9 +47,9 @@
#define JSON_ONETIME_KEY_SIGNED_SIZE 256
#define JSON_SIGNATURE_SIZE 256
-#define NUM_MEGOLM_SESSIONS 10
-#define NUM_OLM_SESSIONS 10
-#define NUM_DEVICES 10
+#define NUM_MEGOLM_SESSIONS 2
+#define NUM_OLM_SESSIONS 2
+#define NUM_DEVICES 5
// HTTP
@@ -401,7 +401,7 @@ MatrixClientRequestMegolmInSession(
const char * deviceId); // TODO: remove deviceId (query all devices)
bool
-MatrixClientGetOlmSessionIn(
+MatrixClientGetOlmSession(
MatrixClient * client,
const char * userId,
const char * deviceId,
@@ -416,13 +416,6 @@ MatrixClientNewOlmSessionIn(
MatrixOlmSession ** outSession);
bool
-MatrixClientGetOlmSessionOut(
- MatrixClient * client,
- const char * userId,
- const char * deviceId,
- MatrixOlmSession ** outSession);
-
-bool
MatrixClientNewOlmSessionOut(
MatrixClient * client,
const char * userId,