mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-26 10:58:53 +02:00
Do not name callback parameters "user_data"
Calling a callback parameter "user_data" implicitly adds the "closure" attribute in the documentation which is wrong for callbacks.
This commit is contained in:
@@ -104,7 +104,7 @@ typedef enum
|
||||
|
||||
/**
|
||||
* GSpawnChildSetupFunc:
|
||||
* @user_data: user data to pass to the function.
|
||||
* @data: user data passed to the function.
|
||||
*
|
||||
* Specifies the type of the setup function passed to g_spawn_async(),
|
||||
* g_spawn_sync() and g_spawn_async_with_pipes(), which can, in very
|
||||
@@ -137,7 +137,7 @@ typedef enum
|
||||
* and g_environ_unsetenv(), and then pass the complete environment
|
||||
* list to the `g_spawn...` function.
|
||||
*/
|
||||
typedef void (* GSpawnChildSetupFunc) (gpointer user_data);
|
||||
typedef void (* GSpawnChildSetupFunc) (gpointer data);
|
||||
|
||||
/**
|
||||
* GSpawnFlags:
|
||||
|
Reference in New Issue
Block a user