NewMadeleine

Documentation

« back to PM2 home.

definition gates and gate-related data structures. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  nm_gtag_s
 status of tags on each gate More...
 
struct  nm_matching_gsession_s
 
struct  nm_trk_s
 a track on a given gate More...
 
struct  nm_gate_s
 Connection to another process. More...
 

Macros

#define NM_FOR_EACH_GATE(P_GATE, P_CORE)    puk_list_foreach(nm_gate, P_GATE, &(P_CORE)->gate_list)
 

Typedefs

typedef enum nm_gate_status_e nm_gate_status_t
 

Enumerations

enum  nm_gate_status_e {
  NM_GATE_STATUS_INIT , NM_GATE_STATUS_CONNECTING , NM_GATE_STATUS_CONNECTED , NM_GATE_STATUS_DISCONNECTING ,
  NM_GATE_STATUS_DISCONNECTED
}
 status of a gate, used for dynamic connections More...
 

Functions

static void nm_gtag_ctor (struct nm_gtag_s *p_gtag, nm_core_tag_t tag __attribute__((unused)))
 
static void nm_gtag_dtor (struct nm_gtag_s *p_gtag __attribute__((unused)))
 
 NM_TAG_TABLE_TYPE (nm_gtag, struct nm_gtag_s)
 
static void nm_matching_gsession_ctor (struct nm_matching_gsession_s *p_gsession, nm_core_tag_t tag __attribute__((unused)))
 
static void nm_matching_gsession_dtor (struct nm_matching_gsession_s *p_gsession __attribute__((unused)))
 
 NM_TAG_TABLE_TYPE (nm_matching_gsession, struct nm_matching_gsession_s)
 
static struct nm_matching_gsession_snm_matching_gsession_bytag (struct nm_gate_s *p_gate, nm_core_tag_t core_tag)
 
 PUK_HASHTABLE_TYPE (nm_trk, void *, struct nm_trk_s *, &puk_hash_pointer_default_hash, &puk_hash_pointer_default_eq, NULL)
 
 PUK_LIST_DECLARE_TYPE (nm_gate)
 
 PUK_LIST_DECLARE_TYPE2 (nm_active_gate, struct nm_gate_s)
 
 PUK_LIST_CREATE_FUNCS (nm_gate)
 
 PUK_LIST_CREATE_FUNCS (nm_active_gate)
 

Detailed Description

definition gates and gate-related data structures.

Definition in file nm_gate.h.

Macro Definition Documentation

◆ NM_FOR_EACH_GATE

#define NM_FOR_EACH_GATE (   P_GATE,
  P_CORE 
)     puk_list_foreach(nm_gate, P_GATE, &(P_CORE)->gate_list)

Definition at line 146 of file nm_gate.h.

Typedef Documentation

◆ nm_gate_status_t

Definition at line 95 of file nm_gate.h.

Enumeration Type Documentation

◆ nm_gate_status_e

status of a gate, used for dynamic connections

Enumerator
NM_GATE_STATUS_INIT 

gate created, not connected

NM_GATE_STATUS_CONNECTING 

connection establishment is in progress

NM_GATE_STATUS_CONNECTED 

gate actually connected, may be used/polled

NM_GATE_STATUS_DISCONNECTING 

gate will be disconnected, do not post new request

NM_GATE_STATUS_DISCONNECTED 

gate has been disconnected, do not use

Definition at line 87 of file nm_gate.h.

Function Documentation

◆ nm_gtag_ctor()

static void nm_gtag_ctor ( struct nm_gtag_s p_gtag,
nm_core_tag_t tag   __attribute__(unused) 
)
inlinestatic

◆ nm_gtag_dtor()

static void nm_gtag_dtor ( struct nm_gtag_s *p_gtag   __attribute__(unused))
inlinestatic

Definition at line 44 of file nm_gate.h.

References assert(), and nm_gtag_s::pending_events.

Here is the call graph for this function:

◆ nm_matching_gsession_bytag()

static struct nm_matching_gsession_s * nm_matching_gsession_bytag ( struct nm_gate_s p_gate,
nm_core_tag_t  core_tag 
)
inlinestatic

◆ nm_matching_gsession_ctor()

static void nm_matching_gsession_ctor ( struct nm_matching_gsession_s p_gsession,
nm_core_tag_t tag   __attribute__(unused) 
)
inlinestatic

◆ nm_matching_gsession_dtor()

static void nm_matching_gsession_dtor ( struct nm_matching_gsession_s *p_gsession   __attribute__(unused))
inlinestatic

Definition at line 61 of file nm_gate.h.

◆ NM_TAG_TABLE_TYPE() [1/2]

NM_TAG_TABLE_TYPE ( nm_gtag  ,
struct nm_gtag_s   
)

◆ NM_TAG_TABLE_TYPE() [2/2]

NM_TAG_TABLE_TYPE ( nm_matching_gsession  ,
struct nm_matching_gsession_s   
)

◆ PUK_HASHTABLE_TYPE()

PUK_HASHTABLE_TYPE ( nm_trk  ,
void *  ,
struct nm_trk_s ,
puk_hash_pointer_default_hash,
puk_hash_pointer_default_eq,
NULL   
)

◆ PUK_LIST_CREATE_FUNCS() [1/2]

PUK_LIST_CREATE_FUNCS ( nm_active_gate  )

◆ PUK_LIST_CREATE_FUNCS() [2/2]

PUK_LIST_CREATE_FUNCS ( nm_gate  )

◆ PUK_LIST_DECLARE_TYPE()

PUK_LIST_DECLARE_TYPE ( nm_gate  )

◆ PUK_LIST_DECLARE_TYPE2()

PUK_LIST_DECLARE_TYPE2 ( nm_active_gate  ,
struct nm_gate_s   
)