mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-18 21:55:22 -04:00
oci: Add flatpak_oci_image_get_n_layers() helper
This commit is contained in:
committed by
Alexander Larsson
parent
e0a25e7650
commit
90f5fdb44d
@@ -222,6 +222,7 @@ void flatpak_oci_image_set_os (FlatpakOciImage *image,
|
||||
const char *os);
|
||||
void flatpak_oci_image_set_layers (FlatpakOciImage *image,
|
||||
const char **layers);
|
||||
int flatpak_oci_image_get_n_layers (FlatpakOciImage *image);
|
||||
void flatpak_oci_image_set_layer (FlatpakOciImage *image,
|
||||
const char *layer);
|
||||
GHashTable * flatpak_oci_image_get_labels (FlatpakOciImage *self);
|
||||
|
||||
@@ -720,6 +720,12 @@ flatpak_oci_image_set_layers (FlatpakOciImage *image,
|
||||
image->rootfs.diff_ids = g_strdupv ((char **) layers);
|
||||
}
|
||||
|
||||
int
|
||||
flatpak_oci_image_get_n_layers (FlatpakOciImage *image)
|
||||
{
|
||||
return ptrv_count ((gpointer *) image->rootfs.diff_ids);
|
||||
}
|
||||
|
||||
GHashTable *
|
||||
flatpak_oci_image_get_labels (FlatpakOciImage *self)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user