Go to the documentation of this file.
33 #include <plugin_template_proto.h>
82 command_array_struct *rtn_cmd;
86 propname = va_arg(
args,
const char *);
88 if (!strcmp(propname,
"command?")) {
90 cmdname = va_arg(
args,
const char *);
91 rtn_cmd = va_arg(
args, command_array_struct *);
96 }
else if (!strcmp(propname,
"Identification")) {
98 size = va_arg(
args,
int);
102 }
else if (!strcmp(propname,
"FullName")) {
104 size = va_arg(
args,
int);
152 printf(
"****** Global event listener called ***********\n");
153 printf(
"- Event code: %d\n", context->
event_code);
159 context->
third = NULL;
160 context->
event = NULL;
164 printf(
"Unimplemented for now\n");
172 context->
who = va_arg(
args,
object *);
177 context->
who = va_arg(
args,
object *);
255 cf_log(
llevDebug,
"*********** Execution complete ****************\n");
272 context->
who = va_arg(
args,
object *);
278 context->
fix = va_arg(
args,
int);
void cf_log(LogLevel logLevel, const char *format,...)
CF_PLUGIN void * eventListener(int *type,...)
void pushContext(CFPContext *context)
CFPContext * popContext(void)
CF_PLUGIN int initPlugin(const char *iversion, f_plug_api gethooksptr)
void(* f_plug_api)(int *type,...)
int cf_init_plugin(f_plug_api getHooks)
CF_PLUGIN int runPluginCommand(object *op, char *params)
CF_PLUGIN void * getPluginProperty(int *type,...)
void initContextStack(void)
#define EVENT_PLAYER_DEATH
CF_PLUGIN int postInitPlugin(void)
static int current_command
CF_PLUGIN int closePlugin(void)
CFPContext * current_context
CFPContext * context_stack
CF_PLUGIN void * globalEventListener(int *type,...)