diff options
author | Richard van der Hoff <richard@matrix.org> | 2015-10-15 10:38:56 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2015-10-15 10:43:14 +0100 |
commit | 80af6b59c5cc7dbf927abab8a52b185590653918 (patch) | |
tree | b049ce9984ef8d6bcdb0c518dc46eea2a0c93123 /libmatrix.h | |
parent | d183825c3a74eab217b7b7463247c07156acd929 (diff) | |
download | purple-matrix-80af6b59c5cc7dbf927abab8a52b185590653918.tar.gz |
Call initialSync
Our first API call, woohoo.
At the moment we just call initialSync and don't do anything with the
response. But it's satisfying progress.
Diffstat (limited to 'libmatrix.h')
-rw-r--r-- | libmatrix.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libmatrix.h b/libmatrix.h index 7c12106..db80452 100644 --- a/libmatrix.h +++ b/libmatrix.h @@ -19,6 +19,8 @@ #ifndef LIBMATRIX_H #define LIBMATRIX_H +#include <glib.h> + /* stub out the gettext macros for now */ #define _(a) (a) #define N_(a) (a) @@ -30,4 +32,12 @@ /* our protocol ID string */ #define PRPL_ID "prpl-matrix" +typedef struct _MatrixAccount { + struct _PurpleAccount *pa; + struct _PurpleConnection *pc; + gchar *homeserver; /* hostname (:port) of the homeserver */ + gchar *access_token; /* access token corresponding to our user */ +} MatrixAccount; + + #endif |