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