Skip to content

libcrun: move spec generation into its own file - #2174

Open
giuseppe wants to merge 1 commit into
containers:mainfrom
giuseppe:split-spec
Open

libcrun: move spec generation into its own file#2174
giuseppe wants to merge 1 commit into
containers:mainfrom
giuseppe:split-spec

Conversation

@giuseppe

Copy link
Copy Markdown
Member

Extract the default OCI config template strings and libcrun_container_spec() out of container.c into a dedicated src/libcrun/spec.c, with its declaration in a new src/libcrun/spec.h.

The prototype is removed from container.h; callers now include spec.h directly (src/spec.c). Both new files are wired into the build.

Extract the default OCI config template strings and
libcrun_container_spec() out of container.c into a dedicated
src/libcrun/spec.c, with its declaration in a new src/libcrun/spec.h.

The prototype is removed from container.h; callers now include
spec.h directly (src/spec.c). Both new files are wired into the
build.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant