![]() |
![]() |
![]() |
PackageKit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
void pk_package_id_test (gpointer user_data); 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); gchar ** pk_package_id_split (const gchar *package_id); gchar * pk_package_id_to_printable (const gchar *package_id); gboolean pk_package_id_equal_fuzzy_arch (const gchar *package_id1, const gchar *package_id2);
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 to form the PackageID. |
gboolean pk_package_id_check (const gchar *package_id);
|
the PackageID to check |
Returns : |
TRUE if the PackageID was well formed.
|
gchar ** pk_package_id_split (const gchar *package_id);
Splits a PackageID into the correct number of parts, checking the correct number of delimiters are present.
|
the ; delimited PackageID to split |
Returns : |
a GStrv or NULL if invalid, use g_strfreev() to free
|
gchar * pk_package_id_to_printable (const gchar *package_id);
Formats the PackageID to be printable to the user.
|
the PackageID |
Returns : |
the name-version.arch formatted string, use g_free() to free.
|
gboolean pk_package_id_equal_fuzzy_arch (const gchar *package_id1, const gchar *package_id2);
Only compare the name, version, and arch, where the architecture will fuzzy match with i*86.
|
the first PackageID |
|
the second PackageID |
Returns : |
TRUE if the PackageIDs can be considered equal.
|