aboutsummaryrefslogtreecommitdiffstats
path: root/display.h
diff options
context:
space:
mode:
authorreinelt <>2000-03-26 18:46:28 +0000
committerreinelt <>2000-03-26 18:46:28 +0000
commit429036b6886e31a8d20024f73a203e1d4c3e2f65 (patch)
treed97b388f449ae839224b891f069eb7ca98957b0b /display.h
parent5b3b7e2609d010298a345eed91255c880b3f9e0f (diff)
downloadlcd4linux-429036b6886e31a8d20024f73a203e1d4c3e2f65.tar.gz
[lcd4linux @ 2000-03-26 18:46:28 by reinelt]
bug in pixmap.c that leaded to empty bars fixed name conflicts with X11 resolved
Diffstat (limited to 'display.h')
-rw-r--r--display.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/display.h b/display.h
index f519467..24184f9 100644
--- a/display.h
+++ b/display.h
@@ -1,4 +1,4 @@
-/* $Id: display.h,v 1.9 2000/03/25 05:50:43 reinelt Exp $
+/* $Id: display.h,v 1.10 2000/03/26 18:46:28 reinelt Exp $
*
* framework for device drivers
*
@@ -20,6 +20,11 @@
*
*
* $Log: display.h,v $
+ * Revision 1.10 2000/03/26 18:46:28 reinelt
+ *
+ * bug in pixmap.c that leaded to empty bars fixed
+ * name conflicts with X11 resolved
+ *
* Revision 1.9 2000/03/25 05:50:43 reinelt
*
* memory leak in Raster_flush closed
@@ -73,27 +78,27 @@
#define BAR_V (BAR_U | BAR_D)
#define BAR_HV (BAR_H | BAR_V)
-typedef struct DISPLAY {
+typedef struct LCD {
char *name;
int rows;
int cols;
int xres;
int yres;
int bars;
- int (*init) (struct DISPLAY *Self);
+ int (*init) (struct LCD *Self);
int (*clear) (void);
int (*put) (int x, int y, char *text);
int (*bar) (int type, int x, int y, int max, int len1, int len2);
int (*flush) (void);
-} DISPLAY;
+} LCD;
typedef struct {
char *name;
- DISPLAY *Display;
+ LCD *Model;
} FAMILY;
int lcd_list (void);
-int lcd_init (char *display);
+int lcd_init (char *driver);
int lcd_query (int *rows, int *cols, int *xres, int *yres, int *bars);
int lcd_clear (void);
int lcd_put (int row, int col, char *text);