1 #ifndef COMMAND_GENERIC_H
2 #define COMMAND_GENERIC_H
4 #include "../constants.qh"
6 // =========================================================
7 // Declarations for common command code, written by Samual
8 // Last updated: December 28th, 2011
9 // =========================================================
11 void GenericCommand_macro_help();
13 float GenericCommand_macro_command(float argc, string command);
15 float GenericCommand_macro_usage(float argc);
17 void GenericCommand_macro_write_aliases(float fh);
19 // Used by other game command systems for common commands,
20 // and it returns true if handled, false if not.
21 // Note: It tokenizes its input, so be careful!
22 float GenericCommand(string command);
24 // Returns command prefix specific for whatever program it is compiled in
25 string GetProgramCommandPrefix(void);
27 // used by common/command/generic.qc:GenericCommand_dumpcommands to list all commands into a .txt file
28 #define CMD_Write(s) fputs(fh, s)
29 #define CMD_Write_Alias(execute,command,description) CMD_Write(sprintf("alias %-20s \"%-13s %-20s ${* ?}\" // %s\n", command, execute, command, description))
30 void GenericCommand_macro_write_aliases(float fh);
32 void Curl_URI_Get_Callback(int id, float status, string data);
34 float curl_uri_get_exec[URI_GET_CURL_END - URI_GET_CURL + 1];
35 string curl_uri_get_cvar[URI_GET_CURL_END - URI_GET_CURL + 1];