Difference for server/plugins.c from version 1.75 to 1.76


version 1.75 version 1.76
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_plugins_c =   * static char *rcsid_plugins_c =
  *   "$Id: plugins.c,v 1.75 2006/08/12 19:38:23 qal21 Exp $";   *   "$Id: plugins.c,v 1.76 2006/08/15 13:43:46 ryo_saeba Exp $";
  */   */
   
 /*****************************************************************************/  /*****************************************************************************/
Line 43
 
Line 43
 #include <sproto.h>  #include <sproto.h>
 #endif  #endif
   
 #define NR_OF_HOOKS 76  #define NR_OF_HOOKS 77
   
 static const hook_entry plug_hooks[NR_OF_HOOKS] =  static const hook_entry plug_hooks[NR_OF_HOOKS] =
 {  {
Line 123
 
Line 123
     {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"},      {cfapi_log,                     75, "cfapi_log"},
        {cfapi_get_time,                 76, "cfapi_system_get_time"},
 };  };
 int plugin_number = 0;  int plugin_number = 0;
 crossfire_plugin* plugins_list = NULL;  crossfire_plugin* plugins_list = NULL;
Line 807
 
Line 808
     return NULL;      return NULL;
 }  }
   
   void *cfapi_get_time(int *type, ...)
   {
       va_list args;
       timeofday_t *tod;
   
       va_start(args,type);
       tod = va_arg(args, timeofday_t*);
       va_end(args);
   
       get_tod(tod);
       *type = CFAPI_NONE;
       return NULL;
   }
   
 /* Logging hook */  /* Logging hook */
 void* cfapi_log(int* type, ...)  void* cfapi_log(int* type, ...)
 {  {


Legend:
line(s) removed in v.1.75 
line(s) changed
 line(s) added in v.1.76

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:42