X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=sim%2Fo1-interface.git;a=blobdiff_plain;f=ntsimulator%2Fntsim-ng%2Fcore%2Fdatastore%2Fpopulate.h;h=78468e29f21da6c6973b84e45bf23bdb0aaa3575;hp=3df3693c03ebb240d3b42238f6e9aa21ebf2cfbf;hb=3bbf9d8a3c81afebcffb2b926cef219336dd53d6;hpb=312a154cc4d60a09596fba8fd1259345e048cdc2 diff --git a/ntsimulator/ntsim-ng/core/datastore/populate.h b/ntsimulator/ntsim-ng/core/datastore/populate.h index 3df3693..78468e2 100644 --- a/ntsimulator/ntsim-ng/core/datastore/populate.h +++ b/ntsimulator/ntsim-ng/core/datastore/populate.h @@ -20,35 +20,8 @@ #include #include #include -#include -typedef struct { - int init; +#define DATASTORE_OPERATIONAL_PATH "log/datastore-operational.json" +#define DATASTORE_RUNNING_PATH "log/datastore-running.json" - char *xpath; - - const struct lys_module **modules; - int mod_count; - - struct lyd_node *operational; - struct lyd_node *running; -} populate_instance_t; - -typedef struct { - struct lyd_node *operational; - struct lyd_node *running; - bool late_resolving; - - int late_resolve_count; - struct lys_node **late_resolve_schema; - struct lyd_node **late_resolve_parent_o; - struct lyd_node **late_resolve_parent_r; - populate_instance_t **late_resolve_instance; -} populate_job_t; - -//populate.c -int schema_populate(void); //populate all available root nodes (taking into consideration excluded, deprecated and unimplemented) - -//populate_rec.c -int schema_populate_recursive(populate_job_t *job, populate_instance_t *instance, struct lys_node *schema, struct lyd_node *parent_o, struct lyd_node *parent_r); -int schema_populate_add_leaf(populate_job_t *job, populate_instance_t *instance, struct lys_node *schema, struct lyd_node *parent_o, struct lyd_node *parent_r); +int datastore_populate(int retries);