Add the refresh-token property

This commit is contained in:
2016-01-04 17:37:50 +01:00
parent 9e2d486b19
commit 8f2a8e23a7
4 changed files with 118 additions and 1 deletions

View File

@@ -171,6 +171,11 @@ struct _MatrixAPIInterface {
const gchar *(*get_token)(MatrixAPI *api);
void (*set_token)(MatrixAPI *api, const gchar *token);
const gchar *(*get_refresh_token)(MatrixAPI *api);
void (*set_refresh_token)(MatrixAPI *api, const gchar *refresh_token);
void *properties_reserved[10];
/* Media */
void (*media_download)(MatrixAPI *api,
MatrixAPICallback callback,
@@ -577,8 +582,10 @@ GType matrix_api_get_type(void) G_GNUC_CONST;
/* Property getters and setters */
const gchar *matrix_api_get_token(MatrixAPI *api);
void matrix_api_set_token(MatrixAPI *api, const gchar *token);
const gchar *matrix_api_get_token(MatrixAPI *api);
void matrix_api_set_refresh_token(MatrixAPI *api, const gchar *refresh_token);
const gchar *matrix_api_get_refresh_token(MatrixAPI *api);
/* API definition */