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 "lcd.h"
|
||||||
#include "irmanin.h"
|
#include "irmanin.h"
|
||||||
#include "report.h"
|
#include "report.h"
|
||||||
#include "../../../libirman-0.4.1b/irman.h"
|
#include "irman.h"
|
||||||
|
|
||||||
char *progname = "irmanin";
|
char *progname = "irmanin";
|
||||||
|
|
||||||
@@ -64,7 +64,6 @@ char *codes[] = {
|
|||||||
////////////////////// Base "class" to derive from ///////////////////////
|
////////////////////// Base "class" to derive from ///////////////////////
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
lcd_logical_driver *irmanin;
|
|
||||||
|
|
||||||
//void sigterm(int sig)
|
//void sigterm(int sig)
|
||||||
//{
|
//{
|
||||||
@@ -92,8 +91,6 @@ irmanin_init (Driver *drvthis, char *args)
|
|||||||
ptrconfig = NULL;
|
ptrconfig = NULL;
|
||||||
ptrdevice = NULL;
|
ptrdevice = NULL;
|
||||||
|
|
||||||
irmanin = drvthis;
|
|
||||||
|
|
||||||
/* Read config file */
|
/* Read config file */
|
||||||
|
|
||||||
/* What device should be used */
|
/* What device should be used */
|
||||||
@@ -148,12 +145,11 @@ irmanin_init (Driver *drvthis, char *args)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
irmanin_close ()
|
irmanin_close (Driver *drvthis)
|
||||||
{
|
{
|
||||||
if (irmanin->framebuf != NULL)
|
//if (drvthis->framebuf != NULL)
|
||||||
free (irmanin->framebuf);
|
// free (drvthis->framebuf);
|
||||||
|
//drvthis->framebuf = NULL;
|
||||||
irmanin->framebuf = NULL;
|
|
||||||
|
|
||||||
ir_free_commands ();
|
ir_free_commands ();
|
||||||
ir_finish ();
|
ir_finish ();
|
||||||
@@ -165,7 +161,7 @@ irmanin_close ()
|
|||||||
// Return 0 for "nothing available".
|
// Return 0 for "nothing available".
|
||||||
//
|
//
|
||||||
char
|
char
|
||||||
irmanin_getkey ()
|
irmanin_getkey (Driver *drvthis)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int cmd;
|
int cmd;
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
#ifndef LCD_IRMANIN__H
|
#ifndef LCD_IRMANIN__H
|
||||||
#define LCD_IRMANIN_H
|
#define LCD_IRMANIN_H
|
||||||
|
|
||||||
extern lcd_logical_driver *joy;
|
|
||||||
|
|
||||||
MODULE_EXPORT int irmanin_init (Driver *drvthis, char *args);
|
MODULE_EXPORT int irmanin_init (Driver *drvthis, char *args);
|
||||||
MODULE_EXPORT void irmanin_close ();
|
MODULE_EXPORT void irmanin_close (Driver *drvthis);
|
||||||
MODULE_EXPORT char irmanin_getkey ();
|
MODULE_EXPORT char irmanin_getkey (Driver *drvthis);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user