added patch from Lucian Muresan to make irman driver compile again

(note: nobody said it works ;-)
This commit is contained in:
marschap
2005-05-26 19:49:01 +00:00
parent 6dd702cd70
commit f562bb6c57
2 changed files with 8 additions and 14 deletions
+6 -10
View File
@@ -25,7 +25,7 @@
#include "lcd.h"
#include "irmanin.h"
#include "report.h"
#include "../../../libirman-0.4.1b/irman.h"
#include "irman.h"
char *progname = "irmanin";
@@ -64,7 +64,6 @@ char *codes[] = {
////////////////////// Base "class" to derive from ///////////////////////
//////////////////////////////////////////////////////////////////////////
lcd_logical_driver *irmanin;
//void sigterm(int sig)
//{
@@ -92,8 +91,6 @@ irmanin_init (Driver *drvthis, char *args)
ptrconfig = NULL;
ptrdevice = NULL;
irmanin = drvthis;
/* Read config file */
/* What device should be used */
@@ -148,12 +145,11 @@ irmanin_init (Driver *drvthis, char *args)
}
void
irmanin_close ()
irmanin_close (Driver *drvthis)
{
if (irmanin->framebuf != NULL)
free (irmanin->framebuf);
irmanin->framebuf = NULL;
//if (drvthis->framebuf != NULL)
// free (drvthis->framebuf);
//drvthis->framebuf = NULL;
ir_free_commands ();
ir_finish ();
@@ -165,7 +161,7 @@ irmanin_close ()
// Return 0 for "nothing available".
//
char
irmanin_getkey ()
irmanin_getkey (Driver *drvthis)
{
int i;
int cmd;
+2 -4
View File
@@ -1,10 +1,8 @@
#ifndef LCD_IRMANIN__H
#define LCD_IRMANIN_H
extern lcd_logical_driver *joy;
MODULE_EXPORT int irmanin_init (Driver *drvthis, char *args);
MODULE_EXPORT void irmanin_close ();
MODULE_EXPORT char irmanin_getkey ();
MODULE_EXPORT void irmanin_close (Driver *drvthis);
MODULE_EXPORT char irmanin_getkey (Driver *drvthis);
#endif