diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2013-05-25 13:49:50 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2013-05-25 13:49:50 -0700 |
commit | 1d0e18a186f67844ccd873eabb56ebdaa3f47f11 (patch) | |
tree | 94199c6dbcb6b4a86584c303f6e1e72073873f01 /src/map/chrif.hpp | |
parent | 87218e07b2bc89593eae1cb4abe859cd1a7eaa0f (diff) | |
download | tmwa-1d0e18a186f67844ccd873eabb56ebdaa3f47f11.tar.gz tmwa-1d0e18a186f67844ccd873eabb56ebdaa3f47f11.tar.bz2 tmwa-1d0e18a186f67844ccd873eabb56ebdaa3f47f11.tar.xz tmwa-1d0e18a186f67844ccd873eabb56ebdaa3f47f11.zip |
Switch block_list and subclasses to dumb_ptr
Now we're well-defined, since we're actually calling ctors and dtors.
Most of this code will not survive long ...
Diffstat (limited to 'src/map/chrif.hpp')
-rw-r--r-- | src/map/chrif.hpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/map/chrif.hpp b/src/map/chrif.hpp index 2816e9f..6dca70c 100644 --- a/src/map/chrif.hpp +++ b/src/map/chrif.hpp @@ -1,6 +1,10 @@ #ifndef CHRIF_HPP #define CHRIF_HPP +#include "../common/dumb_ptr.hpp" + +#include "map.hpp" + void chrif_setuserid(const char *); void chrif_setpasswd(const char *); char *chrif_getpasswd(void); @@ -10,11 +14,11 @@ void chrif_setport(int); int chrif_isconnect(void); -int chrif_authreq(struct map_session_data *); -int chrif_save(struct map_session_data *); -int chrif_charselectreq(struct map_session_data *); +int chrif_authreq(dumb_ptr<map_session_data>); +int chrif_save(dumb_ptr<map_session_data>); +int chrif_charselectreq(dumb_ptr<map_session_data>); -int chrif_changemapserver(struct map_session_data *sd, +int chrif_changemapserver(dumb_ptr<map_session_data> sd, char *name, int x, int y, struct in_addr ip, short port); @@ -24,7 +28,7 @@ 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); -int chrif_saveaccountreg2(struct map_session_data *sd); +int chrif_saveaccountreg2(dumb_ptr<map_session_data> sd); int chrif_reloadGMdb(void); int chrif_send_divorce(int char_id); |