summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2016-05-16 21:25:48 -0400
committerMatthias Clasen <mclasen@redhat.com>2016-05-16 21:25:48 -0400
commitfab3e4b9918aef256089644b88e4d3e744e04dce (patch)
tree902797ce30e067e1bc417d5ffac1139d153fe5a8
parentd30ef7c60298091c6eccdb0a27ac403cbad781d5 (diff)
downloadxdg-app-fab3e4b9918aef256089644b88e4d3e744e04dce.tar.gz
Document new FlatpakInstallation api
-rw-r--r--lib/flatpak-installation.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/flatpak-installation.c b/lib/flatpak-installation.c
index bef2381..9c1b4c3 100644
--- a/lib/flatpak-installation.c
+++ b/lib/flatpak-installation.c
@@ -228,6 +228,7 @@ flatpak_installation_get_dir (FlatpakInstallation *self)
/**
* flatpak_installation_drop_caches:
+ * @self: a #FlatpakInstallation
* @cancellable: (nullable): a #GCancellable
* @error: return location for a #GError
*
@@ -710,6 +711,17 @@ flatpak_installation_list_remotes (FlatpakInstallation *self,
return g_steal_pointer (&remotes);
}
+/**
+ * flatpak_installation_modify_remote:
+ * @self: a #FlatpakInstallation
+ * @remote: the modified #FlatpakRemote
+ * @cancellable: (nullable): a #GCancellable
+ * @error: return location for a #GError
+ *
+ * Saves changes in the @remote object.
+ *
+ * Returns: %TRUE if the modifications have been committed successfully
+ */
gboolean
flatpak_installation_modify_remote (FlatpakInstallation *self,
FlatpakRemote *remote,
@@ -734,6 +746,17 @@ flatpak_installation_modify_remote (FlatpakInstallation *self,
return TRUE;
}
+/**
+ * flatpak_installation_remove_remote:
+ * @self: a #FlatpakInstallation
+ * @name: the name of the remote to remove
+ * @cancellable: (nullable): a #GCancellable
+ * @error: return location for a #GError
+ *
+ * Removes the remote with the given name from the installation.
+ *
+ * Returns: %TRUE if the remote has been removed successfully
+ */
gboolean
flatpak_installation_remove_remote (FlatpakInstallation *self,
const char *name,