pkg_cpe.h
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 #ifndef LIBPKG_PRIVATE_PKG_CPE_H_ 12 #define LIBPKG_PRIVATE_PKG_CPE_H_ 13 14 #include "pkg.h" 15 #include "pkg/audit.h" 16 17 #define CPE_APPLICATIONS 'a' 18 #define CPE_HARWARE 'h' 19 #define CPE_OPERATING_SYSTEMS 'h' 20 21 struct pkg_audit_cpe * 22 pkg_cpe_parse(const char *cpe_str); 23 24 char * 25 pkg_cpe_create(struct pkg_audit_cpe *cpe); 26 27 28 void 29 pkg_cpe_free(struct pkg_audit_cpe *cpe); 30 31 32 #endif