diff options
author | Dr. David Alan Gilbert <dave@treblig.org> | 2016-11-03 02:19:15 +0000 |
---|---|---|
committer | Dr. David Alan Gilbert <dave@treblig.org> | 2016-11-13 17:17:27 +0000 |
commit | 991af2d7984aaf6c23bcb9ab2cc9c36477f0b1b0 (patch) | |
tree | 1cc7b9bca574428393fca0e5b369d62e0c1fe94b /matrix-room.c | |
parent | c64b6d5225c4bcbfa0dd83b28bf7c0db19705e30 (diff) | |
download | purple-matrix-991af2d7984aaf6c23bcb9ab2cc9c36477f0b1b0.tar.gz |
Pass body/len/content_type to completion callback
When a response can't be parsed as JSON pass the body and length
to the callback.
Also add the content_type.
Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
Diffstat (limited to 'matrix-room.c')
-rw-r--r-- | matrix-room.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/matrix-room.c b/matrix-room.c index 6505b30..1e1e22f 100644 --- a/matrix-room.c +++ b/matrix-room.c @@ -298,7 +298,8 @@ static GList *_get_event_queue(PurpleConversation *conv) } static void _event_send_complete(MatrixConnectionData *account, gpointer user_data, - JsonNode *json_root) + JsonNode *json_root, + const char *raw_body, size_t raw_body_len, const char *content_type) { PurpleConversation *conv = user_data; JsonObject *response_object; @@ -364,7 +365,8 @@ struct SendImageEventData { * we put in the event. */ static void _image_upload_complete(MatrixConnectionData *ma, - gpointer user_data, JsonNode *json_root) + gpointer user_data, JsonNode *json_root, + const char *raw_body, size_t raw_body_len, const char *content_type) { MatrixApiRequestData *fetch_data = NULL; struct SendImageEventData *sied = user_data; |