summaryrefslogtreecommitdiffstats
path: root/src/cameras/dummy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cameras/dummy.c')
-rw-r--r--src/cameras/dummy.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/cameras/dummy.c b/src/cameras/dummy.c
index dd96688..d71940e 100644
--- a/src/cameras/dummy.c
+++ b/src/cameras/dummy.c
@@ -14,12 +14,12 @@ struct dummy_cam_t {
#define GET_DUMMY(uca) ((struct dummy_cam_t *)(uca->user))
#define set_void(p, type, value) { *((type *) p) = value; }
-static uint32_t uca_dummy_set_property(struct uca_camera_t *cam, enum uca_property_ids property, void *data)
+static uint32_t uca_dummy_set_property(struct uca_camera *cam, enum uca_property_ids property, void *data)
{
return UCA_NO_ERROR;
}
-static uint32_t uca_dummy_get_property(struct uca_camera_t *cam, enum uca_property_ids property, void *data, size_t num)
+static uint32_t uca_dummy_get_property(struct uca_camera *cam, enum uca_property_ids property, void *data, size_t num)
{
switch (property) {
case UCA_PROP_NAME:
@@ -60,13 +60,13 @@ static uint32_t uca_dummy_get_property(struct uca_camera_t *cam, enum uca_proper
return UCA_NO_ERROR;
}
-uint32_t uca_dummy_start_recording(struct uca_camera_t *cam)
+uint32_t uca_dummy_start_recording(struct uca_camera *cam)
{
cam->current_frame = 0;
return UCA_NO_ERROR;
}
-uint32_t uca_dummy_stop_recording(struct uca_camera_t *cam)
+uint32_t uca_dummy_stop_recording(struct uca_camera *cam)
{
return UCA_NO_ERROR;
}
@@ -146,7 +146,7 @@ static void uca_dummy_print_number(struct dummy_cam_t *dummy, int number, int x,
}
}
-uint32_t uca_dummy_grab(struct uca_camera_t *cam, char *buffer)
+uint32_t uca_dummy_grab(struct uca_camera *cam, char *buffer)
{
struct dummy_cam_t *dummy = GET_DUMMY(cam);
dummy->buffer = buffer;
@@ -165,14 +165,14 @@ uint32_t uca_dummy_grab(struct uca_camera_t *cam, char *buffer)
return UCA_NO_ERROR;
}
-static uint32_t uca_dummy_destroy(struct uca_camera_t *cam)
+static uint32_t uca_dummy_destroy(struct uca_camera *cam)
{
return UCA_NO_ERROR;
}
-uint32_t uca_dummy_init(struct uca_camera_t **cam, struct uca_grabber_t *grabber)
+uint32_t uca_dummy_init(struct uca_camera **cam, struct uca_grabber *grabber)
{
- struct uca_camera_t *uca = (struct uca_camera_t *) malloc(sizeof(struct uca_camera_t));
+ struct uca_camera *uca = (struct uca_camera *) malloc(sizeof(struct uca_camera));
uca->destroy = &uca_dummy_destroy;
uca->set_property = &uca_dummy_set_property;