mirror of
https://github.com/flatpak/flatpak.git
synced 2026-04-02 22:34:25 -04:00
oci: Add flatpak_oci_registry_is_local()
(cherry picked from commit d4962628aa)
This commit is contained in:
committed by
Alexander Larsson
parent
35631f143e
commit
16157da05a
@@ -62,6 +62,7 @@ FlatpakOciRegistry * flatpak_oci_registry_new (const char *uri,
|
||||
GError **error);
|
||||
void flatpak_oci_registry_set_token (FlatpakOciRegistry *self,
|
||||
const char *token);
|
||||
gboolean flatpak_oci_registry_is_local (FlatpakOciRegistry *self);
|
||||
const char * flatpak_oci_registry_get_uri (FlatpakOciRegistry *self);
|
||||
FlatpakOciIndex * flatpak_oci_registry_load_index (FlatpakOciRegistry *self,
|
||||
GCancellable *cancellable,
|
||||
|
||||
@@ -205,6 +205,12 @@ flatpak_oci_registry_init (FlatpakOciRegistry *self)
|
||||
self->tmp_dfd = -1;
|
||||
}
|
||||
|
||||
gboolean
|
||||
flatpak_oci_registry_is_local (FlatpakOciRegistry *self)
|
||||
{
|
||||
return self->dfd != -1;
|
||||
}
|
||||
|
||||
const char *
|
||||
flatpak_oci_registry_get_uri (FlatpakOciRegistry *self)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user