Scroll to navigation

lsm_battery_type_get(3) Libstoragemgmt C API Manual lsm_battery_type_get(3)

NAME

lsm_battery_type_get - Retrieves the type for the battery.

SYNOPSIS

lsm_battery_type lsm_battery_type_get (lsm_battery *b);

ARGUMENTS

Battery to retrieve type for.

VERSION

1.3

DESCRIPTION

Retrieves the type for the battery.

RETURN

lsm_battery_type. Possible values are:
* LSM_BATTERY_TYPE_UNKNOWN
Unknown or no support or invalid lsm_battery pointer.
* LSM_BATTERY_TYPE_OTHER
Vendor specific type.
* LSM_BATTERY_TYPE_CAPACITOR
Super capacitor.
* LSM_BATTERY_TYPE_CHEMICAL
Chemical battery, e.g. Li-ion battery.

lsm_battery_type_get April 2023