[ADD/WIP] Start making a simple SAX parser, ASwerk

This commit is contained in:
LDA 2024-06-15 12:29:34 +02:00
commit 79217d3608
14 changed files with 1066 additions and 26 deletions

17
src/Events.c Normal file
View file

@ -0,0 +1,17 @@
#include <Matrix.h>
HashMap *
MatrixCreateNotice(char *body)
{
HashMap *map;
if (!body)
{
return NULL;
}
map = HashMapCreate();
HashMapSet(map, "msgtype", JsonValueString("m.notice"));
HashMapSet(map, "body", JsonValueString(body));
return map;
}