Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
6
66
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eric Vidal
66
Commits
7b6bacf6
Commit
7b6bacf6
authored
2 years ago
by
Eric Vidal
Browse files
Options
Downloads
Patches
Plain Diff
transfert resolve_service_field_table from service.c to service_resolve_modify_field.c file
parent
bac59ce0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/lib66/service/service.c
+0
-38
0 additions, 38 deletions
src/lib66/service/service.c
src/lib66/service/service_resolve_modify_field.c
+38
-0
38 additions, 0 deletions
src/lib66/service/service_resolve_modify_field.c
with
38 additions
and
38 deletions
src/lib66/service/service.c
+
0
−
38
View file @
7b6bacf6
...
...
@@ -29,44 +29,6 @@
#include
<66/service.h>
#include
<66/state.h>
resolve_field_table_t
resolve_service_field_table
[]
=
{
[
SERVICE_ENUM_NAME
]
=
{
.
field
=
"name"
},
[
SERVICE_ENUM_DESCRIPTION
]
=
{
.
field
=
"description"
},
[
SERVICE_ENUM_VERSION
]
=
{
.
field
=
"version"
},
[
SERVICE_ENUM_LOGGER
]
=
{
.
field
=
"logger"
},
[
SERVICE_ENUM_LOGREAL
]
=
{
.
field
=
"logreal"
},
[
SERVICE_ENUM_LOGASSOC
]
=
{
.
field
=
"logassoc"
},
[
SERVICE_ENUM_DSTLOG
]
=
{
.
field
=
"dstlog"
},
[
SERVICE_ENUM_DEPENDS
]
=
{
.
field
=
"depends"
},
[
SERVICE_ENUM_REQUIREDBY
]
=
{
.
field
=
"requiredby"
},
[
SERVICE_ENUM_OPTSDEPS
]
=
{
.
field
=
"optsdeps"
},
[
SERVICE_ENUM_EXTDEPS
]
=
{
.
field
=
"extdeps"
},
[
SERVICE_ENUM_CONTENTS
]
=
{
.
field
=
"contents"
},
[
SERVICE_ENUM_SRC
]
=
{
.
field
=
"src"
},
[
SERVICE_ENUM_SRCONF
]
=
{
.
field
=
"srconf"
},
[
SERVICE_ENUM_LIVE
]
=
{
.
field
=
"live"
},
[
SERVICE_ENUM_RUNAT
]
=
{
.
field
=
"runat"
},
[
SERVICE_ENUM_TREE
]
=
{
.
field
=
"tree"
},
[
SERVICE_ENUM_TREENAME
]
=
{
.
field
=
"treename"
},
[
SERVICE_ENUM_STATE
]
=
{
.
field
=
"state"
},
[
SERVICE_ENUM_EXEC_RUN
]
=
{
.
field
=
"exec_run"
},
[
SERVICE_ENUM_EXEC_LOG_RUN
]
=
{
.
field
=
"exec_log_run"
},
[
SERVICE_ENUM_REAL_EXEC_RUN
]
=
{
.
field
=
"real_exec_run"
},
[
SERVICE_ENUM_REAL_EXEC_LOG_RUN
]
=
{
.
field
=
"real_exec_log_run"
},
[
SERVICE_ENUM_EXEC_FINISH
]
=
{
.
field
=
"exec_finish"
},
[
SERVICE_ENUM_REAL_EXEC_FINISH
]
=
{
.
field
=
"real_exec_finish"
},
[
SERVICE_ENUM_TYPE
]
=
{
.
field
=
"type"
},
[
SERVICE_ENUM_NDEPENDS
]
=
{
.
field
=
"ndepends"
},
[
SERVICE_ENUM_NREQUIREDBY
]
=
{
.
field
=
"nrequiredby"
},
[
SERVICE_ENUM_NOPTSDEPS
]
=
{
.
field
=
"noptsdeps"
},
[
SERVICE_ENUM_NEXTDEPS
]
=
{
.
field
=
"nextdeps"
},
[
SERVICE_ENUM_NCONTENTS
]
=
{
.
field
=
"ncontents"
},
[
SERVICE_ENUM_DOWN
]
=
{
.
field
=
"down"
},
[
SERVICE_ENUM_DISEN
]
=
{
.
field
=
"disen"
},
[
SERVICE_ENUM_ENDOFKEY
]
=
{
.
field
=
0
}
}
;
int
service_resolve_add_deps
(
genalloc
*
tokeep
,
resolve_service_t
*
res
,
char
const
*
src
)
{
log_flow
()
;
...
...
This diff is collapsed.
Click to expand it.
src/lib66/service/service_resolve_modify_field.c
+
38
−
0
View file @
7b6bacf6
...
...
@@ -20,6 +20,44 @@
#include
<66/resolve.h>
#include
<66/service.h>
resolve_field_table_t
resolve_service_field_table
[]
=
{
[
SERVICE_ENUM_NAME
]
=
{
.
field
=
"name"
},
[
SERVICE_ENUM_DESCRIPTION
]
=
{
.
field
=
"description"
},
[
SERVICE_ENUM_VERSION
]
=
{
.
field
=
"version"
},
[
SERVICE_ENUM_LOGGER
]
=
{
.
field
=
"logger"
},
[
SERVICE_ENUM_LOGREAL
]
=
{
.
field
=
"logreal"
},
[
SERVICE_ENUM_LOGASSOC
]
=
{
.
field
=
"logassoc"
},
[
SERVICE_ENUM_DSTLOG
]
=
{
.
field
=
"dstlog"
},
[
SERVICE_ENUM_DEPENDS
]
=
{
.
field
=
"depends"
},
[
SERVICE_ENUM_REQUIREDBY
]
=
{
.
field
=
"requiredby"
},
[
SERVICE_ENUM_OPTSDEPS
]
=
{
.
field
=
"optsdeps"
},
[
SERVICE_ENUM_EXTDEPS
]
=
{
.
field
=
"extdeps"
},
[
SERVICE_ENUM_CONTENTS
]
=
{
.
field
=
"contents"
},
[
SERVICE_ENUM_SRC
]
=
{
.
field
=
"src"
},
[
SERVICE_ENUM_SRCONF
]
=
{
.
field
=
"srconf"
},
[
SERVICE_ENUM_LIVE
]
=
{
.
field
=
"live"
},
[
SERVICE_ENUM_RUNAT
]
=
{
.
field
=
"runat"
},
[
SERVICE_ENUM_TREE
]
=
{
.
field
=
"tree"
},
[
SERVICE_ENUM_TREENAME
]
=
{
.
field
=
"treename"
},
[
SERVICE_ENUM_STATE
]
=
{
.
field
=
"state"
},
[
SERVICE_ENUM_EXEC_RUN
]
=
{
.
field
=
"exec_run"
},
[
SERVICE_ENUM_EXEC_LOG_RUN
]
=
{
.
field
=
"exec_log_run"
},
[
SERVICE_ENUM_REAL_EXEC_RUN
]
=
{
.
field
=
"real_exec_run"
},
[
SERVICE_ENUM_REAL_EXEC_LOG_RUN
]
=
{
.
field
=
"real_exec_log_run"
},
[
SERVICE_ENUM_EXEC_FINISH
]
=
{
.
field
=
"exec_finish"
},
[
SERVICE_ENUM_REAL_EXEC_FINISH
]
=
{
.
field
=
"real_exec_finish"
},
[
SERVICE_ENUM_TYPE
]
=
{
.
field
=
"type"
},
[
SERVICE_ENUM_NDEPENDS
]
=
{
.
field
=
"ndepends"
},
[
SERVICE_ENUM_NREQUIREDBY
]
=
{
.
field
=
"nrequiredby"
},
[
SERVICE_ENUM_NOPTSDEPS
]
=
{
.
field
=
"noptsdeps"
},
[
SERVICE_ENUM_NEXTDEPS
]
=
{
.
field
=
"nextdeps"
},
[
SERVICE_ENUM_NCONTENTS
]
=
{
.
field
=
"ncontents"
},
[
SERVICE_ENUM_DOWN
]
=
{
.
field
=
"down"
},
[
SERVICE_ENUM_DISEN
]
=
{
.
field
=
"disen"
},
[
SERVICE_ENUM_ENDOFKEY
]
=
{
.
field
=
0
}
}
;
int
service_resolve_modify_field
(
resolve_service_t
*
res
,
resolve_service_enum_t
field
,
char
const
*
data
)
{
log_flow
()
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment