Maciek Borzecki
4b65e59bb2
utils: generic helpers
8 years ago
Maciek Borzecki
83f5f9dfec
ping: add ping handler
8 years ago
Maciek Borzecki
3b4fe74843
devicemanager: reduce cache update chatter
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
8 years ago
Maciek Borzecki
6787377f59
device: handle split brain
Handle a scenario when we thing we are not paired, but device sends us a packet
that clearly indicates we have a channel open. In this case assume that we are
paired and send a pair packet ourselves.
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
8 years ago
Maciek Borzecki
e3b79fc03e
devicemanager: update devices cache when device pair status is changed
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
8 years ago
Maciek Borzecki
910ac09458
device: setup pair timeout only if expecting a response
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
8 years ago
Maciek Borzecki
9258033af9
device, devicemanager: simplify device activation
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
8 years ago
Maciek Borzecki
ed4c4b04e2
device: save & load device pair status and public key to/from cache
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
8 years ago
Maciek Borzecki
1cfb7ad0a3
device: proper handling of pair timeout and device public key
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
8 years ago
Maciek Borzecki
94be6214e1
devicemanager-proxy: register per capability bus interfaces
8 years ago
Maciek Borzecki
3a82d95223
devicemanager: signal device capabilities added
8 years ago
Maciek Borzecki
dbdf2f8938
device, devicemanager: support for updating device data using another Device instance
8 years ago
Maciek Borzecki
0bacf65210
battery: add battery signal
8 years ago
Maciek Borzecki
b5c740174f
packethandlers: enable only supported capabilities
8 years ago
Maciek Borzecki
cc461462b0
discovereddevice, device, device-proxy: outgoing/incoming capabilities
8 years ago
Maciek Borzecki
994d507e9f
devicemanager: activate device logs
8 years ago
Maciek Borzecki
d533b9a4e4
mconnectctl: remove unnecessary logs
8 years ago
Maciek Borzecki
ce4d156ec6
mconnectctl: fix IOError handling
8 years ago
Maciek Borzecki
eb04795e50
mconnectctl: fix copying delegates
8 years ago
Maciek Borzecki
ea97bb695b
device-proxy: subscribe to device property changes
8 years ago
Maciek Borzecki
5718b50330
device, mconnectctl: export and show connection status
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
8 years ago
Maciek Borzecki
eb114687b5
travis: switch to building inside containers
Travis host images are quite outdated, so the builds will now use containers
instead. By default there's a build for Arch Linux (using base/archlinux:latest
image) and Fedora (using official fedora:latest).
Builds are done using extra/travis-build script.
8 years ago
Maciek Borzecki
cac1ac1001
mconnectctl: sample client app for mconnect
8 years ago
Maciek Borzecki
e6e7f8d6d3
devicemanager: release protocol packet handlers when device disconnects
This prevents a protocol handler to be fired more than once.
8 years ago
Maciek Borzecki
01351bac98
devicechannel: convert ciriticals to warnings
8 years ago
Maciek Borzecki
4b2153c9f7
discovereddevice: split device that was found through discovery process from Device
8 years ago
Maciek Borzecki
fa72198c40
build: add run-gdb target
Add make target 'run-gdb' that will automatically start gdb with
G_MESSAGES_DEBUG=all and G_DEBUG=fatal-criticals environment variables.
8 years ago
Maciek Borzecki
d9bd439d5d
device: rejected pairing should be logged as warning
Otherwise debugging with G_DEBUG=fatal-criticals is not possible.
8 years ago
Maciek Borzecki
5145f40fdc
devicemanager: cleanup device signal handling, prevent duplicated signals
Cleanup device signals handling. Fix a problem with duplicated signals from
Device which were a result of same signal callback being registered multiple
times.
8 years ago
Maciek Borzecki
b06936c506
device: add is_active property
indicated is communication with device is possible
8 years ago
Maciek Borzecki
874f2f0971
device: reduce chatter
8 years ago
Maciek Borzecki
b6ec6e455e
packethandlers: allow releasing of a device (eg. when device is no longer paired)
8 years ago
Maciek Borzecki
ca4c09cb28
devicemanager: device managed is not directly exported to DBus, cleanup DBus attributes
8 years ago
Maciek Borzecki
6c8bf2ee67
devicechannel, device: channel close need not be async
8 years ago
Maciek Borzecki
b30ffb7ddf
mousepad, battery: reduce chatter
8 years ago
Maciek Borzecki
3e3bcf0083
devicemanager: check if device is enabled in config only when needed
8 years ago
Maciek Borzecki
bb45b12751
devicemanager, proxy: proper 'new device' signal
8 years ago
Maciek Borzecki
3c3687ad59
devicemanager-proxy: check if there is a device associated with given path
8 years ago
Maciek Borzecki
e2cd6500b2
devicemanager: log that device is already known
8 years ago
Maciek Borzecki
c68ac52d97
device-proxy: cleanup exported properties
8 years ago
Maciek Borzecki
e10ff4a15c
device: class is no longer expored over DBus, drop all DBus related attributes
8 years ago
Maciek Borzecki
14f051f675
mconnect: use DBus proxies for devicemanager and device
8 years ago
Maciek Borzecki
3b6e7bc80c
devicemanager: list and activate devices through DBus
8 years ago
Maciek Borzecki
3477d3ee85
device: fix activation of device that is disconnected but its address is known
8 years ago
Maciek Borzecki
0dabf5e7d9
device: do not clean host address when disconnecting
8 years ago
Maciek Borzecki
b16e1491d5
devicemanager: allow_device, list_devices DBus methods
8 years ago
Maciek Borzecki
39785fca9e
devicemanager: use Device.allowed flag or poke config to see if device is accepted
8 years ago
Maciek Borzecki
936886f17d
device: add 'allowed' cache flag
8 years ago
Maciek Borzecki
1e664bf8af
application, devicemanager: restore devices from cache when application becomes active
8 years ago
Maciek Borzecki
7a814ffdc4
application: DBus registration, register manager object
8 years ago