summaryrefslogtreecommitdiff
path: root/src/common/HPM.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-09-15 15:04:50 +0200
committerHaru <haru@dotalux.com>2015-10-11 00:24:21 +0200
commit542a86978485e3671745aecfd94fa15fc3b1c73b (patch)
tree82b85912745ca249e86a7d22b030440916af768a /src/common/HPM.h
parent437dc70ac6a19fe9a32c095ada8205dce173beb3 (diff)
downloadhercules-542a86978485e3671745aecfd94fa15fc3b1c73b.tar.gz
hercules-542a86978485e3671745aecfd94fa15fc3b1c73b.tar.bz2
hercules-542a86978485e3671745aecfd94fa15fc3b1c73b.tar.xz
hercules-542a86978485e3671745aecfd94fa15fc3b1c73b.zip
Changed HPM->fnames to a vector type, renamed to HPM->filenames
- This is a generic vector. It doesn't make use of the VECTOR type because it needs to outlive the memory manager. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common/HPM.h')
-rw-r--r--src/common/HPM.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/common/HPM.h b/src/common/HPM.h
index adbba5eda..e8cc02f6f 100644
--- a/src/common/HPM.h
+++ b/src/common/HPM.h
@@ -111,8 +111,11 @@ struct HPM_interface {
/* packet hooking points */
VECTOR_DECL(struct HPluginPacket) packets[hpPHP_MAX];
/* plugin file ptr caching */
- struct HPMFileNameCache *fnames;
- unsigned int fnamec;
+ struct {
+ // This doesn't use a VECTOR because it needs to exist after the memory manager goes down.
+ int count;
+ struct HPMFileNameCache *data;
+ } filenames;
/* config listen */
struct HPConfListenStorage *confs[HPCT_MAX];
unsigned int confsc[HPCT_MAX];