diff options
author | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-03-16 08:58:55 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-03-16 08:58:55 +0100 |
commit | 54a229b3864fe7867da69ef7427877094a256f1c (patch) | |
tree | 44b314944e24f3ef522360d76255bbc21ea36e12 /src/uca-cam.h | |
parent | 98511f7a77e7b37f9508b66298d99d7d1103e422 (diff) | |
download | uca-54a229b3864fe7867da69ef7427877094a256f1c.tar.gz uca-54a229b3864fe7867da69ef7427877094a256f1c.tar.bz2 uca-54a229b3864fe7867da69ef7427877094a256f1c.tar.xz uca-54a229b3864fe7867da69ef7427877094a256f1c.zip |
Pass target string size when calling uca_get_property
Diffstat (limited to 'src/uca-cam.h')
-rw-r--r-- | src/uca-cam.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/uca-cam.h b/src/uca-cam.h index 7a18b3d..f668e54 100644 --- a/src/uca-cam.h +++ b/src/uca-cam.h @@ -113,9 +113,12 @@ typedef uint32_t (*uca_cam_set_property) (struct uca_camera_t *cam, enum uca_pro * * \param[out] data Where to store the property's value * + * \param[in] num Number of bytes of string storage. Ignored for uca_uint8t + * and uca_uint32t properties. + * * \return UCA_ERR_PROP_INVALID if property is not supported on the camera */ -typedef uint32_t (*uca_cam_get_property) (struct uca_camera_t *cam, enum uca_property_ids property, void *data); +typedef uint32_t (*uca_cam_get_property) (struct uca_camera_t *cam, enum uca_property_ids property, void *data, size_t num); /** * Begin recording. |