summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking/HPMHooking.Defs.inc
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2017-07-17 12:17:47 +0200
committerGitHub <noreply@github.com>2017-07-17 12:17:47 +0200
commitb56dfa3aaf2c6734857f40a8b71f27f22e901c37 (patch)
tree94cb42041b650e8d4b9365812776c931b9542cc7 /src/plugins/HPMHooking/HPMHooking.Defs.inc
parent39523884e457363b5bec504a8eef3d3e44530408 (diff)
parent7569afbe6932e55c6a62f0747ea1e7b5ba3c977e (diff)
downloadhercules-b56dfa3aaf2c6734857f40a8b71f27f22e901c37.tar.gz
hercules-b56dfa3aaf2c6734857f40a8b71f27f22e901c37.tar.bz2
hercules-b56dfa3aaf2c6734857f40a8b71f27f22e901c37.tar.xz
hercules-b56dfa3aaf2c6734857f40a8b71f27f22e901c37.zip
Merge pull request #1760 from Smokexyz/memitemtosql-fix
Optimisation of char_memitemdata_to_sql()
Diffstat (limited to 'src/plugins/HPMHooking/HPMHooking.Defs.inc')
-rw-r--r--src/plugins/HPMHooking/HPMHooking.Defs.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking.Defs.inc b/src/plugins/HPMHooking/HPMHooking.Defs.inc
index 28009ff7a..63b4567ed 100644
--- a/src/plugins/HPMHooking/HPMHooking.Defs.inc
+++ b/src/plugins/HPMHooking/HPMHooking.Defs.inc
@@ -380,8 +380,10 @@ typedef struct DBData (*HPMHOOK_pre_chr_create_charstatus) (union DBKey *key, va
typedef struct DBData (*HPMHOOK_post_chr_create_charstatus) (struct DBData retVal___, union DBKey key, va_list args);
typedef int (*HPMHOOK_pre_chr_mmo_char_tosql) (int *char_id, struct mmo_charstatus **p);
typedef int (*HPMHOOK_post_chr_mmo_char_tosql) (int retVal___, int char_id, struct mmo_charstatus *p);
-typedef int (*HPMHOOK_pre_chr_memitemdata_to_sql) (const struct item *items[], int *max, int *id, int *tableswitch);
-typedef int (*HPMHOOK_post_chr_memitemdata_to_sql) (int retVal___, const struct item items[], int max, int id, int tableswitch);
+typedef int (*HPMHOOK_pre_chr_getitemdata_from_sql) (struct item **items, int *max, int *guid, enum inventory_table_type *table);
+typedef int (*HPMHOOK_post_chr_getitemdata_from_sql) (int retVal___, struct item *items, int max, int guid, enum inventory_table_type table);
+typedef int (*HPMHOOK_pre_chr_memitemdata_to_sql) (const struct item *items[], int *id, enum inventory_table_type *table);
+typedef int (*HPMHOOK_post_chr_memitemdata_to_sql) (int retVal___, const struct item items[], int id, enum inventory_table_type table);
typedef int (*HPMHOOK_pre_chr_mmo_gender) (const struct char_session_data **sd, const struct mmo_charstatus **p, char *sex);
typedef int (*HPMHOOK_post_chr_mmo_gender) (int retVal___, const struct char_session_data *sd, const struct mmo_charstatus *p, char sex);
typedef int (*HPMHOOK_pre_chr_mmo_chars_fromsql) (struct char_session_data **sd, uint8 **buf);