summaryrefslogtreecommitdiff
path: root/source/com_public.h
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-02-28 12:09:10 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-02-28 12:09:10 +0000
commitbf6d45c620f098c84d602e9347bc7cf457c38b5a (patch)
treeec075676ff09467ea910c51fb45fb37185a1ddf3 /source/com_public.h
parent4034314816f7ec9e26c9b9bfc2630c8ca0a24874 (diff)
Do not spam dedicated server console with heartbeats.
Added autocompletion of options for some commands. Made logfile_prefix not empty by default. Re-enabled `anti-kick' exploit fix.
Diffstat (limited to 'source/com_public.h')
-rw-r--r--source/com_public.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/com_public.h b/source/com_public.h
index ffec357..2a9b4f7 100644
--- a/source/com_public.h
+++ b/source/com_public.h
@@ -39,13 +39,12 @@ typedef enum cbufExecWhen_e {
typedef void ( *xcommand_t )( void );
typedef int ( *xmacro_t )( char *, int );
+typedef const char *( *xcompleter_t )( const char *, int, int );
typedef struct cmdreg_s {
const char *name;
xcommand_t function;
- xgenerator_t generator1;
- xgenerator_t generator2;
- xgenerator_t generator3;
+ xcompleter_t completer;
} cmdreg_t;
typedef struct cmdAPI_s {
@@ -62,7 +61,6 @@ typedef struct cmdAPI_s {
void (*RemoveCommand)( const char *cmd_name );
xcommand_t (*FindFunction)( const char *name );
xmacro_t (*FindMacroFunction)( const char *name );
- xgenerator_t (*FindGenerator)( const char *name, int index );
} cmdAPI_t;
extern cmdAPI_t cmd;