summaryrefslogtreecommitdiff
path: root/src/char/int_pet.h
diff options
context:
space:
mode:
authorHaruna <haru@dotalux.com>2014-11-15 17:04:09 +0100
committerHaruna <haru@dotalux.com>2014-11-15 17:04:09 +0100
commita6f077063eeff08ee27ae5170de1bb5cf4b2defb (patch)
tree9bb5ab158230301e604918883ce6d06c31890341 /src/char/int_pet.h
parent77b88fe80b907122b24d698938538c22e029d25f (diff)
parent7f9fa7f59a82682fb139be4301e9a12a99644a19 (diff)
downloadhercules-a6f077063eeff08ee27ae5170de1bb5cf4b2defb.tar.gz
hercules-a6f077063eeff08ee27ae5170de1bb5cf4b2defb.tar.bz2
hercules-a6f077063eeff08ee27ae5170de1bb5cf4b2defb.tar.xz
hercules-a6f077063eeff08ee27ae5170de1bb5cf4b2defb.zip
Merge pull request #388 from 4144/charplugins
char server plugins
Diffstat (limited to 'src/char/int_pet.h')
-rw-r--r--src/char/int_pet.h23
1 files changed, 14 insertions, 9 deletions
diff --git a/src/char/int_pet.h b/src/char/int_pet.h
index 52642fc54..fcb052f34 100644
--- a/src/char/int_pet.h
+++ b/src/char/int_pet.h
@@ -6,16 +6,21 @@
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];
+/**
+ * inter_pet interface
+ **/
+struct inter_pet_interface {
+ struct s_pet *pt;
+ 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 */