1lsm_battery_id_get(3) Libstoragemgmt C API Manual lsm_battery_id_get(3)
2
3
4
6 lsm_battery_id_get - Retrieves the ID for the battery.
7
9 const char * lsm_battery_id_get (lsm_battery *b);
10
12 b Battery to retrieve ID for.
13
15 1.3
16
18 Retrieves the ID for the battery.
19
21 Address returned is valid until lsm_battery gets freed, copy return
22 value if you need longer scope. Do not free returned string.
23
25 string. NULL if argument 'b' is NULL or not a valid lsm_battery
26 pointer.
27
28
29
30May 2021 lsm_battery_id_get lsm_battery_id_get(3)