diff options
Diffstat (limited to 'src/common/HPM.h')
-rw-r--r-- | src/common/HPM.h | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/src/common/HPM.h b/src/common/HPM.h index 5420e5300..215161a86 100644 --- a/src/common/HPM.h +++ b/src/common/HPM.h @@ -1,6 +1,22 @@ -// Copyright (c) Hercules Dev Team, licensed under GNU GPL. -// See the LICENSE file - +/** + * This file is part of Hercules. + * http://herc.ws - http://github.com/HerculesWS/Hercules + * + * Copyright (C) 2013-2015 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 + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ #ifndef COMMON_HPM_H #define COMMON_HPM_H @@ -101,7 +117,8 @@ struct HPMFileNameCache { struct HPConfListenStorage { unsigned int pluginID; char key[HPM_ADDCONF_LENGTH]; - void (*func) (const char *val); + void (*parse_func) (const char *key, const char *val); + int (*return_func) (const char *key); }; /* Hercules Plugin Manager Interface */ @@ -145,6 +162,7 @@ struct HPM_interface { bool (*addhook_sub) (enum HPluginHookType type, const char *target, void *hook, unsigned int pID); /* for custom config parsing */ bool (*parseConf) (const char *w1, const char *w2, enum HPluginConfType point); + bool (*getBattleConf) (const char* w1, int *value); /* validates plugin data */ bool (*DataCheck) (struct s_HPMDataCheck *src, unsigned int size, int version, char *name); void (*datacheck_init) (const struct s_HPMDataCheck *src, unsigned int length, int version); |