forked from enlightenment/evisum
Changes: Stylistic and fix one API call.
This commit is contained in:
parent
12ae98cab7
commit
6968d4274e
1
NEWS
1
NEWS
|
@ -10,6 +10,7 @@ Evisum 0.2.6
|
||||||
* Fix some memory leaks.
|
* Fix some memory leaks.
|
||||||
* Battery names (where applicable).
|
* Battery names (where applicable).
|
||||||
* Various small tidying.
|
* Various small tidying.
|
||||||
|
* Use Eina helpers where applicable.
|
||||||
|
|
||||||
============
|
============
|
||||||
Evisum 0.2.4
|
Evisum 0.2.4
|
||||||
|
|
|
@ -1155,7 +1155,8 @@ system_temperature_cpu_get(void)
|
||||||
void
|
void
|
||||||
system_power_state_get(power_t *power)
|
system_power_state_get(power_t *power)
|
||||||
{
|
{
|
||||||
_power_state_get(power);
|
if (_power_battery_count_get(power))
|
||||||
|
_power_state_get(power);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
|
12
src/system.h
12
src/system.h
|
@ -25,21 +25,21 @@ typedef struct
|
||||||
#define MAX_BATTERIES 10
|
#define MAX_BATTERIES 10
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
double charge_full;
|
double charge_full;
|
||||||
double charge_current;
|
double charge_current;
|
||||||
uint8_t percent;
|
uint8_t percent;
|
||||||
} bat_t;
|
} bat_t;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
bool have_ac;
|
bool have_ac;
|
||||||
int battery_count;
|
int battery_count;
|
||||||
|
|
||||||
bat_t **batteries;
|
bat_t **batteries;
|
||||||
|
|
||||||
char *battery_names[MAX_BATTERIES];
|
char *battery_names[MAX_BATTERIES];
|
||||||
int *bat_mibs[MAX_BATTERIES];
|
int *bat_mibs[MAX_BATTERIES];
|
||||||
int ac_mibs[5];
|
int ac_mibs[5];
|
||||||
} power_t;
|
} power_t;
|
||||||
|
|
||||||
typedef struct results_t results_t;
|
typedef struct results_t results_t;
|
||||||
|
|
Loading…
Reference in New Issue