QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Command management.

Data Structures

struct  cmd_function_s
 

Typedefs

typedef struct cmd_function_s cmd_function_t
 
typedef void(* xcommand_t )(void)
 

Enumerations

enum  cmd_source_t { src_client, src_command }
 

Functions

int Cmd_AddCommand (const char *cmd_name, xcommand_t function, const char *description)
 
void Cmd_AddProvider (const char *name, struct cbuf_interpreter_s *interp)
 
int Cmd_Argc (void)
 
const char * Cmd_Args (int start)
 
const char * Cmd_Argv (int arg)
 
int Cmd_Command (struct cbuf_args_s *args)
 
const char ** Cmd_CompleteBuildList (const char *partial)
 
const char * Cmd_CompleteCommand (const char *partial)
 
int Cmd_CompleteCountPossible (const char *partial)
 
void Cmd_Exec_File (struct cbuf_s *cbuf, const char *path, int qfs)
 
int Cmd_ExecuteString (const char *text, cmd_source_t src)
 
qboolean Cmd_Exists (const char *cmd_name)
 
struct cbuf_interpreter_sCmd_GetProvider (const char *name)
 
void Cmd_Init (void)
 
void Cmd_Init_Hash (void)
 
int Cmd_RemoveCommand (const char *cmd_name)
 
void Cmd_StuffCmds (struct cbuf_s *cbuf)
 

Variables

struct cbuf_args_scmd_args
 
cmd_source_t cmd_source
 
struct cvar_scmd_warncmd
 

Detailed Description

Typedef Documentation

typedef void(* xcommand_t)(void)

Enumeration Type Documentation

Enumerator
src_client 
src_command 

Function Documentation

int Cmd_AddCommand ( const char *  cmd_name,
xcommand_t  function,
const char *  description 
)
void Cmd_AddProvider ( const char *  name,
struct cbuf_interpreter_s interp 
)
int Cmd_Argc ( void  )
const char* Cmd_Args ( int  start)
const char* Cmd_Argv ( int  arg)
int Cmd_Command ( struct cbuf_args_s args)
const char** Cmd_CompleteBuildList ( const char *  partial)
const char* Cmd_CompleteCommand ( const char *  partial)
int Cmd_CompleteCountPossible ( const char *  partial)
void Cmd_Exec_File ( struct cbuf_s cbuf,
const char *  path,
int  qfs 
)
int Cmd_ExecuteString ( const char *  text,
cmd_source_t  src 
)
qboolean Cmd_Exists ( const char *  cmd_name)
struct cbuf_interpreter_s* Cmd_GetProvider ( const char *  name)
void Cmd_Init ( void  )
void Cmd_Init_Hash ( void  )
int Cmd_RemoveCommand ( const char *  cmd_name)
void Cmd_StuffCmds ( struct cbuf_s cbuf)

Variable Documentation

struct cbuf_args_s* cmd_args
cmd_source_t cmd_source
struct cvar_s* cmd_warncmd