libsysprof: add accessors for setting spawnable flags

We need this to be able to allow inheriting stdin from sysprof-cli.
This commit is contained in:
Christian Hergert
2022-04-01 12:40:20 -07:00
parent 3c5540047f
commit 1587bc13b6
2 changed files with 48 additions and 7 deletions

View File

@ -77,5 +77,10 @@ void sysprof_spawnable_set_starting_fd (SysprofSpawnable
SYSPROF_AVAILABLE_IN_ALL
GSubprocess *sysprof_spawnable_spawn (SysprofSpawnable *self,
GError **error);
SYSPROF_AVAILABLE_IN_3_46
GSubprocessFlags sysprof_spawnable_get_flags (SysprofSpawnable *self);
SYSPROF_AVAILABLE_IN_3_46
void sysprof_spawnable_set_flags (SysprofSpawnable *self,
GSubprocessFlags flags);
G_END_DECLS