diff options
author | Timo Dritschler <timo.dritschler@kit.edu> | 2015-07-09 19:24:02 +0200 |
---|---|---|
committer | Timo Dritschler <timo.dritschler@kit.edu> | 2015-07-09 19:24:02 +0200 |
commit | f888aff829e9892d0b4655af6bc0ee3f9658bbb2 (patch) | |
tree | 31d9deefd2c02e766f6441e8f43481f0faa3d42d /bin/kiro-camera-server.c | |
parent | 1f04383dca16af05697812e634b1e34811f045a6 (diff) | |
download | uca-kiro-f888aff829e9892d0b4655af6bc0ee3f9658bbb2.tar.gz uca-kiro-f888aff829e9892d0b4655af6bc0ee3f9658bbb2.tar.bz2 uca-kiro-f888aff829e9892d0b4655af6bc0ee3f9658bbb2.tar.xz uca-kiro-f888aff829e9892d0b4655af6bc0ee3f9658bbb2.zip |
Some stuff.
Mostly build-fixes.
Diffstat (limited to 'bin/kiro-camera-server.c')
-rw-r--r-- | bin/kiro-camera-server.c | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/bin/kiro-camera-server.c b/bin/kiro-camera-server.c index cb14332..80683ac 100644 --- a/bin/kiro-camera-server.c +++ b/bin/kiro-camera-server.c @@ -19,7 +19,7 @@ #include <stdlib.h> #include <string.h> -#include "kiro-camera-server.h" +#include "uca-kiro-camera.h" #include "uca/uca-plugin-manager.h" @@ -124,20 +124,6 @@ gtype_size (GType type) } -gint -property_id_from_name(const gchar* name) -{ - gint idx = 0; - gboolean found = FALSE; - for (;idx < N_BASE_PROPERTIES; ++idx) { - if (0 == g_strcmp0(name, uca_camera_props[idx])) { - found = TRUE; - break; - } - } - return found ? idx : -1; -} - static void print_cam_name (gchar *name, gpointer unused) { @@ -222,7 +208,6 @@ connect_callback (gulong rank, gulong *storage) static KiroContinueFlag receive_callback (KiroMessageStatus *status, KiroCsData *data) { - PropUpdate *update = (PropUpdate *)status->message->payload; if (status->message->msg == KIROCS_EXIT) { g_message ("Peer requested shut down..."); @@ -230,6 +215,8 @@ receive_callback (KiroMessageStatus *status, KiroCsData *data) } if (status->message->msg == KIROCS_UPDATE) { + PropUpdate *update = (PropUpdate *)status->message->payload; + g_debug ("Unpacking ID %u\n", update->id); gpointer unpacked = unpack_scalar (update); @@ -240,6 +227,7 @@ receive_callback (KiroMessageStatus *status, KiroCsData *data) data->properties[update->id -1]->value_type, data->signal_handlers[update->id], unpacked); + g_free (unpacked); } |