abouttreesummaryrefslogcommitdiff
path: root/src/matrix.c
diff options
context:
space:
mode:
authorPatrick2023-05-15 18:47:59 +0200
committerPatrick2023-05-15 18:47:59 +0200
commitd43e8671acc5709c192e159e0d91626f0677cdf1 (patch)
tree85d2c65ddb3c36bea1e9ea814cf9434e52fcae97 /src/matrix.c
downloadmatrix_esp_thesis-d43e8671acc5709c192e159e0d91626f0677cdf1.tar.gz
matrix_esp_thesis-d43e8671acc5709c192e159e0d91626f0677cdf1.zip
Initial commit. Rudimentary readme, mockup examples without actual implementation, Makefile, Olm submodule
Diffstat (limited to 'src/matrix.c')
-rw-r--r--src/matrix.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/matrix.c b/src/matrix.c
new file mode 100644
index 0000000..bc0f1ca
--- /dev/null
+++ b/src/matrix.c
@@ -0,0 +1,38 @@
+#include "matrix.h"
+
+FixedBuffer
+FixedBuf(const char * str)
+{
+ int len = strlen(str);
+ FixedBuffer result;
+ result.ptr = (char *)str;
+ result.size = len;
+ result.len = len;
+ return result;
+}
+
+
+bool
+MatrixClientInit(
+ MatrixClient * client,
+ FixedBuffer server
+) {
+
+}
+
+bool
+MatrixClientLoginPassword(
+ MatrixClient * client,
+ FixedBuffer username,
+ FixedBuffer password
+) {
+
+}
+
+bool
+MatrixClientGetAccessToken(
+ MatrixClient * client,
+ FixedBuffer * outBuffer
+) {
+
+}