xref: /freebsd/contrib/pkgconf/cli/spdxtool/software.h (revision 592efe252472a3385acf36b1f49ecf710a7f3d9c)
1*592efe25SPierre Pronchery /*
2*592efe25SPierre Pronchery  * SPDX-License-Identifier: BSD-2-Clause
3*592efe25SPierre Pronchery  *
4*592efe25SPierre Pronchery  *​ Copyright (c) 2025 The FreeBSD Foundation
5*592efe25SPierre Pronchery  *​
6*592efe25SPierre Pronchery  *​ Portions of this software were developed by
7*592efe25SPierre Pronchery  * Tuukka Pasanen <tuukka.pasanen@ilmi.fi> under sponsorship from
8*592efe25SPierre Pronchery  * the FreeBSD Foundation
9*592efe25SPierre Pronchery  */
10*592efe25SPierre Pronchery 
11*592efe25SPierre Pronchery #ifndef CLI__SPDXTOOL_SOFTWARE_H
12*592efe25SPierre Pronchery #define CLI__SPDXTOOL_SOFTWARE_H
13*592efe25SPierre Pronchery 
14*592efe25SPierre Pronchery #include <stdlib.h>
15*592efe25SPierre Pronchery #include "util.h"
16*592efe25SPierre Pronchery 
17*592efe25SPierre Pronchery #ifdef __cplusplus
18*592efe25SPierre Pronchery extern "C" {
19*592efe25SPierre Pronchery #endif
20*592efe25SPierre Pronchery 
21*592efe25SPierre Pronchery spdxtool_software_sbom_t *
22*592efe25SPierre Pronchery spdxtool_software_sbom_new(pkgconf_client_t *client, const char *spdx_id, const char *creation_id, const char *sbom_type);
23*592efe25SPierre Pronchery 
24*592efe25SPierre Pronchery void
25*592efe25SPierre Pronchery spdxtool_software_sbom_free(spdxtool_software_sbom_t *sbom);
26*592efe25SPierre Pronchery 
27*592efe25SPierre Pronchery spdxtool_serialize_value_t *
28*592efe25SPierre Pronchery spdxtool_software_package_to_object(pkgconf_client_t *client, pkgconf_pkg_t *pkg, spdxtool_core_spdx_document_t *doc);
29*592efe25SPierre Pronchery 
30*592efe25SPierre Pronchery spdxtool_serialize_value_t *
31*592efe25SPierre Pronchery spdxtool_software_sbom_to_object(pkgconf_client_t *client, spdxtool_software_sbom_t *sbom);
32*592efe25SPierre Pronchery 
33*592efe25SPierre Pronchery #ifdef __cplusplus
34*592efe25SPierre Pronchery }
35*592efe25SPierre Pronchery #endif
36*592efe25SPierre Pronchery 
37*592efe25SPierre Pronchery #endif
38