Commit Graph

305 Commits

Author SHA1 Message Date
Marcel Holtmann
2617afbc6c Include sixpair.c in the distribution 2008-10-17 00:13:07 +02:00
Johan Hedberg
c0736ea762 Rename dbus_connection_emit_property_changed to emit_property_changed 2008-10-16 22:03:25 +03:00
Johan Hedberg
9673b91678 Fix yet another instance of dbus_message_iter_append_dict_entry 2008-10-16 21:24:59 +03:00
Bastien Nocera
7d3d42ac10 Save name for the sixaxis controller
The name won't be there until we connect otherwise
2008-10-16 01:46:09 +02:00
Bastien Nocera
d6cab55f16 Store every record information for the sixaxis controllers
Remove out-dated code to parse the HID input descriptor
Make sure that all the Bluetooth addresses used are upper-case
Add captured once SDP PNP record for the sixaxis controller
Store device id, profile, and trust information about the device
2008-10-16 01:45:31 +02:00
Bastien Nocera
5c008892a2 Fix setting the master address on the sixaxis
Direction for the USB command was wrong, also disable
all the report code, so sixpair can run (minus saving device
records)
2008-10-16 01:45:23 +02:00
Bastien Nocera
02c29b2836 Port sixpair to libusb 1.0
Port sixpair to libusb-1.0, as it allows us to re-attach
the driver to the device after we're done.
2008-10-16 01:43:20 +02:00
Bastien Nocera
d2816fa090 Add sixpair tool
Sixpair is an unfinished helper to automatically pair a
plugged in Playstation 3 Sixaxis Bluetooth joypad.
2008-10-16 01:43:01 +02:00
Claudio Takahasi
d61fe8084a Input: Code cleanup - Access record handle directly instead of call sdp_data_get 2008-10-14 17:15:14 -03:00
Bastien Nocera
2e8e3f8cd8 Fix PS3 BD remote input event generation
- Fix byte-reading in the decode function by using a guint8, instead
of an int, we were overreading and were getting keycodes of
0xffffff44 when we wanted a single byte of 0x44.
- Remove use of KEY_REMOTE_X, those keys never got upstream, and the
values they were defined at are now used for completely different
keys
- Update uinput.h with the latest keycodes from 2.6.27
2008-10-14 09:32:07 +03:00
Bastien Nocera
ecfcd2f299 Fix possible crash on startup
0  0x0000000000a5cf71 in sdp_data_get (rec=0x0, attrId=0) at sdp.c:1444
1  0x000000008c704721 in hid_device_probe (device=0x7f1bed2a80b0, uuids=0x7f1bed29fa90) at manager.c:70
2  0x00007f1becb5bc33 in device_probe_drivers (device=0x7f1bed2a80b0, uuids=0x7f1bed2a2980) at device.c:647
3  0x00007f1becb58a23 in create_stored_device_from_profiles (key=0x7f1bed2a7360 "00:1E:45:AD:F1:96",
   value=0x7f1bed2a7aa0 "00000002-0000-1000-8000-0002ee000002 00001101-0000-1000-8000-00805f9b34fb 00001103-0000-1000-8000-00805f9b34fb 00001104-0000-1000-8000-00805f9b34fb 00001105-0000-1000-8000-00805f9b34fb 00001106-0000-1"..., user_data=0x7f1bed29edd0) at adapter.c:2296
4  0x00007f1becb61d12 in textfile_foreach (pathname=0x7ffff4b6f2a0 "/var/lib/bluetooth/00:13:EF:F1:42:B7/profiles", func=0x7f1becb58955 <create_stored_device_from_profiles>, data=0x7f1bed29edd0) at textfile.c:447
5  0x00007f1becb58b36 in load_devices (adapter=0x7f1bed29edd0) at adapter.c:2327
6  0x00007f1becb58fa0 in adapter_up (adapter=0x7f1bed29edd0, dd=18) at adapter.c:2462
7  0x00007f1becb59479 in adapter_start (adapter=0x7f1bed29edd0) at adapter.c:2569
8  0x00007f1becb5427f in manager_start_adapter (id=0) at manager.c:424
9  0x00007f1becb48e02 in device_devup_setup (dev_id=0) at main.c:481
10 0x00007f1becb48f35 in init_all_devices (ctl=7) at main.c:512
11 0x00007f1becb496d0 in main (argc=1, argv=0x7ffff4b70788) at main.c:748

The HID device's SDP record can be NULL, so don't crash when that happens
2008-10-12 20:06:41 +02:00
Johan Hedberg
548026e08b Make device driver probe calls take UUID's instead of full records
This is preparation for allowing the device object to be correctly set up even
when we don't have the full service records but only the remote UUID's.
2008-10-09 15:13:28 +02:00
Marcel Holtmann
d68a57d8be Fix uninitialized reply of multiple GetProperties methods 2008-10-03 08:29:51 +02:00
Luiz Augusto von Dentz
acf2a8a0b3 Mark old plugins API as deprecated. 2008-10-02 19:16:39 -03:00
Luiz Augusto von Dentz
d6a4551d32 Add code to emit PropertyChanged on input interface. 2008-10-02 17:10:53 -03:00
Luiz Augusto von Dentz
e34d450d1f Add property support for input interface. 2008-10-02 17:07:09 -03:00
Marcel Holtmann
d55b2b1092 Don't bother with the source value for input devices 2008-09-14 19:13:43 +02:00
Marcel Holtmann
fce6db565f Store source information from DID record 2008-09-14 18:23:44 +02:00
Marcel Holtmann
a90bb1223b Merge branch 'master' of git://git.infradead.org/users/dwmw2/bluez 2008-09-14 18:03:54 +02:00
David Woodhouse
6d7e8a0ee4 fix fake hid detection by looking up pnp info 2008-09-13 20:13:30 -07:00
David Woodhouse
653b7bfee4 simplify arguments to hidp_add_connection() 2008-09-13 18:28:17 -07:00
Marcel Holtmann
a6195ecddf Remove wrong (left-over) code 2008-09-14 03:25:01 +02:00
Claudio Takahasi
df041f69a2 Input: Disconnected signal doesn't have parameters 2008-09-13 19:23:01 -03:00
Claudio Takahasi
7e4d1b084d Input: Connected signal doesn't have parameters 2008-09-13 19:06:29 -03:00
Claudio Takahasi
8e6cc8d1c4 Input: Checking if the link is already encrypted 2008-09-13 19:02:22 -03:00
Claudio Takahasi
f0e96d61d2 Input: Use async auth + encryption function 2008-09-12 20:47:53 -03:00
Claudio Takahasi
d516f96d8b Input: Missing send the message when connect fails 2008-09-12 20:34:42 -03:00
Marcel Holtmann
9edd39d0d4 Send authentication request without blocking 2008-09-10 01:20:02 +02:00
Marcel Holtmann
14dd201d51 Merge branch 'devel' of git://git.infradead.org/users/vcgomes/bluez 2008-09-10 01:11:01 +02:00
Marcel Holtmann
303db2fca1 Use longer timeout value for authentication and encryption 2008-09-10 01:05:25 +02:00
Vinicius Costa Gomes
c0296a9dde Cancels the pending request from agent side when receiving a NoReply 2008-09-09 19:47:14 -03:00
Marcel Holtmann
af3684270a The input connect method takes no parameters 2008-09-10 00:19:00 +02:00
Claudio Takahasi
0d52603814 Input: Minor cleanup 2008-09-09 15:01:31 -03:00
Claudio Takahasi
9105da2475 Input: storage cleanup 2008-09-09 14:58:55 -03:00
Alok Barsode
19ce4933f3 Redefining device_get_address to take bdaddr_t as parameter. 2008-09-08 17:55:14 +05:30
Alok Barsode
2a8fb41c4c Redefining adapter_get_address to take bdaddr_t as parameter. 2008-09-08 14:31:43 +05:30
Alok Barsode
9de95d439b Fixing load_stored in Input plugin. 2008-09-08 14:31:43 +05:30
Marcel Holtmann
91402bad9a Merge branch 'master' of ssh://master.kernel.org/pub/scm/bluetooth/bluez 2008-09-06 01:11:53 +02:00
Marcel Holtmann
c74f11481a Fix D-Bus connection init 2008-09-06 01:10:56 +02:00
Johan Hedberg
26dc8445ff Fix audio and input interfaces match the API documentation 2008-09-06 02:09:05 +03:00
Claudio Takahasi
df73479a0c Input: Minor cleanup 2008-09-05 16:08:31 -03:00
Claudio Takahasi
b81980264b Input: Missing DBusConnection unref 2008-09-05 16:08:30 -03:00
Claudio Takahasi
ddb4d5c0e4 Input: Converting hid server to adapter driver structure 2008-09-04 12:18:28 -03:00
Alok Barsode
18614bd2b0 Renaming struct adapter to struct btd_adapter. 2008-09-04 16:03:43 +05:30
Claudio Takahasi
d8c17dd3fd Input cleanup: removed old API files 2008-09-03 15:34:25 -03:00
Claudio Takahasi
42e45fba4a Input cleanup: unused functions 2008-09-03 15:34:25 -03:00
Claudio Takahasi
6a9fd862a3 Input cleanup: missing static modifier 2008-09-03 15:34:25 -03:00
Claudio Takahasi
dd749c518a Input cleanup: Unnecessary headers and function 2008-09-03 15:34:25 -03:00
Luiz Augusto von Dentz
c560d02ccf Remove driver.c driver.h and remove workaround for to force a symbol resolution. 2008-08-18 19:20:42 -03:00
Luiz Augusto von Dentz
e780c7bd8e Fix device driver callbacks to not take driver pointer. 2008-08-13 15:06:51 -03:00