Annotation of embedaddon/strongswan/src/libimcv/swid_gen/swid_gen_info.h, revision 1.1.1.1
1.1 misho 1: /*
2: * Copyright (C) 2017 Andreas Steffen
3: * HSR Hochschule fuer Technik Rapperswil
4: *
5: * This program is free software; you can redistribute it and/or modify it
6: * under the terms of the GNU General Public License as published by the
7: * Free Software Foundation; either version 2 of the License, or (at your
8: * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
9: *
10: * This program is distributed in the hope that it will be useful, but
11: * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12: * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13: * for more details.
14: */
15:
16: /**
17: * @defgroup sw_collector sw-collector
18: *
19: * @defgroup swid_gen_info_t swid_gen_info
20: * @{ @ingroup sw_collector
21: */
22:
23: #ifndef SWID_GEN_INFO_H_
24: #define SWID_GEN_INFO_H_
25:
26: typedef struct swid_gen_info_t swid_gen_info_t;
27:
28: #include "imc/imc_os_info.h"
29:
30: struct swid_gen_info_t {
31:
32: /**
33: * Get OS type
34: *
35: * @return OS type
36: */
37: os_type_t (*get_os_type)(swid_gen_info_t *this);
38:
39: /**
40: * Get OS and product strings
41: *
42: * @param product Product string 'Name Version Arch'
43: * @return OS string 'Name_Version-Arch'
44: */
45: char* (*get_os)(swid_gen_info_t *this, char **product);
46:
47: /**
48: * Create software identifier including tagCreator and OS
49: *
50: * @param package Package string
51: * @param version Version string
52: * @return Software Identifier string
53: */
54: char* (*create_sw_id)(swid_gen_info_t *this, char *package,
55: char *version);
56:
57: /**
58: * Destroy swid_gen_info_t object
59: */
60: void (*destroy)(swid_gen_info_t *this);
61:
62: };
63:
64: /**
65: * Create an swid_gen_info_t instance
66: */
67: swid_gen_info_t* swid_gen_info_create(void);
68:
69: #endif /** SWID_GEN_INFO_H_ @}*/
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>