summaryrefslogtreecommitdiff
path: root/src/login/login.h
diff options
context:
space:
mode:
authorhemagx <hemagx2@gmail.com>2015-12-26 09:45:48 +0200
committerHaru <haru@dotalux.com>2016-01-10 02:56:57 +0100
commit93dd228452fd107df3cc00ef4c9445e3712ecaca (patch)
tree8b29d71d6a2dd3481dec43070e90bb69b6e213da /src/login/login.h
parent4e4ecd0c82291a40dc7a70da76a93c58dc6dba81 (diff)
downloadhercules-93dd228452fd107df3cc00ef4c9445e3712ecaca.tar.gz
hercules-93dd228452fd107df3cc00ef4c9445e3712ecaca.tar.bz2
hercules-93dd228452fd107df3cc00ef4c9445e3712ecaca.tar.xz
hercules-93dd228452fd107df3cc00ef4c9445e3712ecaca.zip
Move declaration of login config struct to login interface
Closes #1030 as merged Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/login/login.h')
-rw-r--r--src/login/login.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/login/login.h b/src/login/login.h
index 8036d04ad..f79f75cb3 100644
--- a/src/login/login.h
+++ b/src/login/login.h
@@ -152,7 +152,7 @@ struct login_interface {
DBMap* auth_db;
DBMap* online_db;
int fd;
- struct Login_Config *lc;
+ struct Login_Config *config;
struct AccountDB* accounts;
int (*mmo_auth) (struct login_session_data* sd, bool isServer);
@@ -209,13 +209,14 @@ struct login_interface {
void (*char_server_connection_status) (int fd, struct login_session_data* sd, uint8 status);
void (*parse_request_connection) (int fd, struct login_session_data* sd, const char *ip, uint32 ipl);
int (*parse_login) (int fd);
+ void (*config_set_defaults) (void);
+ int (*config_read) (const char *cfgName);
char *LOGIN_CONF_NAME;
char *NET_CONF_NAME; ///< Network configuration filename
};
#ifdef HERCULES_CORE
extern struct mmo_char_server server[MAX_SERVERS];
-extern struct Login_Config login_config;
void login_defaults(void);
#endif // HERCULES_CORE