29 #ifndef MCA_NOTIFIER_H
30 #define MCA_NOTIFIER_H
36 #include "orte_config.h"
43 #include "opal/util/opal_sos.h"
45 #include "orte/constants.h"
48 #include "notifier_event_types.h"
57 #define ORTE_NOTIFIER_MAX_BUF 512
61 ORTE_NOTIFIER_EMERG = OPAL_SOS_SEVERITY_EMERG,
62 ORTE_NOTIFIER_ALERT = OPAL_SOS_SEVERITY_ALERT,
63 ORTE_NOTIFIER_CRIT = OPAL_SOS_SEVERITY_CRIT,
64 ORTE_NOTIFIER_ERROR = OPAL_SOS_SEVERITY_ERROR,
65 ORTE_NOTIFIER_WARN = OPAL_SOS_SEVERITY_WARN,
66 ORTE_NOTIFIER_NOTICE = OPAL_SOS_SEVERITY_NOTICE,
67 ORTE_NOTIFIER_INFO = OPAL_SOS_SEVERITY_INFO,
68 ORTE_NOTIFIER_DEBUG = OPAL_SOS_SEVERITY_DEBUG
69 } orte_notifier_base_severity_t;
76 typedef int (*orte_notifier_base_module_init_fn_t)(void);
79 typedef void (*orte_notifier_base_module_finalize_fn_t)(void);
82 typedef void (*orte_notifier_base_module_log_fn_t)(orte_notifier_base_severity_t severity,
int errcode,
const char *msg, va_list ap)
83 __opal_attribute_format_funcptr__(__printf__, 3, 0);
86 typedef void (*orte_notifier_base_module_log_show_help_fn_t)(orte_notifier_base_severity_t severity,
int errcode,
const char *file,
const char *topic, va_list ap);
89 typedef void (*orte_notifier_base_module_log_peer_fn_t)(orte_notifier_base_severity_t severity,
int errcode,
orte_process_name_t *peer_proc,
const char *msg, va_list ap)
90 __opal_attribute_format_funcptr__(__printf__, 4, 0);
93 typedef void (*orte_notifier_base_module_log_event_fn_t)(
const char *msg);
99 orte_notifier_base_module_init_fn_t init;
100 orte_notifier_base_module_finalize_fn_t finalize;
101 orte_notifier_base_module_log_fn_t log;
102 orte_notifier_base_module_log_show_help_fn_t help;
103 orte_notifier_base_module_log_peer_fn_t peer;
104 orte_notifier_base_module_log_event_fn_t log_event;
114 typedef void (*orte_notifier_base_API_log_fn_t)(orte_notifier_base_severity_t severity,
int errcode,
const char *msg, ...);
117 typedef void (*orte_notifier_base_API_log_show_help_fn_t)(orte_notifier_base_severity_t severity,
int errcode,
const char *file,
const char *topic, ...);
120 typedef void (*orte_notifier_base_API_log_peer_fn_t)(orte_notifier_base_severity_t severity,
int errcode,
orte_process_name_t *peer_proc,
const char *msg, ...);
126 orte_notifier_base_API_log_fn_t log;
127 orte_notifier_base_API_log_show_help_fn_t show_help;
128 orte_notifier_base_API_log_peer_fn_t log_peer;
133 ORTE_DECLSPEC
extern orte_notifier_API_module_t orte_notifier;
149 #define ORTE_NOTIFIER_BASE_VERSION_1_0_0 \
151 MCA_BASE_VERSION_2_0_0, \
160 #if ORTE_WANT_NOTIFIER_LOG_EVENT
162 #include "notifier_event_calls.h"
166 #define ORTE_NOTIFIER_DEFINE_EVENT(i, m)
167 #define ORTE_NOTIFIER_LOG_EVENT(i, c, t) do {} while (0)
Common type for all MCA components.
Definition: mca.h:250
Definition: notifier.h:98
Top-level interface for all MCA components.
Meta data for MCA v2.0.0 components.
Definition: mca.h:309
Definition: notifier.h:138
Definition: notifier.h:125