00001 // AUTOMATICALLY GENERATED -- DO NOT EDIT! -*- c++ -*- 00002 00003 #ifndef jdb_tbuf_events_h 00004 #define jdb_tbuf_events_h 00005 00006 #include "l4_types.h" 00007 00008 // 00009 // INTERFACE definition follows 00010 // 00011 00012 00013 class Log_patch 00014 { 00015 friend class Log_event; 00016 00017 private: 00018 Log_patch *next; 00019 Unsigned8 *activator; 00020 00021 public: 00022 explicit Log_patch(void *code); 00023 00024 void enable(int enable); 00025 00026 inline int enabled(void); 00027 }; 00028 00029 class Log_event 00030 { 00031 const char *event_name; 00032 Log_patch *patch; 00033 int event_type; 00034 00035 public: 00036 explicit Log_event(const char *name, int type, int count, Log_patch *lp, ...); 00037 00038 // enable all patch entries of log event 00039 void enable(int enable); 00040 00041 // log event enabled if first entry is enabled 00042 inline int enabled(void) const; 00043 00044 // get name of log event 00045 inline const char* get_name(void) const; 00046 00047 // get type of log event 00048 inline int get_type(void) const; 00049 }; 00050 00051 class Jdb_tbuf_events 00052 { 00053 public: 00054 static Log_event *const log_events[]; 00055 }; 00056 00057 // 00058 // IMPLEMENTATION of inline functions (and needed classes) 00059 // 00060 00061 00062 00063 00064 inline int 00065 Log_patch::enabled(void) 00066 { 00067 return *activator; 00068 } 00069 00070 00071 // log event enabled if first entry is enabled 00072 00073 inline int 00074 Log_event::enabled(void) const 00075 { 00076 return patch->enabled(); 00077 } 00078 00079 00080 // get name of log event 00081 00082 inline const char* 00083 Log_event::get_name(void) const 00084 { 00085 return event_name; 00086 } 00087 00088 00089 // get type of log event 00090 00091 inline int 00092 Log_event::get_type(void) const 00093 { 00094 return event_type; 00095 } 00096 00097 #endif // jdb_tbuf_events_h