From ad1d96f2d0771d8657da40c80eea8703111a9e80 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Mon, 7 Mar 2011 08:57:42 +0100 Subject: Specific error return codes for grabbers and cameras --- src/cameras/pco.c | 4 ++-- src/cameras/pf.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/cameras') diff --git a/src/cameras/pco.c b/src/cameras/pco.c index 45d0f62..ff2daff 100644 --- a/src/cameras/pco.c +++ b/src/cameras/pco.c @@ -202,12 +202,12 @@ uint32_t uca_pco_init(struct uca_camera_t **cam, struct uca_grabber_t *grabber) struct pco_edge_t *pco = pco_init(); if (pco == NULL) { - return UCA_ERR_INIT_NOT_FOUND; + return UCA_ERR_CAM_NOT_FOUND; } if ((pco->serial_ref == NULL) || !pco_is_active(pco)) { pco_destroy(pco); - return UCA_ERR_INIT_NOT_FOUND; + return UCA_ERR_CAM_NOT_FOUND; } struct uca_camera_t *uca = (struct uca_camera_t *) malloc(sizeof(struct uca_camera_t)); diff --git a/src/cameras/pf.c b/src/cameras/pf.c index 76d903f..e31e882 100644 --- a/src/cameras/pf.c +++ b/src/cameras/pf.c @@ -171,10 +171,10 @@ uint32_t uca_pf_init(struct uca_camera_t **cam, struct uca_grabber_t *grabber) { int num_ports; if (pfPortInit(&num_ports) < 0) - return UCA_ERR_INIT_NOT_FOUND; + return UCA_ERR_CAM_NOT_FOUND; if (pfDeviceOpen(0) < 0) - return UCA_ERR_INIT_NOT_FOUND; + return UCA_ERR_CAM_NOT_FOUND; /* We could check if a higher baud rate is supported, but... forget about * it. We don't need high speed configuration. */ -- cgit v1.2.3