3 * This file is part of LCDd, the lcdproc server.
5 * This file is released under the GNU General Public License. Refer to the
6 * COPYING file distributed with this package.
8 * Copyright (c) 2001, Joris Robijn
15 #include "drivers/lcd.h"
16 #include "shared/LL.h"
18 typedef struct DisplayProps
{
20 int cellwidth
, cellheight
;
23 extern DisplayProps
*display_props
;
33 drivers_load_driver(const char *name
);
36 drivers_unload_all(void);
39 drivers_get_info(void);
48 drivers_string(int x
, int y
, const char *string
);
51 drivers_chr(int x
, int y
, char c
);
54 drivers_vbar(int x
, int y
, int len
, int promille
, int pattern
);
57 drivers_hbar(int x
, int y
, int len
, int promille
, int pattern
);
60 drivers_num(int x
, int num
);
63 drivers_heartbeat(int state
);
66 drivers_icon(int x
, int y
, int icon
);
69 drivers_set_char(char ch
, char *dat
);
72 drivers_get_contrast(void);
75 drivers_set_contrast(int contrast
);
78 drivers_cursor(int x
, int y
, int state
);
81 drivers_backlight(int brightness
);
84 drivers_output(int state
);
87 drivers_get_key(void);
90 /* Please don't read this list except using the following functions */
91 extern LinkedList
*loaded_drivers
;
93 static inline Driver
*drivers_getfirst(void)
95 return LL_GetFirst(loaded_drivers
);
98 static inline Driver
*drivers_getnext(void)
100 return LL_GetNext(loaded_drivers
);