diff options
author | Benjamin Berg <bberg@redhat.com> | 2022-04-01 11:32:24 +0200 |
---|---|---|
committer | Benjamin Berg <bberg@redhat.com> | 2022-04-01 18:25:20 +0200 |
commit | bd488facf19d5304796ab4412ba089b00341ead2 (patch) | |
tree | c69d04d2cc54331f80f15d7afd021aeae8f74336 /src/linux/up-device-supply.h | |
parent | 77a20b84e445ee9061909af078d38cdb1749fa28 (diff) | |
download | upower-bd488facf19d5304796ab4412ba089b00341ead2.tar.gz |
device: Move daemon/native object into construct only properties
Rather than this weird situation where they are immediately passed in
through the "coldplug" method. Doing this is the first step to make
UpDevice into an initable object (removing the "coldplug" method).
Diffstat (limited to 'src/linux/up-device-supply.h')
-rw-r--r-- | src/linux/up-device-supply.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/linux/up-device-supply.h b/src/linux/up-device-supply.h index a83c0fd..afdd577 100644 --- a/src/linux/up-device-supply.h +++ b/src/linux/up-device-supply.h @@ -47,8 +47,9 @@ typedef struct UpDeviceClass parent_class; } UpDeviceSupplyClass; -GType up_device_supply_get_type (void); -UpDeviceSupply *up_device_supply_new (void); +GType up_device_supply_get_type (void); +UpDeviceSupply *up_device_supply_new (UpDaemon *daemon, + GObject *native); G_END_DECLS |