Commit f3f12601 authored by Christian Hergert's avatar Christian Hergert
Browse files

pipeline: allow fetching the device property

parent 3e5bf300
......@@ -3535,3 +3535,21 @@ _ide_build_pipeline_set_runtime (IdeBuildPipeline *self,
g_set_object (&self->runtime, runtime);
}
/**
* ide_build_pipeline_get_device:
* @self: a #IdeBuildPipeline
*
* Gets the device that the pipeline is building for.
*
* Returns: (transfer none): an #IdeDevice.
*
* Since: 3.28
*/
IdeDevice *
ide_build_pipeline_get_device (IdeBuildPipeline *self)
{
g_return_val_if_fail (IDE_IS_BUILD_PIPELINE (self), NULL);
return self->device;
}
......@@ -21,9 +21,8 @@
#include <gio/gio.h>
#include <vte/vte.h>
#include "ide-version-macros.h"
#include "ide-types.h"
#include "ide-version-macros.h"
#include "buildsystem/ide-build-log.h"
#include "buildsystem/ide-build-stage.h"
......@@ -62,6 +61,8 @@ gboolean ide_build_pipeline_get_busy (IdeBuildPipeline
IDE_AVAILABLE_IN_ALL
IdeConfiguration *ide_build_pipeline_get_configuration (IdeBuildPipeline *self);
IDE_AVAILABLE_IN_3_28
IdeDevice *ide_build_pipeline_get_device (IdeBuildPipeline *self);
IDE_AVAILABLE_IN_3_28
IdeRuntime *ide_build_pipeline_get_runtime (IdeBuildPipeline *self);
IDE_AVAILABLE_IN_ALL
const gchar *ide_build_pipeline_get_builddir (IdeBuildPipeline *self);
......
Markdown is supported
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