| 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; struct PkCatalog; struct PkCatalogClass; 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); PkCatalogPrivate;
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
PkCatalog * pk_catalog_new (void);
Returns : |
A new catalog class instance. |
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 GAsyncResult |
|
A GError or NULL
|
Returns : |
the GPtrArray of PkPackage's, or NULL. Free with g_ptr_array_unref(). [transfer container]
|
Since 0.5.3
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. [scope call] |
|
data to pass to progress_callback
|
|
the function to run on completion |
|
the data to pass to callback
|
Since 0.5.3