summaryrefslogtreecommitdiffstats
path: root/src/kiro-server.c
diff options
context:
space:
mode:
authorTimo Dritschler <timo.dritschler@kit.edu>2014-11-20 17:37:55 +0100
committerTimo Dritschler <timo.dritschler@kit.edu>2014-11-20 17:53:19 +0100
commit65c2326592b7b1496c468459689904843e443b26 (patch)
tree7dc907bc82227851bc8e13827ae25cbabcf9ba1f /src/kiro-server.c
parente71b75575658c435bc77c01ef098336c563af740 (diff)
downloadkiro-65c2326592b7b1496c468459689904843e443b26.tar.gz
kiro-65c2326592b7b1496c468459689904843e443b26.tar.bz2
kiro-65c2326592b7b1496c468459689904843e443b26.tar.xz
kiro-65c2326592b7b1496c468459689904843e443b26.zip
Release KIRO to GitHub under LGPL v2.1
Added kiro_*_free methods to all three units Added installation guide Added readme Added licence file
Diffstat (limited to 'src/kiro-server.c')
-rw-r--r--src/kiro-server.c21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/kiro-server.c b/src/kiro-server.c
index 3913006..c544267 100644
--- a/src/kiro-server.c
+++ b/src/kiro-server.c
@@ -72,6 +72,19 @@ kiro_server_new (void)
}
+void
+kiro_server_free (KiroServer *server)
+{
+ if (!server)
+ return;
+
+ if (KIRO_IS_SERVER (server))
+ g_object_unref (server);
+ else
+ g_warning ("Trying to use kiro_server_free on an object which is not a KIRO server. Ignoring...");
+}
+
+
static void
kiro_server_init (KiroServer *self)
{
@@ -272,8 +285,6 @@ event_loop (void *self)
}
-
-
int
kiro_server_start (KiroServer *self, char *address, char *port, void *mem, size_t mem_size)
{
@@ -395,9 +406,3 @@ kiro_server_stop (KiroServer *self)
g_message ("Server stopped successfully");
}
-
-
-
-
-
-