Commit Graph

84 Commits

Author SHA1 Message Date
Gustavo F. Padovan
8e58667ef0 Move debug() to DBG()
Use the new dynamic debug feature
2010-05-21 18:21:48 +02:00
Gustavo F. Padovan
e891f7df62 Move logging.{c,h} to log.{c,h}
Try to make log stuff more similar to ConnMan and oFono.
2010-05-21 14:40:36 +02:00
Marcel Holtmann
9184e2eeb7 Update copyright information 2010-01-01 17:08:17 -08:00
Marcel Holtmann
f5f61c23d7 Make all major plugins builtin to simplify debugging 2009-08-09 14:35:39 -07:00
Luiz Augusto von Dentz
7c878f99e7 Make input plugin to use adapter references. 2009-05-27 11:25:25 -03:00
Luiz Augusto von Dentz
f12e4e2783 Make input plugin to use disconnect watches. 2009-04-22 15:41:56 -03:00
Marcel Holtmann
fb333f1c88 Update copyright information 2009-01-01 19:33:20 +01:00
Marcel Holtmann
86984e4b0e Add missing include definitions 2008-12-23 04:32:20 +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
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
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
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
Claudio Takahasi
df73479a0c Input: Minor cleanup 2008-09-05 16:08:31 -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
6a9fd862a3 Input cleanup: missing static modifier 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
Luiz Augusto von Dentz
76751aa2c4 Introduce driver.c and driver.h files. 2008-08-05 18:13:42 -03:00
Marcel Holtmann
e0581b5e29 Move hcid to src directory and rename it to bluetoothd 2008-07-29 20:35:12 +02:00
Luiz Augusto von Dentz
d2fd09864d Fix input to reflect API documentation. 2008-07-28 11:41:23 -03:00
Alok Barsode
debc2efd75 Adding adapter_get_address.
Signed-off-by: Alok Barsode <alok.barsode@azingo.com>
2008-07-28 10:48:48 -03:00
Alok Barsode
b76fbc7d29 Adding {driver, priv} list to btd_device and adding
driver as parameter to probe and remove.

Signed-off-by: Alok Barsode <alok.barsode@azingo.com>
2008-07-28 10:47:58 -03:00
Luiz Augusto von Dentz
e6d32d6c6d Cleanup input manager. 2008-07-28 10:47:25 -03:00
Marcel Holtmann
f80a721527 Use g_dbus_emit_signal for sending D-Bus signals 2008-06-07 19:30:24 +00:00
Claudio Takahasi
7c426c4c7e input: removed old authorization method 2008-05-28 07:39:21 +00:00
Marcel Holtmann
e8961085b8 Convert the input device handling to gdbus API 2008-05-27 18:16:17 +00:00
Marcel Holtmann
ee47f9f75e Use message sending helpers 2008-05-27 18:05:38 +00:00
Marcel Holtmann
fd9b76b9b1 Convert input manager to use gdbus API 2008-05-27 12:19:50 +00:00
Luiz Augusto von Dentz
0094809955 Make bt_io_callback_t to take both source and destination. 2008-05-14 22:16:16 +00:00
Marcel Holtmann
2ce4523624 Add support for IdleTimeout config option 2008-05-14 21:49:07 +00:00
Marcel Holtmann
15ea15b3a7 Move D-Bus object and interface helpers into libgdbus 2008-05-08 22:19:14 +00:00
Marcel Holtmann
e7d668ac9e Move D-Bus watch functions into libgdbus 2008-05-08 20:23:45 +00:00
Luiz Augusto von Dentz
f85b9560ec Make bt_l2cap_connect to take mtu as paramter. 2008-05-07 18:39:36 +00:00
Luiz Augusto von Dentz
fd18cec597 Fix possible double free in case of connecting to interrupt psm fails. 2008-05-05 17:55:29 +00:00
Luiz Augusto von Dentz
2d5441331d Fix possible memory leak when closing control channel. 2008-04-30 19:37:46 +00:00
Claudio Takahasi
c13abd60b0 input: close interrupt channel after CreateDevice has been called 2008-04-30 18:46:19 +00:00
Luiz Augusto von Dentz
0c5239ae4b Fix possible memory leak where the records lists were not freed. 2008-04-29 20:35:57 +00:00
Luiz Augusto von Dentz
279e85d6da Make input service to use libbluetooth-glib convenient functions. 2008-04-25 20:01:09 +00:00
Luiz Augusto von Dentz
1152fc72d3 Remove blocking call of FinishRemoteServiceTransaction. 2008-03-27 14:05:37 +00:00
Marcel Holtmann
29efa57d5a Convert input service into a plugin 2008-03-22 15:37:36 +00:00
Marcel Holtmann
e823c15e43 Update copyright information 2008-02-02 03:37:05 +00:00
Johan Hedberg
7e88afe4f8 Update services to new error codes and helper functions 2007-11-26 13:43:17 +00:00
Johan Hedberg
3571ae8436 Fix hidp_connad_req usage 2007-10-12 11:00:32 +00:00