-
Developer Guides Overview
-
Application Framework Bindings
-
Application Framework Bindings C
- Using the data
- How to write a binding version 4
- Developping bindings on a desktop
- Bindings Version 4 References
- How to write a binding version 3
- Migration from v3 to v4 guide
- Bindings Version 3 References
-
Application Framework
-
Binder's client tool
-
Using the CMAKE Applications Module
-
Controller Guides
-
AFB Helper Guide
-
Monitoring
Functions of class afb_data_array
Function afb_data_array_addref
/**
* Increase the count of references of the array 'array'
* that has 'count' data.
*
* @param count the count of data in the array
* @param array the array of data
*/
void
afb_data_array_addref(
unsigned count,
afb_data_t const *array
);
Function afb_data_array_unref
/**
* Decrease the count of references of the array 'array'
* that has 'count' data.
*
* Call this function when the data is no more used.
* It destroys the data when the reference count falls to zero.
*
* @param count the count of data in the array
* @param array the array of data
*/
void
afb_data_array_unref(
unsigned count,
afb_data_t const *array
);
Function afb_data_array_convert
/**
* Get a new instances of items of 'array_data' converted to the
* corresponding types of 'array_type'
*
* If a data are returned (no error case), they MUST be released
* using afb_data_unref.
*
* @param count count of items in the arrays
* @param array_data array of original data
* @param array_type array of expected types
* @param array_result array for storing result of conversions
*
* @return 0 in case of success or a negative value indication the error.
*/
int
afb_data_array_convert(
unsigned count,
afb_data_t const * array_data,
afb_type_t const * array_type,
afb_data_t *array_result
);