battery_info_get_version()

Retrieve the Battery API version.

Synopsis:

#include <bps/battery.h>
 
BPS_API int battery_info_get_version(battery_info_t *info)

Since:

BlackBerry 10.0.0

Arguments:

info

The battery_info_t structure to retrieve the API version from.

Library:

libbps (For the qcc command, use the -l bps option to link against this library)

Description:

The battery_info_get_version() function retrieves the version from a battery_info_t structure.

Returns:

The version or BPS_FAILURE on error.