summaryrefslogtreecommitdiff
path: root/src/libimcv/swima/swima_collector.h
blob: 848dc1696680b4434a6e58c2ec6ec1609eeecb06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*
 * Copyright (C) 2017 Andreas Steffen
 * HSR Hochschule fuer Technik Rapperswil
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation; either version 2 of the License, or (at your
 * option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * for more details.
 */

/**
 * @defgroup swima_collector swima_collector
 * @{ @ingroup libimcv_swima
 */

#ifndef SWIMA_COLLECTOR_H_
#define SWIMA_COLLECTOR_H_

#include "swima/swima_inventory.h"
#include "swima/swima_events.h"

typedef struct swima_collector_t swima_collector_t;

/**
 * Class collecting Software [Identity] Inventory
 */
struct swima_collector_t {

	/**
	 * Collect the Software [Identity] Inventory
	 *
	 * @param sw_id_only	TRUE to request Software Identity Inventory only
	 * @param targets		Software Identity targets
	 * @return				Software [Identity] Inventory
	 */
	swima_inventory_t* (*collect_inventory)(swima_collector_t *this,
											bool sw_id_only, 
											swima_inventory_t *targets);

	/**
	 * Collect Software [Identity] Events
	 *
	 * @param sw_id_only	TRUE to request Software Identity Inventory only
	 * @param targets		Software Identity targets
	 * @return				Software [Identity] Events
	 */
	swima_events_t* (*collect_events)(swima_collector_t *this,
									  bool sw_id_only,
									  swima_inventory_t *targets);

	/**
	 * Destroys a swima_collector_t object.
	 */
	void (*destroy)(swima_collector_t *this);

};

/**
 * Creates a swima_collector_t object
 */
swima_collector_t* swima_collector_create(void);

#endif /** SWIMA_COLLECTOR_H_ @}*/