| ZIF Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
struct ZifMdComps; struct ZifMdCompsClass; ZifMd * zif_md_comps_new (void); GPtrArray * zif_md_comps_get_categories (ZifMdComps *md,ZifState *state,GError **error); GPtrArray * zif_md_comps_get_groups_for_category (ZifMdComps *md,const gchar *category_id,ZifState *state,GError **error); GPtrArray * zif_md_comps_get_packages_for_group (ZifMdComps *md,const gchar *group_id,ZifState *state,GError **error);
struct ZifMdCompsClass {
	ZifMdClass			 parent_class;
	/* Padding for future expansion */
	void (*_zif_reserved1) (void);
	void (*_zif_reserved2) (void);
	void (*_zif_reserved3) (void);
	void (*_zif_reserved4) (void);
};
ZifMd *             zif_md_comps_new                    (void);
Returns :  | 
A new ZifMdComps instance. | 
Since 0.1.0
GPtrArray * zif_md_comps_get_categories (ZifMdComps *md,ZifState *state,GError **error);
Gets the available list of categories.
  | 
A ZifMdComps | 
  | 
A ZifState
 | 
  | 
A GError, or NULL
 | 
Returns :  | 
ZifCategory array of categories, with parent_id set to NULL. [element-type ZifCategory][transfer container]
 | 
Since 0.1.0
GPtrArray * zif_md_comps_get_groups_for_category (ZifMdComps *md,const gchar *category_id,ZifState *state,GError **error);
Gets the list of groups for a specific category.
  | 
A ZifMdComps | 
  | 
The category to search for | 
  | 
A ZifState
 | 
  | 
A GError, or NULL
 | 
Returns :  | 
ZifCategory array of groups. [element-type ZifCategory][transfer container]
 | 
Since 0.1.0
GPtrArray * zif_md_comps_get_packages_for_group (ZifMdComps *md,const gchar *group_id,ZifState *state,GError **error);
Gets the package names for a group.
  | 
A ZifMdComps | 
  | 
The group to search for | 
  | 
A ZifState
 | 
  | 
A GError, or NULL
 | 
Returns :  | 
gchar pointer array of package names (not ZifPackage's). [element-type utf8][transfer container]
 | 
Since 0.1.0