Class
IdeRunner
Ancestors
- IdeObject
- GObject
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
Methods inherited from IdeObject (28)
ide_object_add
Adds child
to self
, with location dependent on location
.
Available since: 3.32
ide_object_append
Inserts child
as the last child of self
.
Available since: 3.32
ide_object_destroy
ide_object_ensure_child_typed
Like ide_object_get_child_typed()
except that it creates an object of
type
if it is missing.
Available since: 3.32
ide_object_foreach
Calls callback
for each child of self
.
Available since: 3.32
ide_object_get_child_typed
Finds the first child of self
that is of type
.
Available since: 3.32
ide_object_get_children_typed
Gets all children matching type
.
Available since: 3.32
ide_object_get_context
Gets the IdeContext
for the object.
Available since: 3.32
ide_object_get_n_children
Gets the number of children for an object.
Available since: 3.32
ide_object_get_nth_child
Gets the nth
child of self
.
Available since: 3.32
ide_object_get_parent
Gets the parent IdeObject
, if any.
Available since: 3.32
ide_object_get_position
Gets the position of self
within the parent node.
Available since: 3.32
ide_object_in_destruction
ide_object_insert_after
Inserts child
into self
‘s children, directly after sibling
.
Available since: 3.32
ide_object_insert_before
Inserts child
into self
‘s children, directly before sibling
.
Available since: 3.32
ide_object_insert_sorted
Locates the proper sibling for child
by using func
amongst self
‘s
children IdeObject
. Those objects must already be sorted.
Available since: 3.32
ide_object_is_root
Checks if self
is root, meaning it has no parent.
Available since: 3.32
ide_object_lock
Acquires the lock for self
. This can be useful when you need to do
multi-threaded work with self
and want to ensure exclusivity.
Available since: 3.32
ide_object_prepend
Inserts child
as the first child of self
.
Available since: 3.32
ide_object_ref_cancellable
Gets a GCancellable
for the object.
Available since: 3.32
ide_object_ref_context
Gets the root IdeContext
for the object, if any.
Available since: 3.32
ide_object_ref_parent
Gets the parent IdeObject
, if any.
Available since: 3.32
ide_object_ref_root
Finds and returns the toplevel object in the tree.
Available since: 3.32
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
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