Commit Graph

335 Commits

Author SHA1 Message Date
Marcel Holtmann
2aab870f59 Update autoconf/automake options 2008-06-03 20:07:34 +00:00
Marcel Holtmann
a93a6fa2f4 Remove CancelConnect implementation 2008-05-29 21:16:32 +00:00
Marcel Holtmann
f0b4cc6f3b Add missing method skeletons 2008-05-29 09:04:32 +00:00
Marcel Holtmann
ba4e348411 Add input interface driver handlers 2008-05-29 07:44:22 +00:00
Claudio Takahasi
7c426c4c7e input: removed old authorization method 2008-05-28 07:39:21 +00:00
Marcel Holtmann
27b076bdd6 Fix some handling of error cases 2008-05-27 22:03:43 +00:00
Cidorvan Leite
dea62fb2e9 Added missing braces 2008-05-27 19:44:49 +00:00
Marcel Holtmann
a7bc44bcba Fix user data issue when removing device 2008-05-27 19:35:53 +00:00
Marcel Holtmann
c71805ac4b Don't forget user data on interface registration 2008-05-27 18:43:59 +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
Marcel Holtmann
4de66ff306 Use EACCES instead of ENOKEY 2008-05-16 09:30:18 +00:00
Marcel Holtmann
dcada8eed7 Fix wrong usage of non const bdaddr_t 2008-05-15 22:49:02 +00:00
Cidorvan Leite
aa82d089f9 Removed casts from user data 2008-05-15 22:41:31 +00:00
Cidorvan Leite
bac8b23612 Input listen clean up 2008-05-15 22:34:08 +00:00
Marcel Holtmann
16ac1a8c83 Add sample for input.conf file 2008-05-15 15:19:39 +00:00
Marcel Holtmann
aacac39879 Fix key file handling if config file doesn't exist 2008-05-15 02:25:47 +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
f3c0a1a49b Use -no-undefined for linking plugins 2008-05-09 09:16:32 +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
Cidorvan Leite
44a204a758 Removed function not used. 2008-05-08 19:58:35 +00:00
Marcel Holtmann
b5514e6c7f Register service and UUIDs in one step 2008-05-08 18:37:09 +00:00
Marcel Holtmann
2af3c3a7dd Remove service daemon activation handling 2008-05-08 17:24:48 +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
Claudio Takahasi
9491a544f6 Moving authorization code to dbus-service.c 2008-05-01 13:52:26 +00:00
Claudio Takahasi
3f8860031e fixed build warnings 2008-05-01 01:23:02 +00:00
Claudio Takahasi
098cd10838 fixed service authorization 2008-05-01 01:05:46 +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
Vinicius Gomes
66327fddf8 input: adding the new plugin authorization 2008-04-17 14:54:30 +00:00
Claudio Takahasi
60202f31c9 Broken build: missing headers 2008-04-09 22:00:34 +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
957ead88e8 Update test script for input service 2008-03-22 15:27:02 +00:00
Marcel Holtmann
835dd438bc Add support for PS3 remote devices 2008-03-20 14:45:32 +00:00
Marcel Holtmann
763087507a Add missing fakehid.[ch] files 2008-03-14 19:50:56 +00:00
Marcel Holtmann
f53dce601c Add basic fake HID infrastructure support 2008-03-14 18:44:00 +00:00
Marcel Holtmann
465696fda5 Fix build problem 2008-02-12 04:47:02 +00:00
Marcel Holtmann
fe4d95e06d Add support for connect/disconnect callbacks 2008-02-12 04:44:53 +00:00
Marcel Holtmann
e823c15e43 Update copyright information 2008-02-02 03:37:05 +00:00
Johan Hedberg
ba255beb79 Whitespace cleanup 2008-01-28 10:38:40 +00:00
Johan Hedberg
7e88afe4f8 Update services to new error codes and helper functions 2007-11-26 13:43:17 +00:00
Johan Hedberg
4392fbd3d9 Update API descriptions to match new error codes 2007-11-26 13:41:36 +00:00
Johan Hedberg
3571ae8436 Fix hidp_connad_req usage 2007-10-12 11:00:32 +00:00
Marcel Holtmann
90ca244669 Use the CreateSecureDevice method 2007-10-08 11:14:20 +00:00
Claudio Takahasi
07ebeadd85 input: added CreateSecureDevice 2007-10-04 15:48:32 +00:00
Claudio Takahasi
0961617237 input: removed mem leak(HID desc list attribute) 2007-10-02 18:20:44 +00:00
Claudio Takahasi
4e7fe8b13b input: minor leak and code standard 2007-10-02 17:54:40 +00:00
Claudio Takahasi
a6da15f222 input: added interrupt and control channels watches 2007-08-31 16:36:33 +00:00
Claudio Takahasi
0ad9f50ac3 input: fixed last commit 2007-08-30 21:58:03 +00:00
Claudio Takahasi
2450e5e214 input: don't track POLLIN event 2007-08-30 20:27:47 +00:00
Johan Hedberg
56e8f3fc3c Fix socket validity checks 2007-08-30 13:45:58 +00:00
Claudio Takahasi
5aef8f33eb input: don't send DeviceCreated signal when the daemon starts 2007-08-27 13:50:32 +00:00
Claudio Takahasi
309dbb1060 input: GetName - fixed seg fault when the remote name is unknown 2007-08-03 14:18:54 +00:00
Claudio Takahasi
2639da11e0 input: added epox_endian_quirk function 2007-08-03 13:43:24 +00:00
Claudio Takahasi
ebd3c8b3a8 input: fixed invalid D-Bus path when the remote device class is unknown 2007-08-03 13:32:58 +00:00
Claudio Takahasi
0ffdac3e37 input: fixed missing byte(HID descriptor field) in the input file 2007-08-03 13:03:53 +00:00
Claudio Takahasi
b82eea72c2 input: code cleanup 2007-06-23 19:45:13 +00:00
Claudio Takahasi
cdfb787575 input: send unplug virtual cable to unknown devices 2007-06-23 19:25:46 +00:00
Claudio Takahasi
5c95755a67 input: cleanup - removed useless code 2007-06-23 17:37:58 +00:00
Claudio Takahasi
1c98e7cad6 input: can't call input_device_close_channels if the device path doesn't exist 2007-06-23 16:28:24 +00:00
Claudio Takahasi
79a65bbbe4 input: remove the device entry from the hidd file when RemoveDevice is called 2007-06-22 19:55:06 +00:00
Claudio Takahasi
7fb02908be input: fixed CreateDevice - verify the src and the dst address to discover if the device already exists 2007-06-22 19:14:38 +00:00
Claudio Takahasi
c6f486bcd4 input: missing close the channels(control/interrupt) when the auth fails 2007-06-22 18:43:13 +00:00
Claudio Takahasi
b4427e2448 input: missing Disconnected signal when RemoveDevice is called 2007-06-22 18:39:50 +00:00
Claudio Takahasi
0762886602 input: convert hidd to input 2007-06-22 17:11:10 +00:00
Claudio Takahasi
5138602897 input: pending_connect struct is not necessary anymore(replaced by DBusMessage pointer) 2007-06-22 14:25:16 +00:00
Claudio Takahasi
0bf3861da5 input: removed session_data structure and added watch for Disconnect signal 2007-06-21 22:06:33 +00:00
Marcel Holtmann
6de268e32d Don't set MTU value to 48 2007-05-29 03:58:10 +00:00
Marcel Holtmann
772f25e26e Add GetAdapter() method to retrieve the source address 2007-05-14 12:22:52 +00:00
Claudio Takahasi
cc7ee42ddf input: skip auth/encrypt if the link is not available and allow connections 2007-05-10 13:57:15 +00:00
Marcel Holtmann
07958fc361 Update API descriptions 2007-05-10 08:45:28 +00:00
Johan Hedberg
60709fc619 Fix unitialized memory access 2007-05-10 08:43:37 +00:00
Claudio Takahasi
f0fe2c5ffb input: Use dbus_connection_emit_signal 2007-05-09 20:05:06 +00:00
Claudio Takahasi
e8db465169 input: small code cleanup 2007-05-09 19:48:39 +00:00
Johan Hedberg
ea478e3120 Fix device registration 2007-05-09 15:28:08 +00:00
Johan Hedberg
74416c5f12 Convert to using generic dbus message dispatching 2007-05-09 14:53:34 +00:00
Johan Hedberg
e4d1134296 Add support for FinishRemoteServiceTransaction 2007-05-09 10:05:28 +00:00
Marcel Holtmann
011badf1a1 Add test script for input service 2007-05-09 07:09:58 +00:00
Marcel Holtmann
8287b25402 Add quirk for the PS3 controller 2007-05-08 16:40:33 +00:00
Johan Hedberg
319cc14e14 Input Service support for phones 2007-05-04 09:55:29 +00:00
Claudio Takahasi
c506053c99 input: fixed seg fault when RemoveDevice is called and there is a pending connection request 2007-04-18 19:33:34 +00:00
Claudio Takahasi
9cdd7162b4 fake input: fixed GIOChannel unrefs 2007-04-18 14:02:19 +00:00
Claudio Takahasi
5e225e3d19 input: dbus_pending_call_unref code standard 2007-04-17 20:40:45 +00:00
Claudio Takahasi
4136e617c4 input: code cleanup/standard 2007-04-17 20:39:39 +00:00
Claudio Takahasi
f9398eaf08 input: fixed io channel unref and socket close 2007-04-17 19:36:28 +00:00
Claudio Takahasi
4f32f86551 input: Connect/disconnect to the control and interrupt psm at the ending of CreateDevice 2007-04-17 13:22:58 +00:00
Marcel Holtmann
e3aec1dd41 Keep the device structure local 2007-04-12 09:59:15 +00:00
Claudio Takahasi
eca0800a92 fixed commentary 2007-04-11 21:18:27 +00:00
Marcel Holtmann
94a49f14f2 Use global device list for manager 2007-04-11 20:25:40 +00:00
Claudio Takahasi
b950614676 input manager: fixed code standard 2007-04-11 18:58:10 +00:00
Claudio Takahasi
fcaa89e46f input manager: read all /var/lib/bluetooth/*/input files when the service starts 2007-04-11 18:39:15 +00:00
Claudio Takahasi
56943b11d7 input manager: delete the stored input info based on the input device source/destination address 2007-04-11 16:10:07 +00:00
Claudio Takahasi
15746ba244 input manager: use the default adapter to create a new device. 2007-04-11 16:00:33 +00:00
Claudio Takahasi
7a2733b957 input: missing close listen sockets(control/interrupt) 2007-04-05 13:51:58 +00:00
Claudio Takahasi
3b97946c32 input: fixed GIOChannel problem(CPU usage and invalid file descriptor close warning) 2007-04-05 13:34:30 +00:00
Claudio Takahasi
0eede007ad input: send CancelAuthorizationRequest if there is a pending authorization 2007-04-04 21:45:43 +00:00
Claudio Takahasi
1826edb5d4 input: Added authorization support for incomming connections 2007-04-04 21:36:45 +00:00
Marcel Holtmann
a36be2a103 Fix missing G_IO_NVAL handling 2007-04-04 07:30:14 +00:00
Marcel Holtmann
9691f47c9f Service must start even if there is no adapter available 2007-03-27 10:40:42 +00:00
Marcel Holtmann
40ebcf393b Improve integration with D-Bus system bus 2007-03-27 10:27:01 +00:00
Claudio Takahasi
0506dca4cd input API: added device Connected/Disconnected signals 2007-03-22 14:55:35 +00:00
Claudio Takahasi
6caed0053e input: Added the Disconnect signal 2007-03-22 14:53:22 +00:00
Claudio Takahasi
27fe6a301b input: added Connected signal 2007-03-22 14:46:25 +00:00
Claudio Takahasi
0156f06757 input: Removed SetTimeout(method not defined) 2007-03-22 13:42:31 +00:00
Claudio Takahasi
0770121040 input: minor code standard fixes 2007-03-22 13:34:37 +00:00
Claudio Takahasi
c95cdbbf15 input: return an input error instead of forward it(from hcid). 2007-03-21 19:19:27 +00:00
Claudio Takahasi
2bdadb9a01 input: added already connected error 2007-03-21 18:02:00 +00:00
Claudio Takahasi
75eb97849c input: added possible errors returned by the methods. 2007-03-21 17:51:02 +00:00
Claudio Takahasi
aa2c3ce4dc input: code cleanup 2007-03-21 14:40:19 +00:00
Claudio Takahasi
ab0791e294 input: delete the stored input date when RemoveDevice is called 2007-03-19 17:49:20 +00:00
Claudio Takahasi
17033a18b3 input: code cleanup 2007-03-19 17:30:08 +00:00
Claudio Takahasi
d307da6627 input: moving "struct input_device" to device.h 2007-03-19 15:17:15 +00:00
Claudio Takahasi
a798bf638f input: handling encrypt_link function return value properly 2007-03-19 15:07:03 +00:00
Claudio Takahasi
f2c6a6f2de Moving input functions to the right files 2007-03-19 14:58:44 +00:00
Marcel Holtmann
57821cca7b Add error specific skeleton files 2007-03-16 18:17:27 +00:00
Marcel Holtmann
74b978057e Add skeleton for manager interface 2007-03-13 18:13:28 +00:00
Marcel Holtmann
6e3cd31203 Fix not result checking warning 2007-03-09 15:31:27 +00:00
Claudio Takahasi
dbe77da3c5 Removed dupplicated errno header include 2007-03-09 15:09:31 +00:00
Claudio Takahasi
6752c3025a Input: useless code removed, stored devices are always created when the daemon initializes 2007-03-06 19:33:02 +00:00
Claudio Takahasi
d539359952 Input: added extra GIOConditon(HUP, ERR and NVAL) for watches 2007-03-05 20:10:35 +00:00
Claudio Takahasi
3f27f7f7a0 Input: Use stored device name instead of the service name attribute 2007-03-01 14:10:10 +00:00
Claudio Takahasi
553db8d415 Input: don't store the HID name in the "input" file && removed magic number in the memory alloc 2007-03-01 13:02:21 +00:00
Claudio Takahasi
fd660e2802 Input: renamed input storage file to "input" 2007-03-01 11:40:20 +00:00
Claudio Takahasi
bf2f0ef935 Input: code cleanup 2007-02-28 16:39:34 +00:00
Claudio Takahasi
acfdab3a74 Input: Using glib memory alloc functions 2007-02-28 12:31:25 +00:00
Claudio Takahasi
40d70645a6 Input: added verification for pending connection 2007-02-27 21:40:12 +00:00
Claudio Takahasi
d242929462 Fake input: changed is_connected function to support fake inputs 2007-02-27 19:39:03 +00:00
Claudio Takahasi
bebbd2498d Fake input: fixed build error when glib is disabled 2007-02-27 13:07:02 +00:00
Claudio Takahasi
af47f85ea4 Fake input: Changed disconnect function to support fake devices 2007-02-27 12:20:59 +00:00
Claudio Takahasi
1f4fd0b880 Fake input: added uinput send key/event 2007-02-26 17:45:51 +00:00
Claudio Takahasi
e67c250c80 Fake input: fixed get_class 2007-02-26 15:53:47 +00:00
Claudio Takahasi
15b4716767 Fake input: Added function to decode keys 2007-02-26 15:38:33 +00:00
Claudio Takahasi
22021d175f Fake input: added watch for RFCOMM IO channel 2007-02-26 15:05:03 +00:00
Claudio Takahasi
14f36096be Fake input: added uinput create function 2007-02-23 20:58:43 +00:00
Claudio Takahasi
6130f3819a Fake input: added rfcomm connect callback function 2007-02-23 20:11:08 +00:00
Claudio Takahasi
57e21703e2 Fake input: added rfcomm_connect 2007-02-23 19:04:43 +00:00
Claudio Takahasi
c436cfee30 Fake input: added initial skeleton for Connect method 2007-02-23 18:45:54 +00:00
Claudio Takahasi
e977c52ef2 Fake input: missing input device fake struct free 2007-02-23 18:26:47 +00:00
Claudio Takahasi
2957490728 Fake input: added function to create the D-Bus fake input path 2007-02-23 18:22:03 +00:00
Claudio Takahasi
0f08988e53 Code cleanup: removing deep indentation and added error messages 2007-02-23 13:44:11 +00:00
Claudio Takahasi
a83064cf50 Don't hide errors returned by hcid 2007-02-22 21:13:54 +00:00
Claudio Takahasi
45bbf75895 Fake input: added headset record parsing 2007-02-22 21:03:27 +00:00
Claudio Takahasi
86fa3713b1 Fake input: added code to request the headset service record 2007-02-22 20:12:27 +00:00