diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2010-04-25 00:16:32 +0800 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2010-04-25 02:44:09 +0800 |
commit | 54ae82bdf32156387e3d720656bd361a859b8db6 (patch) | |
tree | 3b634c9ed82c0dcb3685ce21d2097df9d6c9d3dd /libempathy | |
parent | 985a3c10e9fa40d2023f73df03d7709816bf0ecc (diff) | |
download | gsoc2013-empathy-54ae82bdf32156387e3d720656bd361a859b8db6.tar gsoc2013-empathy-54ae82bdf32156387e3d720656bd361a859b8db6.tar.gz gsoc2013-empathy-54ae82bdf32156387e3d720656bd361a859b8db6.tar.bz2 gsoc2013-empathy-54ae82bdf32156387e3d720656bd361a859b8db6.tar.lz gsoc2013-empathy-54ae82bdf32156387e3d720656bd361a859b8db6.tar.xz gsoc2013-empathy-54ae82bdf32156387e3d720656bd361a859b8db6.tar.zst gsoc2013-empathy-54ae82bdf32156387e3d720656bd361a859b8db6.zip |
add timestamp arg to empathy_dispatcher_chat_with_contact(_id)
Diffstat (limited to 'libempathy')
-rw-r--r-- | libempathy/empathy-dispatcher.c | 11 | ||||
-rw-r--r-- | libempathy/empathy-dispatcher.h | 8 |
2 files changed, 13 insertions, 6 deletions
diff --git a/libempathy/empathy-dispatcher.c b/libempathy/empathy-dispatcher.c index 046f6a981..40ee5dd88 100644 --- a/libempathy/empathy-dispatcher.c +++ b/libempathy/empathy-dispatcher.c @@ -1301,6 +1301,7 @@ dispatcher_request_channel (DispatcherRequestData *request_data) void empathy_dispatcher_chat_with_contact (EmpathyContact *contact, + gint64 timestamp, EmpathyDispatcherRequestCb *callback, gpointer user_data) { @@ -1332,8 +1333,7 @@ empathy_dispatcher_chat_with_contact (EmpathyContact *contact, /* The contact handle might not be known yet */ request_data = new_dispatcher_request_data (self, connection, TP_IFACE_CHANNEL_TYPE_TEXT, TP_HANDLE_TYPE_CONTACT, - empathy_contact_get_handle (contact), NULL, - EMPATHY_DISPATCHER_NON_USER_ACTION, contact, + empathy_contact_get_handle (contact), NULL, timestamp, contact, callback, user_data); request_data->should_ensure = TRUE; @@ -1351,6 +1351,7 @@ typedef struct EmpathyDispatcher *dispatcher; EmpathyDispatcherRequestCb *callback; gpointer user_data; + gint64 timestamp; } ChatWithContactIdData; static void @@ -1373,8 +1374,8 @@ dispatcher_chat_with_contact_id_cb (EmpathyTpContactFactory *factory, } else { - empathy_dispatcher_chat_with_contact (contact, data->callback, - data->user_data); + empathy_dispatcher_chat_with_contact (contact, data->timestamp, + data->callback, data->user_data); } g_object_unref (data->dispatcher); @@ -1384,6 +1385,7 @@ dispatcher_chat_with_contact_id_cb (EmpathyTpContactFactory *factory, void empathy_dispatcher_chat_with_contact_id (TpConnection *connection, const gchar *contact_id, + gint64 timestamp, EmpathyDispatcherRequestCb *callback, gpointer user_data) { @@ -1400,6 +1402,7 @@ empathy_dispatcher_chat_with_contact_id (TpConnection *connection, data->dispatcher = self; data->callback = callback; data->user_data = user_data; + data->timestamp = timestamp; empathy_tp_contact_factory_get_from_id (factory, contact_id, dispatcher_chat_with_contact_id_cb, data, NULL, NULL); diff --git a/libempathy/empathy-dispatcher.h b/libempathy/empathy-dispatcher.h index 97ac49bea..b3e9e1dda 100644 --- a/libempathy/empathy-dispatcher.h +++ b/libempathy/empathy-dispatcher.h @@ -72,10 +72,14 @@ void empathy_dispatcher_create_channel (EmpathyDispatcher *dispatcher, /* Requesting 1 to 1 text channels */ void empathy_dispatcher_chat_with_contact_id (TpConnection *connection, - const gchar *contact_id, EmpathyDispatcherRequestCb *callback, + const gchar *contact_id, + gint64 timestamp, + EmpathyDispatcherRequestCb *callback, gpointer user_data); void empathy_dispatcher_chat_with_contact (EmpathyContact *contact, - EmpathyDispatcherRequestCb *callback, gpointer user_data); + gint64 timestamp, + EmpathyDispatcherRequestCb *callback, + gpointer user_data); /* Request a file channel to a specific contact */ void empathy_dispatcher_send_file_to_contact (EmpathyContact *contact, |