diff options
author | Sebastian Reichel <sre@ring0.de> | 2012-06-15 22:56:00 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2012-06-15 22:56:00 +0200 |
commit | 8a08b9dce9cfc161494ddb07a1c979c7796780ff (patch) | |
tree | e86e8a83212c617da44e1b9aed480fe6b50374af /hw | |
parent | 626580d3a16d01f3ba5481d291c4c0c844ef4c46 (diff) | |
download | microcopterd-8a08b9dce9cfc161494ddb07a1c979c7796780ff.tar.bz2 |
restructure code
it is now loading its components from plugins
Diffstat (limited to 'hw')
-rw-r--r-- | hw/device.vala | 2 | ||||
-rw-r--r-- | hw/i2c-device.vala | 2 |
2 files changed, 2 insertions, 2 deletions
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); |