|
|
|
|
PackageKit Reference Manual |
|
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
#define
PK_CATALOG_ERROR
#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
*cancellable
,
PkProgressCallback
progress_callback
,
gpointer
progress_user_data
,
GAsyncReadyCallback
callback
,
gpointer
user_data
);
GPtrArray
*
pk_catalog_lookup_finish
(
PkCatalog
*catalog
,
GAsyncResult
*res
,
GError
**error
);
PkCatalog
*
pk_catalog_new
(
void
);
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
*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 on completion |
|
|
the function to run when the progress changes. [ scope call ] |
|
|
data to pass to
progress_callback
|
|
|
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 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
PkCatalog
* pk_catalog_new (
void
);
|
Returns : |
A new catalog class instance. |
Since 0.5.3