diff options
author | Sebastian Dransfeld <sd@tango.flipp.net> | 2010-08-30 19:57:36 +0000 |
---|---|---|
committer | Sebastian Dransfeld <sd@tango.flipp.net> | 2010-08-30 19:57:36 +0000 |
commit | d1b854b9c1f96b9eeb4764fb1c5cd72d698f4294 (patch) | |
tree | 12ec7b8b422c90e218a5b436da76ada2958e8512 /src/modules/battery/e_mod_main.h | |
parent | 6ad79e964fd16fbca1e6722074dc2b37d48f3db6 (diff) | |
download | enlightenment-d1b854b9c1f96b9eeb4764fb1c5cd72d698f4294.tar.gz |
cleanup battery module
- Only open one connection to dbus (e_dbus_bus_get) and then close it on
shutdown.
- Fix autodetection of backend.
SVN revision: 51764
Diffstat (limited to 'src/modules/battery/e_mod_main.h')
-rw-r--r-- | src/modules/battery/e_mod_main.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/battery/e_mod_main.h b/src/modules/battery/e_mod_main.h index 8e8d5067f5..a934ac6135 100644 --- a/src/modules/battery/e_mod_main.h +++ b/src/modules/battery/e_mod_main.h @@ -37,7 +37,6 @@ struct _Config int time_full; int have_battery; int have_power; - int have_subsystem; #ifdef HAVE_EEZE Eeze_Udev_Watch *acwatch; Eeze_Udev_Watch *batwatch; @@ -110,12 +109,12 @@ Ac_Adapter *_battery_ac_adapter_find(const char *udi); void _battery_device_update(void); #ifdef HAVE_EEZE /* in e_mod_udev.c */ -void _battery_udev_start(void); +int _battery_udev_start(void); void _battery_udev_stop(void); /* end e_mod_udev.c */ #else /* in e_mod_dbus.c */ -void _battery_dbus_start(void); +int _battery_dbus_start(void); void _battery_dbus_stop(void); /* end e_mod_dbus.c */ #endif |