Skip to content
Snippets Groups Projects
Commit 70dd4c0d authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

prepare resolve field name for the future

parent 389b472f
No related branches found
No related tags found
No related merge requests found
......@@ -181,7 +181,7 @@ struct resolve_service_s
uint32_t owner ; // integer, uid of the owner
uint32_t treename ; // string
uint32_t user ; // string
uint32_t inmodule ; // string, name of the module which depend on
uint32_t inns ; // string, name of the namespace(module) which depend on
uint32_t enabled ; // integer, 0 not enabled
resolve_service_addon_path_t path ;
......@@ -222,7 +222,7 @@ enum resolve_service_enum_e
E_RESOLVE_SERVICE_OWNER,
E_RESOLVE_SERVICE_TREENAME,
E_RESOLVE_SERVICE_USER,
E_RESOLVE_SERVICE_INMODULE,
E_RESOLVE_SERVICE_INNS,
E_RESOLVE_SERVICE_ENABLED,
// path
......@@ -327,7 +327,7 @@ extern void service_db_migrate(resolve_service_t *old, resolve_service_t *new, c
typedef struct ss_state_s ss_state_t, *ss_state_t_ref ;
/** Graph */
extern void service_graph_g(char const *alist, size_t alen, graph_t *graph, resolve_service_t *ares, unsigned int *areslen, ssexec_t *info, uint32_t flag) ;
extern void service_graph_g(char const *slist, size_t slen, graph_t *graph, resolve_service_t *ares, unsigned int *areslen, ssexec_t *info, uint32_t flag) ;
extern void service_graph_collect(graph_t *g, char const *alist, size_t alen, resolve_service_t *ares, unsigned int *areslen, ssexec_t *info, uint32_t flag) ;
extern void service_graph_build(graph_t *g, resolve_service_t *ares, unsigned int areslen, uint32_t flag) ;
......
......@@ -42,8 +42,8 @@ int env_resolve_conf(stralloc *env, resolve_service_t *res)
return 0 ;
}
if (res->inmodule)
if (!auto_stra(env, res->sa.s + res->inmodule, SS_SYM_VERSION, "/"))
if (res->inns)
if (!auto_stra(env, res->sa.s + res->inns, SS_SYM_VERSION, "/"))
return 0 ;
if (!auto_stra(env, res->sa.s + res->name))
......
......@@ -57,7 +57,7 @@ static void remove_service(resolve_service_t *res, ssexec_t *info)
tree_service_remove(info->base.s, res->sa.s + res->treename, res->sa.s + res->name) ;
if ((res->logger.want && (res->type == TYPE_CLASSIC || res->type == TYPE_ONESHOT)) && !res->inmodule) {
if ((res->logger.want && (res->type == TYPE_CLASSIC || res->type == TYPE_ONESHOT)) && !res->inns) {
resolve_service_t lres = RESOLVE_SERVICE_ZERO ;
resolve_wrapper_t_ref lwres = resolve_set_struct(DATA_SERVICE, &lres) ;
......
......@@ -91,7 +91,7 @@ static void info_display_service_field(resolve_service_t *res)
info_display_int(fields[m++], res->owner) ;
info_display_string(fields[m++], res->sa.s, res->treename, 1) ;
info_display_string(fields[m++], res->sa.s, res->user, 1) ;
info_display_string(fields[m++], res->sa.s, res->inmodule, 1) ;
info_display_string(fields[m++], res->sa.s, res->inns, 1) ;
info_display_int(fields[m++], res->enabled) ;
info_display_string(fields[m++], res->sa.s, res->path.home, 1) ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment