MCPcopy Create free account
hub / github.com/apache/qpid-proton / pni_node_fields

Function pni_node_fields

c/src/core/codec.c:94–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94static const pn_fields_t *pni_node_fields(pn_data_t *data, pni_node_t *node)
95{
96 if (!node) return NULL;
97 if (node->atom.type != PN_DESCRIBED) return NULL;
98
99 pni_node_t *descriptor = pn_data_node(data, node->down);
100
101 if (!descriptor || descriptor->atom.type != PN_ULONG) {
102 return NULL;
103 }
104
105 if (descriptor->atom.u.as_ulong >= FIELD_MIN && descriptor->atom.u.as_ulong <= FIELD_MAX) {
106 const pn_fields_t *f = &FIELDS[descriptor->atom.u.as_ulong-FIELD_MIN];
107 return (f->name_index!=0) ? f : NULL;
108 } else {
109 return NULL;
110 }
111}
112
113void pni_inspect_atom(pn_atom_t *atom, pn_fixed_string_t *str)
114{

Callers 2

pni_inspect_enterFunction · 0.85
pni_inspect_exitFunction · 0.85

Calls 1

pn_data_nodeFunction · 0.85

Tested by

no test coverage detected