[mutter/tintou/context-annotation] context: Add some missing introspection data




commit 604cb88089e49dcfab72ba0e5217a9e9182b058d
Author: Corentin Noël <corentin noel collabora com>
Date:   Thu Aug 26 12:42:31 2021 +0200

    context: Add some missing introspection data
    
    Allows to use option groups/entries from the introspection.

 src/core/meta-context.c | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
---
diff --git a/src/core/meta-context.c b/src/core/meta-context.c
index 7bb0e5f460..96dcc88b6b 100644
--- a/src/core/meta-context.c
+++ b/src/core/meta-context.c
@@ -78,6 +78,14 @@ typedef struct _MetaContextPrivate
 
 G_DEFINE_TYPE_WITH_PRIVATE (MetaContext, meta_context, G_TYPE_OBJECT)
 
+/**
+ * meta_context_add_option_entries:
+ * @context: a #MetaContext
+ * @entries: (array zero-terminated=1): a %NULL-terminated array of #GOptionEntrys
+ * @translation_domain: (nullable): a translation domain to use, or %NULL
+ *
+ * See g_option_context_add_main_entries() for more details.
+ **/
 void
 meta_context_add_option_entries (MetaContext        *context,
                                  const GOptionEntry *entries,
@@ -92,6 +100,14 @@ meta_context_add_option_entries (MetaContext        *context,
                                      translation_domain);
 }
 
+/**
+ * meta_context_add_option_group:
+ * @context: a #MetaContext
+ * @group: (transfer full): the group to add
+ *
+ * See g_option_context_add_group() for more details.
+ **/
+
 void
 meta_context_add_option_group (MetaContext  *context,
                                GOptionGroup *group)
@@ -243,6 +259,18 @@ meta_context_real_configure (MetaContext   *context,
   return g_option_context_parse (option_context, argc, argv, error);
 }
 
+/**
+ * meta_context_configure:
+ * @context: a #MetaContext
+ * @argc: (inout): Address of the `argc` parameter of your main() function (or 0
+ * if @argv is %NULL).
+ * @argv: (array length=argc) (inout) (allow-none): Address of the`argv`
+ * parameter of main(), or %NULL.
+ * @error: a return location for errors
+ *
+ * Returns: %TRUE if the commandline arguments (if any) were valid and if the
+ * configuration has been successfull, %FALSE otherwise
+ */
 gboolean
 meta_context_configure (MetaContext   *context,
                         int           *argc,


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