Annotation of embedaddon/strongswan/src/libimcv/swima/swima_collector.h, revision 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 swima_collector swima_collector
! 18: * @{ @ingroup libimcv_swima
! 19: */
! 20:
! 21: #ifndef SWIMA_COLLECTOR_H_
! 22: #define SWIMA_COLLECTOR_H_
! 23:
! 24: #include "swima/swima_inventory.h"
! 25: #include "swima/swima_events.h"
! 26:
! 27: typedef struct swima_collector_t swima_collector_t;
! 28:
! 29: /**
! 30: * Class collecting Software [Identity] Inventory
! 31: */
! 32: struct swima_collector_t {
! 33:
! 34: /**
! 35: * Collect the Software [Identity] Inventory
! 36: *
! 37: * @param sw_id_only TRUE to request Software Identity Inventory only
! 38: * @param targets Software Identity targets
! 39: * @return Software [Identity] Inventory
! 40: */
! 41: swima_inventory_t* (*collect_inventory)(swima_collector_t *this,
! 42: bool sw_id_only,
! 43: swima_inventory_t *targets);
! 44:
! 45: /**
! 46: * Collect Software [Identity] Events
! 47: *
! 48: * @param sw_id_only TRUE to request Software Identity Inventory only
! 49: * @param targets Software Identity targets
! 50: * @return Software [Identity] Events
! 51: */
! 52: swima_events_t* (*collect_events)(swima_collector_t *this,
! 53: bool sw_id_only,
! 54: swima_inventory_t *targets);
! 55:
! 56: /**
! 57: * Destroys a swima_collector_t object.
! 58: */
! 59: void (*destroy)(swima_collector_t *this);
! 60:
! 61: };
! 62:
! 63: /**
! 64: * Creates a swima_collector_t object
! 65: */
! 66: swima_collector_t* swima_collector_create(void);
! 67:
! 68: #endif /** SWIMA_COLLECTOR_H_ @}*/
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>