ZifMdMirrorlist

ZifMdMirrorlist — Mirrorlist metadata

Synopsis

struct              ZifMdMirrorlist;
struct              ZifMdMirrorlistClass;
ZifMd *             zif_md_mirrorlist_new               (void);
GPtrArray *         zif_md_mirrorlist_get_uris          (ZifMdMirrorlist *md,
                                                         ZifState *state,
                                                         GError **error);

Object Hierarchy

  GObject
   +----ZifMd
         +----ZifMdMirrorlist

Description

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

Details

struct ZifMdMirrorlist

struct ZifMdMirrorlist;


struct ZifMdMirrorlistClass

struct ZifMdMirrorlistClass {
	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_mirrorlist_new ()

ZifMd *             zif_md_mirrorlist_new               (void);

Returns :

A new ZifMdMirrorlist instance.

Since 0.1.0


zif_md_mirrorlist_get_uris ()

GPtrArray *         zif_md_mirrorlist_get_uris          (ZifMdMirrorlist *md,
                                                         ZifState *state,
                                                         GError **error);

Finds all mirrors we should use.

md :

A ZifMdMirrorlist

state :

A ZifState to use for progress reporting

error :

A GError, or NULL

Returns :

The URIs as an array of strings. [element-type utf8][transfer container]

Since 0.1.0