#define NUM_OLM_SESSIONS 10\r
#define NUM_DEVICES 10\r
\r
-void\r
-Randomize(uint8_t * random, int randomLen);\r
-\r
-bool\r
-JsonEscape(\r
- const char * sIn, int sInLen,\r
- char * sOut, int sOutCap);\r
- \r
-bool JsonSign(\r
- const char * sIn, int sInLen,\r
- char * sOut, int sOutCap);\r
-\r
// Matrix Device\r
\r
typedef struct MatrixDevice {\r
} MatrixOlmSession;\r
\r
bool\r
-MatrixOlmSessionFrom(\r
+MatrixOlmSessionTo(\r
MatrixOlmSession * session,\r
OlmAccount * olmAccount,\r
const char * deviceId,\r
char * outResponseBuffer, int outResponseCap,\r
bool authenticated);\r
\r
+// util\r
+\r
+void\r
+Randomize(uint8_t * random, int randomLen);\r
+\r
+bool\r
+JsonEscape(\r
+ const char * sIn, int sInLen,\r
+ char * sOut, int sOutCap);\r
+ \r
+bool JsonSign(\r
+ MatrixClient * client,\r
+ const char * sIn, int sInLen,\r
+ char * sOut, int sOutCap);\r
+\r
#endif\r