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=da15e0f4fb792fb5d034270f8e58ddb74856972e;hp=78468e29f21da6c6973b84e45bf23bdb0aaa3575;hb=caec2fcb18e829420672509fe5e356b48d0c3840;hpb=f379349d310d61b27d2c0bf7334d2268cc8f42e2 diff --git a/ntsimulator/ntsim-ng/core/datastore/populate.h b/ntsimulator/ntsim-ng/core/datastore/populate.h index 78468e2..da15e0f 100644 --- a/ntsimulator/ntsim-ng/core/datastore/populate.h +++ b/ntsimulator/ntsim-ng/core/datastore/populate.h @@ -1,6 +1,6 @@ /************************************************************************* * -* Copyright 2020 highstreet technologies GmbH and others +* Copyright 2021 highstreet technologies GmbH and others * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,11 +17,9 @@ #pragma once -#include -#include -#include +#include -#define DATASTORE_OPERATIONAL_PATH "log/datastore-operational.json" -#define DATASTORE_RUNNING_PATH "log/datastore-running.json" +int datastore_populate_all(); //fresh populate of all modules; handles late-resolving and validation over own-created job; should only be ran once +int datastore_populate_update_operational(const char **xpath, int xpath_len); -int datastore_populate(int retries); +int datastore_dynamic_operational_auto_callback(sr_session_ctx_t *session, const char *module_name, const char *xpath, sr_event_t event, uint32_t request_id, void *private_data);