abouttreesummaryrefslogcommitdiff
path: root/src/matrix.h
diff options
context:
space:
mode:
authorPatrick2023-05-28 16:02:53 +0200
committerPatrick2023-05-28 16:02:53 +0200
commitc1547dd3565f979d08a9e8e9eec8f42956e6901c (patch)
treea121d78f25ca2217a7eeb4d272174c26747b946a /src/matrix.h
parentedd4eec797ca7985a1510196be3c2be3e6ac90f8 (diff)
downloadmatrix_esp_thesis-c1547dd3565f979d08a9e8e9eec8f42956e6901c.tar.gz
matrix_esp_thesis-c1547dd3565f979d08a9e8e9eec8f42956e6901c.zip
dont need length variables everywhere (i think)
Diffstat (limited to 'src/matrix.h')
-rw-r--r--src/matrix.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/matrix.h b/src/matrix.h
index b7f3a5b..cd109ce 100644
--- a/src/matrix.h
+++ b/src/matrix.h
@@ -21,11 +21,11 @@ typedef struct MatrixClient {
OlmAccount * olmAccount;
OlmSession * olmSession;
- char server[SERVER_SIZE]; int serverLen;
- char accessTokenBuffer[ACCESS_TOKEN_SIZE]; int accessTokenLen;
- char deviceIdBuffer[DEVICE_ID_SIZE]; int deviceIdLen;
- char expireMsBuffer[EXPIRE_MS_SIZE]; int expireMsLen;
- char refreshTokenBuffer[REFRESH_TOKEN_SIZE]; int refreshTokenLen;
+ char server[SERVER_SIZE];
+ char accessTokenBuffer[ACCESS_TOKEN_SIZE];
+ char deviceIdBuffer[DEVICE_ID_SIZE];
+ char expireMsBuffer[EXPIRE_MS_SIZE];
+ char refreshTokenBuffer[REFRESH_TOKEN_SIZE];
void * httpUserData;
} MatrixClient;
@@ -33,14 +33,14 @@ typedef struct MatrixClient {
bool
MatrixClientInit(
MatrixClient * client,
- char * server, int serverLen);
+ const char * server);
bool
MatrixClientLoginPassword(
MatrixClient * client,
- char * username, int usernameLen,
- char * password, int passwordLen,
- char * displayName, int displayNameLen);
+ const char * username,
+ const char * password,
+ const char * displayName);
bool
MatrixHttpInit(
@@ -54,13 +54,13 @@ bool
MatrixHttpGet(
MatrixClient * client,
const char * url,
- char * outResponseBuffer, int outResponseCap, int * outResponseLen);
+ char * outResponseBuffer, int outResponseCap);
bool
MatrixHttpPost(
MatrixClient * client,
const char * url,
- char * requestBuffer, int requestLen,
- char * outResponseBuffer, int outResponseCap, int * outResponseLen);
+ const char * requestBuffer,
+ char * outResponseBuffer, int outResponseCap);
#endif