![]() |
![]() |
![]() |
ZIF Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
ZifReposZifRepos — A ZifRepos object manages software sources |
#define ZIF_REPOS_ERROR ZifRepos; ZifReposPrivate; ZifReposClass; enum ZifReposError; GQuark zif_repos_error_quark (void
); ZifRepos * zif_repos_new (void
); gboolean zif_repos_set_repos_dir (ZifRepos *repos
,const gchar *repos_dir
,GError **error
); gboolean zif_repos_load (ZifRepos *repos
,ZifState *state
,GError **error
); GPtrArray * zif_repos_get_stores (ZifRepos *repos
,ZifState *state
,GError **error
); GPtrArray * zif_repos_get_stores_enabled (ZifRepos *repos
,ZifState *state
,GError **error
); ZifStoreRemote * zif_repos_get_store (ZifRepos *repos
,const gchar *id
,ZifState *state
,GError **error
);
GQuark zif_repos_error_quark (void
);
Returns : |
Our personal error quark. |
Since 0.1.0
ZifRepos * zif_repos_new (void
);
Returns : |
A new ZifRepos class instance. |
Since 0.1.0
gboolean zif_repos_set_repos_dir (ZifRepos *repos
,const gchar *repos_dir
,GError **error
);
Set the repository directory.
|
the ZifRepos object |
|
the directory, e.g. "/etc/yum.repos.d" |
|
a GError which is used on failure, or NULL
|
Returns : |
TRUE for success, FALSE for failure
|
Since 0.1.0
gboolean zif_repos_load (ZifRepos *repos
,ZifState *state
,GError **error
);
Load the repository, and parse it's config file.
|
the ZifRepos object |
|
a ZifState to use for progress reporting |
|
a GError which is used on failure, or NULL
|
Returns : |
TRUE for success, FALSE for failure
|
Since 0.1.0
GPtrArray * zif_repos_get_stores (ZifRepos *repos
,ZifState *state
,GError **error
);
Gets the enabled and disabled remote stores.
|
the ZifRepos object |
|
a ZifState to use for progress reporting |
|
a GError which is used on failure, or NULL
|
Returns : |
a list of ZifStore's |
Since 0.1.0
GPtrArray * zif_repos_get_stores_enabled (ZifRepos *repos
,ZifState *state
,GError **error
);
Gets the enabled remote stores.
|
the ZifRepos object |
|
a ZifState to use for progress reporting |
|
a GError which is used on failure, or NULL
|
Returns : |
a list of ZifStore's |
Since 0.1.0
ZifStoreRemote * zif_repos_get_store (ZifRepos *repos
,const gchar *id
,ZifState *state
,GError **error
);
Gets the store matching the ID.
|
the ZifRepos object |
|
the repository id, e.g. "fedora" |
|
a ZifState to use for progress reporting |
|
a GError which is used on failure, or NULL
|
Returns : |
A ZifStoreRemote object, or NULL
|
Since 0.1.0