Commit 5d22feea authored by Christian Hergert's avatar Christian Hergert
Browse files

configuration: add helper to apply PATH to launcher

parent a79bd6c2
......@@ -31,6 +31,7 @@
#include "devices/ide-device.h"
#include "runtimes/ide-runtime-manager.h"
#include "runtimes/ide-runtime.h"
#include "subprocess/ide-subprocess-launcher.h"
typedef struct
{
......@@ -1736,6 +1737,19 @@ ide_configuration_set_append_path (IdeConfiguration *self,
}
}
void
ide_configuration_apply_path (IdeConfiguration *self,
IdeSubprocessLauncher *launcher)
{
IdeConfigurationPrivate *priv = ide_configuration_get_instance_private (self);
g_return_if_fail (IDE_IS_CONFIGURATION (self));
g_return_if_fail (IDE_IS_SUBPROCESS_LAUNCHER (launcher));
if (priv->append_path != NULL)
ide_subprocess_launcher_append_path (launcher, priv->append_path);
}
IdeBuildLocality
ide_configuration_get_locality (IdeConfiguration *self)
{
......
......@@ -183,6 +183,9 @@ const gchar *ide_configuration_get_app_id (IdeConfigurat
IDE_AVAILABLE_IN_ALL
void ide_configuration_set_app_id (IdeConfiguration *self,
const gchar *app_id);
IDE_AVAILABLE_IN_3_28
void ide_configuration_apply_path (IdeConfiguration *self,
IdeSubprocessLauncher *launcher);
IDE_AVAILABLE_IN_ALL
gboolean ide_configuration_supports_device (IdeConfiguration *self,
IdeDevice *device);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment