added patch from Lucian Muresan to make irman driver compile again
(note: nobody said it works ;-)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user