summaryrefslogtreecommitdiffstats
path: root/src/cameras/uca_pco.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-02-28 11:40:23 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-02-28 11:40:23 +0100
commit31a9401a4c18fea613d8a508583dd657c41c384c (patch)
tree8cd16831d3d6695dbca0b5865f1f5079c8fce39c /src/cameras/uca_pco.c
parent49cf589ca2fdcbd9ff55ae70040d6d52c57a3fb1 (diff)
downloadlibuca-31a9401a4c18fea613d8a508583dd657c41c384c.tar.gz
libuca-31a9401a4c18fea613d8a508583dd657c41c384c.tar.bz2
libuca-31a9401a4c18fea613d8a508583dd657c41c384c.tar.xz
libuca-31a9401a4c18fea613d8a508583dd657c41c384c.zip
Turn property defines into enum
Diffstat (limited to 'src/cameras/uca_pco.c')
-rw-r--r--src/cameras/uca_pco.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cameras/uca_pco.c b/src/cameras/uca_pco.c
index 8a89fa0..cd727b9 100644
--- a/src/cameras/uca_pco.c
+++ b/src/cameras/uca_pco.c
@@ -58,7 +58,7 @@ static uint32_t uca_pco_destroy(struct uca_camera_t *cam)
return UCA_NO_ERROR;
}
-static uint32_t uca_pco_set_property(struct uca_camera_t *cam, int32_t property, void *data)
+static uint32_t uca_pco_set_property(struct uca_camera_t *cam, enum uca_property_ids property, void *data)
{
switch (property) {
case UCA_PROP_WIDTH:
@@ -94,7 +94,7 @@ static uint32_t uca_pco_set_property(struct uca_camera_t *cam, int32_t property,
}
-static uint32_t uca_pco_get_property(struct uca_camera_t *cam, int32_t property, void *data)
+static uint32_t uca_pco_get_property(struct uca_camera_t *cam, enum uca_property_ids property, void *data)
{
struct pco_edge_t *pco = GET_PCO(cam);
@@ -201,7 +201,6 @@ uint32_t uca_pco_init(struct uca_camera_t **cam)
struct uca_camera_t *uca = (struct uca_camera_t *) malloc(sizeof(struct uca_camera_t));
uca->user = pco_cam;
- *cam = uca;
/* Camera found, set function pointers... */
uca->destroy = &uca_pco_destroy;
@@ -238,7 +237,8 @@ uint32_t uca_pco_init(struct uca_camera_t **cam)
Fg_setParameter(fg, FG_WIDTH, &width, PORT_A);
Fg_setParameter(fg, FG_HEIGHT, &height, PORT_A);
- pco_set_rec_state(pco, 1);
+ uca->state = UCA_CAM_CONFIGURABLE;
+ *cam = uca;
- return 0;
+ return UCA_NO_ERROR;
}