summaryrefslogtreecommitdiff
path: root/src/common/utils.h
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-07-05 19:19:40 -0300
committershennetsind <ind@henn.et>2013-07-05 19:19:40 -0300
commit0118a097c9626b3f8342dd29897392f3da4c1187 (patch)
tree3839e506a5ad38719e3772da0d03cf12240e3c4c /src/common/utils.h
parenta3711050a219e887b6637969bac66fb7d261d9cf (diff)
downloadhercules-0118a097c9626b3f8342dd29897392f3da4c1187.tar.gz
hercules-0118a097c9626b3f8342dd29897392f3da4c1187.tar.bz2
hercules-0118a097c9626b3f8342dd29897392f3da4c1187.tar.xz
hercules-0118a097c9626b3f8342dd29897392f3da4c1187.zip
HCache | Item Packages Update
http://hercules.ws/board/topic/1389-hcache-item-packages-update/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/common/utils.h')
-rw-r--r--src/common/utils.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/common/utils.h b/src/common/utils.h
index 8e39f2655..7953d93e8 100644
--- a/src/common/utils.h
+++ b/src/common/utils.h
@@ -1,5 +1,6 @@
-// Copyright (c) Athena Dev Teams - Licensed under GNU GPL
-// For more information, see LICENCE in the main folder
+// Copyright (c) Hercules Dev Team, licensed under GNU GPL.
+// See the LICENSE file
+// Portions Copyright (c) Athena Dev Teams
#ifndef _UTILS_H_
#define _UTILS_H_
@@ -29,4 +30,19 @@ extern uint16 GetWord(uint32 val, int idx);
extern uint16 MakeWord(uint8 byte0, uint8 byte1);
extern uint32 MakeDWord(uint16 word0, uint16 word1);
+/* [Ind/Hercules] Caching */
+struct HCache_interface {
+ void (*init) (void);
+ /* */
+ bool (*check) (const char *file);
+ FILE *(*open) (const char *file, const char *opt);
+ /* */
+ size_t recompile_time;
+ bool enabled;
+};
+
+struct HCache_interface *HCache;
+
+void HCache_defaults(void);
+
#endif /* _UTILS_H_ */