diff options
author | Vivek Dasmohapatra <vivek@collabora.co.uk> | 2011-04-01 14:23:43 +0100 |
---|---|---|
committer | Vivek Dasmohapatra <vivek@collabora.co.uk> | 2011-04-05 14:19:11 +0100 |
commit | c8e942ff87811a59e4e4ddafc1c2c61f23c903b1 (patch) | |
tree | b1849f2b8965e6d66a791095e7b0388597519156 | |
parent | cd9aeb1e53c4026adcba4361fb238ebbf63c548e (diff) | |
download | telepathy-mission-control-c8e942ff87811a59e4e4ddafc1c2c61f23c903b1.tar.gz |
Helper to steal message ontext back from the ACL framework
-rw-r--r-- | src/mcd-dispatcher.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mcd-dispatcher.c b/src/mcd-dispatcher.c index 625076f3..8ed32488 100644 --- a/src/mcd-dispatcher.c +++ b/src/mcd-dispatcher.c @@ -2103,6 +2103,17 @@ typedef struct } MessageContext; static MessageContext * +message_context_steal (MessageContext *from) +{ + MessageContext *stolen = g_slice_new0 (MessageContext); + + g_memmove (stolen, from, sizeof (MessageContext)); + memset (from, 0, sizeof (MessageContext)); + + return stolen; +} + +static MessageContext * message_context_new (McdDispatcher *dispatcher, const gchar *account_path, const gchar *target_id, |