mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof: add vfunc to modify spawn arguments
This commit is contained in:
@ -139,3 +139,16 @@ sysprof_source_stop (SysprofSource *self)
|
||||
if (SYSPROF_SOURCE_GET_IFACE (self)->stop)
|
||||
SYSPROF_SOURCE_GET_IFACE (self)->stop (self);
|
||||
}
|
||||
|
||||
void
|
||||
sysprof_source_modify_spawn (SysprofSource *self,
|
||||
GSubprocessLauncher *launcher,
|
||||
GPtrArray *argv)
|
||||
{
|
||||
g_return_if_fail (SYSPROF_IS_SOURCE (self));
|
||||
g_return_if_fail (G_IS_SUBPROCESS_LAUNCHER (launcher));
|
||||
g_return_if_fail (argv != NULL);
|
||||
|
||||
if (SYSPROF_SOURCE_GET_IFACE (self)->modify_spawn)
|
||||
SYSPROF_SOURCE_GET_IFACE (self)->modify_spawn (self, launcher, argv);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user