Imaging Control 4 C Library 1.2.0
|
Property lists represent groups of properties. More...
Data Structures | |
struct | IC4_PROPERTY_LIST |
Represents a list of properties. More... | |
Functions | |
struct IC4_PROPERTY_LIST * | ic4_proplist_ref (struct IC4_PROPERTY_LIST *list) |
Increases the property list's internal reference count by one. | |
void | ic4_proplist_unref (struct IC4_PROPERTY_LIST *list) |
Decreases the property list's internal reference count by one. | |
bool | ic4_proplist_size (struct IC4_PROPERTY_LIST *list, size_t *size) |
Returns the number of properties in a property list. | |
bool | ic4_proplist_at (struct IC4_PROPERTY_LIST *list, size_t index, struct IC4_PROPERTY **ppProperty) |
Returns a property from a property list. | |
Property lists represent groups of properties.
They are returned from functions such as ic4_prop_category_get_features() or ic4_prop_enum_get_entries().
Property lists are read-only and can be enumerated by using the ic4_proplist_size() and ic4_proplist_at() functions.
bool ic4_proplist_at | ( | struct IC4_PROPERTY_LIST * | list, |
size_t | index, | ||
struct IC4_PROPERTY ** | ppProperty | ||
) |
Returns a property from a property list.
[in] | list | A property list |
[in] | index | Index of the property to retrieve from list |
[out] | ppProperty | Pointer to a handle receiving the property object. When the property is no longer required, release the object reference using ic4_prop_unref(). |
true
on success, otherwise false
.struct IC4_PROPERTY_LIST * ic4_proplist_ref | ( | struct IC4_PROPERTY_LIST * | list | ) |
Increases the property list's internal reference count by one.
[in] | list | A property list |
list
list
is NULL
, the function returns NULL
. An error value is not set.bool ic4_proplist_size | ( | struct IC4_PROPERTY_LIST * | list, |
size_t * | size | ||
) |
Returns the number of properties in a property list.
[in] | list | A property list |
[out] | size | Pointer to a size_t to receive the number of properties in list . |
true
on success, otherwise false
.void ic4_proplist_unref | ( | struct IC4_PROPERTY_LIST * | list | ) |
Decreases the property list's internal reference count by one.
If the reference count reaches zero, the object is destroyed.
[in] | list | A property list |
list
is NULL
, the function does nothing. An error value is not set.