/[zanavi_public1]/navit/navit/event.c
ZANavi

Diff of /navit/navit/event.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 26 Revision 27
101 101
102int 102int
103event_request_system(const char *system, const char *requestor) 103event_request_system(const char *system, const char *requestor)
104{ 104{
105 void (*event_type_new)(struct event_methods *meth); 105 void (*event_type_new)(struct event_methods *meth);
106 if (e_system) { 106 if (e_system)
107 {
107 if (strcmp(e_system, system)) { 108 if (strcmp(e_system, system))
109 {
108 dbg(0,"system '%s' already requested by '%s', can't set to '%s' as requested from '%s'\n", e_system, e_requestor, system, requestor); 110 dbg(0,"system '%s' already requested by '%s', can't set to '%s' as requested from '%s'\n", e_system, e_requestor, system, requestor);
109 return 0; 111 return 0;
110 } 112 }
111 return 1; 113 return 1;
112 } 114 }
113 event_type_new=plugin_get_event_type(system); 115 event_type_new=plugin_get_event_type(system);
114 if (! event_type_new) { 116 if (! event_type_new)
117 {
115 dbg(0,"unsupported event system '%s' requested from '%s'\n", system, requestor); 118 dbg(0,"unsupported event system '%s' requested from '%s'\n", system, requestor);
116 return 0; 119 return 0;
117 } 120 }
118 event_type_new(&event_methods); 121 event_type_new(&event_methods);
119 e_system=system; 122 e_system=system;

Legend:
Removed from v.26  
changed lines
  Added in v.27

   
Visit the ZANavi Wiki