version 1.71 | | version 1.72 |
---|
| | |
/* | | /* |
* static char *rcsid_plugins_c = | | * static char *rcsid_plugins_c = |
* "$Id: plugins.c,v 1.71 2006/05/05 08:52:44 ryo_saeba Exp $"; | | * "$Id: plugins.c,v 1.72 2006/05/20 15:47:48 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/*****************************************************************************/ | | /*****************************************************************************/ |
| | |
#include <sproto.h> | | #include <sproto.h> |
#endif | | #endif |
| | |
#define NR_OF_HOOKS 75 | | #define NR_OF_HOOKS 76 |
| | |
static const hook_entry plug_hooks[NR_OF_HOOKS] = | | static const hook_entry plug_hooks[NR_OF_HOOKS] = |
{ | | { |
| | |
{cfapi_party_get_property, 72, "cfapi_party_get_property"}, | | {cfapi_party_get_property, 72, "cfapi_party_get_property"}, |
{cfapi_region_get_property, 73, "cfapi_region_get_property"}, | | {cfapi_region_get_property, 73, "cfapi_region_get_property"}, |
{cfapi_player_can_pay, 74, "cfapi_player_can_pay"}, | | {cfapi_player_can_pay, 74, "cfapi_player_can_pay"}, |
| | {cfapi_log, 75, "cfapi_log"}, |
}; | | }; |
int plugin_number = 0; | | int plugin_number = 0; |
crossfire_plugin* plugins_list = NULL; | | crossfire_plugin* plugins_list = NULL; |
| | |
return NULL; | | return NULL; |
} | | } |
| | |
| | /* Logging hook */ |
| | void* cfapi_log(int* type, ...) |
| | { |
| | va_list args; |
| | LogLevel logLevel; |
| | const char* message; |
| | |
| | va_start(args, type); |
| | logLevel = va_arg(args, LogLevel); |
| | message = va_arg(args, const char*); |
| | LOG(logLevel, message); |
| | va_end(args); |
| | |
| | return NULL; |
| | } |
| | |
/* MAP RELATED HOOKS */ | | /* MAP RELATED HOOKS */ |
| | |