Lines Matching refs:extension
38 int path_is_extension_tree(const char *path, const char *extension) { in path_is_extension_tree() argument
51 r = open_extension_release(path, extension, NULL, NULL); in path_is_extension_tree()
60 int open_extension_release(const char *root, const char *extension, char **ret_path, int *ret_fd) { in open_extension_release() argument
64 if (extension) { in open_extension_release()
67 if (!image_name_is_valid(extension)) in open_extension_release()
69 "The extension name %s is invalid.", extension); in open_extension_release()
71 … extension_full_path = strjoina("/usr/lib/extension-release.d/extension-release.", extension); in open_extension_release()
208 int fopen_extension_release(const char *root, const char *extension, char **ret_path, FILE **ret_fi… in fopen_extension_release() argument
215 return open_extension_release(root, extension, ret_path, NULL); in fopen_extension_release()
217 r = open_extension_release(root, extension, ret_path ? &p : NULL, &fd); in fopen_extension_release()
232 static int parse_release_internal(const char *root, const char *extension, va_list ap) { in parse_release_internal() argument
237 r = fopen_extension_release(root, extension, &p, &f); in parse_release_internal()
244 int _parse_extension_release(const char *root, const char *extension, ...) { in _parse_extension_release() argument
248 va_start(ap, extension); in _parse_extension_release()
249 r = parse_release_internal(root, extension, ap); in _parse_extension_release()
307 int load_extension_release_pairs(const char *root, const char *extension, char ***ret) { in load_extension_release_pairs() argument
312 r = fopen_extension_release(root, extension, &p, &f); in load_extension_release_pairs()