From 8a08b9dce9cfc161494ddb07a1c979c7796780ff Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Fri, 15 Jun 2012 22:56:00 +0200 Subject: restructure code it is now loading its components from plugins --- hw/device.vala | 2 +- hw/i2c-device.vala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'hw') diff --git a/hw/device.vala b/hw/device.vala index adee58a..dad4439 100644 --- a/hw/device.vala +++ b/hw/device.vala @@ -13,5 +13,5 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -public class Device { +public class Device : Object { } diff --git a/hw/i2c-device.vala b/hw/i2c-device.vala index 21193f2..b6d285c 100644 --- a/hw/i2c-device.vala +++ b/hw/i2c-device.vala @@ -21,7 +21,7 @@ public errordomain I2CError { public class I2CDevice : Device { private int fd; - public I2CDevice(uint8 dev, uint8 addr) throws I2CError { + public void setup(uint8 dev, uint8 addr) throws I2CError { string file = "/dev/i2c-%u".printf(dev); fd = Posix.open(file, Posix.O_RDWR); -- cgit v1.2.3