summaryrefslogtreecommitdiffstats
path: root/src/cameras/dummy.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-17 11:44:08 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-17 11:44:08 +0100
commit35681d4e1d171117c9d4c2c4fd7d474b5871f81f (patch)
tree9abb180d6e35a961e7e798b08101fef59cab6c18 /src/cameras/dummy.c
parent5b80e3c687fb2b47b06d9ffe6ac07bec475d812a (diff)
downloaduca-35681d4e1d171117c9d4c2c4fd7d474b5871f81f.tar.gz
uca-35681d4e1d171117c9d4c2c4fd7d474b5871f81f.tar.bz2
uca-35681d4e1d171117c9d4c2c4fd7d474b5871f81f.tar.xz
uca-35681d4e1d171117c9d4c2c4fd7d474b5871f81f.zip
Rename struct_name_t to struct_name and create typedefs
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;