diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-08 00:33:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-15 11:47:29 +0300 |
commit | f324b507a9c0792abee2d31f6f3607077376619d (patch) | |
tree | 9a956650647f34b0842f076d5dc33760f5a17d2e /src/char/int_homun.h | |
parent | 8e3ff5af507352d8c0c3f50469917f2b5ba231f9 (diff) | |
download | hercules-f324b507a9c0792abee2d31f6f3607077376619d.tar.gz hercules-f324b507a9c0792abee2d31f6f3607077376619d.tar.bz2 hercules-f324b507a9c0792abee2d31f6f3607077376619d.tar.xz hercules-f324b507a9c0792abee2d31f6f3607077376619d.zip |
Add most functions from int_homun.c to interfaces.
Diffstat (limited to 'src/char/int_homun.h')
-rw-r--r-- | src/char/int_homun.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/char/int_homun.h b/src/char/int_homun.h index 6fa4f9dc7..13debcebc 100644 --- a/src/char/int_homun.h +++ b/src/char/int_homun.h @@ -8,13 +8,14 @@ struct s_homunculus; -int inter_homunculus_sql_init(void); -void inter_homunculus_sql_final(void); -int inter_homunculus_parse_frommap(int fd); +void inter_homunculus_defaults(void); -bool mapif_homunculus_save(struct s_homunculus* hd); -bool mapif_homunculus_load(int homun_id, struct s_homunculus* hd); -bool mapif_homunculus_delete(int homun_id); -bool mapif_homunculus_rename(char *name); +struct inter_homunculus_interface { + int (*sql_init) (void); + void (*sql_final) (void); + int (*parse_frommap) (int fd); +}; + +struct inter_homunculus_interface *inter_homunculus; #endif /* CHAR_INT_HOMUN_H */ |