diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2013-06-29 23:23:43 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2013-08-01 15:19:45 -0700 |
commit | 3b98f3439e33b15bba2036c402f9925340fdb2b9 (patch) | |
tree | f6a59330bb747d9cc64f5f83d06e7f76dc01d540 /src/map/chrif.hpp | |
parent | 8d1480c1be7c9741876d89008277a2b3629a4d01 (diff) | |
download | tmwa-3b98f3439e33b15bba2036c402f9925340fdb2b9.tar.gz tmwa-3b98f3439e33b15bba2036c402f9925340fdb2b9.tar.bz2 tmwa-3b98f3439e33b15bba2036c402f9925340fdb2b9.tar.xz tmwa-3b98f3439e33b15bba2036c402f9925340fdb2b9.zip |
Poison std::string and use the various string classes
Diffstat (limited to 'src/map/chrif.hpp')
-rw-r--r-- | src/map/chrif.hpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/map/chrif.hpp b/src/map/chrif.hpp index 6dca70c..97760c3 100644 --- a/src/map/chrif.hpp +++ b/src/map/chrif.hpp @@ -2,14 +2,15 @@ #define CHRIF_HPP #include "../common/dumb_ptr.hpp" +#include "../common/human_time_diff.hpp" #include "map.hpp" -void chrif_setuserid(const char *); -void chrif_setpasswd(const char *); -char *chrif_getpasswd(void); +void chrif_setuserid(AccountName); +void chrif_setpasswd(AccountPass); +AccountPass chrif_getpasswd(void); -void chrif_setip(const char *); +void chrif_setip(IP_String); void chrif_setport(int); int chrif_isconnect(void); @@ -19,15 +20,14 @@ int chrif_save(dumb_ptr<map_session_data>); int chrif_charselectreq(dumb_ptr<map_session_data>); int chrif_changemapserver(dumb_ptr<map_session_data> sd, - char *name, int x, int y, + MapName name, int x, int y, struct in_addr ip, short port); int chrif_searchcharid(int char_id); -int chrif_changegm(int id, const char *pass, int len); -int chrif_changeemail(int id, const char *actual_email, - const char *new_email); -int chrif_char_ask_name(int id, char *character_name, short operation_type, - int year, int month, int day, int hour, int minute, int second); +void chrif_changegm(int id, ZString pass); +void chrif_changeemail(int id, AccountEmail actual_email, AccountEmail new_email); +void chrif_char_ask_name(int id, CharName character_name, short operation_type, + HumanTimeDiff modif); int chrif_saveaccountreg2(dumb_ptr<map_session_data> sd); int chrif_reloadGMdb(void); int chrif_send_divorce(int char_id); |