Commit d559711
committed
refactor and fix:
- consistent function structure: all functions now mirror their JSON counterparts
- lydcbor_parse_name() - parses member names with @ and : support
- lydcbor_get_node_prefix() - handles module prefixes
- lydcbor_get_snode() - finds schema nodes
- lydcbor_value_type_hint() - determines value type hints
- lydcbor_data_check_opaq() - checks if data should be parsed as opaque
- lydcbor_metadata_finish() - links forward-referenced metadata
- lydcbor_meta_attr() - parses metadata/attributes
- lydcbor_parse_any() - handles anydata/anyxml
- lydcbor_parse_instance_inner() - parses inner nodes
- lydcbor_parse_instance() - parses single node instances
- lydcbor_subtree_r() - main recursive parsing function
- using cbor_typeof() consistently to check types instead of multiple cbor_isa_*() calls
- better error handling, null handling and array processing and meta data support and qpaque node support
- introduced LY_VALUE_CBOR format and added all necessary case statements1 parent 2a5e854 commit d559711
File tree
18 files changed
+1552
-695
lines changed- src
- plugins_types
18 files changed
+1552
-695
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | 48 | | |
79 | 49 | | |
80 | 50 | | |
| |||
0 commit comments