Top | ![]() |
![]() |
![]() |
![]() |
This class contains a temporary pool of metadata which has been collected from different sources on the system. It can directly be used, but usually it is accessed through a AsDatabase instance. This class is used by internally by the cache builder, but might be useful for others.
See also: AsDatabase
void
as_data_pool_initialize (AsDataPool *dpool
);
Initialize the pool with the predefined metadata locations.
gchar **
as_data_pool_get_watched_locations (AsDataPool *dpool
);
Return a list of all locations which are searched for metadata.
gboolean
as_data_pool_update (AsDataPool *dpool
);
Builds an index of all found components in the watched locations.
The function will try to get as much data into the pool as possible, so even if
the updates completes with FALSE
, it might still add components to the pool.
GList *
as_data_pool_get_components (AsDataPool *dpool
);
Get a list of found components.
a list of AsComponent instances, free with g_list_free()
.
[element-type AsComponent][transfer container]
void as_data_pool_set_data_source_directories (AsDataPool *dpool
,gchar **dirs
);