diff options
Diffstat (limited to 'src/kiro-server.c')
-rw-r--r-- | src/kiro-server.c | 21 |
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"); } - - - - - - |