diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-08 19:54:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-15 11:47:29 +0300 |
commit | f28739e8d1b08d871c8430b949246bb6a0090bc2 (patch) | |
tree | ec582a2acf42cdaf6db5417399ef0e3eb968c0d7 /src/char/int_pet.h | |
parent | b451aaff923c7695ba6087f1b9b44ed53b943ee4 (diff) | |
download | hercules-f28739e8d1b08d871c8430b949246bb6a0090bc2.tar.gz hercules-f28739e8d1b08d871c8430b949246bb6a0090bc2.tar.bz2 hercules-f28739e8d1b08d871c8430b949246bb6a0090bc2.tar.xz hercules-f28739e8d1b08d871c8430b949246bb6a0090bc2.zip |
Add most functions from int_pet.c to interfaces.
Diffstat (limited to 'src/char/int_pet.h')
-rw-r--r-- | src/char/int_pet.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/char/int_pet.h b/src/char/int_pet.h index 52642fc54..44f3eb389 100644 --- a/src/char/int_pet.h +++ b/src/char/int_pet.h @@ -6,16 +6,17 @@ struct s_pet; -int inter_pet_init(void); -void inter_pet_sql_final(void); -int inter_pet_save(void); -int inter_pet_delete(int pet_id); +void inter_pet_defaults(void); -int inter_pet_parse_frommap(int fd); -int inter_pet_sql_init(void); -//extern char pet_txt[256]; +struct inter_pet_interface { + int (*tosql) (int pet_id, struct s_pet* p); + int (*fromsql) (int pet_id, struct s_pet* p); + int (*sql_init) (void); + void (*sql_final) (void); + int (*delete_) (int pet_id); + int (*parse_frommap) (int fd); +}; -//Exported for use in the TXT-SQL converter. -int inter_pet_tosql(int pet_id, struct s_pet *p); +struct inter_pet_interface *inter_pet; #endif /* CHAR_INT_PET_H */ |