[evolution-data-server] CamelIMAPXCommand: Add imapx_command_ref().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] CamelIMAPXCommand: Add imapx_command_ref().
- Date: Fri, 2 Dec 2011 06:18:08 +0000 (UTC)
commit 9a79d993cd5dfb56d726515fa20f71e911a2405c
Author: Matthew Barnes <mbarnes redhat com>
Date: Thu Dec 1 22:12:00 2011 -0600
CamelIMAPXCommand: Add imapx_command_ref().
camel/providers/imapx/camel-imapx-server.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index b84fe8b..e86cbcf 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -806,6 +806,17 @@ imapx_command_add (CamelIMAPXCommand *ic,
}
}
+static CamelIMAPXCommand *
+imapx_command_ref (CamelIMAPXCommand *ic)
+{
+ g_return_val_if_fail (ic != NULL, NULL);
+ g_return_val_if_fail (ic->ref_count > 0, NULL);
+
+ g_atomic_int_inc (&ic->ref_count);
+
+ return ic;
+}
+
static void
imapx_command_free (CamelIMAPXCommand *ic)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]