| PackageKit Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
#define PK_CATALOG_FILE_EXTENSION #define PK_CATALOG_FILE_HEADER #define PK_CATALOG_TYPE_ERROR struct PkCatalog; struct PkCatalogClass; enum PkCatalogError;GQuark pk_catalog_error_quark (void);void pk_catalog_lookup_async (PkCatalog *catalog,const,gchar *filename,GCancellable *cancellablePkProgressCallback progress_callback,,gpointer progress_user_data,GAsyncReadyCallback callback);gpointer user_dataGPtrArray * pk_catalog_lookup_finish (PkCatalog *catalog,,GAsyncResult *res); PkCatalog * pk_catalog_new (GError **errorvoid);void pk_catalog_test ();gpointer user_data
struct PkCatalogClass {
GObjectClass parent_class;
/* Padding for future expansion */
void (*_pk_reserved1) (void);
void (*_pk_reserved2) (void);
void (*_pk_reserved3) (void);
void (*_pk_reserved4) (void);
};
GQuark pk_catalog_error_quark (void);
Returns : |
Our personal error quark. |
Since 0.5.3
void pk_catalog_lookup_async (PkCatalog *catalog,const,gchar *filename,GCancellable *cancellablePkProgressCallback 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 NULL |
|
the function to run when the progress changes. [scope call] |
|
data to pass to progress_callback
|
|
the function to run on completion |
|
the data to pass to callback
|
Since 0.5.3
GPtrArray * pk_catalog_lookup_finish (PkCatalog *catalog,,GAsyncResult *res);GError **error
Gets the result from the asynchronous function.
|
a valid PkCatalog instance |
|
the |
|
A NULL |
Returns : |
the NULLg_ptr_array_unref() |
Since 0.5.3
PkCatalog * pk_catalog_new (void);
Returns : |
A new catalog class instance. |
Since 0.5.3