From 65c2326592b7b1496c468459689904843e443b26 Mon Sep 17 00:00:00 2001 From: Timo Dritschler Date: Thu, 20 Nov 2014 17:37:55 +0100 Subject: Release KIRO to GitHub under LGPL v2.1 Added kiro_*_free methods to all three units Added installation guide Added readme Added licence file --- src/kiro-client.c | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'src/kiro-client.c') diff --git a/src/kiro-client.c b/src/kiro-client.c index 1175e7e..47f0d47 100644 --- a/src/kiro-client.c +++ b/src/kiro-client.c @@ -67,6 +67,19 @@ kiro_client_new (void) } +void +kiro_client_free (KiroClient *client) +{ + if (!client) + return; + + if (KIRO_IS_CLIENT (client)) + g_object_unref (client); + else + g_warning ("Trying to use kiro_client_free on an object which is not a KIRO client. Ignoring..."); +} + + static void kiro_client_init (KiroClient *self) { @@ -74,14 +87,14 @@ kiro_client_init (KiroClient *self) memset (priv, 0, sizeof (&priv)); } + static void kiro_client_finalize (GObject *object) { - //KiroClient *self = KIRO_CLIENT(object); - //KiroClientPrivate * priv = KIRO_CLIENT_GET_PRIVATE(self); //PASS } + static void kiro_client_class_init (KiroClientClass *klass) { @@ -91,7 +104,6 @@ kiro_client_class_init (KiroClientClass *klass) } - int kiro_client_connect (KiroClient *self, const char *address, const char *port) { @@ -203,7 +215,6 @@ kiro_client_connect (KiroClient *self, const char *address, const char *port) } - int kiro_client_sync (KiroClient *self) { @@ -286,7 +297,3 @@ kiro_client_get_memory_size (KiroClient *self) return ctx->rdma_mr->size; } - - - - -- cgit v1.2.3