blob: 818b8e4d919267bde524e58f686bc02550e5b4c6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/*
* 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
|