sw-collector: Added --installed/removed options

This commit is contained in:
Andreas Steffen
2017-08-03 09:02:54 +02:00
parent 8f63a36b34
commit bea3f5d07f
5 changed files with 109 additions and 43 deletions
+4 -4
View File
@@ -32,7 +32,7 @@ typedef enum sw_collector_db_query_t sw_collector_db_query_t;
enum sw_collector_db_query_t {
SW_QUERY_ALL,
SW_QUERY_INSTALLED,
SW_QUERY_DELETED
SW_QUERY_REMOVED
};
/**
@@ -97,9 +97,9 @@ struct sw_collector_db_t {
char **version, uint8_t *source, bool *installed);
/**
* Get number of installed or deleted software identifiers
* Get number of installed or removed software identifiers
*
* @param type Query type (ALL, INSTALLED, DELETED)
* @param type Query type (ALL, INSTALLED, REMOVED)
* @return Count
*/
uint32_t (*get_sw_id_count)(sw_collector_db_t *this,
@@ -130,7 +130,7 @@ struct sw_collector_db_t {
/**
* Enumerate over all collected [installed] software identities
*
* @param type Query type (ALL, INSTALLED, DELETED)
* @param type Query type (ALL, INSTALLED, REMOVED)
* @param package If not NULL enumerate over all package versions
* @return Enumerator
*/