Class

IdeRuntime

Description

class Ide.Runtime : Ide.Object {
  parent_instance: IdeObject
}
No description available.

Ancestors

Constructors

ide_runtime_new
No description available.

Instance methods

ide_runtime_contains_program_in_path
No description available.
ide_runtime_create_launcher

Creates a launcher for the runtime.

Available since: 3.32

ide_runtime_create_runner

Creates a new runner that can be used to execute the build target within the runtime. This should be used to implement such features as “run target” or “run unit test” inside the target runtime.

Available since: 3.32

ide_runtime_get_arch

Gets the architecture of the runtime.

Available since: 3.32

ide_runtime_get_category
No description available.
ide_runtime_get_display_name
No description available.
ide_runtime_get_id
No description available.
ide_runtime_get_name
No description available.
ide_runtime_get_short_id
No description available.
ide_runtime_get_system_include_dirs

Gets the system include dirs for the runtime. Usually, this is just “/usr/include”, but more complex runtimes may include additional.

Available since: 3.32

ide_runtime_get_triplet

Gets the architecture triplet of the runtime.

Available since: 3.32

ide_runtime_prepare_configuration
No description available.
ide_runtime_set_category
No description available.
ide_runtime_set_display_name
No description available.
ide_runtime_set_id
No description available.
ide_runtime_set_name
No description available.
ide_runtime_set_short_id
No description available.
ide_runtime_supports_toolchain

Informs wether a toolchain is supported by this.

Available since: 3.32

ide_runtime_translate_file

Translates the file from a path within the runtime to a path that can be accessed from the host system.

Available since: 3.32

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
No description available.
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
No description available.
ide_object_insert_after

Inserts child into selfs children, directly after sibling.

Available since: 3.32

ide_object_insert_before

Inserts child into selfs children, directly before sibling.

Available since: 3.32

ide_object_insert_sorted

Locates the proper sibling for child by using func amongst selfs 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.Runtime:category
No description available.
Ide.Runtime:display-name
No description available.
Ide.Runtime:id
No description available.
Ide.Runtime:name
No description available.
Ide.Runtime:short-id
No description available.
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

Class structure

struct IdeRuntimeClass {
  IdeObjectClass parent;
  gboolean (* contains_program_in_path) (
    IdeRuntime* self,
    const gchar* program,
    GCancellable* cancellable
  );
  IdeSubprocessLauncher* (* create_launcher) (
    IdeRuntime* self,
    GError** error
  );
  void (* prepare_configuration) (
    IdeRuntime* self,
    IdeConfig* configuration
  );
  IdeRunner* (* create_runner) (
    IdeRuntime* self,
    IdeBuildTarget* build_target
  );
  GFile* (* translate_file) (
    IdeRuntime* self,
    GFile* file
  );
  gchar** (* get_system_include_dirs) (
    IdeRuntime* self
  );
  IdeTriplet* (* get_triplet) (
    IdeRuntime* self
  );
  gboolean (* supports_toolchain) (
    IdeRuntime* self,
    IdeToolchain* toolchain
  );
  
}
Class members
parent
IdeObjectClass
  No description available.
contains_program_in_path
gboolean (* contains_program_in_path) (
    IdeRuntime* self,
    const gchar* program,
    GCancellable* cancellable
  )
  No description available.
create_launcher
IdeSubprocessLauncher* (* create_launcher) (
    IdeRuntime* self,
    GError** error
  )
  No description available.
prepare_configuration
void (* prepare_configuration) (
    IdeRuntime* self,
    IdeConfig* configuration
  )
  No description available.
create_runner
IdeRunner* (* create_runner) (
    IdeRuntime* self,
    IdeBuildTarget* build_target
  )
  No description available.
translate_file
GFile* (* translate_file) (
    IdeRuntime* self,
    GFile* file
  )
  No description available.
get_system_include_dirs
gchar** (* get_system_include_dirs) (
    IdeRuntime* self
  )
  No description available.
get_triplet
IdeTriplet* (* get_triplet) (
    IdeRuntime* self
  )
  No description available.
supports_toolchain
gboolean (* supports_toolchain) (
    IdeRuntime* self,
    IdeToolchain* toolchain
  )
  No description available.

Virtual methods

Ide.RuntimeClass.contains_program_in_path
No description available.
Ide.RuntimeClass.create_launcher

Creates a launcher for the runtime.

Available since: 3.32

Ide.RuntimeClass.create_runner

Creates a new runner that can be used to execute the build target within the runtime. This should be used to implement such features as “run target” or “run unit test” inside the target runtime.

Available since: 3.32

Ide.RuntimeClass.get_system_include_dirs

Gets the system include dirs for the runtime. Usually, this is just “/usr/include”, but more complex runtimes may include additional.

Available since: 3.32

Ide.RuntimeClass.get_triplet

Gets the architecture triplet of the runtime.

Available since: 3.32

Ide.RuntimeClass.prepare_configuration
No description available.
Ide.RuntimeClass.supports_toolchain

Informs wether a toolchain is supported by this.

Available since: 3.32

Ide.RuntimeClass.translate_file

Translates the file from a path within the runtime to a path that can be accessed from the host system.

Available since: 3.32