mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 21:15:11 +00:00
[ADD/WIP] Start making a simple SAX parser, ASwerk
This commit is contained in:
parent
0fa95c2d14
commit
79217d3608
14 changed files with 1066 additions and 26 deletions
17
src/Events.c
Normal file
17
src/Events.c
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue