summaryrefslogtreecommitdiffstats
path: root/src/uca-camera.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/uca-camera.c')
-rw-r--r--src/uca-camera.c12
1 files changed, 12 insertions, 0 deletions
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)
@@ -54,6 +58,9 @@ static gchar *uca_camera_types[] = {
#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;