| PackageKit Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
#define PK_CATALOG_ERROR #define PK_CATALOG_TYPE_ERROR #define PK_CATALOG_FILE_EXTENSION #define PK_CATALOG_FILE_HEADER enum PkCatalogError; PkCatalogPrivate; PkCatalog; GQuark pk_catalog_error_quark (void); GType pk_catalog_get_type (void); PkCatalog * pk_catalog_new (void); void pk_catalog_test (gpointer user_data); GPtrArray * pk_catalog_lookup_finish (PkCatalog *catalog,GAsyncResult *res,GError **error); void pk_catalog_lookup_async (PkCatalog *catalog,const gchar *filename,GCancellable *cancellable,PkProgressCallback progress_callback,gpointer progress_user_data,GAsyncReadyCallback callback,gpointer user_data);
GPtrArray * pk_catalog_lookup_finish (PkCatalog *catalog,GAsyncResult *res,GError **error);
Gets the result from the asynchronous function.
void pk_catalog_lookup_async (PkCatalog *catalog,const gchar *filename,GCancellable *cancellable,PkProgressCallback progress_callback,gpointer progress_user_data,GAsyncReadyCallback callback,gpointer user_data);
Simulate the install of a catalog file.
|
a valid PkCatalog instance |
|
the filename of the catalog to install |
|
a GCancellable or NULL
|
|
the function to run when the progress changes |
|
data to pass to progress_callback
|
|
the function to run on completion |
|
the data to pass to callback
|