/[monit]/monit/event.c
ViewVC logotype

Diff of /monit/event.c

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

revision 1.20 by martinp, Thu Aug 14 08:24:39 2003 UTC revision 1.21 by hauk, Fri Aug 15 01:12:56 2003 UTC
# Line 78  struct Event_Table { Line 78  struct Event_Table {
78    
79  static void handle_event(Event_T E);  static void handle_event(Event_T E);
80    
81    static void handle_uid(Event_T E);
82    static void handle_gid(Event_T E);
83  static void handle_size(Event_T E);  static void handle_size(Event_T E);
84  static void handle_stop(Event_T E);  static void handle_stop(Event_T E);
85  static void handle_start(Event_T E);  static void handle_start(Event_T E);
86  static void handle_restart(Event_T E);  static void handle_restart(Event_T E);
87  static void handle_timeout(Event_T E);  static void handle_timeout(Event_T E);
88    static void handle_checksum(Event_T E);
89  static void handle_resource(Event_T E);  static void handle_resource(Event_T E);
90  static void handle_timestamp(Event_T E);  static void handle_timestamp(Event_T E);
91  static void handle_connection(Event_T E);  static void handle_connection(Event_T E);
 static void handle_checksum(Event_T E);  
92  static void handle_permission(Event_T E);  static void handle_permission(Event_T E);
 static void handle_uid(Event_T E);  
 static void handle_gid(Event_T E);  
93    
94    
95  /* ------------------------------------------------------------------ Public */  /* ------------------------------------------------------------------ Public */
# Line 231  static void handle_event(Event_T E) { Line 231  static void handle_event(Event_T E) {
231    }    }
232    
233    switch(E->id) {    switch(E->id) {
234      case EVENT_UID:        handle_uid(E); break;
235      case EVENT_GID:        handle_gid(E); break;
236    case EVENT_SIZE:       handle_size(E); break;    case EVENT_SIZE:       handle_size(E); break;
237    case EVENT_STOP:       handle_stop(E); break;    case EVENT_STOP:       handle_stop(E); break;
238    case EVENT_START:      handle_start(E); break;    case EVENT_START:      handle_start(E); break;
239    case EVENT_RESTART:    handle_restart(E); break;    case EVENT_RESTART:    handle_restart(E); break;
240    case EVENT_TIMEOUT:    handle_timeout(E); break;    case EVENT_TIMEOUT:    handle_timeout(E); break;
241    case EVENT_RESOURCE:   handle_resource(E); break;    case EVENT_RESOURCE:   handle_resource(E); break;
242      case EVENT_CHECKSUM:   handle_checksum(E); break;
243    case EVENT_TIMESTAMP:  handle_timestamp(E); break;    case EVENT_TIMESTAMP:  handle_timestamp(E); break;
244    case EVENT_CONNECTION: handle_connection(E); break;    case EVENT_CONNECTION: handle_connection(E); break;
   case EVENT_CHECKSUM:   handle_checksum(E); break;  
245    case EVENT_PERMISSION: handle_permission(E); break;    case EVENT_PERMISSION: handle_permission(E); break;
   case EVENT_UID:        handle_uid(E); break;  
   case EVENT_GID:        handle_gid(E); break;  
246    }    }
247        
248    if(E->id != EVENT_NULL) {    if(E->id != EVENT_NULL) {

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26