diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2012-03-05 11:10:56 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2012-03-05 11:10:56 +0100 |
commit | 0010c60ac578e8d463b5948f5b2f137dde54abd9 (patch) | |
tree | 0f21508461361ec525b71c908725462630151875 /src/uca-camera.c | |
parent | 38a25bb40b18fc820157d9af832daf08bbc7cd9e (diff) | |
download | uca-0010c60ac578e8d463b5948f5b2f137dde54abd9.tar.gz uca-0010c60ac578e8d463b5948f5b2f137dde54abd9.tar.bz2 uca-0010c60ac578e8d463b5948f5b2f137dde54abd9.tar.xz uca-0010c60ac578e8d463b5948f5b2f137dde54abd9.zip |
Locate place where to put tango server instantiation
Diffstat (limited to 'src/uca-camera.c')
-rw-r--r-- | src/uca-camera.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/uca-camera.c b/src/uca-camera.c index 35e15b7..d06a570 100644 --- a/src/uca-camera.c +++ b/src/uca-camera.c @@ -173,6 +173,27 @@ static void uca_camera_init(UcaCamera *camera) { camera->priv = UCA_CAMERA_GET_PRIVATE(camera); camera->priv->recording = FALSE; + + /* + * This here would be the best place to instantiate the tango server object, + * along these lines: + * + * // I'd prefer if you expose a single C method, so we don't have to + * // compile uca-camera.c with g++ + * tango_handle = tango_server_new(camera); + * + * void tango_server_new(UcaCamera *camera) + * { + * // Do whatever is necessary. In the end you will have some kind of + * // Tango object t which needs to somehow hook up to the properties. A + * // list of all available properties can be enumerated with + * // g_object_class_list_properties(G_OBJECT_CLASS(camera), + * // &n_properties); + * + * // For setting/getting properties, use g_object_get/set_property() or + * // g_object_get/set() whatever is more suitable. + * } + */ } void uca_camera_start_recording(UcaCamera *camera, GError **error) |