![]() |
Crossfire Server, Trunk
1.75.0
|
#include <global.h>#include <dlfcn.h>#include "random_maps/random_map.h"#include "random_maps/rproto.h"#include <dirent.h>
Include dependency graph for plugin.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | crossfire_plugin |
| One loaded plugin. More... | |
| struct | hook_entry |
| One function the server exposes to plugins. More... | |
Typedefs | |
| typedef void(* | f_plug_api) (int *type,...) |
| General API function. More... | |
| typedef int(* | f_plug_init) (const char *iversion, f_plug_api gethooksptr) |
| First function called in a plugin. More... | |
| typedef int(* | f_plug_postinit) (void) |
| Function called after the plugin was initialized. More... | |
| typedef void *(* | f_plug_property) (int *type,...) |
| Get various plugin properties. More... | |
Functions | |
| int | closePlugin (void) |
| called before the plugin gets unloaded from memory. More... | |
| int | eventListener (int *type,...) |
| Handles an object-related event. More... | |
| void * | getPluginProperty (int *type,...) |
| The server calls this function to get information about the plugin, notably the name and version. More... | |
| int | initPlugin (const char *iversion, f_plug_api gethooksptr) |
| The server calls this function after loading the plugin. More... | |
| int | postInitPlugin (void) |
| The server calls this function to actually initialize the plugin here, after object handlers are registered. More... | |
Definitions for the plugin system.
Definition in file plugin.h.
| #define CFAPI_ARCHETYPE_VECTOR 21 |
| #define CFAPI_MAP_VECTOR 20 |
| #define CFAPI_OBJECT_VECTOR 19 |
| #define CFAPI_PARTY_VECTOR 23 |
| #define CFAPI_REGION_VECTOR 22 |
| #define plugins_dlclose | ( | lib | ) | dlclose(lib) |
| #define plugins_dlopen | ( | fname | ) | dlopen(fname, RTLD_NOW|RTLD_GLOBAL) |
| typedef void(* f_plug_api) (int *type,...) |
| typedef int(* f_plug_init) (const char *iversion, f_plug_api gethooksptr) |
| typedef int(* f_plug_postinit) (void) |