summaryrefslogtreecommitdiffstats
path: root/src/cameras/ipe.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-04-08 10:51:25 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-04-08 10:51:25 +0200
commit27b15ff356f1abd38304e8bbd0abdd1faf04c4e9 (patch)
tree6498bfca17a71c3ceebde6dbfa71486952912bd9 /src/cameras/ipe.c
parentff329303fc00a8f759c87b227779c39c874c9b9d (diff)
downloaduca-27b15ff356f1abd38304e8bbd0abdd1faf04c4e9.tar.gz
uca-27b15ff356f1abd38304e8bbd0abdd1faf04c4e9.tar.bz2
uca-27b15ff356f1abd38304e8bbd0abdd1faf04c4e9.tar.xz
uca-27b15ff356f1abd38304e8bbd0abdd1faf04c4e9.zip
Fix building the IPE camera
Diffstat (limited to 'src/cameras/ipe.c')
-rw-r--r--src/cameras/ipe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cameras/ipe.c b/src/cameras/ipe.c
index 45a619c..1032f54 100644
--- a/src/cameras/ipe.c
+++ b/src/cameras/ipe.c
@@ -73,7 +73,7 @@ static uint32_t uca_ipe_get_property(struct uca_camera *cam, enum uca_property_i
break;
default:
- return UCA_ERR_PROP_INVALID;
+ return UCA_ERR_CAMERA | UCA_ERR_PROP | UCA_ERR_INVALID;
}
return UCA_NO_ERROR;
}
@@ -100,7 +100,7 @@ static uint32_t uca_ipe_register_callback(struct uca_camera *cam, uca_cam_grab_c
cam->callback_user = user;
return UCA_NO_ERROR;
}
- return UCA_ERR_GRABBER_CALLBACK_ALREADY_REGISTERED;
+ return UCA_ERR_CAMERA | UCA_ERR_CALLBACK | UCA_ERR_ALREADY_REGISTERED;
}
static uint32_t uca_ipe_destroy(struct uca_camera *cam)
@@ -114,7 +114,7 @@ uint32_t uca_ipe_init(struct uca_camera **cam, struct uca_grabber *grabber)
pcilib_model_t model = PCILIB_MODEL_DETECT;
pcilib_t *handle = pcilib_open("/dev/fpga0", model);
if (handle < 0)
- return UCA_ERR_CAM_NOT_FOUND;
+ return UCA_ERR_CAMERA | UCA_ERR_INIT | UCA_ERR_NOT_FOUND;
pcilib_set_error_handler(&uca_ipe_handle_error, &uca_ipe_handle_error);
model = pcilib_get_model(handle);