Add internal API: flatpak_dir_get_id()

This will be used both from the CLI commands and the public API.
tingping/wmclass
Mario Sanchez Prada 2016-12-16 19:17:24 +00:00
parent d7de3225cc
commit 1858b8987d
2 changed files with 7 additions and 0 deletions

View File

@ -615,6 +615,12 @@ flatpak_dir_get_path (FlatpakDir *self)
return self->basedir;
}
const char *
flatpak_dir_get_id (FlatpakDir *self)
{
return self->id;
}
GFile *
flatpak_dir_get_changed_path (FlatpakDir *self)
{

View File

@ -152,6 +152,7 @@ gboolean flatpak_dir_is_user (FlatpakDir *self);
void flatpak_dir_set_no_system_helper (FlatpakDir *self,
gboolean no_system_helper);
GFile * flatpak_dir_get_path (FlatpakDir *self);
const char *flatpak_dir_get_id (FlatpakDir *self);
GFile * flatpak_dir_get_changed_path (FlatpakDir *self);
GFile * flatpak_dir_get_deploy_dir (FlatpakDir *self,
const char *ref);