make private data structs unique to keep Doxygen happy

This commit is contained in:
marschap
2008-12-21 17:15:03 +00:00
parent a273c98182
commit 969e1369c0
8 changed files with 67 additions and 68 deletions
+4 -4
View File
@@ -41,10 +41,10 @@
#include "glcdlib.h" #include "glcdlib.h"
// our private data /** private data for the \c glcdlib driver */
typedef struct { typedef struct glcdlib_private_data {
GlcdDriver * glcdDriver; GlcdDriver *glcdDriver; /**< GlcdDriver handle */
char info[255]; char info[255]; /**< info string contents */
} glcdlibPD; } glcdlibPD;
+3 -2
View File
@@ -51,8 +51,9 @@
#include "icp_a106.h" #include "icp_a106.h"
#include "report.h" #include "report.h"
typedef struct
{ /** private data for the \c icp_a106 driver */
typedef struct icp_a106_private_data {
unsigned char *framebuf; unsigned char *framebuf;
unsigned char *last_framebuf; unsigned char *last_framebuf;
int width; int width;
+10 -9
View File
@@ -97,15 +97,16 @@ MODULE_EXPORT int stay_in_foreground = 0;
MODULE_EXPORT int supports_multiple = 0; MODULE_EXPORT int supports_multiple = 0;
MODULE_EXPORT char *symbol_prefix = "imon_"; MODULE_EXPORT char *symbol_prefix = "imon_";
// our private data
typedef struct { /** private data for the \c imon driver */
char info[255]; typedef struct imon_private_data {
int imon_fd; char info[255]; /**< info string contents */
unsigned char *framebuf; int imon_fd; /**< file descriptor to the display */
int height; unsigned char *framebuf; /**< fram buffer */
int width; int height; /**< display height in characters */
int cellwidth; int width; /**< display width in characters */
int cellheight; int cellwidth; /**< character cell width */
int cellheight; /**< character cell height */
} PrivateData; } PrivateData;
+10 -9
View File
@@ -52,15 +52,16 @@ typedef enum
CCMODE_BIGNUM CCMODE_BIGNUM
} CCMode; } CCMode;
typedef struct
{ /** private data for the \c lcterm driver */
CCMode ccmode; /* custom character mode for current display */ typedef struct lcterm_private_data {
CCMode last_ccmode; /* custom character set that is loaded in the display */ CCMode ccmode; /**< custom character mode for current display */
unsigned char *framebuf; CCMode last_ccmode; /**< custom character set that is loaded in the display */
unsigned char *last_framebuf; unsigned char *framebuf; /**< frame buffer */
int width; unsigned char *last_framebuf; /**< old frame buffer contents */
int height; int width; /**< display width in characters */
int fd; int height; /**< display height in characters */
int fd; /**< handle to the device */
} PrivateData; } PrivateData;
+3 -2
View File
@@ -58,8 +58,9 @@ typedef struct cgram_cache {
int clean; int clean;
} CGram; } CGram;
typedef struct {
/** private data for the \c lis driver */
typedef struct lis_private_data {
// the handle for the USB FTDI library // the handle for the USB FTDI library
struct ftdi_context ftdic; struct ftdi_context ftdic;
@@ -98,9 +99,9 @@ typedef struct {
/* underline effect (false). To avoid the underline effect in the latter case, the last */ /* underline effect (false). To avoid the underline effect in the latter case, the last */
/* line is always zeroed for whatever redefined character */ /* line is always zeroed for whatever redefined character */
char lastline; char lastline;
} PrivateData; } PrivateData;
MODULE_EXPORT int lis_init(Driver *drvthis); MODULE_EXPORT int lis_init(Driver *drvthis);
MODULE_EXPORT void lis_close (Driver *drvthis); MODULE_EXPORT void lis_close (Driver *drvthis);
MODULE_EXPORT int lis_width (Driver *drvthis); MODULE_EXPORT int lis_width (Driver *drvthis);
+3 -2
View File
@@ -53,8 +53,9 @@ typedef enum {
custom1 = 16 custom1 = 16
} custom_type; } custom_type;
typedef struct
{ /** private data for the \c pyramid driver */
typedef struct pyramid_private_data {
/* device io */ /* device io */
int FD; int FD;
char device[255]; char device[255];
+19 -16
View File
@@ -143,9 +143,9 @@ typedef enum {
/** private data for the \c serialPOS driver */
typedef struct { typedef struct serialPOS_private_data {
int fd; /* The LCD file descriptor */ int fd; /**< LCD file descriptor */
/* dimensions */ /* dimensions */
int width, height; int width, height;
@@ -162,9 +162,9 @@ typedef struct {
int hardwrap; int hardwrap;
int hardscroll; int hardscroll;
POS_EmulationType emulation_mode; /* The emulation type */ POS_EmulationType emulation_mode; /**< emulation type */
char info[255]; /* static data from serialPOS_get_info */ char info[255]; /**< static data from serialPOS_get_info */
} PrivateData; } PrivateData;
@@ -181,6 +181,7 @@ static void serialPOS_autoscroll(Driver *drvthis, int on);
static void serialPOS_cursorblink(Driver *drvthis, int on); static void serialPOS_cursorblink(Driver *drvthis, int on);
static void serialPOS_cursor_goto(Driver *drvthis, int x, int y); static void serialPOS_cursor_goto(Driver *drvthis, int x, int y);
/* Parse one key from the configfile */ /* Parse one key from the configfile */
static char static char
serialPOS_parse_keypad_setting (Driver *drvthis, char *keyname, char default_value) serialPOS_parse_keypad_setting (Driver *drvthis, char *keyname, char default_value)
@@ -204,8 +205,8 @@ serialPOS_parse_keypad_setting (Driver *drvthis, char *keyname, char default_val
/** /**
* Initialize the driver. * Initialize the driver.
* \param drvthis Pointer to driver structure. * \param drvthis Pointer to driver structure.
* \retval 0 Success. * \retval 0 Success.
* \retval <0 Error. * \retval <0 Error.
*/ */
MODULE_EXPORT int MODULE_EXPORT int
serialPOS_init (Driver *drvthis) serialPOS_init (Driver *drvthis)
@@ -403,7 +404,7 @@ serialPOS_close (Driver *drvthis)
/** /**
* Return the display width in characters. * Return the display width in characters.
* \param drvthis Pointer to driver structure. * \param drvthis Pointer to driver structure.
* \return Number of characters the display is wide. * \return Number of characters the display is wide.
*/ */
MODULE_EXPORT int MODULE_EXPORT int
serialPOS_width (Driver *drvthis) serialPOS_width (Driver *drvthis)
@@ -417,7 +418,7 @@ serialPOS_width (Driver *drvthis)
/** /**
* Return the display height in characters. * Return the display height in characters.
* \param drvthis Pointer to driver structure. * \param drvthis Pointer to driver structure.
* \return Number of characters the display is high. * \return Number of characters the display is high.
*/ */
MODULE_EXPORT int MODULE_EXPORT int
serialPOS_height (Driver *drvthis) serialPOS_height (Driver *drvthis)
@@ -428,20 +429,22 @@ serialPOS_height (Driver *drvthis)
} }
///////////////////////////////////////////////////////////////// /**
// Returns the maximum number of custom char slots (not how many * Get total number of custom characters available.
// are free at a moment), needed for bignum. * \param drvthis Pointer to driver structure.
// * \return Number of custom characters (always \c 0 ).
*/
MODULE_EXPORT int MODULE_EXPORT int
serialPOS_get_free_chars (Driver *drvthis) serialPOS_get_free_chars (Driver *drvthis)
{ {
return 0; return 0;
} }
/** /**
* Return the width of a character in pixels. * Return the width of a character in pixels.
* \param drvthis Pointer to driver structure. * \param drvthis Pointer to driver structure.
* \return Number of pixel columns a character cell is wide. * \return Number of pixel columns a character cell is wide.
*/ */
MODULE_EXPORT int MODULE_EXPORT int
serialPOS_cellwidth (Driver *drvthis) serialPOS_cellwidth (Driver *drvthis)
@@ -455,7 +458,7 @@ serialPOS_cellwidth (Driver *drvthis)
/** /**
* Return the height of a character in pixels. * Return the height of a character in pixels.
* \param drvthis Pointer to driver structure. * \param drvthis Pointer to driver structure.
* \return Number of pixel lines a character cell is high. * \return Number of pixel lines a character cell is high.
*/ */
MODULE_EXPORT int MODULE_EXPORT int
serialPOS_cellheight (Driver *drvthis) serialPOS_cellheight (Driver *drvthis)
@@ -763,7 +766,7 @@ serialPOS_cursor_goto(Driver *drvthis, int x, int y)
/** /**
* Provide general information about the POS display. * Provide general information about the POS display.
* \param drvthis Pointer to driver structure. * \param drvthis Pointer to driver structure.
* \return Constant string with information. * \return Constant string with information.
*/ */
MODULE_EXPORT const char * MODULE_EXPORT const char *
serialPOS_get_info (Driver *drvthis) serialPOS_get_info (Driver *drvthis)
+15 -24
View File
@@ -155,7 +155,7 @@ static char *default_key_map[MAX_KEY_MAP] = { "Up", "Down", "Left", "Right", "En
/* KeyRing management */ /* KeyRing management */
#define KEYRINGSIZE 16 #define KEYRINGSIZE 16
typedef struct { typedef struct ula200_keyring {
unsigned char contents[KEYRINGSIZE]; unsigned char contents[KEYRINGSIZE];
int head; int head;
int tail; int tail;
@@ -219,32 +219,23 @@ unsigned char GetKeyFromKeyRing(KeyRing *kr)
#define SETCHAR 0x40 /* Only reachable with EXTREG clear */ #define SETCHAR 0x40 /* Only reachable with EXTREG clear */
/////////////////////////////////////////////////////////////////////////////// /** private data for the \c ula200 driver */
// private data types typedef struct ula200_private_data {
// struct ftdi_context ftdic; /**< handle for the USB FTDI library */
typedef struct {
// the handle for the USB FTDI library
struct ftdi_context ftdic;
// the width and the height (in number of characters) of the library // the width and the height (in number of characters) of the library
int width, height; int width, height;
// The framebuffer and the framebuffer for the last contents (incr. update) // The framebuffer and the framebuffer for the last contents (incr. update)
unsigned char *framebuf, *lcd_contents; unsigned char *framebuf, *lcd_contents;
// first time => all is dirty unsigned char all_dirty; /**< first time => all is dirty */
unsigned char all_dirty;
// backlight (-1 = unset, 0 = off, 1 = on) int backlight; /**< backlight: -1=unset, 0=off, 1=on */
int backlight;
// the keyring KeyRing keyring; /**< input key ring */
KeyRing keyring;
// the keymap
char *key_map[MAX_KEY_MAP];
char *key_map[MAX_KEY_MAP]; /**< mapping of input keys */
} PrivateData; } PrivateData;
@@ -609,8 +600,8 @@ ula200_load_custom_chars(Driver *drvthis)
/** /**
* Initialize the driver. * Initialize the driver.
* \param drvthis Pointer to driver structure. * \param drvthis Pointer to driver structure.
* \retval 0 Success. * \retval 0 Success.
* \retval <0 Error. * \retval <0 Error.
*/ */
MODULE_EXPORT int MODULE_EXPORT int
ula200_init(Driver *drvthis) ula200_init(Driver *drvthis)
@@ -764,7 +755,7 @@ ula200_close(Driver *drvthis)
/** /**
* Return the display width in characters. * Return the display width in characters.
* \param drvthis Pointer to driver structure. * \param drvthis Pointer to driver structure.
* \return Number of characters the display is wide. * \return Number of characters the display is wide.
*/ */
MODULE_EXPORT int MODULE_EXPORT int
ula200_width (Driver *drvthis) ula200_width (Driver *drvthis)
@@ -777,7 +768,7 @@ ula200_width (Driver *drvthis)
/** /**
* Return the display height in characters. * Return the display height in characters.
* \param drvthis Pointer to driver structure. * \param drvthis Pointer to driver structure.
* \return Number of characters the display is high. * \return Number of characters the display is high.
*/ */
MODULE_EXPORT int MODULE_EXPORT int
ula200_height (Driver *drvthis) ula200_height (Driver *drvthis)