Skip to content
Snippets Groups Projects
Commit e128b540 authored by Ludovico de Nittis's avatar Ludovico de Nittis
Browse files

runtime: Move mkdir into setup_json_manifest()


Move the creation of the directory in the same function that actually
uses it. This will make it more clear what is happening and reduces the
function implicit requirements.

This is also a preparation step towards reusing the manifest basename,
that will be added as a subsequent commit.

The directories are only created when we have an ICD_KIND_ABSOLUTE
because, in all the other cases, the eventual need to create the parent
directories is automatically handled by
`pv_runtime_take_from_provider()`.

With this commit we might end up with a slightly increased number of
`g_mkdir_with_parents()` calls, but the overhead should be negligible,
compared to the complexity of pressure-vessel.

Signed-off-by: default avatarLudovico de Nittis <ludovico.denittis@collabora.com>
parent 5d0465d9
No related branches found
No related tags found
1 merge request!534runtime: Always use the driver basename
Loading
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