Class
IdeRunner
Constructors
ide_runner_new
Instance methods
ide_runner_append_argv
ide_runner_force_quit
ide_runner_get_clear_env
ide_runner_get_disable_pty
ide_runner_get_failed
ide_runner_get_flags
ide_runner_get_max_fd
ide_runner_get_run_on_host
ide_runner_get_runtime
This function will get the IdeRuntime
that will be used to execute the
application. Consumers may want to use this to determine if a particular
program is available (such as gdb, perf, strace, etc).
Available since: 3.32
ide_runner_prepend_argv
ide_runner_push_args
Helper to call ide_runner_append_argv()
for every argument
contained in args
.
Available since: 3.32
ide_runner_run_async
ide_runner_run_finish
ide_runner_set_argv
ide_runner_set_build_target
Sets the build target associated with this runner.
Available since: 3.32
ide_runner_set_clear_env
ide_runner_set_disable_pty
ide_runner_set_failed
ide_runner_set_flags
ide_runner_set_run_on_host
ide_runner_take_fd
This will ensure that source_fd
is mapped into the new process as dest_fd
.
If dest_fd
is -1, then the next fd will be used and that value will be
returned. Note that this is not a valid fd in the calling process, only
within the destination process.
Available since: 3.32
ide_runner_take_tty_fd
Properties
Ide.Runner:argv
Ide.Runner:build-target
The %IdeBuildTarget from which this %IdeRunner was constructed.
Available since: 3.32
Ide.Runner:clear-env
Ide.Runner:cwd
Ide.Runner:disable-pty
Ide.Runner:environment
Ide.Runner:failed
If the runner has “failed”. This should be set if a plugin can determine that the runner cannot be executed due to an external issue. One such example might be a debugger plugin that cannot locate a suitable debugger to run the program.
Available since: 3.32
Ide.Runner:run-on-host
The “run-on-host” property indicates the program should be run on the host machine rather than inside the application sandbox.
Available since: 3.32
Properties inherited from IdeObject (2)
Ide.Object:cancellable
The “cancellable” property is a GCancellable
that can be used by operations
that will be cancelled when the IdeObject::destroy
signal is emitted on self
.
Available since: 3.32
Ide.Object:parent
The parent IdeObject
, if any.
Available since: 3.32
Signals
Ide.Runner::exited
Ide.Runner::spawned
Signals inherited from IdeObject (1)
Ide.Object::destroy
The “destroy” signal is emitted when the object should destroy itself and cleanup any state that is no longer necessary. This happens when the object has been removed from the because it was requested to be destroyed, or because a parent object is being destroyed.
Available since: 3.32
Signals inherited from GObject (1)
GObject.Object::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct IdeRunnerClass {
IdeObjectClass parent;
void (* force_quit) (
IdeRunner* self
);
GOutputStream* (* get_stdin) (
IdeRunner* self
);
GInputStream* (* get_stdout) (
IdeRunner* self
);
GInputStream* (* get_stderr) (
IdeRunner* self
);
void (* run_async) (
IdeRunner* self,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
);
gboolean (* run_finish) (
IdeRunner* self,
GAsyncResult* result,
GError** error
);
IdeSubprocessLauncher* (* create_launcher) (
IdeRunner* self
);
void (* fixup_launcher) (
IdeRunner* self,
IdeSubprocessLauncher* launcher
);
IdeRuntime* (* get_runtime) (
IdeRunner* self
);
}
Class members
parent |
|
No description available. | |
force_quit |
|
No description available. | |
get_stdin |
|
No description available. | |
get_stdout |
|
No description available. | |
get_stderr |
|
No description available. | |
run_async |
|
No description available. | |
run_finish |
|
No description available. | |
create_launcher |
|
No description available. | |
fixup_launcher |
|
No description available. | |
get_runtime |
|
No description available. |
Virtual methods
Ide.RunnerClass.create_launcher
Ide.RunnerClass.fixup_launcher
Ide.RunnerClass.force_quit
Ide.RunnerClass.get_runtime
This function will get the IdeRuntime
that will be used to execute the
application. Consumers may want to use this to determine if a particular
program is available (such as gdb, perf, strace, etc).
Available since: 3.32