summaryrefslogtreecommitdiff
path: root/src/common/HPM.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-20 16:27:11 +0300
committerGitHub <noreply@github.com>2016-08-20 16:27:11 +0300
commitaf77eec4f736f989703f81df903a1a7c971fa659 (patch)
treeecadc9763347f1c6a04507f714e58f37f778533a /src/common/HPM.h
parent68947c86d5fe3eb2686c9b3393e3db0df083bb11 (diff)
parent9e02b4ed69ce857e3bda57c7f1d3b2457559c534 (diff)
downloadhercules-af77eec4f736f989703f81df903a1a7c971fa659.tar.gz
hercules-af77eec4f736f989703f81df903a1a7c971fa659.tar.bz2
hercules-af77eec4f736f989703f81df903a1a7c971fa659.tar.xz
hercules-af77eec4f736f989703f81df903a1a7c971fa659.zip
Merge pull request #1399 from HerculesWS/settings_libconfig
Ported the configuration to libconfig format
Diffstat (limited to 'src/common/HPM.h')
-rw-r--r--src/common/HPM.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/common/HPM.h b/src/common/HPM.h
index 0b1275fde..43f610a6a 100644
--- a/src/common/HPM.h
+++ b/src/common/HPM.h
@@ -2,7 +2,7 @@
* This file is part of Hercules.
* http://herc.ws - http://github.com/HerculesWS/Hercules
*
- * Copyright (C) 2013-2015 Hercules Dev Team
+ * Copyright (C) 2013-2016 Hercules Dev Team
*
* Hercules is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -65,7 +65,9 @@
#endif // WIN32
+/* Forward Declarations */
struct HPMHooking_core_interface;
+struct config_t;
struct hplugin {
DLL dll;
@@ -121,6 +123,7 @@ struct HPConfListenStorage {
char key[HPM_ADDCONF_LENGTH];
void (*parse_func) (const char *key, const char *val);
int (*return_func) (const char *key);
+ bool required;
};
/* Hercules Plugin Manager Interface */
@@ -155,6 +158,7 @@ struct HPM_interface {
void *(*import_symbol) (char *name, unsigned int pID);
void (*share) (void *value, const char *name);
void (*config_read) (void);
+ bool (*parse_battle_conf) (const struct config_t *config, const char *filename, bool imported);
char *(*pid2name) (unsigned int pid);
unsigned char (*parse_packets) (int fd, int packet_id, enum HPluginPacketHookingPoints point);
void (*load_sub) (struct hplugin *plugin);