]> Dogcows Code - chaz/tint2/blobdiff - src/battery/battery.h
patch for FULL battery by peter.ebden
[chaz/tint2] / src / battery / battery.h
index f6d227ab0a03cec3b5819e6ec2f36e281066befd..c0b4c4f8f80bffa8215a0ce923917b481db0421e 100644 (file)
 #include "common.h"
 #include "area.h"
 
+
 typedef struct Battery {
-   // always start with area
-   Area area;
+       // always start with area
+       Area area;
 
-   config_color font;
-   int bat1_posy;
-   int bat2_posy;
+       config_color font;
+       int bat1_posy;
+       int bat2_posy;
 } Battery;
 
 enum chargestate {
        BATTERY_UNKNOWN,
        BATTERY_CHARGING,
-       BATTERY_DISCHARGING
+       BATTERY_DISCHARGING,
+       BATTERY_FULL
 };
 
 typedef struct battime {
@@ -54,9 +56,10 @@ extern char *path_energy_now, *path_energy_full, *path_current_now, *path_status
 
 
 // initialize clock : y position, ...
-void update_battery(struct batstate *data);
+void update_battery();
 
 void init_battery();
+void init_battery_panel(void *panel);
 
 void draw_battery(void *obj, cairo_t *c, int active);
 
This page took 0.022743 seconds and 4 git commands to generate.