1 /* SPDX-License-Identifier: LGPL-2.1-or-later */ 2 #pragma once 3 4 /* Given an image name (for logging purposes), a set of os-release values from the host and a key-value pair 5 * vector of extension-release variables, check that the distro and (system extension level or distro 6 * version) match and return 1, and 0 otherwise. */ 7 int extension_release_validate( 8 const char *name, 9 const char *host_os_release_id, 10 const char *host_os_release_version_id, 11 const char *host_os_release_sysext_level, 12 const char *host_sysext_scope, 13 char **extension_release); 14 15 /* Parse SYSTEMD_SYSEXT_HIERARCHIES and if not set, return "/usr /opt" */ 16 int parse_env_extension_hierarchies(char ***ret_hierarchies); 17