Commit Graph

335 Commits

Author SHA1 Message Date
Luiz Augusto von Dentz
f12e4e2783 Make input plugin to use disconnect watches. 2009-04-22 15:41:56 -03:00
Alok Barsode
e050cc3d14 Using # operator to stringify plugin name. 2009-04-21 13:25:35 +01:00
Alok Barsode
2f28c39a63 Add priority field to plugin descriptor definition and load plugins in priority order. 2009-04-21 13:23:51 +01:00
Luiz Augusto von Dentz
d31cee86b0 Make input service to use confirm callback. 2009-04-17 21:02:54 +03:00
Luiz Augusto von Dentz
692b3876f4 Fix dead assignment.
Value stored to 'err' is never read.
2009-04-01 11:59:53 -03:00
Johan Hedberg
8e706e2d4f Convert some not-so-important info logs to debug logs 2009-03-24 12:31:10 +02:00
Alok Barsode
bf6a4a5774 Adding version check for plugins. 2009-03-14 07:11:47 +01:00
Marcel Holtmann
92bd92f851 Use GCC visibility for exporting symbols 2009-03-11 12:02:00 +01:00
Johan Hedberg
1c195ab280 Fix strncpy length parameters to avoid non-nul-terminated strings 2009-02-25 17:48:40 +02:00
Johan Hedberg
895239acf0 Only call g_io_channel_shutdown if the connection was actually successfull 2009-02-24 17:50:04 +02:00
Johan Hedberg
be61ef7476 Only send unplug in case of ENOENT 2009-02-23 14:10:54 +02:00
Johan Hedberg
8a706acad2 Fix virtual cable unplug sending 2009-02-23 14:07:05 +02:00
Johan Hedberg
7acf10a2b7 Reject multiple interrupt or control connect attepts 2009-02-23 13:44:51 +02:00
Johan Hedberg
e77b283923 Require both interrupt and control channels before calling hidp_add_connection 2009-02-23 13:27:05 +02:00
Johan Hedberg
b5645b871d Fix memory leak if btd_request_authorization fails 2009-02-23 13:24:41 +02:00
Johan Hedberg
5285b3f4bf Input plugin fixes and cleanup
This patch fixes all known issues caused by converting the input plugin
to use BtIO.
2009-02-23 10:34:16 +02:00
Johan Hedberg
dc4ecea559 Fix bt_io_connect parameter list 2009-02-22 17:15:29 +02:00
Johan Hedberg
8bca00dadf Fix bt_io_get parameter passing 2009-02-22 16:50:59 +02:00
Johan Hedberg
8fb3fd137f Use correct variable type for the PSM 2009-02-22 15:44:14 +02:00
Luiz Augusto von Dentz
10d6858927 Make use of g_io_channel_shutdown instead of deprecated g_io_channel_close. 2009-02-19 16:23:10 -03:00
Luiz Augusto von Dentz
e777c55aa7 Make use of g_error_free instead of g_clear_error when possible.
g_clear_error make an extra operation (&err = NULL) which is not necessary
when the GError is not reused.
2009-02-19 16:22:48 -03:00
Luiz Augusto von Dentz
c95494ee50 Make input plugin to use BtIO API. 2009-02-19 11:05:10 +02:00
Marcel Holtmann
9c0b5859e6 Fix mostly every warning caused by -Wsign-compare 2009-01-29 17:58:28 +01:00
Marcel Holtmann
fb333f1c88 Update copyright information 2009-01-01 19:33:20 +01:00
Marcel Holtmann
7b92589167 Fix spelling mistakes 2008-12-30 22:51:30 +01:00
Marcel Holtmann
86984e4b0e Add missing include definitions 2008-12-23 04:32:20 +01:00
Marcel Holtmann
341818bd88 Remove deprecated methods and signals from input interface 2008-12-01 19:54:32 +01:00
Johan Hedberg
8c9833157e Remove duplicate call to btd_device_get_record 2008-11-08 22:33:29 +02:00
Johan Hedberg
0c9566f2c0 Check for HSP_HS_UUID in the probe callback
This change is needed since with the recent UUID matching changes e.g.
the Headset AGW record would match HSP_HS_UUID since it contains it
within the record.
2008-11-08 22:31:22 +02:00
Luiz Augusto von Dentz
a218e9ef19 Fix Connected property on input interface always being inverted.
is_connected where being used as the compare function on
g_slist_find_custom which doesn't work as expected.
2008-11-07 18:58:45 -03:00
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