Top |
PkPackage * | pk_package_new () |
gboolean | pk_package_set_id () |
gboolean | pk_package_parse () |
void | pk_package_print () |
gboolean | pk_package_equal () |
gboolean | pk_package_equal_id () |
const gchar * | pk_package_get_id () |
PkInfoEnum | pk_package_get_info () |
void | pk_package_set_info () |
const gchar * | pk_package_get_summary () |
void | pk_package_set_summary () |
const gchar * | pk_package_get_name () |
const gchar * | pk_package_get_version () |
const gchar * | pk_package_get_arch () |
const gchar * | pk_package_get_data () |
This GObject represents a package from a transaction. These objects represent single items of data from the transaction, and are often present in lists (PkResults) or just refcounted in client programs.
gboolean pk_package_set_id (PkPackage *package
,const gchar *package_id
,GError **error
);
Sets the package object to have the given ID
Since: 0.5.4
gboolean pk_package_parse (PkPackage *package
,const gchar *data
,GError **error
);
Parses the data to populate the PkPackage.
Since: 0.8.11
void
pk_package_print (PkPackage *package
);
Prints details about the package to standard out.
Since: 0.5.4
gboolean pk_package_equal (PkPackage *package1
,PkPackage *package2
);
Do the PkPackage's have the same ID.
Since: 0.5.4
gboolean pk_package_equal_id (PkPackage *package1
,PkPackage *package2
);
Do the PkPackage's have the same ID.
Since: 0.5.4
const gchar *
pk_package_get_id (PkPackage *package
);
Gets the package object ID
Since: 0.5.4
PkInfoEnum
pk_package_get_info (PkPackage *package
);
Gets the package object ID
Since: 0.5.4
void pk_package_set_info (PkPackage *package
,PkInfoEnum info
);
Sets the package info enum.
Since: 0.8.14
const gchar *
pk_package_get_summary (PkPackage *package
);
Gets the package object ID
Since: 0.5.4
void pk_package_set_summary (PkPackage *package
,const gchar *summary
);
Sets the package summary.
Since: 0.8.14
const gchar *
pk_package_get_name (PkPackage *package
);
Gets the package name.
Since: 0.6.4
const gchar *
pk_package_get_version (PkPackage *package
);
Gets the package version.
Since: 0.6.4
const gchar *
pk_package_get_arch (PkPackage *package
);
Gets the package arch.
Since: 0.6.4
const gchar *
pk_package_get_data (PkPackage *package
);
Gets the package data, which is usually the repository ID that contains the package. Special ID's include "installed" for installed packages, and "local" for local packages that exist on disk but not in a repository.
Since: 0.6.4