ZifMdComps

## ZifMdComps ZifMdComps — Comps metadata |

## Synopsis

    struct              ZifMdComps;
    struct              ZifMdCompsClass;
    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);
    ZifMd *             zif_md_comps_new                    (void);

## Object Hierarchy

      GObject
       +----ZifMd
             +----ZifMdComps

## Description

Provide access to the comps repo metadata. This object is a subclass of ZifMd

## Details

### struct ZifMdComps

    struct ZifMdComps;

### struct ZifMdCompsClass

    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);
    };

### zif_md_comps_get_categories ()

    GPtrArray *         zif_md_comps_get_categories         (ZifMdComps *md,
                                                             ZifState *state,
                                                             GError **error);

Gets the available list of categories.

`md` : | A ZifMdComps
`state` : | A `ZifState`
`error` : | A GError, or `NULL`
Returns : | `ZifCategory` array of categories, with parent_id set to `NULL`. [element-type ZifCategory][transfer container]

Since 0.1.0

### zif_md_comps_get_groups_for_category ()

    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.

`md` : | A ZifMdComps
`category_id` : | The category to search for
`state` : | A `ZifState`
`error` : | A GError, or `NULL`
Returns : | `ZifCategory` array of groups. [element-type ZifCategory][transfer container]

Since 0.1.0

### zif_md_comps_get_packages_for_group ()

    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.

`md` : | A ZifMdComps
`group_id` : | The group to search for
`state` : | A `ZifState`
`error` : | A GError, or `NULL`
Returns : | gchar pointer array of package names (not `ZifPackage`'s). [element-type utf8][transfer container]

Since 0.1.0

### zif_md_comps_new ()

    ZifMd *             zif_md_comps_new                    (void);

Returns : | A new ZifMdComps instance.

Since 0.1.0