mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-05 23:37:22 +00:00
[SEPP] Initial Update for 5G Roaming (#2739)
[SEPP] Initial Update for 5G Roaming
This commit is contained in:
parent
e12b1be313
commit
e92293e0af
324 changed files with 26622 additions and 14319 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2019 by Sukchan Lee <acetcom@gmail.com>
|
||||
* Copyright (C) 2019-2023 by Sukchan Lee <acetcom@gmail.com>
|
||||
*
|
||||
* This file is part of Open5GS.
|
||||
*
|
||||
|
|
@ -30,6 +30,21 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define OGS_YAML_ARRAY_RECURSE(ARRAY, ITERATOR) \
|
||||
if (ogs_yaml_iter_type(ARRAY) == YAML_MAPPING_NODE) { \
|
||||
memcpy((ITERATOR), (ARRAY), sizeof(ogs_yaml_iter_t)); \
|
||||
} else if (ogs_yaml_iter_type(ARRAY) == YAML_SEQUENCE_NODE) { \
|
||||
ogs_yaml_iter_recurse((ARRAY), (ITERATOR)); \
|
||||
} else if (ogs_yaml_iter_type(ARRAY) == YAML_SCALAR_NODE) { \
|
||||
break; \
|
||||
} else \
|
||||
ogs_assert_if_reached();
|
||||
|
||||
#define OGS_YAML_ARRAY_NEXT(ARRAY, ITERATOR) \
|
||||
if (ogs_yaml_iter_type(ARRAY) == YAML_SEQUENCE_NODE && \
|
||||
!ogs_yaml_iter_next(ARRAY)) break; \
|
||||
OGS_YAML_ARRAY_RECURSE(ARRAY, ITERATOR);
|
||||
|
||||
typedef struct {
|
||||
yaml_document_t *document;
|
||||
yaml_node_t *node;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue