mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 04:36:52 -10:00
Obtained from https://github.com/pkgconf/pkgconf/archive/refs/tags/pkgconf-3.0.9.tar.gz SHA1: a390f016a7a5ff419c9eef9e2b2c01fe86c11971 - SHA256: 32310a33bb97425ebc0707cb5af59f9dc05d10282dcd4db628a45ed904993dc6 - SHA512: 30776d31f860910286b96fbf60a19b5a6d1e73cb6a1077a019d763ae6e5ed1e8d81bc3649978c83f40e5e90ae779f7e530c513b700c8e73bb6399883dd6ef7ab - Sponsored by: The FreeBSD Foundation
93 lines
3.2 KiB
C
93 lines
3.2 KiB
C
/*
|
||
* SPDX-License-Identifier: BSD-2-Clause
|
||
*
|
||
* Copyright (c) 2025 The FreeBSD Foundation
|
||
*
|
||
* Portions of this software were developed by
|
||
* Tuukka Pasanen <[email protected]> under sponsorship from
|
||
* the FreeBSD Foundation
|
||
*/
|
||
|
||
#ifndef CLI__SPDXTOOL__CORE_H
|
||
#define CLI__SPDXTOOL__CORE_H
|
||
|
||
#include <stdlib.h>
|
||
#include "util.h"
|
||
#include "serialize.h"
|
||
|
||
#ifdef __cplusplus
|
||
extern "C" {
|
||
#endif
|
||
|
||
spdxtool_core_agent_t *
|
||
spdxtool_core_agent_new(pkgconf_client_t *client, const char *creation_id, const char *name);
|
||
|
||
void
|
||
spdxtool_core_agent_free(spdxtool_core_agent_t *agent);
|
||
|
||
spdxtool_serialize_value_t *
|
||
spdxtool_core_agent_to_object(pkgconf_client_t *client, const spdxtool_core_agent_t *agent);
|
||
|
||
spdxtool_core_tool_t *
|
||
spdxtool_core_tool_new(pkgconf_client_t *client, const char *creation_info_id, const char *short_name, const char *name);
|
||
|
||
void
|
||
spdxtool_core_tool_free(spdxtool_core_tool_t *tool);
|
||
|
||
spdxtool_serialize_value_t *
|
||
spdxtool_core_tool_to_object(pkgconf_client_t *client, const spdxtool_core_tool_t *tool);
|
||
|
||
spdxtool_core_creation_info_t *
|
||
spdxtool_core_creation_info_new(pkgconf_client_t *client, const char *agent_id, const char *tool_id, const char *id, const char *time);
|
||
|
||
void
|
||
spdxtool_core_creation_info_free(spdxtool_core_creation_info_t *creation);
|
||
|
||
spdxtool_serialize_value_t *
|
||
spdxtool_core_creation_info_to_object(pkgconf_client_t *client, const spdxtool_core_creation_info_t *creation);
|
||
|
||
spdxtool_core_spdx_document_t *
|
||
spdxtool_core_spdx_document_new(pkgconf_client_t *client, const char *spdx_id, const char *creation_id, const char *agent_id);
|
||
|
||
bool
|
||
spdxtool_core_spdx_document_is_license(pkgconf_client_t *client, const spdxtool_core_spdx_document_t *spdx, const char *license);
|
||
|
||
bool
|
||
spdxtool_core_spdx_document_add_license(pkgconf_client_t *client, spdxtool_core_spdx_document_t *spdx, const char *license);
|
||
|
||
bool
|
||
spdxtool_core_spdx_document_add_relationship(pkgconf_client_t *client, spdxtool_core_spdx_document_t *spdx, spdxtool_core_relationship_t *relationship);
|
||
|
||
bool
|
||
spdxtool_core_spdx_document_add_package(pkgconf_client_t *client, spdxtool_core_spdx_document_t *spdx, pkgconf_pkg_t *pkg);
|
||
|
||
bool
|
||
spdxtool_core_spdx_document_add_element(pkgconf_client_t *client, spdxtool_core_spdx_document_t *spdx, const char *element);
|
||
|
||
const char *
|
||
spdxtool_core_spdx_document_add_maintainer(pkgconf_client_t *client, spdxtool_core_spdx_document_t *spdx, const char *name);
|
||
|
||
void
|
||
spdxtool_core_spdx_document_free(spdxtool_core_spdx_document_t *spdx);
|
||
|
||
spdxtool_serialize_value_t *
|
||
spdxtool_core_spdx_document_to_object(pkgconf_client_t *client, spdxtool_core_spdx_document_t *spdx);
|
||
|
||
spdxtool_core_relationship_t *
|
||
spdxtool_core_relationship_new(pkgconf_client_t *client, const char *creation_info_id, const char *spdx_id, const char *from, pkgconf_list_t *to, const char *relationship_type);
|
||
|
||
bool
|
||
spdxtool_core_relationship_set_scope(pkgconf_client_t *client, spdxtool_core_relationship_t *relationship, const char *scope);
|
||
|
||
void
|
||
spdxtool_core_relationship_free(spdxtool_core_relationship_t *relationship);
|
||
|
||
spdxtool_serialize_value_t *
|
||
spdxtool_core_relationship_to_object(pkgconf_client_t *client, const spdxtool_core_relationship_t *relationship);
|
||
|
||
#ifdef __cplusplus
|
||
}
|
||
#endif
|
||
|
||
#endif
|