diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2011-04-27 09:00:22 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2011-04-27 09:00:22 +0200 |
commit | c1b6c87c62f544fa6353bdb45bd9a21139eb1fa9 (patch) | |
tree | eec71dc5dc39c57e132db637f8a616a1588b16b1 /src/uca-cam.h | |
parent | 45cd588f12f485d4b3a44b425dcbbcdec5f833db (diff) | |
download | libuca-c1b6c87c62f544fa6353bdb45bd9a21139eb1fa9.tar.gz libuca-c1b6c87c62f544fa6353bdb45bd9a21139eb1fa9.tar.bz2 libuca-c1b6c87c62f544fa6353bdb45bd9a21139eb1fa9.tar.xz libuca-c1b6c87c62f544fa6353bdb45bd9a21139eb1fa9.zip |
Do state handling only once in uca.c instead of all camera implementations
Diffstat (limited to 'src/uca-cam.h')
-rw-r--r-- | src/uca-cam.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/uca-cam.h b/src/uca-cam.h index cd97ea9..a194054 100644 --- a/src/uca-cam.h +++ b/src/uca-cam.h @@ -47,13 +47,7 @@ struct uca_camera_priv *uca_cam_new(void); * Represents a camera abstraction, that concrete cameras must implement. */ typedef struct uca_camera_priv { - /** - * Points to the next available camera in a linked-list fashion. - * - * End of list is specified with next == NULL. - */ - struct uca_camera_priv *next; - + /* virtual methods to be overridden by concrete cameras */ uint32_t (*destroy) (struct uca_camera_priv *cam); uint32_t (*set_property) (struct uca_camera_priv *cam, enum uca_property_ids property, void *data); uint32_t (*get_property) (struct uca_camera_priv *cam, enum uca_property_ids property, void *data, size_t num); @@ -64,7 +58,7 @@ typedef struct uca_camera_priv { uint32_t (*grab) (struct uca_camera_priv *cam, char *buffer, void *meta_data); struct uca_grabber_priv *grabber; /**< grabber associated with this camera */ - enum uca_cam_state state; /**< camera state */ + enum uca_cam_state state; /**< camera state handled in uca.c */ uint32_t frame_width; /**< current frame width */ uint32_t frame_height; /**< current frame height */ uint64_t current_frame; /**< last grabbed frame number */ |