![]() |
![]() |
![]() |
PackageKit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#define PK_PACKAGE_IDS_DELIM void pk_package_ids_test (gpointer user_data); gchar ** pk_package_ids_from_id (const gchar *package_id); gchar ** pk_package_ids_from_string (const gchar *package_id); gboolean pk_package_ids_check (gchar **package_ids); gchar * pk_package_ids_to_string (gchar **package_ids); gboolean pk_package_ids_present_id (gchar **package_ids, const gchar *package_id); gchar ** pk_package_ids_add_id (gchar **package_ids, const gchar *package_id); gchar ** pk_package_ids_add_ids (gchar **package_ids, gchar **package_ids_new); gchar ** pk_package_ids_remove_id (gchar **package_ids, const gchar *package_id);
gchar ** pk_package_ids_from_id (const gchar *package_id);
Form a composite string array of package_id's from a single package_id
|
A single package_id |
Returns : |
the string array, or NULL if invalid, free with g_strfreev()
|
Since 0.5.2
gchar ** pk_package_ids_from_string (const gchar *package_id);
Form a composite string array of package_id's from a delimited string
|
A single package_id |
Returns : |
the string array, or NULL if invalid, free with g_strfreev()
|
Since 0.5.2
gboolean pk_package_ids_check (gchar **package_ids);
Check the string array of package_id's for validity
|
a string array of package_id's |
Returns : |
TRUE if the package_ids are all valid.
|
Since 0.5.2
gchar * pk_package_ids_to_string (gchar **package_ids);
Cats the string array of package_id's into one delimited string
|
a string array of package_id's |
Returns : |
a string representation of all the package_id's. |
Since 0.5.2
gboolean pk_package_ids_present_id (gchar **package_ids, const gchar *package_id);
Finds out if a package ID is present in the list.
|
a string array of package_id's |
|
a single package_id |
Returns : |
TRUE if the package ID is present
|
Since 0.5.2
gchar ** pk_package_ids_add_id (gchar **package_ids, const gchar *package_id);
Adds a package_id to an existing list.
|
a string array of package_id's |
|
a single package_id |
Returns : |
the new list, free g_strfreev()
|
Since 0.5.2
gchar ** pk_package_ids_add_ids (gchar **package_ids, gchar **package_ids_new);
Adds a package_id to an existing list.
|
a string array of package_id's |
|
a string array of package_id's |
Returns : |
the new list, free g_strfreev()
|
Since 0.5.2
gchar ** pk_package_ids_remove_id (gchar **package_ids, const gchar *package_id);
Removes a package ID from the the list.
|
a string array of package_id's |
|
a single package_id |
Returns : |
the new list, free g_strfreev()
|
Since 0.5.2