[gnome-builder/gnome-builder-43] plugins/deviced: add helper to get underlying device
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-43] plugins/deviced: add helper to get underlying device
- Date: Sat, 24 Sep 2022 22:38:29 +0000 (UTC)
commit 10bbe817d43ec92b1650b843cfdb761bc43ff438
Author: Christian Hergert <chergert redhat com>
Date: Sat Sep 24 15:35:03 2022 -0700
plugins/deviced: add helper to get underlying device
src/plugins/deviced/gbp-deviced-device.c | 7 +++++++
src/plugins/deviced/gbp-deviced-device.h | 3 ++-
2 files changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/deviced/gbp-deviced-device.c b/src/plugins/deviced/gbp-deviced-device.c
index ef008ad3c..2cd10bc90 100644
--- a/src/plugins/deviced/gbp-deviced-device.c
+++ b/src/plugins/deviced/gbp-deviced-device.c
@@ -655,3 +655,10 @@ gbp_deviced_device_install_bundle_finish (GbpDevicedDevice *self,
IDE_RETURN (ret);
}
+DevdDevice *
+gbp_deviced_device_get_device (GbpDevicedDevice *self)
+{
+ g_return_val_if_fail (GBP_IS_DEVICED_DEVICE (self), NULL);
+
+ return self->device;
+}
diff --git a/src/plugins/deviced/gbp-deviced-device.h b/src/plugins/deviced/gbp-deviced-device.h
index 8055064dd..235f03624 100644
--- a/src/plugins/deviced/gbp-deviced-device.h
+++ b/src/plugins/deviced/gbp-deviced-device.h
@@ -1,6 +1,6 @@
/* gbp-deviced-device.h
*
- * Copyright 2018-2019 Christian Hergert <chergert redhat com>
+ * Copyright 2018-2022 Christian Hergert <chergert redhat com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -30,6 +30,7 @@ G_BEGIN_DECLS
G_DECLARE_FINAL_TYPE (GbpDevicedDevice, gbp_deviced_device, GBP, DEVICED_DEVICE, IdeDevice)
GbpDevicedDevice *gbp_deviced_device_new (DevdDevice *device);
+DevdDevice *gbp_deviced_device_get_device (GbpDevicedDevice *self);
void gbp_deviced_device_get_commit_async (GbpDevicedDevice *self,
const gchar *commit_id,
GCancellable *cancellable,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]