From 7714c576d6375254d0ab432fc8e07213892e4d17 Mon Sep 17 00:00:00 2001 From: Mateo Cindric Date: Thu, 9 Feb 2023 16:25:29 +0000 Subject: [PATCH] ietf-system-augeas: fix function naming --- .../ietf-system/datastore/running/load.c | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/plugins/ietf-system/datastore/running/load.c b/src/plugins/ietf-system/datastore/running/load.c index 17a1ba3..80db48d 100644 --- a/src/plugins/ietf-system/datastore/running/load.c +++ b/src/plugins/ietf-system/datastore/running/load.c @@ -42,12 +42,12 @@ #include -static int system_startup_load_hostname(void *priv, sr_session_ctx_t *session, const struct ly_ctx *ly_ctx, struct lyd_node *parent_node); -static int system_startup_load_contact(void *priv, sr_session_ctx_t *session, const struct ly_ctx *ly_ctx, struct lyd_node *parent_node); -static int system_startup_load_location(void *priv, sr_session_ctx_t *session, const struct ly_ctx *ly_ctx, struct lyd_node *parent_node); -static int system_startup_load_timezone_name(void *priv, sr_session_ctx_t *session, const struct ly_ctx *ly_ctx, struct lyd_node *parent_node); -static int system_startup_load_dns_resolver(void *priv, sr_session_ctx_t *session, const struct ly_ctx *ly_ctx, struct lyd_node *parent_node); -static int system_startup_load_authentication(void *priv, sr_session_ctx_t *session, const struct ly_ctx *ly_ctx, struct lyd_node *parent_node); +static int system_running_load_hostname(void *priv, sr_session_ctx_t *session, const struct ly_ctx *ly_ctx, struct lyd_node *parent_node); +static int system_running_load_contact(void *priv, sr_session_ctx_t *session, const struct ly_ctx *ly_ctx, struct lyd_node *parent_node); +static int system_running_load_location(void *priv, sr_session_ctx_t *session, const struct ly_ctx *ly_ctx, struct lyd_node *parent_node); +static int system_running_load_timezone_name(void *priv, sr_session_ctx_t *session, const struct ly_ctx *ly_ctx, struct lyd_node *parent_node); +static int system_running_load_dns_resolver(void *priv, sr_session_ctx_t *session, const struct ly_ctx *ly_ctx, struct lyd_node *parent_node); +static int system_running_load_authentication(void *priv, sr_session_ctx_t *session, const struct ly_ctx *ly_ctx, struct lyd_node *parent_node); int system_running_ds_load(system_ctx_t *ctx, sr_session_ctx_t *session) { @@ -60,23 +60,23 @@ int system_running_ds_load(system_ctx_t *ctx, sr_session_ctx_t *session) srpc_startup_load_t load_values[] = { { "contact", - system_startup_load_contact, + system_running_load_contact, }, { "location", - system_startup_load_location, + system_running_load_location, }, { "timezone-name", - system_startup_load_timezone_name, + system_running_load_timezone_name, }, { "dns-resolver", - system_startup_load_dns_resolver, + system_running_load_dns_resolver, }, { "authentication", - system_startup_load_authentication, + system_running_load_authentication, }, }; @@ -102,7 +102,7 @@ int system_running_ds_load(system_ctx_t *ctx, sr_session_ctx_t *session) } } -// enable or disable storing into startup - use when testing load functionality for now +// enable or disable storing into running - use when testing load functionality for now #define SYSTEM_PLUGIN_LOAD_STARTUP #ifdef SYSTEM_PLUGIN_LOAD_STARTUP @@ -134,7 +134,7 @@ int system_running_ds_load(system_ctx_t *ctx, sr_session_ctx_t *session) return error; } -static int system_startup_load_hostname(void *priv, sr_session_ctx_t *session, const struct ly_ctx *ly_ctx, struct lyd_node *parent_node) +static int system_running_load_hostname(void *priv, sr_session_ctx_t *session, const struct ly_ctx *ly_ctx, struct lyd_node *parent_node) { int error = 0; system_ctx_t *ctx = (system_ctx_t *) priv; @@ -161,19 +161,19 @@ static int system_startup_load_hostname(void *priv, sr_session_ctx_t *session, c return error; } -static int system_startup_load_contact(void *priv, sr_session_ctx_t *session, const struct ly_ctx *ly_ctx, struct lyd_node *parent_node) +static int system_running_load_contact(void *priv, sr_session_ctx_t *session, const struct ly_ctx *ly_ctx, struct lyd_node *parent_node) { int error = 0; return error; } -static int system_startup_load_location(void *priv, sr_session_ctx_t *session, const struct ly_ctx *ly_ctx, struct lyd_node *parent_node) +static int system_running_load_location(void *priv, sr_session_ctx_t *session, const struct ly_ctx *ly_ctx, struct lyd_node *parent_node) { int error = 0; return error; } -static int system_startup_load_timezone_name(void *priv, sr_session_ctx_t *session, const struct ly_ctx *ly_ctx, struct lyd_node *parent_node) +static int system_running_load_timezone_name(void *priv, sr_session_ctx_t *session, const struct ly_ctx *ly_ctx, struct lyd_node *parent_node) { int error = 0; system_ctx_t *ctx = (system_ctx_t *) priv; @@ -210,7 +210,7 @@ static int system_startup_load_timezone_name(void *priv, sr_session_ctx_t *sessi return error; } -static int system_startup_load_dns_resolver(void *priv, sr_session_ctx_t *session, const struct ly_ctx *ly_ctx, struct lyd_node *parent_node) +static int system_running_load_dns_resolver(void *priv, sr_session_ctx_t *session, const struct ly_ctx *ly_ctx, struct lyd_node *parent_node) { int error = 0; system_ctx_t *ctx = (system_ctx_t *) priv; @@ -311,7 +311,7 @@ static int system_startup_load_dns_resolver(void *priv, sr_session_ctx_t *sessio return error; } -static int system_startup_load_authentication(void *priv, sr_session_ctx_t *session, const struct ly_ctx *ly_ctx, struct lyd_node *parent_node) +static int system_running_load_authentication(void *priv, sr_session_ctx_t *session, const struct ly_ctx *ly_ctx, struct lyd_node *parent_node) { int error = 0; system_ctx_t *ctx = (system_ctx_t *) priv;