NewMadeleine

Documentation

« back to PM2 home.

Data Structures

struct  nm_core_event_s
 An event, generated by the NewMad core. More...
 
struct  nm_core_event_matching_s
 matching info for global monitors More...
 
struct  nm_monitor_s
 generic monitor, used for requests and for global events (with matching) More...
 
struct  nm_core_monitor_s
 global monitor for status transitions More...
 

Macros

#define NM_EVENT_MATCHING_ANY   ((struct nm_core_event_matching_s){ .p_gate = NM_ANY_GATE, .tag = NM_CORE_TAG_NONE, .tag_mask = NM_CORE_TAG_NONE })
 matches any event
 
#define NM_MONITOR_NULL   ((struct nm_monitor_s){ .p_notifier = NULL, .event_mask = 0, .ref = NULL })
 
#define NM_CORE_MONITOR_NULL   ((struct nm_core_monitor_s){ .monitor = NM_MONITOR_NULL, .matching = NM_EVENT_MATCHING_ANY })
 

Typedefs

typedef void(* nm_core_event_notifier_t) (const struct nm_core_event_s *const event, void *ref)
 an event notifier, fired upon status transition
 

Functions

void nm_core_monitor_add (nm_core_t p_core, struct nm_core_monitor_s *m)
 Register an event monitor.
 
void nm_core_monitor_remove (nm_core_t p_core, struct nm_core_monitor_s *m)
 Unregister an event monitor.
 
void nm_core_req_monitor (struct nm_core *p_core, struct nm_req_s *p_req, struct nm_monitor_s monitor)
 set a per-request monitor.
 

Variables

struct nm_core_event_s __attribute__
 

Detailed Description

Macro Definition Documentation

◆ NM_CORE_MONITOR_NULL

#define NM_CORE_MONITOR_NULL   ((struct nm_core_monitor_s){ .monitor = NM_MONITOR_NULL, .matching = NM_EVENT_MATCHING_ANY })

Definition at line 349 of file nm_core_interface.h.

◆ NM_EVENT_MATCHING_ANY

#define NM_EVENT_MATCHING_ANY   ((struct nm_core_event_matching_s){ .p_gate = NM_ANY_GATE, .tag = NM_CORE_TAG_NONE, .tag_mask = NM_CORE_TAG_NONE })

matches any event

Definition at line 345 of file nm_core_interface.h.

◆ NM_MONITOR_NULL

#define NM_MONITOR_NULL   ((struct nm_monitor_s){ .p_notifier = NULL, .event_mask = 0, .ref = NULL })

Definition at line 347 of file nm_core_interface.h.

Typedef Documentation

◆ nm_core_event_notifier_t

typedef void(* nm_core_event_notifier_t) (const struct nm_core_event_s *const event, void *ref)

an event notifier, fired upon status transition

Definition at line 312 of file nm_core_interface.h.

Function Documentation

◆ nm_core_monitor_add()

void nm_core_monitor_add ( nm_core_t  p_core,
struct nm_core_monitor_s m 
)

Register an event monitor.

◆ nm_core_monitor_remove()

void nm_core_monitor_remove ( nm_core_t  p_core,
struct nm_core_monitor_s m 
)

Unregister an event monitor.

◆ nm_core_req_monitor()

void nm_core_req_monitor ( struct nm_core p_core,
struct nm_req_s p_req,
struct nm_monitor_s  monitor 
)

set a per-request monitor.

Fire event immediately if pending

Variable Documentation

◆ __attribute__

struct nm_ctrl_chunk_s __attribute__
Examples
nm_sr_custom_data.c.

Definition at line 538 of file nm_data.h.