diff options
author | Timo Dritschler <timo.dritschler@kit.edu> | 2014-08-28 18:39:37 +0200 |
---|---|---|
committer | Timo Dritschler <timo.dritschler@kit.edu> | 2014-08-28 18:40:38 +0200 |
commit | 933637e8a1ee376ffccb8ca6ac2c5fc350c6eb99 (patch) | |
tree | 5bc6ee9921031d3d27489c2b8133599940d4ac2b /test/test-client.c | |
parent | c126f452df5d29acd0eee8e6ef9f7aaa4b0358a5 (diff) | |
download | kiro-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 'test/test-client.c')
-rw-r--r-- | test/test-client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test-client.c b/test/test-client.c index 469aa5e..cdac3ee 100644 --- a/test/test-client.c +++ b/test/test-client.c @@ -37,7 +37,7 @@ int main ( int argc, char *argv[] ) printf("Not enough aruments. Usage: ./client <address> <port>\n"); return -1; } - KiroClient *client = g_object_new(KIRO_TYPE_CLIENT, NULL); + KiroClient *client = kiro_client_new (); if(-1 == kiro_client_connect(client, argv[1], argv[2])) { g_object_unref(client); @@ -45,7 +45,7 @@ int main ( int argc, char *argv[] ) } kiro_client_sync(client); - KiroTrb *trb = g_object_new(KIRO_TYPE_TRB, NULL); + KiroTrb *trb = kiro_trb_new (); kiro_trb_adopt(trb, kiro_client_get_memory(client)); _Bool ok = |