ide-runtime-manager

ide-runtime-manager

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── IdeObject
        ╰── IdeRuntimeManager

Implemented Interfaces

IdeRuntimeManager implements GListModel and GInitable.

Description

Functions

ide_runtime_manager_get_runtime ()

IdeRuntime *
ide_runtime_manager_get_runtime (IdeRuntimeManager *self,
                                 const gchar *id);

Gets the runtime by its internal identifier.

Parameters

self

An IdeRuntimeManager

 

id

the identifier of the runtime

 

Returns

An IdeRuntime.

[transfer none]


ide_runtime_manager_add ()

void
ide_runtime_manager_add (IdeRuntimeManager *self,
                         IdeRuntime *runtime);

ide_runtime_manager_remove ()

void
ide_runtime_manager_remove (IdeRuntimeManager *self,
                            IdeRuntime *runtime);

ide_runtime_manager_ensure_async ()

void
ide_runtime_manager_ensure_async (IdeRuntimeManager *self,
                                  const gchar *runtime_id,
                                  GCancellable *cancellable,
                                  GAsyncReadyCallback callback,
                                  gpointer user_data);

This function will asynchronously check if a runtime is installed.

If it is not installed, it will check to see if any runtime provider can provide the runtime by installing it. If so, the runtime will be installed.

Call ide_runtime_manager_ensure_finish() to get the resulting runtime or a GError in case of failure.

Parameters

self

An IdeRuntimeManager

 

runtime_id

the id for an expected runtime

 

cancellable

a GCancellable or NULL.

[nullable]

callback

a callback to call after execution

 

user_data

user data for callback

 

ide_runtime_manager_ensure_finish ()

IdeRuntime *
ide_runtime_manager_ensure_finish (IdeRuntimeManager *self,
                                   GAsyncResult *result,
                                   GError **error);

Returns

An IdeRuntime or NULL.

[transfer full]

Types and Values

IDE_TYPE_RUNTIME_MANAGER

#define IDE_TYPE_RUNTIME_MANAGER (ide_runtime_manager_get_type())

IdeRuntimeManager

typedef struct _IdeRuntimeManager IdeRuntimeManager;