ZifMdMetalink

ZifMdMetalink — Metalink metadata

Synopsis

struct              ZifMdMetalink;
struct              ZifMdMetalinkClass;
ZifMd *             zif_md_metalink_new                 (void);
GPtrArray *         zif_md_metalink_get_uris            (ZifMdMetalink *md,
                                                         guint threshold,
                                                         ZifState *state,
                                                         GError **error);

Object Hierarchy

  GObject
   +----ZifMd
         +----ZifMdMetalink

Description

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

Details

struct ZifMdMetalink

struct ZifMdMetalink;


struct ZifMdMetalinkClass

struct ZifMdMetalinkClass {
	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_metalink_new ()

ZifMd *             zif_md_metalink_new                 (void);

Returns :

A new ZifMdMetalink instance.

Since 0.1.0


zif_md_metalink_get_uris ()

GPtrArray *         zif_md_metalink_get_uris            (ZifMdMetalink *md,
                                                         guint threshold,
                                                         ZifState *state,
                                                         GError **error);

Finds all mirrors we should use.

md :

A ZifMdMetalink

threshold :

A threshold in percent

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