From 7492223f49f668c66639c35c2a29ff77fdb47452 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 21 Oct 2010 18:28:08 +0200 Subject: gatchat: Add support for slave chat instances This adds support to assign a slave chat instance to an existing chat instance. The slave chat is now additionally bound by the lifetime of its master chat instance. In case the master is cloned, the slave chat instance will also be cloned as well. With this it is possible to suspend the master while still have an active slave for notifications or extra commands. --- gatchat/gatchat.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gatchat/gatchat.h') diff --git a/gatchat/gatchat.h b/gatchat/gatchat.h index f61fe538..8cbb5598 100644 --- a/gatchat/gatchat.h +++ b/gatchat/gatchat.h @@ -50,6 +50,9 @@ void g_at_chat_unref(GAtChat *chat); GAtChat *g_at_chat_clone(GAtChat *chat); +GAtChat *g_at_chat_set_slave(GAtChat *chat, GAtChat *slave); +GAtChat *g_at_chat_get_slave(GAtChat *chat); + void g_at_chat_suspend(GAtChat *chat); void g_at_chat_resume(GAtChat *chat); -- cgit v1.2.1