| PackageKit Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#define PK_PACKAGE_ID_ARCH #define PK_PACKAGE_ID_DATA #define PK_PACKAGE_ID_NAME #define PK_PACKAGE_ID_VERSIONgchar * pk_package_id_build (const,gchar *nameconst,gchar *versionconst,gchar *archconst);gchar *datagboolean pk_package_id_check (const);gchar *package_idgboolean pk_package_id_equal_fuzzy_arch (const,gchar *package_id1const);gchar *package_id2gchar ** pk_package_id_split (const);gchar *package_idvoid pk_package_id_test ();gpointer user_datagchar * pk_package_id_to_printable (const);gchar *package_id
#define PK_PACKAGE_ID_ARCH 2
Alias to get an arch field from the result of pk_package_id_split
#define PK_PACKAGE_ID_DATA 3
Alias to get a data field from the result of pk_package_id_split
#define PK_PACKAGE_ID_NAME 0
Alias to get a name field from the result of pk_package_id_split
#define PK_PACKAGE_ID_VERSION 1
Alias to get a version field from the result of pk_package_id_split
gchar * pk_package_id_build (const,gchar *nameconst,gchar *versionconst,gchar *archconst);gchar *data
|
the package name |
|
the package version |
|
the package architecture |
|
the package extra data |
Returns : |
returns a string to form the PackageID. |
Since 0.5.0
gboolean pk_package_id_check (const);gchar *package_id
|
the PackageID to check |
Returns : |
TRUE |
Since 0.5.0
gboolean pk_package_id_equal_fuzzy_arch (const,gchar *package_id1const);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 |
Since 0.5.0
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 NULLg_strfreev() |
Since 0.5.3