aboutsummaryrefslogtreecommitdiffstats
path: root/matrix-room.h
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2015-10-21 13:35:19 +0100
committerRichard van der Hoff <richard@matrix.org>2015-10-21 13:35:19 +0100
commitd5a30fbbfb93e151847e64f9a83ae6ea18527cea (patch)
tree6773f831aabcc048acf797c5db43570cdd5fb553 /matrix-room.h
parent70ec6a4c03469cbc8d627735991980cd4fcb6957 (diff)
downloadpurple-matrix-d5a30fbbfb93e151847e64f9a83ae6ea18527cea.tar.gz
Initial implementation of sending messages
Implement an event queue, and send messages through it. We still need to sort out local echo.
Diffstat (limited to 'matrix-room.h')
-rw-r--r--matrix-room.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/matrix-room.h b/matrix-room.h
index 60c01a9..3e5613c 100644
--- a/matrix-room.h
+++ b/matrix-room.h
@@ -50,7 +50,7 @@ struct _PurpleConversation *matrix_room_get_or_create_conversation(
void matrix_room_leave_chat(struct _PurpleConversation *conv);
/**
- * handle a single timeline event for a room (such as a message)
+ * handle a single received timeline event for a room (such as a message)
*
* @param conv info on the room
* @param event_id id of the event
@@ -63,7 +63,11 @@ void matrix_room_handle_timeline_event(struct _PurpleConversation *conv,
const gchar *event_id, const gchar *event_type,
const gchar *sender, gint64 timestamp, JsonObject *json_content_obj);
-
+/**
+ * Send a message in a room
+ */
+void matrix_room_send_message(struct _PurpleConversation *conv,
+ const gchar *message);
/*************************************************************************
*