[ADD/WIP] Push all the Janet changes

This is still unstable(and I still need to design/document the exposed
API)! Do(n't) go and use it!
This commit is contained in:
LDA 2024-11-16 14:11:32 +01:00
commit ca87972b3a
50 changed files with 3550 additions and 92 deletions

View file

@ -0,0 +1,34 @@
#ifdef JANET
#include <janet.h>
#define Bind(name) Janet Janet##name(int32_t argc, Janet *argv)
Bind(Milliseconds);
Bind(CytoVersion);
Bind(WriteStanza);
Bind(CreateXMLData);
Bind(CreateXMLTag);
Bind(SetXMLAttr);
Bind(ParseJSON);
Bind(MatrixInvite);
Bind(MatrixFind);
Bind(MatrixSend);
Bind(StanzaInfo);
Bind(GetKey);
Bind(SetKey);
Bind(DbLock);
Bind(DbCreate);
Bind(DbList);
Bind(DbExists);
Bind(HttpRequest);
#endif