summaryrefslogtreecommitdiff
path: root/common/flatpak-installation.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2018-12-01 12:31:49 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-12-05 10:16:22 +0000
commitf3f7417b160fc7a0a995b08e2752ac6c7be1bcc1 (patch)
treebc24c618857e3844a7f9c2c49e5c2a093b175137 /common/flatpak-installation.h
parent929da90a3ec221746ba9d2fedaf2462a2ae06e4b (diff)
downloadflatpak-f3f7417b160fc7a0a995b08e2752ac6c7be1bcc1.tar.gz
installation: Add a no-interaction property
Allow to mark a FlatpakInstallation as no-interaction, which will get passed to the system helper to prevent it from presenting polkit dialogs. We make this a property on the object, since not all relevant methods have flags that would let us pass this information. Closes: #2367 Approved by: alexlarsson
Diffstat (limited to 'common/flatpak-installation.h')
-rw-r--r--common/flatpak-installation.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/common/flatpak-installation.h b/common/flatpak-installation.h
index 6720794b..0f97c415 100644
--- a/common/flatpak-installation.h
+++ b/common/flatpak-installation.h
@@ -103,9 +103,9 @@ typedef enum {
* Since: 0.11.8
*/
typedef enum {
- FLATPAK_UNINSTALL_FLAGS_NONE = 0,
- FLATPAK_UNINSTALL_FLAGS_NO_PRUNE = (1 << 0),
- FLATPAK_UNINSTALL_FLAGS_NO_TRIGGERS = (1 << 1),
+ FLATPAK_UNINSTALL_FLAGS_NONE = 0,
+ FLATPAK_UNINSTALL_FLAGS_NO_PRUNE = (1 << 0),
+ FLATPAK_UNINSTALL_FLAGS_NO_TRIGGERS = (1 << 1),
} FlatpakUninstallFlags;
/**
@@ -163,6 +163,9 @@ FLATPAK_EXTERN FlatpakInstallation *flatpak_installation_new_for_path (GFile
gboolean user,
GCancellable *cancellable,
GError **error);
+FLATPAK_EXTERN void flatpak_installation_set_no_interaction (FlatpakInstallation *installation,
+ gboolean no_interaction);
+FLATPAK_EXTERN gboolean flatpak_installation_get_no_interaction (FlatpakInstallation *installation);
/**
* FlatpakProgressCallback: