GLib based library to communicate with Matrix.org homeservers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Go to file
Gergely Polonkai e7eb419206
Add AUTHORS, NEWS and README files
7 years ago
docs/reference/matrix-glib Add the MATRIX_API_CALLBACK cast macro 7 years ago
src Sanitize M_ error codes 7 years ago
.gitignore Add the MatrixClient::login-finished signal 7 years ago
AUTHORS Add AUTHORS, NEWS and README files 7 years ago
COPYING Add COPYING file 7 years ago
Makefile.am Initial commit with empty objects 7 years ago
NEWS Add AUTHORS, NEWS and README files 7 years ago
README Add AUTHORS, NEWS and README files 7 years ago
README.md Update README.md 7 years ago
autogen.sh Initial commit with empty objects 7 years ago
configure.ac Add the MatrixClient::login-finished signal 7 years ago

README.md

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.