## DnfRepo

DnfRepo

## Functions

DnfRepo * | dnf_repo_new ()
const gchar * | dnf_repo_get_id ()
const gchar * | dnf_repo_get_location ()
const gchar * | dnf_repo_get_filename ()
const gchar * | dnf_repo_get_packages ()
gchar ** | dnf_repo_get_public_keys ()
DnfRepoEnabled | dnf_repo_get_enabled ()
gboolean | dnf_repo_get_required ()
guint | dnf_repo_get_cost ()
gboolean | dnf_repo_get_module_hotfixes ()
guint | dnf_repo_get_metadata_expire ()
DnfRepoKind | dnf_repo_get_kind ()
gchar ** | dnf_repo_get_exclude_packages ()
gboolean | dnf_repo_get_gpgcheck ()
gboolean | dnf_repo_get_gpgcheck_md ()
gchar * | dnf_repo_get_description ()
guint64 | dnf_repo_get_timestamp_generated ()
guint | dnf_repo_get_n_solvables ()
const gchar * | dnf_repo_get_filename_md ()
HyRepo | dnf_repo_get_repo ()
gboolean | dnf_repo_is_devel ()
gboolean | dnf_repo_is_local ()
gboolean | dnf_repo_is_source ()
void | dnf_repo_set_id ()
void | dnf_repo_set_location ()
void | dnf_repo_set_location_tmp ()
void | dnf_repo_set_filename ()
void | dnf_repo_set_packages ()
void | dnf_repo_set_packages_tmp ()
void | dnf_repo_set_enabled ()
void | dnf_repo_set_required ()
void | dnf_repo_set_cost ()
void | dnf_repo_set_module_hotfixes ()
void | dnf_repo_set_kind ()
void | dnf_repo_set_gpgcheck ()
void | dnf_repo_set_skip_if_unavailable ()
void | dnf_repo_set_gpgcheck_md ()
void | dnf_repo_set_keyfile ()
void | dnf_repo_set_metadata_expire ()
gboolean | dnf_repo_setup ()
gboolean | dnf_repo_check ()
gboolean | dnf_repo_update ()
gboolean | dnf_repo_clean ()
gboolean | dnf_repo_set_data ()
gboolean | dnf_repo_commit ()
LrHandle * | dnf_repo_get_lr_handle ()
LrResult * | dnf_repo_get_lr_result ()
gchar * | dnf_repo_download_package ()
gboolean | dnf_repo_download_packages ()
HyRepo | dnf_repo_get_hy_repo ()
void | dnf_repo_add_metadata_type_to_download ()
gboolean | dnf_repo_get_metadata_content ()

## Types and Values

#define | DNF_TYPE_REPO
struct | DnfRepoClass
enum | DnfRepoUpdateFlags
enum | DnfRepoKind
enum | DnfRepoEnabled
| DnfRepo

## Description

## Functions

### dnf_repo_new ()

    DnfRepo *
    dnf_repo_new (DnfContext *context);

### dnf_repo_get_id ()

    const gchar *
    dnf_repo_get_id (DnfRepo *repo);

### dnf_repo_get_location ()

    const gchar *
    dnf_repo_get_location (DnfRepo *repo);

### dnf_repo_get_filename ()

    const gchar *
    dnf_repo_get_filename (DnfRepo *repo);

### dnf_repo_get_packages ()

    const gchar *
    dnf_repo_get_packages (DnfRepo *repo);

### dnf_repo_get_public_keys ()

    gchar **
    dnf_repo_get_public_keys (DnfRepo *repo);

### dnf_repo_get_enabled ()

    DnfRepoEnabled
    dnf_repo_get_enabled (DnfRepo *repo);

### dnf_repo_get_required ()

    gboolean
    dnf_repo_get_required (DnfRepo *repo);

### dnf_repo_get_cost ()

    guint
    dnf_repo_get_cost (DnfRepo *repo);

### dnf_repo_get_module_hotfixes ()

    gboolean
    dnf_repo_get_module_hotfixes (DnfRepo *repo);

### dnf_repo_get_metadata_expire ()

    guint
    dnf_repo_get_metadata_expire (DnfRepo *repo);

### dnf_repo_get_kind ()

    DnfRepoKind
    dnf_repo_get_kind (DnfRepo *repo);

### dnf_repo_get_exclude_packages ()

    gchar **
    dnf_repo_get_exclude_packages (DnfRepo *repo);

### dnf_repo_get_gpgcheck ()

    gboolean
    dnf_repo_get_gpgcheck (DnfRepo *repo);

### dnf_repo_get_gpgcheck_md ()

    gboolean
    dnf_repo_get_gpgcheck_md (DnfRepo *repo);

### dnf_repo_get_description ()

    gchar *
    dnf_repo_get_description (DnfRepo *repo);

### dnf_repo_get_timestamp_generated ()

    guint64
    dnf_repo_get_timestamp_generated (DnfRepo *repo);

### dnf_repo_get_n_solvables ()

    guint
    dnf_repo_get_n_solvables (DnfRepo *repo);

### dnf_repo_get_filename_md ()

    const gchar *
    dnf_repo_get_filename_md (DnfRepo *repo,
                              const gchar *md_kind);

### dnf_repo_get_repo ()

    HyRepo
    dnf_repo_get_repo (DnfRepo *repo);

### dnf_repo_is_devel ()

    gboolean
    dnf_repo_is_devel (DnfRepo *repo);

### dnf_repo_is_local ()

    gboolean
    dnf_repo_is_local (DnfRepo *repo);

### dnf_repo_is_source ()

    gboolean
    dnf_repo_is_source (DnfRepo *repo);

### dnf_repo_set_id ()

    void
    dnf_repo_set_id (DnfRepo *repo,
                     const gchar *id);

### dnf_repo_set_location ()

    void
    dnf_repo_set_location (DnfRepo *repo,
                           const gchar *location);

### dnf_repo_set_location_tmp ()

    void
    dnf_repo_set_location_tmp (DnfRepo *repo,
                               const gchar *location_tmp);

### dnf_repo_set_filename ()

    void
    dnf_repo_set_filename (DnfRepo *repo,
                           const gchar *filename);

### dnf_repo_set_packages ()

    void
    dnf_repo_set_packages (DnfRepo *repo,
                           const gchar *packages);

### dnf_repo_set_packages_tmp ()

    void
    dnf_repo_set_packages_tmp (DnfRepo *repo,
                               const gchar *packages_tmp);

### dnf_repo_set_enabled ()

    void
    dnf_repo_set_enabled (DnfRepo *repo,
                          DnfRepoEnabled enabled);

### dnf_repo_set_required ()

    void
    dnf_repo_set_required (DnfRepo *repo,
                           gboolean required);

### dnf_repo_set_cost ()

    void
    dnf_repo_set_cost (DnfRepo *repo,
                       guint cost);

### dnf_repo_set_module_hotfixes ()

    void
    dnf_repo_set_module_hotfixes (DnfRepo *repo,
                                  gboolean module_hotfixes);

### dnf_repo_set_kind ()

    void
    dnf_repo_set_kind (DnfRepo *repo,
                       DnfRepoKind kind);

### dnf_repo_set_gpgcheck ()

    void
    dnf_repo_set_gpgcheck (DnfRepo *repo,
                           gboolean gpgcheck_pkgs);

### dnf_repo_set_skip_if_unavailable ()

    void
    dnf_repo_set_skip_if_unavailable (DnfRepo *repo,
                                      gboolean skip_if_unavailable);

### dnf_repo_set_gpgcheck_md ()

    void
    dnf_repo_set_gpgcheck_md (DnfRepo *repo,
                              gboolean gpgcheck_md);

### dnf_repo_set_keyfile ()

    void
    dnf_repo_set_keyfile (DnfRepo *repo,
                          GKeyFile *keyfile);

### dnf_repo_set_metadata_expire ()

    void
    dnf_repo_set_metadata_expire (DnfRepo *repo,
                                  guint metadata_expire);

### dnf_repo_setup ()

    gboolean
    dnf_repo_setup (DnfRepo *repo,
                    GError **error);

### dnf_repo_check ()

    gboolean
    dnf_repo_check (DnfRepo *repo,
                    guint permissible_cache_age,
                    DnfState *state,
                    GError **error);

### dnf_repo_update ()

    gboolean
    dnf_repo_update (DnfRepo *repo,
                     DnfRepoUpdateFlags flags,
                     DnfState *state,
                     GError **error);

### dnf_repo_clean ()

    gboolean
    dnf_repo_clean (DnfRepo *repo,
                    GError **error);

### dnf_repo_set_data ()

    gboolean
    dnf_repo_set_data (DnfRepo *repo,
                       const gchar *parameter,
                       const gchar *value,
                       GError **error);

### dnf_repo_commit ()

    gboolean
    dnf_repo_commit (DnfRepo *repo,
                     GError **error);

### dnf_repo_get_lr_handle ()

    LrHandle *
    dnf_repo_get_lr_handle (DnfRepo *repo);

### dnf_repo_get_lr_result ()

    LrResult *
    dnf_repo_get_lr_result (DnfRepo *repo);

### dnf_repo_download_package ()

    gchar *
    dnf_repo_download_package (DnfRepo *repo,
                               DnfPackage *pkg,
                               const gchar *directory,
                               DnfState *state,
                               GError **error);

### dnf_repo_download_packages ()

    gboolean
    dnf_repo_download_packages (DnfRepo *repo,
                                GPtrArray *pkgs,
                                const gchar *directory,
                                DnfState *state,
                                GError **error);

### dnf_repo_get_hy_repo ()

    HyRepo
    dnf_repo_get_hy_repo (DnfRepo *repo);

### dnf_repo_add_metadata_type_to_download ()

    void
    dnf_repo_add_metadata_type_to_download
                                   (DnfRepo *repo,
                                    const gchar *metadataType);

### dnf_repo_get_metadata_content ()

    gboolean
    dnf_repo_get_metadata_content (DnfRepo *repo,
                                   const gchar *metadataType,
                                   gpointer *content,
                                   gsize *length,
                                   GError **error);

## Types and Values

### DNF_TYPE_REPO

    #define DNF_TYPE_REPO (dnf_repo_get_type ())

### struct DnfRepoClass

    struct DnfRepoClass {
            GObjectClass            parent_class;
    };

### enum DnfRepoUpdateFlags

The update flags.

#### Members

DNF_REPO_UPDATE_FLAG_NONE | No flags set |
DNF_REPO_UPDATE_FLAG_FORCE | Force the repo to be updated |
DNF_REPO_UPDATE_FLAG_IMPORT_PUBKEY | Import the repo public key to librpm if possible |
DNF_REPO_UPDATE_FLAG_SIMULATE | Do not actually update the repo |

### enum DnfRepoKind

The repo kind.

#### Members

DNF_REPO_KIND_REMOTE | A remote repo |
DNF_REPO_KIND_MEDIA | A media repo, e.g. a DVD |
DNF_REPO_KIND_LOCAL | A local repo, e.g. file:// |

### enum DnfRepoEnabled

How enabled is the repo.

#### Members

DNF_REPO_ENABLED_NONE | Source is disabled |
DNF_REPO_ENABLED_PACKAGES | Source is fully enabled |
DNF_REPO_ENABLED_METADATA | Only repo metadata is enabled |

### DnfRepo

    typedef struct _DnfRepo DnfRepo;