GLib based library to communicate with Matrix.org homeservers
Go to file
Gergely Polonkai ad265c310d Rename g_enum_to_string to _g_enum_to_string
This is to avoid name clashes and exclude it from introspection and
documentation.
2016-01-24 15:08:12 +01:00
docs/reference/matrix-glib Rename g_enum_to_string to _g_enum_to_string 2016-01-24 15:08:12 +01:00
src Rename g_enum_to_string to _g_enum_to_string 2016-01-24 15:08:12 +01:00
.gitignore Rename test-client to test-api-client 2016-01-21 16:37:58 +01:00
autogen.sh Initial commit with empty objects 2015-12-10 17:36:37 +01:00
configure.ac Move MatrixAPI to an interface 2015-12-11 14:15:42 +01:00
Makefile.am Initial commit with empty objects 2015-12-10 17:36:37 +01:00
README.md Update README.md 2016-01-13 22:45:35 +01:00

Matrix Client SDK for GLib

This is a Matrix.org client-server SDK for GLib >= 2.40. It contains both raw API calls and a signal based asynchronous client. The API and ABI are both very volatile as of now; dont rely on any specific feature until the API is frozen.

The main interfaces are MatrixAPI and MatrixClient. MatrixHTTPAPI and MatrixHTTPClient implement these interfaces, respectively and can communicate with an HTTP based homeserver. If a new protocol becomes supported oficially, a new API and Client class will be added.

Usage

The SDK provides two layers of interaction. The low-level layer (MatrixAPI implementations like MatrixHTTPAPI) just wraps the raw API calls. The high-level layer (MatrixClient implementations like MatrixHTTPClient) is a GMainLoop based asynchronous object that emits GObject signals and uses the low-level layer to provide an object model to perform actions on.

Client

The MatrixClient interface is not fully planned yet.

API

For a full blown example, see test-client.c.