aboutsummaryrefslogtreecommitdiffstats
path: root/libmatrix.h
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2015-10-20 17:21:21 +0100
committerRichard van der Hoff <richard@matrix.org>2015-10-20 17:21:21 +0100
commit70ec6a4c03469cbc8d627735991980cd4fcb6957 (patch)
treee402b702a44391e98585c30d4b22df8fabad68a7 /libmatrix.h
parent9e1c6611dabd7763e9ef86708f2fbe2ea27a9d8d (diff)
downloadpurple-matrix-70ec6a4c03469cbc8d627735991980cd4fcb6957.tar.gz
Implement login
Username, password, and homeserver are now configurable options, and we use the login api rather than making the user get their own access token.
Diffstat (limited to 'libmatrix.h')
-rw-r--r--libmatrix.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libmatrix.h b/libmatrix.h
index 065570c..59e3ffb 100644
--- a/libmatrix.h
+++ b/libmatrix.h
@@ -32,6 +32,12 @@
/* our protocol ID string */
#define PRPL_ID "prpl-matrix"
+/* identifiers for account options */
+#define PRPL_ACCOUNT_OPT_HOME_SERVER "home_server"
+
+/* defaults for account options */
+#define DEFAULT_HOME_SERVER "https://matrix.org"
+
/* identifiers for the chat info / "components" */
#define PRPL_CHAT_INFO_ROOM_ID "room_id"