summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2014-01-13 23:52:27 -0200
committershennetsind <ind@henn.et>2014-01-13 23:52:27 -0200
commite1a0059919dbc4f5c7e803a496b8d150c0a070f5 (patch)
tree1f6b3b05202e9401ca8eadf3777cc8710a8eab05 /src/common
parent8d1b8108fcad1a628531801914950b5f92767b0a (diff)
downloadhercules-e1a0059919dbc4f5c7e803a496b8d150c0a070f5.tar.gz
hercules-e1a0059919dbc4f5c7e803a496b8d150c0a070f5.tar.bz2
hercules-e1a0059919dbc4f5c7e803a496b8d150c0a070f5.tar.xz
hercules-e1a0059919dbc4f5c7e803a496b8d150c0a070f5.zip
Fixed HPM support for group permissions
pcg->add_permission dropped, use 'AddGroupPermission("name",unsigned int var for mask id)' Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/common')
-rw-r--r--src/common/HPMi.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/HPMi.h b/src/common/HPMi.h
index 742132cde..78a3a9ab5 100644
--- a/src/common/HPMi.h
+++ b/src/common/HPMi.h
@@ -138,6 +138,9 @@ enum HPluginConfType {
/* HPMi->addBattleConf */
#define addBattleConf(bcname,funcname) HPMi->addConf(HPMi->pid,HPCT_BATTLE,bcname,funcname)
+/* HPMi->addPCGPermission */
+#define addGroupPermission(pcgname,maskptr) HPMi->addPCGPermission(HPMi->pid,pcgname,&maskptr)
+
/* Hercules Plugin Mananger Include Interface */
HPExport struct HPMi_interface {
/* */
@@ -161,6 +164,8 @@ HPExport struct HPMi_interface {
bool (*addArg) (unsigned int pluginID, char *name, bool has_param,void (*func) (char *param),void (*help) (void));
/* battle-config recv param */
bool (*addConf) (unsigned int pluginID, enum HPluginConfType type, char *name, void (*func) (const char *val));
+ /* pc group permission */
+ void (*addPCGPermission) (unsigned int pluginID, char *name, unsigned int *mask);
} HPMi_s;
#ifndef _HPM_H_
HPExport struct HPMi_interface *HPMi;