diff options
| author | Patrick | 2023-05-28 15:07:34 +0200 |
|---|---|---|
| committer | Patrick | 2023-05-28 15:07:34 +0200 |
| commit | 5cb22046a33f24c1a696990f95e13d534efef497 (patch) | |
| tree | a2c3c1baa74b61c72c8bb3514ff694e2f65bc105 /src/matrix.c | |
| parent | 27a83e93114c31de4b7bd33320a85e5fad0196a3 (diff) | |
| download | matrix_esp_thesis-5cb22046a33f24c1a696990f95e13d534efef497.tar.gz matrix_esp_thesis-5cb22046a33f24c1a696990f95e13d534efef497.zip | |
mongoose as http client
Diffstat (limited to 'src/matrix.c')
| -rw-r--r-- | src/matrix.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/matrix.c b/src/matrix.c index 90132af..790f0f5 100644 --- a/src/matrix.c +++ b/src/matrix.c @@ -1,5 +1,6 @@ #include "matrix.h"
+#include <stdio.h>
#include <mjson.h>
@@ -11,8 +12,8 @@ bool
MatrixClientInit(
MatrixClient * client,
- char * server, int serverLen
-) {
+ char * server, int serverLen)
+{
strcpy_s(
client->server,
SERVER_SIZE,
@@ -29,8 +30,8 @@ MatrixClientLoginPassword( MatrixClient * client,
char * username, int usernameLen,
char * password, int passwordLen,
- char * displayName, int displayNameLen
-) {
+ char * displayName, int displayNameLen)
+{
static char requestBuffer[LOGIN_REQUEST_SIZE];
int requestLen =
|
