Commit Graph

351 Commits

Author SHA1 Message Date
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
Claudio Takahasi
c90bdcc8c0 Fake input: added initial code for headset support 2007-02-22 18:45:59 +00:00
Claudio Takahasi
928217b1ac Return NotSupported error if the remote device doesn't support the required services(compliant to audio daemon) 2007-02-13 17:51:09 +00:00
Marcel Holtmann
6a56059543 Rename input-service.[ch] into device.[ch] 2007-01-28 18:06:45 +00:00
Claudio Takahasi
f84e31fac1 Close the control and interrupt sockets after call ioctl HIDPCONNADD 2007-01-26 16:21:47 +00:00
Claudio Takahasi
10cdcaa9bc Check if the HCI_LM_ENCRYPT is already active 2007-01-26 15:02:48 +00:00
Claudio Takahasi
5d6c22d60f Code standard(variables names): replaced sba to src and dba to dst 2007-01-26 14:19:07 +00:00
Marcel Holtmann
5753e415a5 Add encryption support 2007-01-26 09:53:30 +00:00
Claudio Takahasi
aa6e167ce4 Code cleanup 2007-01-25 18:08:37 +00:00
Claudio Takahasi
97e3051ec5 set_nonblocking: removed err argument 2007-01-25 17:27:52 +00:00
Marcel Holtmann
1f1bd7f99b Initialize subpath with '\0' 2007-01-25 15:13:45 +00:00
Marcel Holtmann
24aaa3c382 Small cleanup 2007-01-25 15:06:06 +00:00
Claudio Takahasi
8462276d52 Code cleanup 2007-01-25 14:44:06 +00:00
Marcel Holtmann
8362c93efb No #ifdef magic for local file includes 2007-01-25 14:38:38 +00:00
Claudio Takahasi
d0dc2769f9 Moved HID store related functions to a new file 2007-01-25 14:25:07 +00:00
Claudio Takahasi
d8dc9633f5 Code cleanup(missing static modifier) 2007-01-24 22:02:06 +00:00
Claudio Takahasi
0e1bf96370 Set the default idle timeout to 30 sec 2007-01-24 20:17:08 +00:00
Claudio Takahasi
a0aeaf15ca Moved set_nonblocking to common/dbus.c 2007-01-24 19:47:56 +00:00
Claudio Takahasi
3ff37c8650 Added GetVendorId 2007-01-24 19:03:36 +00:00
Claudio Takahasi
b40a22456a Added GetProductId 2007-01-24 19:00:49 +00:00
Claudio Takahasi
ffe5dd5b56 Added IsConnected 2007-01-24 18:47:11 +00:00
Claudio Takahasi
ccf0880203 Check if the input is already connected when "Connect" is requested 2007-01-24 17:44:58 +00:00
Claudio Takahasi
818548335c Device unplug method removed: RemoveDevice is going to address this functionality 2007-01-24 17:26:44 +00:00
Claudio Takahasi
7bd6035a57 Delete the stored HID info when removing the input device 2007-01-24 17:22:15 +00:00
Claudio Takahasi
e232c19d04 Store the default adapter Bluetooth address to use it when creating/removing devices 2007-01-24 17:17:48 +00:00
Marcel Holtmann
b992c01c50 Add errors when server setup fails 2007-01-24 15:43:06 +00:00
Marcel Holtmann
e1ebd6405a Back to the database interface 2007-01-24 14:19:55 +00:00
Claudio Takahasi
e0e5d97ac3 Disconnect(if applied) when removing the device 2007-01-24 14:14:36 +00:00
Claudio Takahasi
e5e024113e Added function to store HID info 2007-01-24 13:21:51 +00:00
Marcel Holtmann
96a229f169 Service registration is done via the manager interface 2007-01-24 10:11:11 +00:00
Marcel Holtmann
398f681448 Add support for service debugging 2007-01-24 05:45:11 +00:00
Claudio Takahasi
bf9a016885 Added HID unplug method 2007-01-23 22:02:47 +00:00
Claudio Takahasi
5f80c51858 Removed GIOChannel memory leak 2007-01-23 20:34:55 +00:00
Claudio Takahasi
49cc58fa6f Workaround to use the default local adapter 2007-01-23 20:04:55 +00:00
Claudio Takahasi
7fee6d805c Fixed wrong pending connection unref 2007-01-23 19:01:57 +00:00
Claudio Takahasi
6ff980e40b Added input disconnect 2007-01-23 19:00:39 +00:00
Claudio Takahasi
64b9c9c1a2 Code cleanup: missing HID control socket close and fixed code standard 2007-01-23 17:48:40 +00:00
Claudio Takahasi
706b8b6df5 Added L2CAP HID interrupt channel connect callback 2007-01-23 17:29:52 +00:00
Claudio Takahasi
86ac7d9186 Added L2CAP HID control channel connect callback 2007-01-23 16:45:29 +00:00
Claudio Takahasi
4ddff0e350 Connect: Added initial functionality 2007-01-23 13:53:49 +00:00
Marcel Holtmann
77a277e667 Make echo and input service configurable 2007-01-23 07:18:07 +00:00
Marcel Holtmann
93c24ae06c Hand incoming HID sessions over to the kernel 2007-01-23 05:31:49 +00:00
Claudio Takahasi
5869694c6f Added GetName 2007-01-22 20:36:05 +00:00
Claudio Takahasi
339f5da8b6 Added GetAddress 2007-01-22 20:32:35 +00:00
Claudio Takahasi
a00358121e Register well known(stored) inputs when the daemon starts 2007-01-22 20:21:10 +00:00
Claudio Takahasi
58c5351058 Removed mem leak(input paths) 2007-01-22 14:59:35 +00:00
Claudio Takahasi
3bb4d3dea5 Added function to retrive the stored HID data 2007-01-22 14:48:00 +00:00
Claudio Takahasi
1f07bf88cf CreateDevice: minor code standard changes 2007-01-22 14:05:09 +00:00
Claudio Takahasi
e248da53cf Added DeviceRemove method 2007-01-22 13:58:53 +00:00
Marcel Holtmann
90d8e71b0f Re-activate getting the default adapter 2007-01-22 03:23:32 +00:00
Claudio Takahasi
512e954ad4 Created function to register the input device D-Bus path and send the DeviceCreated signal 2007-01-22 00:05:47 +00:00
Marcel Holtmann
65ce50f3ae Include server.h header file 2007-01-22 00:00:50 +00:00
Marcel Holtmann
72217a2993 Add skeleton for server handling 2007-01-21 23:23:19 +00:00
Claudio Takahasi
ea16654e9f Fixed input device D-Bus path creation error 2007-01-21 22:34:10 +00:00
Marcel Holtmann
0d7b614648 Don't request default adapter 2007-01-21 21:20:08 +00:00
Marcel Holtmann
3067733e2e Do a proper cleanup on exit 2007-01-21 21:16:23 +00:00
Claudio Takahasi
72d07f466c Added function to parse the HID and PnP record 2007-01-21 21:08:54 +00:00
Claudio Takahasi
01c923cbee Added function to create the input device D-Bus path 2007-01-20 21:47:30 +00:00
Marcel Holtmann
e9cc32a5d3 Add service description file 2007-01-20 15:06:03 +00:00
Marcel Holtmann
818744abec Don't use a D-Bus well known name at the moment 2007-01-20 14:30:42 +00:00
Marcel Holtmann
8cc5595d90 Make it possible to support an embedded GLib 2007-01-20 05:26:15 +00:00
Marcel Holtmann
884cfe825d Don't install services that are in experimental state 2007-01-20 02:36:57 +00:00
Marcel Holtmann
e36b830e0b Don't become a daemon 2007-01-19 22:11:39 +00:00
Marcel Holtmann
23875e5b1b Rename service and install it 2007-01-19 21:40:33 +00:00
Claudio Takahasi
b820ab01df Added function to request the HID record 2007-01-19 21:12:49 +00:00
Marcel Holtmann
4f2bc2345b Rename daemon 2007-01-19 21:04:35 +00:00
Claudio Takahasi
2f8c48d485 Added function to request PnP service record 2007-01-19 20:58:42 +00:00
Claudio Takahasi
e989bd9c02 Added function to search HID handle 2007-01-19 19:49:47 +00:00
Claudio Takahasi
ed95fffdbb Added function to search PnP handle 2007-01-19 18:31:11 +00:00
Claudio Takahasi
4f411bad65 Retrieve the default local adapter 2007-01-19 17:14:41 +00:00
Claudio Takahasi
87113c3bda CreateDevice: initial skeleton 2007-01-19 16:07:37 +00:00
Marcel Holtmann
d3d68f09fa Return the path on device creation 2007-01-18 21:54:03 +00:00
Marcel Holtmann
fb0189533b Small clenaup to the API definitions 2007-01-18 21:43:08 +00:00
Claudio Takahasi
fd8be9d63d fixed minor code standard issue 2007-01-18 17:30:54 +00:00
Claudio Takahasi
b7781d4cbc Removed forward declaration and fixed code standard. 2007-01-18 17:10:29 +00:00
Claudio Takahasi
d1ae2b4841 Added ListDevices 2007-01-18 17:02:50 +00:00
Claudio Takahasi
c6cd1ad500 Added unregister code for input manager path 2007-01-18 14:28:18 +00:00
Claudio Takahasi
8a7d174304 Added methods skeleton 2007-01-18 13:42:11 +00:00
Marcel Holtmann
c97480f11b Allow compilation against GLib 2007-01-12 00:37:42 +00:00
Johan Hedberg
e95363393f Call Register asynchronously 2006-11-13 17:51:56 +00:00
Marcel Holtmann
a409375989 Establish well known name for input service 2006-11-13 16:18:20 +00:00
Johan Hedberg
bb83060114 Preparation for the Input interface implementation 2006-11-13 15:15:00 +00:00
Johan Hedberg
8512236a40 code cleanup/fixes 2006-11-13 11:51:55 +00:00
Marcel Holtmann
40e3342c52 Add D-Bus name setup to common function 2006-11-13 07:58:40 +00:00
Johan Hedberg
3eb0a5cd95 Initial service skeleton for bt.inputd 2006-11-11 23:14:14 +00:00