keep structure declarations confined to the file where they are used

This commit is contained in:
marschap
2008-12-21 13:01:33 +00:00
parent 065fb021fe
commit b284a94751
2 changed files with 14 additions and 13 deletions
+14
View File
@@ -36,6 +36,20 @@
#include "irman.h"
/** mapping between IrMan code names and LCDd key names */
typedef struct _codemap {
const char *irman; /**< IrMan code name */
const char *lcdproc; /**< LCDproc key name */
} CodeMap;
/** private data for the \c irman driver */
typedef struct irmanin_private_data {
char device[256]; /**< IrMan device name */
char config[256]; /**< IrMan config file */
char *portname; /**< IrMan port name */
} PrivateData;
CodeMap codemap[] = {
{ "", "" }, /* dummy: ir_register_command() needs offset > 0 */
{ "lcdproc-Up", "Up" },
-13
View File
@@ -1,19 +1,6 @@
#ifndef LCD_IRMANIN__H
#define LCD_IRMANIN_H
/** mapping between IrMan code names and LCDd key names */
typedef struct _codemap {
const char *irman; /**< IrMan code name */
const char *lcdproc; /**< LCDpüroc key name */
} CodeMap;
/** private data for the \c irman driver */
typedef struct irmanin_private_data {
char device[256]; /**< IrMan device name */
char config[256]; /**< IrMan config file */
char *portname; /**< IrMan port name */
} PrivateData;
MODULE_EXPORT int irmanin_init (Driver *drvthis);
MODULE_EXPORT void irmanin_close (Driver *drvthis);
MODULE_EXPORT const char *irmanin_get_key (Driver *drvthis);