ZifMdMetalink

ZifMdMetalink — Metalink metadata functionality

Synopsis

                    ZifMdMetalink;
                    ZifMdMetalinkPrivate;
                    ZifMdMetalinkClass;
ZifMdMetalink *     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

ZifMdMetalink

typedef struct _ZifMdMetalink ZifMdMetalink;


ZifMdMetalinkPrivate

typedef struct _ZifMdMetalinkPrivate ZifMdMetalinkPrivate;

Private ZifMdMetalink data


ZifMdMetalinkClass

typedef struct {
	ZifMdClass			 parent_class;
} ZifMdMetalinkClass;


zif_md_metalink_new ()

ZifMdMetalink *     zif_md_metalink_new                 (void);

Returns :

A new ZifMdMetalink class 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 :

the ZifMdMetalink object

threshold :

the threshold in percent

state :

a ZifState to use for progress reporting

error :

a GError which is used on failure, or NULL

Returns :

the URIs as an array of strings, use g_ptr_array_unref() when done.

Since 0.1.0