mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
Use the (allow-none) annotation for clutter_init*
We accept NULL for some parameters in the initialization functions. Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
This commit is contained in:
parent
d1232509a2
commit
f1044a279c
@ -1504,16 +1504,17 @@ clutter_get_option_group_without_init (void)
|
|||||||
/**
|
/**
|
||||||
* clutter_init_with_args:
|
* clutter_init_with_args:
|
||||||
* @argc: (inout): a pointer to the number of command line arguments
|
* @argc: (inout): a pointer to the number of command line arguments
|
||||||
* @argv: (array length=argc) (inout): a pointer to the array of command line arguments
|
* @argv: (array length=argc) (inout) (allow-none): a pointer to the array
|
||||||
* @parameter_string: a string which is displayed in the
|
* of command line arguments
|
||||||
|
* @parameter_string: (allow-none): a string which is displayed in the
|
||||||
* first line of <option>--help</option> output, after
|
* first line of <option>--help</option> output, after
|
||||||
* <literal><replaceable>programname</replaceable> [OPTION...]</literal>
|
* <literal><replaceable>programname</replaceable> [OPTION...]</literal>
|
||||||
* @entries: a %NULL terminated array of #GOptionEntry<!-- -->s
|
* @entries: (allow-none): a %NULL terminated array of #GOptionEntry<!-- -->s
|
||||||
* describing the options of your program
|
* describing the options of your program
|
||||||
* @translation_domain: a translation domain to use for translating
|
* @translation_domain: (allow-none): a translation domain to use for
|
||||||
* the <option>--help</option> output for the options in @entries
|
* translating the <option>--help</option> output for the options in
|
||||||
* with gettext(), or %NULL
|
* @entries with gettext(), or %NULL
|
||||||
* @error: a return location for a #GError
|
* @error: (allow-none): a return location for a #GError
|
||||||
*
|
*
|
||||||
* This function does the same work as clutter_init(). Additionally,
|
* This function does the same work as clutter_init(). Additionally,
|
||||||
* it allows you to add your own command line options, and it
|
* it allows you to add your own command line options, and it
|
||||||
@ -1631,7 +1632,8 @@ clutter_parse_args (int *argc,
|
|||||||
/**
|
/**
|
||||||
* clutter_init:
|
* clutter_init:
|
||||||
* @argc: (inout): The number of arguments in @argv
|
* @argc: (inout): The number of arguments in @argv
|
||||||
* @argv: (array length=argc) (inout): A pointer to an array of arguments.
|
* @argv: (array length=argc) (inout) (allow-none): A pointer to an array
|
||||||
|
* of arguments.
|
||||||
*
|
*
|
||||||
* It will initialise everything needed to operate with Clutter and
|
* It will initialise everything needed to operate with Clutter and
|
||||||
* parses some standard command line options. @argc and @argv are
|
* parses some standard command line options. @argc and @argv are
|
||||||
|
Loading…
Reference in New Issue
Block a user