/
githubmirror
/
pkgconf
Обзор
Документация
Войти
/
githubmirror
/
pkgconf
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
cli/spdxtool/generate.h
29 строк
911 B
Ariadne Conill
spdxtool: factor out spdx generation so that the fuzzer and CLI can share it
26 июн 2026, 06:16
26 июн 2026, 06:16
a5ffaf4
Код
Авторство
О чём код?
/* * SPDX-License-Identifier: BSD-2-Clause * * Copyright (c) 2025 The FreeBSD Foundation * * Portions of this software were developed by * Tuukka Pasanen <tuukka.pasanen@ilmi.fi> under sponsorship from * the FreeBSD Foundation */ #ifndef SPDXTOOL_GENERATE_H #define SPDXTOOL_GENERATE_H #include <stdio.h> #include <libpkgconf/libpkgconf.h> /* * Build an SPDX SBOM for a solved dependency graph and write it to *out*. * * The dependency graph rooted at *world* must already have been solved (e.g. * with pkgconf_queue_solve) so that every package's match is populated. The * spdxtool_util_set_* configuration (URI root, separator, version, license) * must have been applied to *client* beforehand. */ bool spdxtool_generate(pkgconf_client_t *client, pkgconf_pkg_t *world, FILE *out, int maxdepth, const char *creation_time, const char *creation_id, const char *agent_name); #endif