aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--USBLCD.c7
-rw-r--r--bar.c11
-rw-r--r--bar.h7
3 files changed, 17 insertions, 8 deletions
diff --git a/USBLCD.c b/USBLCD.c
index 85c05db..2e1bf62 100644
--- a/USBLCD.c
+++ b/USBLCD.c
@@ -1,4 +1,4 @@
-/* $Id: USBLCD.c,v 1.5 2002/08/19 07:36:29 reinelt Exp $
+/* $Id: USBLCD.c,v 1.6 2002/08/19 07:52:19 reinelt Exp $
*
* Driver for USBLCD ( see http://www.usblcd.de )
* This Driver is based on HD44780.c
@@ -22,6 +22,9 @@
*
*
* $Log: USBLCD.c,v $
+ * Revision 1.6 2002/08/19 07:52:19 reinelt
+ * corrected type declaration of (*defchar)()
+ *
* Revision 1.5 2002/08/19 07:36:29 reinelt
*
* finished bar.c, USBLCD is the first driver that uses the generic bar functions
@@ -172,7 +175,7 @@ static int USBLCD_open (void)
return 0;
}
-static void USBLCD_define_char (int ascii, char *buffer)
+void USBLCD_define_char (int ascii, char *buffer)
{
USBLCD_command (0x40|8*ascii);
USBLCD_write (buffer, 8);
diff --git a/bar.c b/bar.c
index e48ae4d..837eee1 100644
--- a/bar.c
+++ b/bar.c
@@ -1,4 +1,4 @@
-/* $Id: bar.c,v 1.2 2002/08/19 07:36:29 reinelt Exp $
+/* $Id: bar.c,v 1.3 2002/08/19 07:52:19 reinelt Exp $
*
* generic bar handling
*
@@ -20,6 +20,9 @@
*
*
* $Log: bar.c,v $
+ * Revision 1.3 2002/08/19 07:52:19 reinelt
+ * corrected type declaration of (*defchar)()
+ *
* Revision 1.2 2002/08/19 07:36:29 reinelt
*
* finished bar.c, USBLCD is the first driver that uses the generic bar functions
@@ -41,7 +44,7 @@
*
* int bar_draw (int type, int row, int col, int max, int len1, int len2)
*
- * int bar_process (void)
+ * int bar_process (void(*defchar)(int ascii, char *matrix))
*
* int bar_peek (int row, int col)
*
@@ -311,7 +314,7 @@ static void pack_segments (void)
}
-static void define_chars (int(*defchar)(int ascii, char *matrix))
+static void define_chars (void(*defchar)(int ascii, char *matrix))
{
int c, i, j;
char buffer[8];
@@ -373,7 +376,7 @@ static void define_chars (int(*defchar)(int ascii, char *matrix))
}
-int bar_process (int(*defchar)(int ascii, char *matrix))
+int bar_process (void(*defchar)(int ascii, char *matrix))
{
int n, s;
diff --git a/bar.h b/bar.h
index 2864cc7..f8e4505 100644
--- a/bar.h
+++ b/bar.h
@@ -1,4 +1,4 @@
-/* $Id: bar.h,v 1.2 2002/08/19 07:36:29 reinelt Exp $
+/* $Id: bar.h,v 1.3 2002/08/19 07:52:19 reinelt Exp $
*
* generic bar handling
*
@@ -20,6 +20,9 @@
*
*
* $Log: bar.h,v $
+ * Revision 1.3 2002/08/19 07:52:19 reinelt
+ * corrected type declaration of (*defchar)()
+ *
* Revision 1.2 2002/08/19 07:36:29 reinelt
*
* finished bar.c, USBLCD is the first driver that uses the generic bar functions
@@ -67,7 +70,7 @@ int bar_init (int rows, int cols, int xres, int yres, int chars);
void bar_clear(void);
void bar_add_segment(int len1, int len2, int type, int ascii);
int bar_draw (int type, int row, int col, int max, int len1, int len2);
-int bar_process (int(*defchar)(int ascii, char *matrix));
+int bar_process (void(*defchar)(int ascii, char *matrix));
int bar_peek (int row, int col);
#endif
>1-1/+1 Thanks to Clint Byrum <clint@ubuntu.com> for the patch. 2011-08-31Import upstream version 0.11.0~svn1159Jonathan McCrohan4-5/+5 2011-08-30update debian/changelogReinhard Tartler1-1/+4 2011-08-28* New upstream snapshotJonathan McCrohan2-4/+11 * Make lcd4linux linux specific (requested by kFreeBSD team) * Add optional build targets build-indep and build-dep (thanks to lintian for catching this) 2011-08-26Import upstream version 0.11.0~svn1158Reinhard Tartler34-1743/+4490 2011-08-20normalize with wrap-and-sort(1)Reinhard Tartler2-17/+20 2011-08-20Make lcd4linux linux specificReinhard Tartler1-2/+1 on request of freebsd porters: http://permalink.gmane.org/gmane.linux.debian.devel.general/164670 2011-04-29add sqlite3-dev to build dependssiretart@tauware.de2-2/+4 2011-04-29mention new co-maintainersiretart@tauware.de1-0/+1 2011-04-29add libdbus-1-dev to build dependssiretart@tauware.de2-1/+3 2011-04-29normalize fields with wrap-and-sort(1)siretart@tauware.de2-18/+20 2011-04-29fix order of calling dh_autoreconf_cleansiretart@tauware.de1-1/+1 avoids leftover debhelper log file 2011-04-29Add Uploader details to Debian PackageJonathan McCrohan1-0/+1 2011-04-27Bug fix: "script lcd4linux/init.d/lcd4linux missing dependency onReinhard Tartler2-1/+5 $syslog", thanks to Petter Reinholdtsen (Closes: #582825). 2011-04-27No longer build the mpd module. Closes: #578226Reinhard Tartler1-0/+1 2011-04-27No longer compile against Python. Python 2.6 now links against libssl,Reinhard Tartler2-2/+3 which is in conflicts with the package license GPL.