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:
badcel
2023-01-09 14:12:16 +01:00
parent b24f6ca27d
commit fc70f2c057
2 changed files with 21 additions and 21 deletions

View File

@@ -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: