Crossfire Server, Trunk  R20513
Functions | Variables
plugin_template.c File Reference
#include <plugin_template.h>
#include <stdarg.h>
#include <plugin_template_proto.h>
Include dependency graph for plugin_template.c:

Go to the source code of this file.

Functions

CF_PLUGIN int closePlugin (void)
 Close the plugin. More...
 
CF_PLUGIN void * eventListener (int *type,...)
 Handles an object-related event. More...
 
CF_PLUGIN void * getPluginProperty (int *type,...)
 Gets a plugin property. More...
 
CF_PLUGIN void * globalEventListener (int *type,...)
 
void initContextStack (void)
 
CF_PLUGIN int initPlugin (const char *iversion, f_plug_api gethooksptr)
 Plugin initialisation function. More...
 
CFPContextpopContext (void)
 
CF_PLUGIN int postInitPlugin (void)
 Plugin was initialized, now to finish. More...
 
void pushContext (CFPContext *context)
 
CF_PLUGIN int runPluginCommand (object *op, char *params)
 

Variables

CFPContextcontext_stack
 
static int current_command = -999
 
CFPContextcurrent_context
 

Function Documentation

CF_PLUGIN void* globalEventListener ( int *  type,
  ... 
)
void initContextStack ( void  )

Definition at line 41 of file plugin_template.c.

Referenced by postInitPlugin().

Here is the caller graph for this function:

CFPContext* popContext ( void  )

Definition at line 58 of file plugin_template.c.

References current_context, and _cfpcontext::down.

Referenced by eventListener(), and globalEventListener().

Here is the caller graph for this function:

void pushContext ( CFPContext context)

Definition at line 46 of file plugin_template.c.

References current_context, and _cfpcontext::down.

Referenced by eventListener(), and globalEventListener().

Here is the caller graph for this function:

CF_PLUGIN int runPluginCommand ( object op,
char *  params 
)

Definition at line 113 of file plugin_template.c.

Variable Documentation

CFPContext* context_stack

Definition at line 35 of file plugin_template.c.

int current_command = -999
static

Definition at line 39 of file plugin_template.c.

CFPContext* current_context

Definition at line 37 of file plugin_template.c.

Referenced by popContext(), and pushContext().