#include "drv_generic.h"
#include "widget.h"
+#include "widget_bar.h"
extern int CHARS, CHAR0; /* number of user-defineable characters, ASCII of first char */
extern int ICONS; /* number of user-defineable characters reserved for icons */
#define I2C_RDRW_IOCTL_MAX_MSGS 42
+#include <stdlib.h>
#include <sys/ioctl.h>
static inline __s32 i2c_smbus_access(int file, char read_write, __u8 command, int size, union i2c_smbus_data *data)
#ifndef _TIMER_H_
#define _TIMER_H_
+#include <time.h>
int timer_add(void (*callback) (void *data), void *data, const int interval, const int one_shot);
#define _WIDGET_BAR_H_
#include "property.h"
+#include "widget.h"
+#include "rgb.h"
typedef enum { DIR_EAST = 1, DIR_WEST = 2, DIR_NORTH = 4, DIR_SOUTH = 8 } DIRECTION;
typedef enum { STYLE_HOLLOW = 1, STYLE_FIRST = 2, STYLE_LAST = 4 } STYLE;
#define _WIDGET_GPO_H_
#include "property.h"
+#include "widget.h"
typedef struct WIDGET_GPO {
PROPERTY expression; /* main GPO expression */
#define _WIDGET_ICON_H_
#include "property.h"
+#include "widget.h"
typedef struct WIDGET_ICON {
PROPERTY speed; /* update interval (msec) */
#define _WIDGET_IMAGE_H_
#include "property.h"
+#include "widget.h"
#include "rgb.h"
typedef struct WIDGET_IMAGE {
#define _WIDGET_KEYPAD_H_
#include "property.h"
+#include "widget.h"
typedef enum {
WIDGET_KEY_UP = 1,
#define _WIDGET_TEXT_H_
#include "property.h"
+#include "widget.h"
typedef enum { ALIGN_LEFT, ALIGN_CENTER, ALIGN_RIGHT, ALIGN_MARQUEE, ALIGN_AUTOMATIC, ALIGN_PINGPONG_LEFT,
ALIGN_PINGPONG_CENTER, ALIGN_PINGPONG_RIGHT
#define _WIDGET_TIMER_H_
#include "property.h"
+#include "widget.h"
typedef struct WIDGET_TIMER {
PROPERTY expression; /* main timer expression */