ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/plugins/common/plugin_common.C
(Generate patch)

Comparing deliantra/server/plugins/common/plugin_common.C (file contents):
Revision 1.5 by pippijn, Mon Dec 11 19:46:46 2006 UTC vs.
Revision 1.6 by root, Thu Dec 14 22:54:35 2006 UTC

35/*****************************************************************************/ 35/*****************************************************************************/
36#include <plugin_common.h> 36#include <plugin_common.h>
37 37
38static f_plug_api cfapiSystem_register_global_event = NULL; 38static f_plug_api cfapiSystem_register_global_event = NULL;
39static f_plug_api cfapiSystem_unregister_global_event = NULL; 39static f_plug_api cfapiSystem_unregister_global_event = NULL;
40static f_plug_api cfapiSystem_strdup_local = NULL;
41static f_plug_api cfapiSystem_find_animation = NULL; 40static f_plug_api cfapiSystem_find_animation = NULL;
42 41
43static f_plug_api cfapiMap_create_path = NULL; 42static f_plug_api cfapiMap_create_path = NULL;
44 43
45static f_plug_api cfapiObject_get_property = NULL; 44static f_plug_api cfapiObject_get_property = NULL;
110 } } 109 } }
111 110
112int cf_init_plugin( f_plug_api getHooks ) 111int cf_init_plugin( f_plug_api getHooks )
113{ 112{
114 int z; 113 int z;
115 GET_HOOK( cfapiSystem_strdup_local, "cfapi_system_strdup_local", z );
116 GET_HOOK( cfapiSystem_register_global_event, "cfapi_system_register_global_event", z ); 114 GET_HOOK( cfapiSystem_register_global_event, "cfapi_system_register_global_event", z );
117 GET_HOOK( cfapiSystem_unregister_global_event, "cfapi_system_unregister_global_event", z ); 115 GET_HOOK( cfapiSystem_unregister_global_event, "cfapi_system_unregister_global_event", z );
118 GET_HOOK( cfapiSystem_find_animation, "cfapi_system_find_animation", z ); 116 GET_HOOK( cfapiSystem_find_animation, "cfapi_system_find_animation", z );
119 GET_HOOK( cfapiObject_get_property, "cfapi_object_get_property", z ); 117 GET_HOOK( cfapiObject_get_property, "cfapi_object_get_property", z );
120 GET_HOOK( cfapiObject_set_property, "cfapi_object_set_property", z ); 118 GET_HOOK( cfapiObject_set_property, "cfapi_object_set_property", z );
691void cf_object_pickup( object* op, object* what) 689void cf_object_pickup( object* op, object* what)
692{ 690{
693 int val; 691 int val;
694 cfapiObject_pickup(&val, op, what); 692 cfapiObject_pickup(&val, op, what);
695} 693}
696char* cf_strdup_local(char* txt) 694char* cf_strdup(char* txt)
697{ 695{
698 int val; 696 int val;
699 return (char*)cfapiSystem_strdup_local(&val, txt); 697 return (char*)strdup(txt);
700} 698}
701int cf_map_get_flags( maptile* map, maptile** nmap, sint16 x, sint16 y, sint16* nx, sint16* ny ) 699int cf_map_get_flags( maptile* map, maptile** nmap, sint16 x, sint16 y, sint16* nx, sint16* ny )
702{ 700{
703 int val; 701 int val;
704 return *( int* )cfapiMap_get_flags(&val, map, nmap, x, y, nx, ny); 702 return *( int* )cfapiMap_get_flags(&val, map, nmap, x, y, nx, ny);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines