9675d60c4fa5f6dc3cf0f0aa7f7b9ed7f1394830
[strongswan.git] / src / libimcv / tcg / pts / pts_database.h
1 /*
2 * Copyright (C) 2011 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 pts_database pts_database
18 * @{ @ingroup pts_database
19 */
20
21 #ifndef PTS_DATABASE_H_
22 #define PTS_DATABASE_H_
23
24 typedef struct pts_database_t pts_database_t;
25
26 #include <library.h>
27
28 /**
29 * Class implementing the PTS File Measurement database
30 *
31 */
32 struct pts_database_t {
33
34 /**
35 * Get files to be measured by PTS
36 *
37 * @product software product (os, vpn client, etc.)
38 * @return enumerator over all files matching a given release
39 */
40 enumerator_t* (*create_file_enumerator)(pts_database_t *this, char *product);
41
42 /**
43 * Destroys a pts_database_t object.
44 */
45 void (*destroy)(pts_database_t *this);
46
47 };
48
49 /**
50 * Creates an pts_database_t object
51 *
52 * @param ur database uri
53 */
54 pts_database_t* pts_database_create(char *uri);
55
56 #endif /** PTS_DATABASE_H_ @}*/