![]() |
![]() |
![]() |
PackageKit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
PkPackageId; PkPackageId * pk_package_id_new (void); const gchar * pk_package_id_get_name (const PkPackageId *id); const gchar * pk_package_id_get_version (const PkPackageId *id); const gchar * pk_package_id_get_arch (const PkPackageId *id); const gchar * pk_package_id_get_data (const PkPackageId *id); 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); PkPackageId * pk_package_id_copy (const PkPackageId *id); gboolean pk_package_id_equal (const PkPackageId *id1, const PkPackageId *id2); gboolean pk_package_id_equal_fuzzy_arch (const PkPackageId *id1, const PkPackageId *id2); gchar * pk_package_id_to_string (const PkPackageId *id); gboolean pk_package_id_free (PkPackageId *id); gchar * pk_package_id_build (const gchar *name, const gchar *version, const gchar *arch, const gchar *data); gboolean pk_package_id_check (const gchar *package_id); gboolean pk_package_id_equal_strings (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 |
const gchar * pk_package_id_get_name (const PkPackageId *id);
Gets name property from given PkPackageId object
|
|
Returns : |
name property of given PkPackageId object |
const gchar * pk_package_id_get_version (const PkPackageId *id);
Gets version property from given PkPackageId object
|
|
Returns : |
version property of given PkPackageId object |
const gchar * pk_package_id_get_arch (const PkPackageId *id);
Gets arch property from given PkPackageId object
|
|
Returns : |
arch property of given PkPackageId object |
const gchar * pk_package_id_get_data (const PkPackageId *id);
Gets data property from given PkPackageId object
|
|
Returns : |
data property of given 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 |
PkPackageId * pk_package_id_copy (const PkPackageId *id);
Copies into a new PkPackageId object.
|
the PkPackageId structure to copy
|
Returns : |
a new PkPackageId object |
gboolean pk_package_id_equal (const PkPackageId *id1, const PkPackageId *id2);
Only compare the name, version, and arch
|
the first PkPackageId
|
|
the second PkPackageId
|
Returns : |
TRUE if the ids can be considered equal.
|
gboolean pk_package_id_equal_fuzzy_arch (const PkPackageId *id1, const PkPackageId *id2);
Only compare the name, version, and arch
|
the first PkPackageId
|
|
the second PkPackageId
|
Returns : |
TRUE if the ids can be considered equal.
|
gchar * pk_package_id_to_string (const PkPackageId *id);
|
A PkPackageId object |
Returns : |
returns a string representation of PkPackageId. |
gboolean pk_package_id_free (PkPackageId *id);
|
the PkPackageId object |
Returns : |
TRUE if the PkPackageId object was freed.
|
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. |
gboolean pk_package_id_check (const gchar *package_id);
|
the text the check |
Returns : |
TRUE if the package_id was well formed.
|