summaryrefslogtreecommitdiffstats
path: root/src/kiro-server.c
diff options
context:
space:
mode:
authorTimo Dritschler <timo.dritschler@kit.edu>2014-08-28 18:39:37 +0200
committerTimo Dritschler <timo.dritschler@kit.edu>2014-08-28 18:40:38 +0200
commit933637e8a1ee376ffccb8ca6ac2c5fc350c6eb99 (patch)
tree5bc6ee9921031d3d27489c2b8133599940d4ac2b /src/kiro-server.c
parentc126f452df5d29acd0eee8e6ef9f7aaa4b0358a5 (diff)
downloadkiro-933637e8a1ee376ffccb8ca6ac2c5fc350c6eb99.tar.gz
kiro-933637e8a1ee376ffccb8ca6ac2c5fc350c6eb99.tar.bz2
kiro-933637e8a1ee376ffccb8ca6ac2c5fc350c6eb99.tar.xz
kiro-933637e8a1ee376ffccb8ca6ac2c5fc350c6eb99.zip
Fix #5: Added kiro_CLASS_new methods to all KIRO classes
Changed test software to use the new kiro_CLASS_new functions
Diffstat (limited to 'src/kiro-server.c')
-rw-r--r--src/kiro-server.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/kiro-server.c b/src/kiro-server.c
index c1d099e..15a8ccb 100644
--- a/src/kiro-server.c
+++ b/src/kiro-server.c
@@ -65,6 +65,12 @@ struct _KiroServerPrivate {
G_DEFINE_TYPE (KiroServer, kiro_server, G_TYPE_OBJECT);
+KiroServer*
+kiro_server_new (void) {
+ return g_object_new (KIRO_TYPE_SERVER, NULL);
+}
+
+
static void kiro_server_init (KiroServer *self)
{
KiroServerPrivate *priv = KIRO_SERVER_GET_PRIVATE(self);
@@ -246,7 +252,7 @@ void * event_loop (void *self)
GList *client = g_list_find (priv->clients, (gconstpointer) ev->id);
if (client) {
struct kiro_connection_context *ctx = (struct kiro_connection_context *)(ev->id->context);
- printf ("Got disconnect request from client %s.\n", ctx->identifier);
+ printf ("Got disconnect request from client %u.\n", ctx->identifier);
priv->clients = g_list_delete_link (priv->clients, client);
}
else