diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-02-06 21:13:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-02-09 18:34:44 +0300 |
commit | 5c799fd9628efb9d45f32ef1138363bbf814c9a2 (patch) | |
tree | 7ecb2f02c753f19a97f8bd71571e506fe399c5c2 /src/login/loginlog.h | |
parent | f9c920a728d1a8406fa4a15a395eee23b9bccc7a (diff) | |
download | hercules-5c799fd9628efb9d45f32ef1138363bbf814c9a2.tar.gz hercules-5c799fd9628efb9d45f32ef1138363bbf814c9a2.tar.bz2 hercules-5c799fd9628efb9d45f32ef1138363bbf814c9a2.tar.xz hercules-5c799fd9628efb9d45f32ef1138363bbf814c9a2.zip |
Add global variables into loginlog interface.
Diffstat (limited to 'src/login/loginlog.h')
-rw-r--r-- | src/login/loginlog.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/login/loginlog.h b/src/login/loginlog.h index 8edbedbaa..fecb9b364 100644 --- a/src/login/loginlog.h +++ b/src/login/loginlog.h @@ -26,10 +26,23 @@ struct config_t; +struct s_loginlog_dbs { + char log_db_hostname[32]; + uint16 log_db_port; + char log_db_username[32]; + char log_db_password[100]; + char log_db_database[32]; + char log_codepage[32]; + char log_login_db[256]; +}; + /** * Loginlog.c Interface **/ struct loginlog_interface { + struct Sql *sql_handle; + bool enabled; + struct s_loginlog_dbs *dbs; unsigned long (*failedattempts) (uint32 ip, unsigned int minutes); void (*log) (uint32 ip, const char* username, int rcode, const char* message); bool (*init) (void); |