From ca22c863746eababadedac5a25f47b1ae5780d20 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Thu, 19 Apr 2012 17:01:35 +0200 Subject: Add Photon Focus --- src/uca-camera.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/uca-camera.c') diff --git a/src/uca-camera.c b/src/uca-camera.c index 4ae4610..67951cb 100644 --- a/src/uca-camera.c +++ b/src/uca-camera.c @@ -27,6 +27,10 @@ #include "cameras/uca-mock-camera.h" #endif +#ifdef HAVE_PHOTON_FOCUS +#include "cameras/uca-pf-camera.h" +#endif + #define UCA_CAMERA_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE((obj), UCA_TYPE_CAMERA, UcaCameraPrivate)) G_DEFINE_TYPE(UcaCamera, uca_camera, G_TYPE_OBJECT) @@ -53,6 +57,9 @@ static gchar *uca_camera_types[] = { #endif #ifdef HAVE_UFO_CAMERA "ufo", +#endif +#ifdef HAVE_PHOTON_FOCUS + "pf", #endif NULL }; @@ -352,6 +359,11 @@ UcaCamera *uca_camera_new(const gchar *type, GError **error) camera = UCA_CAMERA(uca_pco_camera_new(&tmp_error)); #endif +#ifdef HAVE_PHOTON_FOCUS + if (!g_strcmp0(type, "pf")) + camera = UCA_CAMERA(uca_pf_camera_new(&tmp_error)); +#endif + if (tmp_error != NULL) { g_propagate_error(error, tmp_error); return NULL; -- cgit v1.2.3