summaryrefslogtreecommitdiff
path: root/app/flatpak-builtins.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2016-05-27 16:30:13 +0200
committerAlexander Larsson <alexl@redhat.com>2016-05-27 16:30:13 +0200
commiteeaa83209517852baea746227489daaaefc5eb1b (patch)
treee8f2f745b68781d14d994581c8e65f83e939d85e /app/flatpak-builtins.h
parentc7c9505e9066d1912f5dea0b0834d740ce044763 (diff)
downloadflatpak-eeaa83209517852baea746227489daaaefc5eb1b.tar.gz
Replace bash completion shell script with C-based version
This doesn't do everything yet, but its got the basics covered.
Diffstat (limited to 'app/flatpak-builtins.h')
-rw-r--r--app/flatpak-builtins.h57
1 files changed, 32 insertions, 25 deletions
diff --git a/app/flatpak-builtins.h b/app/flatpak-builtins.h
index 1f6cda5c..133a57c7 100644
--- a/app/flatpak-builtins.h
+++ b/app/flatpak-builtins.h
@@ -24,6 +24,7 @@
#include <ostree.h>
#include <gio/gio.h>
+#include "flatpak-utils.h"
#include "flatpak-dir.h"
G_BEGIN_DECLS
@@ -42,36 +43,42 @@ gboolean flatpak_option_context_parse (GOptionContext *context,
GCancellable *cancellable,
GError **error);
+extern GOptionEntry user_entries[];
+extern GOptionEntry global_entries[];
+
gboolean usage_error (GOptionContext *context,
const char *message,
GError **error);
-#define BUILTINPROTO(name) gboolean flatpak_builtin_ ## name (int argc, char **argv, GCancellable * cancellable, GError * *error)
+#define BUILTINPROTO(name) \
+ gboolean flatpak_builtin_ ## name (int argc, char **argv, GCancellable * cancellable, GError * *error); \
+ gboolean flatpak_complete_ ## name (FlatpakCompletion *completion);
+
-BUILTINPROTO (add_remote);
-BUILTINPROTO (modify_remote);
-BUILTINPROTO (delete_remote);
-BUILTINPROTO (ls_remote);
-BUILTINPROTO (list_remotes);
-BUILTINPROTO (install);
-BUILTINPROTO (update);
-BUILTINPROTO (make_current_app);
-BUILTINPROTO (uninstall);
-BUILTINPROTO (install_bundle);
-BUILTINPROTO (list);
-BUILTINPROTO (info);
-BUILTINPROTO (run);
-BUILTINPROTO (enter);
-BUILTINPROTO (build_init);
-BUILTINPROTO (build);
-BUILTINPROTO (build_finish);
-BUILTINPROTO (build_sign);
-BUILTINPROTO (build_export);
-BUILTINPROTO (build_bundle);
-BUILTINPROTO (build_import);
-BUILTINPROTO (build_update_repo);
-BUILTINPROTO (export_file);
-BUILTINPROTO (override);
+BUILTINPROTO (add_remote)
+BUILTINPROTO (modify_remote)
+BUILTINPROTO (delete_remote)
+BUILTINPROTO (ls_remote)
+BUILTINPROTO (list_remotes)
+BUILTINPROTO (install)
+BUILTINPROTO (update)
+BUILTINPROTO (make_current_app)
+BUILTINPROTO (uninstall)
+BUILTINPROTO (install_bundle)
+BUILTINPROTO (list)
+BUILTINPROTO (info)
+BUILTINPROTO (run)
+BUILTINPROTO (enter)
+BUILTINPROTO (build_init)
+BUILTINPROTO (build)
+BUILTINPROTO (build_finish)
+BUILTINPROTO (build_sign)
+BUILTINPROTO (build_export)
+BUILTINPROTO (build_bundle)
+BUILTINPROTO (build_import)
+BUILTINPROTO (build_update_repo)
+BUILTINPROTO (export_file)
+BUILTINPROTO (override)
#undef BUILTINPROTO