| Top |
| OstreeRemote * | ostree_remote_ref () |
| void | ostree_remote_unref () |
| const gchar * | ostree_remote_get_name () |
| gchar * | ostree_remote_get_url () |
OstreeRemote *
ostree_remote_ref (OstreeRemote *remote);
Increase the reference count on the given remote
.
Since: 2018.6
void
ostree_remote_unref (OstreeRemote *remote);
Decrease the reference count on the given remote
and free it if the
reference count reaches 0.
Since: 2018.6
const gchar *
ostree_remote_get_name (OstreeRemote *remote);
Get the human-readable name of the remote. This is what the user configured, if the remote was explicitly configured; and will otherwise be a stable, arbitrary, string.
Since: 2018.6
gchar *
ostree_remote_get_url (OstreeRemote *remote);
Get the URL from the remote.
Since: 2018.6
struct OstreeRemote {
int ref_count; /* atomic */
char *name; /* (not nullable) */
char *refspec_name; /* (nullable) */
char *group; /* group name in options (not nullable) */
char *keyring; /* keyring name ($refspec_name.trustedkeys.gpg) (not nullable) */
GFile *file; /* NULL if remote defined in repo/config */
GKeyFile *options;
};
This represents the configuration for a single remote repository. Currently, remotes can only be passed around as (reference counted) opaque handles. In future, more API may be added to create and interrogate them.
Since: 2018.6