Crossfire Server, Trunk
|
#include <dlfcn.h>
#include <global.h>
#include <object.h>
#include <logger.h>
#include <time.h>
#include "random_maps/random_map.h"
#include "random_maps/rproto.h"
#include <dirent.h>
#include <stdarg.h>
#include "events.h"
Go to the source code of this file.
Data Structures | |
struct | _crossfire_plugin |
struct | _hook_entry |
Typedefs | |
typedef struct _crossfire_plugin | crossfire_plugin |
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) |
typedef void *(* | f_plug_property) (int *type,...) |
typedef struct _hook_entry | hook_entry |
Definitions for the plugin system.
Definition in file plugin.h.
#define CFAPI_SSTRING 17 /* Shared string that shouldn't be changed, or const char* */ |
#define CFAPI_STRING 4 /* String with a length that must be given too. */ |
#define plugins_dlclose | ( | lib | ) | dlclose(lib) |
#define plugins_dlopen | ( | fname | ) | dlopen(fname, RTLD_NOW|RTLD_GLOBAL) |
#define plugins_dlsym | ( | lib, | |
name | |||
) | dlsym(lib, name) |
typedef struct _crossfire_plugin crossfire_plugin |
One loaded plugin.
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) |
typedef void*(* f_plug_property) (int *type,...) |
typedef struct _hook_entry hook_entry |
One function the server exposes to plugins.