#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
Go to the source code of this file.
|
enum | lush_assoc {
LUSH_ASSOC_CLASS_MASK = 0x0f,
LUSH_ASSOC_CLASS_NULL = 0x00,
LUSH_ASSOC_CLASS_a_to_0 = 0x01,
LUSH_ASSOC_CLASS_a_to_1 = 0x02,
LUSH_ASSOC_CLASS_1_to_a = 0x04,
LUSH_ASSOC_NULL = 0,
LUSH_ASSOC_1_to_0 = MKASSOC1(1, LUSH_ASSOC_CLASS_a_to_0),
LUSH_ASSOC_M_to_0 = MKASSOC1(2, LUSH_ASSOC_CLASS_a_to_0),
LUSH_ASSOC_1_to_1,
LUSH_ASSOC_M_to_1 = MKASSOC1(4, LUSH_ASSOC_CLASS_a_to_1),
LUSH_ASSOC_1_to_M = MKASSOC1(5, LUSH_ASSOC_CLASS_1_to_a),
LUSH_ASSOC_0_to_0 = MKASSOC1(10, LUSH_ASSOC_CLASS_a_to_0)
} |
|
|
static unsigned | lush_assoc_class (lush_assoc_t as) |
|
static bool | lush_assoc_is_a_to_0 (lush_assoc_t as) |
|
static bool | lush_assoc_is_1_to_a (lush_assoc_t as) |
|
static bool | lush_assoc_is_a_to_1 (lush_assoc_t as) |
|
static uint32_t | lush_assoc_info__get_path_len (lush_assoc_info_t x) |
|
static lush_assoc_t | lush_assoc_info__get_assoc (lush_assoc_info_t x) |
|
static bool | lush_assoc_info__path_len_eq (lush_assoc_info_t x, lush_assoc_info_t y) |
|
static bool | lush_assoc_class_eq (lush_assoc_t x, lush_assoc_t y) |
|
static bool | lush_assoc_info_eq (lush_assoc_info_t x, lush_assoc_info_t y) |
|
static bool | lush_assoc_info_lt (lush_assoc_info_t x, lush_assoc_info_t y) |
|
static bool | lush_assoc_info_gt (lush_assoc_info_t x, lush_assoc_info_t y) |
|
static bool | lush_assoc_info_is_root_note (lush_assoc_info_t x) |
|
const char * | lush_assoc_tostr (lush_assoc_t as) |
|
const char * | lush_assoc_info_sprintf (char *str, lush_assoc_info_t as_info) |
|
static void | lush_lip_init (lush_lip_t *x) |
|
static bool | lush_lip_eq (const lush_lip_t *x, const lush_lip_t *y) |
|
static bool | lush_lip_lt (const lush_lip_t *x, const lush_lip_t *y) |
|
static bool | lush_lip_gt (const lush_lip_t *x, const lush_lip_t *y) |
|
const char * | lush_lip_sprintf (char *str, const lush_lip_t *x) |
|
static uint16_t | lush_lip_getLMId (const lush_lip_t *x) |
|
static void | lush_lip_setLMId (lush_lip_t *x, uint16_t lmId) |
|
static uint64_t | lush_lip_getLMIP (const lush_lip_t *x) |
|
static void | lush_lip_setLMIP (lush_lip_t *x, uint64_t lm_ip) |
|
◆ lush_agentid_NULL
#define lush_agentid_NULL (0) |
◆ lush_assoc_info__set_assoc
#define lush_assoc_info__set_assoc |
( |
|
x, |
|
|
|
new_as |
|
) |
| (x).u.as = (new_as) |
◆ lush_assoc_info__set_path_len
#define lush_assoc_info__set_path_len |
( |
|
x, |
|
|
|
new_len |
|
) |
| (x).u.len = (new_len) |
◆ LUSH_ASSOC_INFO_STR_MIN_LEN
◆ LUSH_ASSOC_STR_MAX_LEN
#define LUSH_ASSOC_STR_MAX_LEN 6 |
◆ LUSH_LIP_DATA1_SZ
#define LUSH_LIP_DATA1_SZ 16 |
◆ LUSH_LIP_DATA8_SZ
◆ LUSH_LIP_STR_MIN_LEN
◆ lush_metricid_NULL
#define lush_metricid_NULL (-1) |
◆ MKASSOC1
#define MKASSOC1 |
( |
|
as, |
|
|
|
c1 |
|
) |
| ( ((as) << 4) | (c1) ) |
◆ MKASSOC2
#define MKASSOC2 |
( |
|
as, |
|
|
|
c1, |
|
|
|
c2 |
|
) |
| ( ((as) << 4) | (c1) | (c2) ) |
◆ lush_agent_pool_t
◆ lush_agent_t
◆ lush_agentid_t
◆ lush_assoc_info_t
◆ lush_assoc_t
◆ lush_lip_t
◆ lush_assoc
Enumerator |
---|
LUSH_ASSOC_CLASS_MASK | |
LUSH_ASSOC_CLASS_NULL | |
LUSH_ASSOC_CLASS_a_to_0 | |
LUSH_ASSOC_CLASS_a_to_1 | |
LUSH_ASSOC_CLASS_1_to_a | |
LUSH_ASSOC_NULL | |
LUSH_ASSOC_1_to_0 | |
LUSH_ASSOC_M_to_0 | |
LUSH_ASSOC_1_to_1 | |
LUSH_ASSOC_M_to_1 | |
LUSH_ASSOC_1_to_M | |
LUSH_ASSOC_0_to_0 | |
Definition at line 133 of file lush-support.h.
◆ lush_assoc_class()
◆ lush_assoc_class_eq()
◆ lush_assoc_info__get_assoc()
◆ lush_assoc_info__get_path_len()
◆ lush_assoc_info__path_len_eq()
◆ lush_assoc_info_eq()
◆ lush_assoc_info_gt()
◆ lush_assoc_info_is_root_note()
◆ lush_assoc_info_lt()
◆ lush_assoc_info_sprintf()
◆ lush_assoc_is_1_to_a()
◆ lush_assoc_is_a_to_0()
◆ lush_assoc_is_a_to_1()
◆ lush_assoc_tostr()
◆ lush_lip_eq()
◆ lush_lip_getLMId()
static uint16_t lush_lip_getLMId |
( |
const lush_lip_t * |
x | ) |
|
|
inlinestatic |
◆ lush_lip_getLMIP()
static uint64_t lush_lip_getLMIP |
( |
const lush_lip_t * |
x | ) |
|
|
inlinestatic |
◆ lush_lip_gt()
◆ lush_lip_init()
◆ lush_lip_lt()
◆ lush_lip_setLMId()
static void lush_lip_setLMId |
( |
lush_lip_t * |
x, |
|
|
uint16_t |
lmId |
|
) |
| |
|
inlinestatic |
◆ lush_lip_setLMIP()
static void lush_lip_setLMIP |
( |
lush_lip_t * |
x, |
|
|
uint64_t |
lm_ip |
|
) |
| |
|
inlinestatic |
◆ lush_lip_sprintf()
const char* lush_lip_sprintf |
( |
char * |
str, |
|
|
const lush_lip_t * |
x |
|
) |
| |
◆ lush_assoc_info_NULL
◆ lush_lip_NULL