| PackageKit Reference Manual | ||||
|---|---|---|---|---|
PkPackageId;
PkPackageId* pk_package_id_new (void);
PkPackageId* pk_package_id_new_from_string (const gchar *package_id);
PkPackageId* pk_package_id_new_from_list (const gchar *name,
const gchar *version,
const gchar *arch,
const gchar *data);
gchar* pk_package_id_build (const gchar *name,
const gchar *version,
const gchar *arch,
const gchar *data);
gchar* pk_package_id_to_string (PkPackageId *ident);
gboolean pk_package_id_free (PkPackageId *ident);
gboolean pk_package_id_check (const gchar *package_id);
gboolean pk_package_id_equal (const gchar *pid1,
const gchar *pid2);
typedef struct {
gchar *name;
gchar *version;
gchar *arch;
gchar *data;
} PkPackageId;
Cached object to represent a package ID.
PkPackageId* pk_package_id_new (void);
Creates a new PkPackageId object with default values
Returns : |
a new PkPackageId object |
PkPackageId* pk_package_id_new_from_string (const gchar *package_id);
Creates a new PkPackageId object with values taken from the supplied id.
|
the text to pre-fill the object |
Returns : |
a new PkPackageId object |
PkPackageId* pk_package_id_new_from_list (const gchar *name, const gchar *version, const gchar *arch, const gchar *data);
Creates a new PkPackageId object with values.
|
the package name |
|
the package version |
|
the package architecture |
|
the package extra data |
Returns : |
a new PkPackageId object |
gchar* pk_package_id_build (const gchar *name, const gchar *version, const gchar *arch, const gchar *data);
|
the package name |
|
the package version |
|
the package architecture |
|
the package extra data |
Returns : |
returns a string putting together the data. |
gchar* pk_package_id_to_string (PkPackageId *ident);
|
A PkPackageId object |
Returns : |
returns a string representation of PkPackageId. |
gboolean pk_package_id_free (PkPackageId *ident);
|
the PkPackageId object |
Returns : |
TRUE if the PkPackageId object was freed.
|
gboolean pk_package_id_check (const gchar *package_id);
|
the text the check |
Returns : |
TRUE if the package_id was well formed.
|