From 7acfdb04ac1af34af26353a2af388adb7e4db844 Mon Sep 17 00:00:00 2001 From: Paolo Borelli Date: Thu, 27 Dec 2012 20:55:30 +0100 Subject: [PATCH] Annotate GApplication::local_command_line Also add some documentation. https://bugzilla.gnome.org/show_bug.cgi?id=690670 --- gio/gapplication.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/gio/gapplication.h b/gio/gapplication.h index f5b6920..06625d1 100644 --- a/gio/gapplication.h +++ b/gio/gapplication.h @@ -76,6 +76,26 @@ struct _GApplicationClass GApplicationCommandLine *command_line); /* vfuncs */ + + /** + * GApplicationClass::local_command_line: + * @application: a #GApplication + * @arguments: (inout) (array zero-terminated=1): array of command line arguments + * @exit_status: (out): exit status to fill after processing the command line. + * + * This virtual function is always invoked in the local instance. It + * gets passed a pointer to a %NULL-terminated copy of @argv and is + * expected to remove arguments that it handled (shifting up remaining + * arguments). + * + * The last argument to local_command_line() is a pointer to the @status + * variable which can used to set the exit status that is returned from + * g_application_run(). + * + * See g_application_run() for more details on #GApplication startup. + * + * Returns: %TRUE if the commandline has been completely handled + */ gboolean (* local_command_line) (GApplication *application, gchar ***arguments, int *exit_status); -- 2.7.4