[glib] Annotate GApplication::local_command_line



commit 7acfdb04ac1af34af26353a2af388adb7e4db844
Author: Paolo Borelli <pborelli gnome org>
Date:   Thu Dec 27 20:55:30 2012 +0100

    Annotate GApplication::local_command_line
    
    Also add some documentation.
    https://bugzilla.gnome.org/show_bug.cgi?id=690670

 gio/gapplication.h |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
---
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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]