summaryrefslogtreecommitdiff
path: root/src/console.h
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-02-23 11:50:43 +0000
committerbelugas <belugas@openttd.org>2007-02-23 11:50:43 +0000
commit4160d85cd2571604c615500124ba8077fc26bfd2 (patch)
tree28f27070bd508fef07617bf83c63d2a16a0ccc95 /src/console.h
parentb3efec2e7d6ca583b3477ef3407844093a216a38 (diff)
downloadopenttd-4160d85cd2571604c615500124ba8077fc26bfd2.tar.xz
(svn r8859) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
Diffstat (limited to 'src/console.h')
-rw-r--r--src/console.h50
1 files changed, 26 insertions, 24 deletions
diff --git a/src/console.h b/src/console.h
index ef8063bc8..da672a5b5 100644
--- a/src/console.h
+++ b/src/console.h
@@ -1,11 +1,13 @@
/* $Id$ */
+/** @file console.h */
+
#ifndef CONSOLE_H
#define CONSOLE_H
-// maximum length of a typed in command
+/* maximum length of a typed in command */
#define ICON_CMDLN_SIZE 255
-// maximum length of a totally expanded command
+/* maximum length of a totally expanded command */
#define ICON_MAX_STREAMSIZE 1024
typedef enum IConsoleVarTypes {
@@ -37,9 +39,9 @@ typedef enum IConsoleHookTypes {
*/
typedef bool IConsoleHook(void);
typedef struct IConsoleHooks{
- IConsoleHook *access; // trigger when accessing the variable/command
- IConsoleHook *pre; // trigger before the variable/command is changed/executed
- IConsoleHook *post; // trigger after the variable/command is changed/executed
+ IConsoleHook *access; ///< trigger when accessing the variable/command
+ IConsoleHook *pre; ///< trigger before the variable/command is changed/executed
+ IConsoleHook *post; ///< trigger after the variable/command is changed/executed
} IConsoleHooks;
/** --Commands--
@@ -53,11 +55,11 @@ typedef bool (IConsoleCmdProc)(byte argc, char *argv[]);
struct IConsoleCmd;
typedef struct IConsoleCmd {
- char *name; // name of command
- struct IConsoleCmd *next; // next command in list
+ char *name; ///< name of command
+ struct IConsoleCmd *next; ///< next command in list
- IConsoleCmdProc *proc; // process executed when command is typed
- IConsoleHooks hook; // any special trigger action that needs executing
+ IConsoleCmdProc *proc; ///< process executed when command is typed
+ IConsoleHooks hook; ///< any special trigger action that needs executing
} IConsoleCmd;
/** --Variables--
@@ -71,15 +73,15 @@ typedef struct IConsoleCmd {
*/
struct IConsoleVar;
typedef struct IConsoleVar {
- char *name; // name of the variable
- struct IConsoleVar *next; // next variable in list
-
- void *addr; // the address where the variable is pointing at
- uint32 size; // size of the variable, used for strings
- char *help; // the optional help string shown when requesting information
- IConsoleVarTypes type; // type of variable (for correct assignment/output)
- IConsoleCmdProc *proc; // some variables need really special handling, use a callback function for that
- IConsoleHooks hook; // any special trigger action that needs executing
+ char *name; ///< name of the variable
+ struct IConsoleVar *next; ///< next variable in list
+
+ void *addr; ///< the address where the variable is pointing at
+ uint32 size; ///< size of the variable, used for strings
+ char *help; ///< the optional help string shown when requesting information
+ IConsoleVarTypes type; ///< type of variable (for correct assignment/output)
+ IConsoleCmdProc *proc; ///< some variables need really special handling, use a callback function for that
+ IConsoleHooks hook; ///< any special trigger action that needs executing
} IConsoleVar;
/** --Aliases--
@@ -95,16 +97,16 @@ typedef struct IConsoleVar {
*/
struct IConsoleAlias;
typedef struct IConsoleAlias {
- char *name; // name of the alias
- struct IConsoleAlias *next; // next alias in list
+ char *name; ///< name of the alias
+ struct IConsoleAlias *next; ///< next alias in list
- char *cmdline; // command(s) that is/are being aliased
+ char *cmdline; ///< command(s) that is/are being aliased
} IConsoleAlias;
/* console parser */
-VARDEF IConsoleCmd *_iconsole_cmds; // list of registred commands
-VARDEF IConsoleVar *_iconsole_vars; // list of registred vars
-VARDEF IConsoleAlias *_iconsole_aliases; // list of registred aliases
+VARDEF IConsoleCmd *_iconsole_cmds; ///< list of registred commands
+VARDEF IConsoleVar *_iconsole_vars; ///< list of registred vars
+VARDEF IConsoleAlias *_iconsole_aliases; ///< list of registred aliases
/* console colors/modes */
VARDEF byte _icolour_def;