ZifMdComps

ZifMdComps — Comps metadata functionality

Synopsis

                    ZifMdComps;
                    ZifMdCompsPrivate;
                    ZifMdCompsClass;
ZifMdComps *        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);

Object Hierarchy

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

Description

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

Details

ZifMdComps

typedef struct _ZifMdComps ZifMdComps;


ZifMdCompsPrivate

typedef struct _ZifMdCompsPrivate ZifMdCompsPrivate;

Private ZifMdComps data


ZifMdCompsClass

typedef struct {
	ZifMdClass			 parent_class;
} ZifMdCompsClass;


zif_md_comps_new ()

ZifMdComps *        zif_md_comps_new                    (void);

Returns :

A new ZifMdComps class instance.

Since 0.1.0


zif_md_comps_get_categories ()

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

Gets the available list of categories.

md :

the ZifMdComps object

state :

the ZifState object

error :

a GError which is used on failure, or NULL

Returns :

ZifCategory array of categories, with parent_id set to NULL

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 :

the ZifMdComps object

category_id :

the category to search for

state :

the ZifState object

error :

a GError which is used on failure, or NULL

Returns :

ZifCategory array of groups

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 :

the ZifMdComps object

group_id :

the group to search for

state :

the ZifState object

error :

a GError which is used on failure, or NULL

Returns :

gchar pointer array of package names (not ZifPackage's)

Since 0.1.0