/* * SPDX-License-Identifier: BSD-2-Clause * *​ Copyright (c) 2025 The FreeBSD Foundation *​ *​ Portions of this software were developed by * Tuukka Pasanen under sponsorship from * the FreeBSD Foundation */ #ifndef SPDXTOOL_GENERATE_H #define SPDXTOOL_GENERATE_H #include #include /* * 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