nmsg 1.1.2
Enumerations | Functions
alias.h File Reference

Nmsg payload operator and group aliasing. More...

Go to the source code of this file.

Enumerations

enum  nmsg_alias_e {
  nmsg_alias_operator ,
  nmsg_alias_group
}
 Alias type. More...
 

Functions

const char * nmsg_alias_by_key (nmsg_alias_e ae, unsigned key)
 Look up an alias by key.
 
unsigned nmsg_alias_by_value (nmsg_alias_e ae, const char *value)
 Look up an alias by name.
 

Detailed Description

Nmsg payload operator and group aliasing.

Nmsg payloads have operator and group values associated with them. These values are numeric on the wire to permit extensible assignment but may be aliased to presentation forms.

Definition in file alias.h.

Enumeration Type Documentation

◆ nmsg_alias_e

Alias type.

Enumerator
nmsg_alias_operator 

operator ID -> operator name

nmsg_alias_group 

group ID -> group name

Definition at line 31 of file alias.h.

Function Documentation

◆ nmsg_alias_by_key()

const char * nmsg_alias_by_key ( nmsg_alias_e  ae,
unsigned  key 
)

Look up an alias by key.

Parameters
aealias type
keynumeric ID
Returns
presentation form name or NULL if not found

◆ nmsg_alias_by_value()

unsigned nmsg_alias_by_value ( nmsg_alias_e  ae,
const char *  value 
)

Look up an alias by name.

Parameters
aealias type
valuepresentation form name
Returns
numeric ID