api: add some endpoints (&more)

This commit is contained in:
saces 2026-04-17 16:56:32 +02:00
parent e1413fe803
commit 2577732bb4
9 changed files with 386 additions and 34 deletions

26
libmxclient/API.md Normal file
View file

@ -0,0 +1,26 @@
# libmxclient api doc
C API
simple highlevel matrix api intended for bindings to script languages
`everything is a string`
this should make bindings easier.
parameters are strings, either a simple name or json strings
return values are either a strings starting with `ERR:` or a json result
some funktions might return `SUCCESS.` as equivalent for `ret 0`
returned strings must be free'ed y the caller
it's the callers task to keep passed callback pointers alive
## versions
`v0` unstable, devolopment version
all other version are stable, may get additions and security fixes, no other changes