/** * @file cli.hpp * Module purpose is to handle the console (cli=console line input) while the servers launch and run. * This contains functions common to all servers, but then dispatches them to a specific parser on each server. * Licensed under GNU GPL. * For more information, see LICENCE in the main folder. * @author rAthena Dev Team */ #ifndef CLI_HPP #define CLI_HPP #define MAX_CONSOLE_IN 200 //max is map... #define MIN_CONSOLE_IN 4 //min is help //map extern const char* MAP_CONF_NAME; extern const char* INTER_CONF_NAME; extern const char* LOG_CONF_NAME; extern const char* BATTLE_CONF_FILENAME; extern const char* ATCOMMAND_CONF_FILENAME; extern const char* SCRIPT_CONF_NAME; extern const char* GRF_PATH_FILENAME; //char extern const char* CHAR_CONF_NAME; extern const char* SQL_CONF_NAME; //login extern const char* LOGIN_CONF_NAME; //common extern const char* LAN_CONF_NAME; //char-login extern const char* MSG_CONF_NAME_EN; //all extern void display_helpscreen(bool exit); bool cli_hasevent(); void display_versionscreen(bool do_exit); bool opt_has_next_value(const char* option, int i, int argc); int cli_get_options(int argc, char ** argv); int parse_console_timer(int tid, unsigned int tick, int id, intptr_t data); extern int parse_console(const char* buf); //particular for each serv #endif /* CLI_HPP */