2021-05-16 04:12:19 -07:00
|
|
|
#include "next/machine.h"
|
|
|
|
|
|
|
|
static Eina_List *cores = NULL;
|
|
|
|
static Eina_List *batteries = NULL;
|
|
|
|
static Eina_List *sensors = NULL;
|
|
|
|
static Eina_List *network_interfaces = NULL;
|
|
|
|
|
|
|
|
int
|
|
|
|
main(int argc, char **argv)
|
|
|
|
{
|
2021-05-16 09:39:04 -07:00
|
|
|
Eina_List *l;
|
|
|
|
Battery *bat;
|
2021-05-16 04:12:19 -07:00
|
|
|
|
2021-05-16 09:39:04 -07:00
|
|
|
ecore_init();
|
2021-05-16 04:12:19 -07:00
|
|
|
|
2021-05-16 09:39:04 -07:00
|
|
|
batteries = batteries_find();
|
|
|
|
EINA_LIST_FOREACH(batteries, l, bat)
|
|
|
|
{
|
|
|
|
battery_check(bat);
|
|
|
|
printf("battery %s (%s) => %1.2f\n", bat->name, bat->vendor, bat->percent);
|
|
|
|
}
|
|
|
|
EINA_LIST_FREE(batteries, bat)
|
|
|
|
battery_free(bat);
|
2021-05-16 04:12:19 -07:00
|
|
|
|
|
|
|
ecore_shutdown();
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|