Atrinik Server  4.0
Functions
Exportable plugin functions

Functions

MODULEAPI void initPlugin (struct plugin_hooklist *hooklist)
 
MODULEAPI void getPluginProperty (int *type,...)
 
MODULEAPI void * triggerEvent (int *type,...)
 
MODULEAPI void postinitPlugin (void)
 
MODULEAPI void closePlugin (void)
 

Detailed Description

Exportable functions. Any plugin should define all these.

Function Documentation

MODULEAPI void closePlugin ( void  )

Called when the plugin is about to be unloaded.

Definition at line 167 of file plugin_arena.c.

MODULEAPI void getPluginProperty ( int *  type,
  ... 
)

Called to ask various information about the plugin.

Parameters
typeInteger pointer for va_start().
Returns
Return value depends on the type of information requested. Can be NULL.

Definition at line 171 of file plugin_arena.c.

MODULEAPI void initPlugin ( struct plugin_hooklist *  hooklist)

Called when the plugin initialization process starts.

Parameters
hooklistPlugin hooklist to register.

Definition at line 162 of file plugin_arena.c.

MODULEAPI void postinitPlugin ( void  )

Called by the server when the plugin loading is completed.

Definition at line 196 of file plugin_arena.c.

MODULEAPI void* triggerEvent ( int *  type,
  ... 
)

Called whenever an event occurs.

Parameters
typeInteger pointer for va_start().
Returns
Integer containing the event's return value.

Definition at line 605 of file plugin_arena.c.