diff --git a/Matrix-0.0-MatrixAPI.html b/Matrix-0.0-MatrixAPI.html index 0997972..3bf70ef 100644 --- a/Matrix-0.0-MatrixAPI.html +++ b/Matrix-0.0-MatrixAPI.html @@ -2,26 +2,25 @@
--Top +Top | ![]() |
![]() |
-![]() |
-![]() |
+![]() |
+![]() |
MatrixAPI *self
);
Abort all pending requests toward a Matrix homeserver. Be aware that this may leave requests in an inconsistent state.
1 |
+ null |
+
, implementations MUST throw Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||||||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |||||
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |||||
server_name |
@@ -698,7 +700,7 @@ is no longer needed.
||||||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||||||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |||||
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |||||
server_name |
@@ -796,7 +806,7 @@ is no longer needed.
||||||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |||||
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |||||
content_type |
@@ -854,7 +872,7 @@ is no longer needed.
[in][allow-none] | +[in][allow-none] | ||||||
content |
@@ -872,7 +890,7 @@ is no longer needed.
||||||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |||||
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |||||
user_id |
@@ -938,7 +964,7 @@ is no longer needed.
||||||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |||||
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |||||
user_id |
@@ -1006,7 +1042,13 @@ is no longer needed.
[in] | +[in][array length=drop_ids_length1] | +||||||
drop_ids_length1 |
+length of the |
+|||||||
invite_ids |
@@ -1015,7 +1057,13 @@ is no longer needed.
[in] | +[in][array length=invite_ids_length1] | +||||||
invite_ids_length1 |
+length of the |
+|||||||
callback |
@@ -1024,7 +1072,7 @@ is no longer needed.
||||||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |||||
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |||||
user_id |
@@ -1090,7 +1146,7 @@ is no longer needed.
||||||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |||||
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |||||
user_id |
@@ -1167,7 +1231,7 @@ is no longer needed.
[in][allow-none] | +[in][allow-none] | ||||||
callback |
@@ -1176,7 +1240,7 @@ is no longer needed.
||||||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |||||
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |||||
callback |
@@ -1238,7 +1310,7 @@ is no longer needed.
||||||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | ||||||
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |||||
callback |
@@ -1287,7 +1359,7 @@ is no longer needed.
||||||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||||||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |||||
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |||||
scope |
@@ -1355,27 +1435,51 @@ is no longer needed.
1 |
+ global |
+
to specify global rules, or
-
-device/<profile tag> -
1 |
+ device/<profile tag> |
+
for rules for a given
-
-profile tag -
1 |
+ profile tag |
+
@@ -1404,7 +1508,7 @@ profile tag
error
location to store the error occuring, or NULL
to ignore.
location to store the error occuring, or NULL
to ignore.
MatrixAPI *self
,
MatrixAPICallback callback
,
void *callback_target
,
- const gchar *scope
,
- MatrixPusherKind kind
,
- const gchar *rule_id
,
- GError **error
);
+ const gchar *scope
,
+ MatrixPusherKind kind
,
+ const gchar *rule_id
,
+ GError **error
);
Retrieve a specific push rule.
If param
scope or param
rule_id is
-null -
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||||||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |||||
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |||||
scope |
@@ -1472,27 +1584,51 @@ is no longer needed.
1 |
+ global |
+
to specify global rules, or
-
-device/<profile tag> -
1 |
+ device/<profile tag> |
+
for rules for a given
-
-profile tag -
1 |
+ profile tag |
+
@@ -1521,7 +1657,7 @@ profile tag
error
location to store the error occuring, or NULL
to ignore.
location to store the error occuring, or NULL
to ignore.
MatrixAPI *self
,
MatrixAPICallback callback
,
void *callback_target
,
- const gchar *scope
,
- MatrixPusherKind kind
,
- const gchar *rule_id
,
- const gchar *before
,
- const gchar *after
,
- GList *actions
,
- GList *conditions
,
- GError **error
);
+ const gchar *scope
,
+ MatrixPusherKind kind
,
+ const gchar *rule_id
,
+ const gchar *before
,
+ const gchar *after
,
+ gchar **actions
,
+ int actions_length1
,
+ MatrixPusherConditionKind *conditions
,
+ int conditions_length1
,
+ GError **error
);
Add or change a push rule.
If either param
scope, param
rule_id or param
actions are
-null -
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||||||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |||||
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |||||
scope |
@@ -1593,27 +1739,51 @@ is no longer needed.
1 |
+ global |
+
to specify global rules, or
-
-device/<profile tag> -
1 |
+ device/<profile tag> |
+
for rules for a given
-
-profile tag -
1 |
+ profile tag |
+
@@ -1647,7 +1817,7 @@ profile tag
make the new rule the next-most important than this rule ID
.
-after
make the new rule the next-less important than this rule ID
.
-actions
the actions to perform when the conditions for this rule are met
.
-actions_length1
length of the actions
+array
conditions
the conditions that must hold true for an event for a rule to be applied. A rule with no conditions always matches
.
-conditions_length1
length of the conditions
+array
error
location to store the error occuring, or NULL
to ignore.
location to store the error occuring, or NULL
to ignore.
MatrixAPI *self
,
MatrixAPICallback callback
,
void *callback_target
,
- const gchar *scope
,
- MatrixPusherKind kind
,
- const gchar *rule_id
,
- gboolean enabled
,
- GError **error
);
+ const gchar *scope
,
+ MatrixPusherKind kind
,
+ const gchar *rule_id
,
+ gboolean enabled
,
+ GError **error
);
Enable or disable the specified push rule.
-If scope
or rule_id
is NULL
, this function returns immediately, and fills error
with MATRIX_ERROR_INCOMPLETE
.
If scope
or rule_id
is NULL
, this function returns immediately, and fills error
with MATRIX_ERROR_INCOMPLETE
.
[in][allow-none] | ||||||||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |||||
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |||||
scope |
@@ -1741,27 +1923,51 @@ is no longer needed.
1 |
+ global |
+
to specify global rules, or
-
-device/<profile tag> -
1 |
+ device/<profile tag> |
+
for rules for a given
-
-profile tag -
1 |
+ profile tag |
+
@@ -1795,9 +2001,17 @@ profile tag
if
-
-true -
1 |
+ true |
+
@@ -1808,7 +2022,7 @@ true
error
location to store the error occuring, or NULL
to ignore.
location to store the error occuring, or NULL
to ignore.
MatrixAPI *self
,
MatrixAPICallback callback
,
void *callback_target
,
- MatrixRoomPreset preset
,
- const gchar *room_name
,
- const gchar *room_alias
,
- const gchar *topic
,
- MatrixRoomVisibility visibility
,
+ MatrixRoomPreset preset
,
+ const gchar *room_name
,
+ const gchar *room_alias
,
+ const gchar *topic
,
+ MatrixRoomVisibility visibility
,
JsonNode *creation_content
,
- GList *initial_state
,
- GList *invitees
,
- GList *invite_3pids
,
- GError **error
);
+ MatrixEventState **initial_state
,
+ int initial_state_length1
,
+ gchar **invitees
,
+ int invitees_length1
,
+ Matrix3PidCredential **invite_3pids
,
+ int invite_3pids_length1
,
+ GError **error
);
Create a new room with the given name and invite the users in param
invitees.
[in][allow-none] | ||||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
preset |
@@ -1885,7 +2102,7 @@ is no longer needed.
[in][allow-none] | +[in][allow-none] | ||
room_alias |
@@ -1894,7 +2111,7 @@ is no longer needed.
[in][allow-none] | +[in][allow-none] | ||
topic |
@@ -1903,7 +2120,7 @@ is no longer needed.
[in][allow-none] | +[in][allow-none] | ||
visibility |
@@ -1921,7 +2138,7 @@ is no longer needed.
[in][allow-none] | +[in][allow-none] | ||
initial_state |
@@ -1930,7 +2147,13 @@ is no longer needed.
[in][allow-none] | +[in][array length=initial_state_length1] | +||
initial_state_length1 |
+length of the |
+|||
invitees |
@@ -1939,7 +2162,13 @@ is no longer needed.
[in][allow-none] | +[in][array length=invitees_length1] | +||
invitees_length1 |
+length of the |
+|||
invite_3pids |
@@ -1948,11 +2177,17 @@ is no longer needed.
[in][allow-none] | +[in][array length=invite_3pids_length1] | +||
invite_3pids_length1 |
+length of the |
+|||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
[in][allow-none] | ||||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
room_alias |
@@ -2018,7 +2253,7 @@ is no longer needed.
||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
room_alias |
@@ -2088,7 +2331,7 @@ is no longer needed.
||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
room_id |
@@ -2168,7 +2419,7 @@ is no longer needed.
||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
[in][allow-none] | ||||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
room_id |
@@ -2307,11 +2566,11 @@ is no longer needed.
[in][allow-none] | +[in][allow-none] | ||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
room_id |
@@ -2385,7 +2652,7 @@ is no longer needed.
||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function immediately returns, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
room_id |
@@ -2468,7 +2743,7 @@ is no longer needed.
||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
[in][allow-none] | ||||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
room_id |
@@ -2542,7 +2817,7 @@ is no longer needed.
||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
room_id |
@@ -2612,7 +2895,7 @@ is no longer needed.
||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
room_id |
@@ -2682,7 +2973,7 @@ is no longer needed.
||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
[in][allow-none] | ||||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
from_token |
@@ -2743,7 +3034,7 @@ is no longer needed.
[in][allow-none] | +[in][allow-none] | ||
timeout |
@@ -2756,7 +3047,7 @@ is no longer needed.
||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
event_id |
@@ -2826,7 +3125,7 @@ is no longer needed.
||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
[in][allow-none] | ||||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
limit |
@@ -2899,7 +3198,7 @@ is no longer needed.
||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
room_id |
@@ -2989,7 +3296,7 @@ is no longer needed.
||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
room_id |
@@ -3059,7 +3374,7 @@ is no longer needed.
||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
room_id |
@@ -3129,7 +3452,7 @@ is no longer needed.
||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
room_id |
@@ -3229,7 +3560,7 @@ is no longer needed.
||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
room_id |
@@ -3325,9 +3664,17 @@ is no longer needed.
1 |
+ ts |
+
@@ -3338,7 +3685,7 @@ field
error
location to store the error occuring, or NULL
to ignore.
location to store the error occuring, or NULL
to ignore.
MatrixAPI *self
,
MatrixAPICallback callback
,
void *callback_target
,
- const gchar *room_id
,
- const gchar *event_id
,
- const gchar *txn_id
,
- const gchar *reason
,
- GError **error
);
+ const gchar *room_id
,
+ const gchar *event_id
,
+ const gchar *txn_id
,
+ const gchar *reason
,
+ GError **error
);
Strip all information out of an event which isn't critical to the integrity of the server-side representation of the room. This cannot be undone.
Users may redact their own events, and any user with a power level greater than or equal to
--redact -
1 |
+ redact |
+
power level of the room may redact events there.
If param
room_id, param
event_id or param
txn_id is
-null -
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
room_id |
@@ -3441,11 +3804,11 @@ is no longer needed.
[in][allow-none] | +[in][allow-none] | ||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
room_id |
@@ -3545,7 +3916,7 @@ is no longer needed.
||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, or if param
state_key is set with param
event_type being
-null -
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
room_id |
@@ -3630,7 +4017,7 @@ is no longer needed.
[in][allow-none] | +[in][allow-none] | ||
state_key |
@@ -3640,20 +4027,28 @@ is no longer needed.
event_type is
1 |
+ null |
+
, this parameter is ignored
.
-error
location to store the error occuring, or NULL
to ignore.
location to store the error occuring, or NULL
to ignore.
MatrixAPI *self
,
MatrixAPICallback callback
,
void *callback_target
,
- const gchar *room_id
,
- const gchar *event_type
,
- const gchar *state_key
,
+ const gchar *room_id
,
+ const gchar *event_type
,
+ const gchar *state_key
,
JsonNode *content
,
- GError **error
);
+ GError **error
);
Send a state event to the room. These events will be overwritten if param
room_id, param
event_type and param
@@ -3680,9 +4075,17 @@ matrix_api_send_room_event (
content) vary depending on the type of the event.param
If param
room_id or param
content is
-null -
1 |
+ null |
+
@@ -3691,15 +4094,23 @@ null event_type being
-
-null -
1 |
+ null |
+
, this function returns immediately, and throw Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
room_id |
@@ -3759,16 +4170,24 @@ is no longer needed.
event_type is
1 |
+ null |
+
, this parameter is ignored
.
-content
error
location to store the error occuring, or NULL
to ignore.
location to store the error occuring, or NULL
to ignore.
MatrixAPI *self
,
MatrixAPICallback callback
,
void *callback_target
,
- const gchar *user_id
,
- const gchar *room_id
,
- guint timeout
,
- gboolean typing
,
- GError **error
);
+ const gchar *user_id
,
+ const gchar *room_id
,
+ guint timeout
,
+ gboolean typing
,
+ GError **error
);
Tell the server the user is typing for the next param
timeout milliseconds. If param
typing is
-false -
1 |
+ false |
+
, it tells the server that the user stopped typing.
If param
user_id or param
room_id is
-null -
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
user_id |
@@ -3884,9 +4319,17 @@ is no longer needed.
1 |
+ false |
+
@@ -3898,7 +4341,7 @@ timeout can be omitted (ie. set to 0)
error
location to store the error occuring, or NULL
to ignore.
location to store the error occuring, or NULL
to ignore.
MatrixAPI *self
,
MatrixAPICallback callback
,
void *callback_target
,
- const gchar *filter_id
,
+ const gchar *filter_id
,
MatrixFilter *filter
,
- const gchar *since
,
- gboolean full_state
,
- gboolean set_presence
,
- gulong timeout
,
- GError **error
);
+ const gchar *since
,
+ gboolean full_state
,
+ gboolean set_presence
,
+ gulong timeout
,
+ GError **error
);
Synchronize the client's state with the latest state on the server. Clients should use this API when they first log in to get an initial snapshot of the state on the server and then continue to call this API to get incremental details to the state and to receive new messages.
Only one of param
filter and param
filter_id should be specified, or both of them should be set to
-null -
1 |
+ null |
+
to receive all events.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
filter_id |
@@ -3969,7 +4420,7 @@ is no longer needed.
[in][allow-none] | +[in][allow-none] | ||
filter |
@@ -3978,7 +4429,7 @@ is no longer needed.
[in][allow-none] | +[in][allow-none] | ||
since |
@@ -3987,7 +4438,7 @@ is no longer needed.
[in][allow-none] | +[in][allow-none] | ||
full_state |
@@ -3996,9 +4447,17 @@ is no longer needed.
1 |
+ true |
+
@@ -4006,9 +4465,17 @@ true since is not empty. If
-
-false -
1 |
+ false |
+
@@ -4039,7 +4506,7 @@ since will be returned
error
location to store the error occuring, or NULL
to ignore.
location to store the error occuring, or NULL
to ignore.
MatrixAPI *self
,
MatrixAPICallback callback
,
void *callback_target
,
- const gchar *user_id
,
+ const gchar *user_id
,
MatrixFilter *filter
,
- GError **error
);
+ GError **error
);
Upload a new filter definition to the homeserver. It will return a filter ID that may be used in future requests.
If param
user_id or param
filter is
-null -
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
user_id |
@@ -4119,7 +4594,7 @@ is no longer needed.
||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
user_id |
@@ -4199,7 +4682,7 @@ is no longer needed.
||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | ||
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
next_batch |
@@ -4250,7 +4733,7 @@ is no longer needed.
[in][allow-none] | +[in][allow-none] | ||
search_categories |
@@ -4268,7 +4751,7 @@ is no longer needed.
||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
user_id |
@@ -4338,7 +4829,7 @@ is no longer needed.
||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
[in][allow-none] | ||||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
login_type |
@@ -4468,11 +4967,11 @@ is no longer needed.
[in][allow-none] | +[in][allow-none] | ||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, implementations MUST send the stored refresh token. If it is not pesent (e.g. because login hasn’t happened yet), this function MUST throw an error.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
refresh_token |
@@ -4537,11 +5044,11 @@ is no longer needed.
[in][allow-none] | +[in][allow-none] | ||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
[in][allow-none] | ||||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
bind_creds |
@@ -4676,7 +5191,7 @@ is no longer needed.
||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
new_password |
@@ -4746,7 +5269,7 @@ is no longer needed.
||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
user_id |
@@ -4816,7 +5347,7 @@ is no longer needed.
||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
user_id |
@@ -4886,7 +5425,7 @@ is no longer needed.
||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
user_id |
@@ -4966,7 +5513,7 @@ is no longer needed.
||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
user_id |
@@ -5036,7 +5591,7 @@ is no longer needed.
||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
user_id |
@@ -5116,7 +5679,7 @@ is no longer needed.
||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
account_kind |
@@ -5199,9 +5770,17 @@ is no longer needed.
1 |
+ true |
+
@@ -5217,7 +5796,7 @@ true
the local part of the desired Matrix ID. If omitted, the server will generate a local part
.
-password
error
location to store the error occuring, or NULL
to ignore.
location to store the error occuring, or NULL
to ignore.
MatrixAPI *self
,
MatrixAPICallback callback
,
void *callback_target
,
- const gchar *user_id
,
- const gchar *room_id
,
- const gchar *event_type
,
+ const gchar *user_id
,
+ const gchar *room_id
,
+ const gchar *event_type
,
JsonNode *content
,
- GError **error
);
+ GError **error
);
Set some account data for the client. This config is only visible to the user who set the account data. The config will be synced to clients in the top-level account data.
If param
user_id, param
event_type or param
content is
-null -
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
user_id |
@@ -5308,16 +5895,24 @@ is no longer needed.
1 |
+ null |
+
, the account data will be set globally
.
-event_type
error
location to store the error occuring, or NULL
to ignore.
location to store the error occuring, or NULL
to ignore.
MatrixAPI *self
,
MatrixAPICallback callback
,
void *callback_target
,
- const gchar *user_id
,
- const gchar *room_id
,
- GError **error
);
+ const gchar *user_id
,
+ const gchar *room_id
,
+ GError **error
);
List the tags set by a user on a room.
If param
user_id or param
room_id is
-null -
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
user_id |
@@ -5419,7 +6022,7 @@ is no longer needed.
||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
user_id |
@@ -5509,7 +6120,7 @@ is no longer needed.
||||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
, this function returns immediately, and throws Matrix.Error.INCOMPLETE.
[in][allow-none] | +[in][allow-none] | |||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
user_id |
@@ -5605,11 +6224,11 @@ is no longer needed.
[in][allow-none][transfer full] | +[in][allow-none][transfer full] | ||
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
[in][allow-none] | ||||
callback_target |
user data to pass to |
-[allow-none][closure] | +[allow-none][closure] | |
callback_target_destroy_notify |
function to call when |
-[allow-none] | +[allow-none] | |
error |
- location to store the error occuring, or |
+ location to store the error occuring, or |
[error-domains MatrixError] |
1 |
+ null |
+
and raw_content
holds the content body.
[in][allow-none] | +[in][allow-none] | |||
raw_content |
@@ -5732,7 +6359,7 @@ null
[in][allow-none] | +[in][allow-none] | ||
err |
@@ -5741,16 +6368,24 @@ null
1 |
+ null |
+
.
-user_data
const gchar * +const gchar * matrix_api_get_token (MatrixAPI *self
);Get and return the current value of the "token" property.
The token to use for authorization. The Matrix.API.login() and Matrix.API.register_account() calls MUST set this automatically.
-Parameters
+Parameters
@@ -5784,9 +6419,8 @@ matrix_api_get_token ( -
Returns
+Returns
the value of the "token" property
-
@@ -5794,12 +6428,12 @@ matrix_api_get_token (
matrix_api_set_token ()
void matrix_api_set_token (+MatrixAPI *self
, -const gchar *value
);const gchar *value
);Set the value of the "token" property to
value
.The token to use for authorization. The Matrix.API.login() and Matrix.API.register_account() calls MUST set this automatically.
-Parameters
+Parameters
@@ -5824,12 +6458,12 @@ matrix_api_set_token (
matrix_api_get_refresh_token ()
-const gchar * +const gchar * matrix_api_get_refresh_token (MatrixAPI *self
);Get and return the current value of the "refresh-token" property.
The token to use for refreshing the authorization token. It is issued by the server after a successful registration, login or token refresh.
-Parameters
+Parameters
@@ -5844,9 +6478,8 @@ matrix_api_get_refresh_token ( -
Returns
+Returns
the value of the "refresh-token" property
-
@@ -5854,12 +6487,12 @@ matrix_api_get_refresh_token (
matrix_api_set_refresh_token ()
void matrix_api_set_refresh_token (+MatrixAPI *self
, -const gchar *value
);const gchar *value
);Set the value of the "refresh-token" property to
value
.The token to use for refreshing the authorization token. It is issued by the server after a successful registration, login or token refresh.