mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 21:25:11 +00:00
[ADD/WIP] Add some HTTP request code
We can now *register* users!
This commit is contained in:
parent
47c98cbbe3
commit
0fa95c2d14
12 changed files with 320 additions and 11 deletions
17
src/MatrixError.c
Normal file
17
src/MatrixError.c
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#include <Matrix.h>
|
||||
|
||||
HashMap *
|
||||
MatrixCreateError(char *err, char *msg)
|
||||
{
|
||||
HashMap *map;
|
||||
if (!err || !msg)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
map = HashMapCreate();
|
||||
HashMapSet(map, "errcode", JsonValueString(err));
|
||||
HashMapSet(map, "error", JsonValueString(msg));
|
||||
|
||||
return map;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue