Commit Graph

330 Commits

Author SHA1 Message Date
Luiz Augusto von Dentz
5e4e6d2332 Fix connection storage. 2007-09-04 19:51:31 +00:00
Claudio Takahasi
6904a4ec43 network: check if bridge module is loaded 2007-08-31 19:25:41 +00:00
Claudio Takahasi
1778b4d041 network: added setup msg timeout and retransmissions 2007-08-31 14:52:14 +00:00
Claudio Takahasi
d039784990 network: more robust bnep setup conn msg validation 2007-08-30 14:14:53 +00:00
Claudio Takahasi
87bb7258bd network: cleanup - unused error 2007-08-29 21:28:46 +00:00
Claudio Takahasi
e2b4263551 network: additional src and dst role verification 2007-08-29 21:22:21 +00:00
Claudio Takahasi
176b646a78 network: server cleanup - added static DBusConnection and server init/exit 2007-08-29 20:32:05 +00:00
Claudio Takahasi
466c2fefdd network-api: fixed server paths 2007-08-29 20:19:00 +00:00
Claudio Takahasi
c068caff5e network: CreateConnection - enable PANU to PANU connection 2007-08-29 18:01:27 +00:00
Claudio Takahasi
1b9cc01882 network: concat remote name and service name to the connection name 2007-08-29 17:50:49 +00:00
Claudio Takahasi
1dfdcaaccb network: minor - keep server socket always listenning 2007-08-29 14:18:01 +00:00
Claudio Takahasi
da81fb5e8f network: fixed wrong service record attrs for PANU 2007-08-28 22:45:18 +00:00
Claudio Takahasi
9c9b10af24 network: disconnect clients when the server is disabled 2007-08-28 22:12:53 +00:00
Claudio Takahasi
2498466bf7 network: added verification for allowed destination/source roles according to PAN Profile 2007-08-28 19:31:49 +00:00
Claudio Takahasi
da10b3ccf2 network: allow just one pending authorization at the same time 2007-08-28 16:41:50 +00:00
Claudio Takahasi
b45b4cd632 network: fixed Disable - record unregistration 2007-08-27 21:54:25 +00:00
Claudio Takahasi
7defeed3b3 network: fixed minor memory leak 2007-08-24 21:51:52 +00:00
Claudio Takahasi
b439d4cb2c network: fixed wrong pointer reference 2007-08-24 21:14:41 +00:00
Claudio Takahasi
1e324b3b2e network: fixed seg fault 2007-08-24 20:25:51 +00:00
Claudio Takahasi
558c8c359b network: removed CreateServer/RemoveServer methods 2007-08-24 18:38:09 +00:00
Claudio Takahasi
7715eed6e3 network: removed unused signals(ServerCreated and ServerRemoved) 2007-08-24 18:35:07 +00:00
Marcel Holtmann
5162283fd1 Small header cleanups 2007-08-16 18:03:01 +00:00
Luiz Augusto von Dentz
3a653f915b Remove CreateServer and RemoveServer, servers are always create. 2007-06-20 20:23:35 +00:00
Luiz Augusto von Dentz
c70e57f5b9 Fix some documentation problems. 2007-05-22 13:00:25 +00:00
Marcel Holtmann
b93e2bf23c Update test script with last PANU connection 2007-05-22 07:05:28 +00:00
Luiz Augusto von Dentz
00a7a482ac Revert changes of missing GSList functions. 2007-05-18 18:05:16 +00:00
Luiz Augusto von Dentz
07ae0be088 Prevent use of missing function in eglib. 2007-05-17 19:52:32 +00:00
Luiz Augusto von Dentz
df7260b7a0 Add LastConnection, DefaultConnection and ChangeDefaultConnection API methods and some minor fixes. 2007-05-17 17:05:47 +00:00
Luiz Augusto von Dentz
417006053c Fixes storage problems with connections and fix bug of CreateConnection not checking for present connection with the same destination and profile. 2007-05-16 13:13:58 +00:00
Luiz Augusto von Dentz
f8afd4132d Update CancelConnect documentation. 2007-05-15 12:13:24 +00:00
Marcel Holtmann
13ca53c2fa Add CancelConnect method description 2007-05-15 11:23:56 +00:00
Luiz Augusto von Dentz
39d74106f6 Add CancelConnect to Connection interface. 2007-05-14 15:05:20 +00:00
Marcel Holtmann
57704487a4 Add method to retrieve adapter address 2007-05-14 12:28:55 +00:00
Marcel Holtmann
07958fc361 Update API descriptions 2007-05-10 08:45:28 +00:00
Luiz Augusto von Dentz
bec9d1838b Use dbus_connection_emit_signal to emit signals. 2007-05-09 19:59:18 +00:00
Johan Hedberg
0ebe9945de Use dbus_connection_destroy object path instead of dbus_connection_unregister_object_path 2007-05-09 14:49:23 +00:00
Johan Hedberg
a0d73b7c7c Switch to using generic dbus framework method dispatching 2007-05-09 14:31:27 +00:00
Luiz Augusto von Dentz
5c5027129a Fix RemoveConnection documentation. 2007-05-09 14:04:20 +00:00
Marcel Holtmann
a643c69886 Fix network service test script 2007-05-08 15:00:58 +00:00
Luiz Augusto von Dentz
de900f387d Fix bug on FindServer and add missing headers. 2007-05-08 14:42:02 +00:00
Marcel Holtmann
e9143c3e1f Proceed if the bridge creation fails 2007-05-08 14:41:11 +00:00
Marcel Holtmann
fcba5ddbba Add service test scripts 2007-05-08 14:08:54 +00:00
Luiz Augusto von Dentz
89aa5447d1 Make connection host address available via GetInfo. 2007-05-08 14:00:22 +00:00
Luiz Augusto von Dentz
734d59c4b7 Update API documentation 2007-05-08 13:57:23 +00:00
Luiz Augusto von Dentz
4cf3d33cf1 Fix server load from storage and add FindServer to API. 2007-05-08 13:48:37 +00:00
Claudio Takahasi
3268722532 network: minor cleanup 2007-05-01 14:56:05 +00:00
Luiz Augusto von Dentz
999a1b2c1f Update network API documentation. 2007-04-27 14:17:18 +00:00
Claudio Takahasi
44847d5dfc Added UpdateServiceRecord 2007-04-25 22:14:22 +00:00
Luiz Augusto von Dentz
748b15f0a5 Fix bug while creating connection, unref pending call just once. 2007-04-25 18:04:47 +00:00
Luiz Augusto von Dentz
506d39ae95 Use service name in error namespace. 2007-04-25 12:36:12 +00:00
Claudio Takahasi
71889d8638 network: missing set the D-Bus connection when creating a server from file 2007-04-23 14:19:56 +00:00
Luiz Augusto von Dentz
36d0506a28 Check connection busy before removing it. 2007-04-20 15:41:32 +00:00
Luiz Augusto von Dentz
cc8d980b55 Unref pending calls. 2007-04-19 17:48:23 +00:00
Luiz Augusto von Dentz
f8c373978d Update network.server documentation. 2007-04-18 18:10:41 +00:00
Luiz Augusto von Dentz
54f74d381a Fix use of GIOChannel 2007-04-18 13:54:53 +00:00
Luiz Augusto von Dentz
4bae43ca78 Add GetInfo to network.Server interface. 2007-04-17 19:48:53 +00:00
Luiz Augusto von Dentz
cd7716fd58 Update API documentation to include GetInfo. 2007-04-17 13:58:00 +00:00
Luiz Augusto von Dentz
f14786d714 Add GetInfo() to network.Connection interface. 2007-04-17 13:48:24 +00:00
Luiz Augusto von Dentz
ef29c39ffc Move code to bring up interface to common and use it on connection. 2007-04-16 20:54:02 +00:00
Claudio Takahasi
d3d1ce6e2b network: missing append registered connection paths to the list 2007-04-16 19:41:59 +00:00
Claudio Takahasi
d2692a02cf network: fixed default adapter 2007-04-16 19:32:49 +00:00
Luiz Augusto von Dentz
6745ef8707 Add signals Enabled/Disabled. 2007-04-16 14:11:50 +00:00
Luiz Augusto von Dentz
ea69da4ac5 Update network service documentation. 2007-04-16 14:03:38 +00:00
Claudio Takahasi
04f62adc11 network: missing assign src and path on server_register_from_file 2007-04-16 13:57:46 +00:00
Claudio Takahasi
8c59967450 network: added function to store/update server property 2007-04-16 13:49:13 +00:00
Claudio Takahasi
3723149c0b network: missing append registered server paths to the list 2007-04-16 13:26:16 +00:00
Claudio Takahasi
e968bf5446 network: added server_remove_stored function 2007-04-16 13:14:07 +00:00
Claudio Takahasi
e5ba646776 network: added connection_store 2007-04-14 01:12:34 +00:00
Claudio Takahasi
47895f4ab3 network: addded server_store 2007-04-14 00:19:59 +00:00
Luiz Augusto von Dentz
dca71fe556 Fix code style 2007-04-13 21:50:57 +00:00
Luiz Augusto von Dentz
4e12859a71 Handle errors bringing up interfaces on servers 2007-04-13 21:49:21 +00:00
Claudio Takahasi
373808d7a4 network: cleanup and added some FIXME tags 2007-04-13 21:38:36 +00:00
Luiz Augusto von Dentz
ecde90ac20 Bring up interfaces on servers 2007-04-13 21:32:36 +00:00
Claudio Takahasi
476855d7cd network: removed not defined function(read_server_uuid) 2007-04-13 21:18:19 +00:00
Claudio Takahasi
af49fed2e0 network: changed server_register signature and code cleanup 2007-04-13 20:58:03 +00:00
Claudio Takahasi
a4bc8363b5 network: moved register_nap_from_file to server_register_from file to support gn and nap registration 2007-04-13 20:38:37 +00:00
Claudio Takahasi
235f0862a2 network: added register_nap_from_file 2007-04-13 20:21:11 +00:00
Claudio Takahasi
4706fa6e70 network: changed connection_register prototype 2007-04-13 18:51:51 +00:00
Claudio Takahasi
2cd680bf44 network: added functions prototypes for nap/gn registration 2007-04-13 16:42:57 +00:00
Claudio Takahasi
54cc7aee9e network: added code to parse the network file 2007-04-13 15:09:31 +00:00
Claudio Takahasi
bf2e27fac1 network: initial skeleton to register stored network NAP/GN/PANU 2007-04-13 13:14:02 +00:00
Claudio Takahasi
1556df2283 network: code cleanup 2007-04-13 13:11:51 +00:00
Luiz Augusto von Dentz
1a02bbc361 Fix code style. 2007-04-12 18:54:40 +00:00
Luiz Augusto von Dentz
6e42f0eaa8 Fix warning on build. 2007-04-12 18:48:18 +00:00
Claudio Takahasi
4d8f5eb37c network: changed the server D-Bus path and moved storage functions to manager.c 2007-04-12 18:42:47 +00:00
Luiz Augusto von Dentz
1cbec5ebe8 Add FindConnection method, bug fixes for disconnect events. 2007-04-12 18:15:13 +00:00
Claudio Takahasi
b47f37f545 network: added initial code to register stored servers 2007-04-12 13:33:23 +00:00
Claudio Takahasi
ed62b516d4 network: use global server/connection list for manager 2007-04-12 12:49:55 +00:00
Luiz Augusto von Dentz
ed17ae18d8 Fix bug on GetInterface. 2007-04-12 12:49:42 +00:00
Claudio Takahasi
9743174631 network: code cleanup 2007-04-12 12:19:39 +00:00
Claudio Takahasi
40d7852506 network: cancel pending auth if an error happens in the BNEP GIOChannel 2007-04-05 20:00:31 +00:00
Claudio Takahasi
eac4f4085d network: handle the GIOChannel errors properly 2007-04-05 19:47:27 +00:00
Claudio Takahasi
6b9efc12ea network: missing pending_reply initialization and connection ref/unref 2007-04-05 18:58:41 +00:00
Luiz Augusto von Dentz
a2ace90c14 Fix bug while disconnecting. 2007-04-05 15:00:54 +00:00
Luiz Augusto von Dentz
0f09acbace Add storage code. 2007-04-02 18:23:50 +00:00
Claudio Takahasi
c08ade2206 network: fixed GIOChannel close/unref order 2007-03-30 17:40:29 +00:00
Luiz Augusto von Dentz
6accceac92 Add err_already_exists. 2007-03-30 17:21:11 +00:00
Luiz Augusto von Dentz
e9e95fcbed Return an error when server already exist. 2007-03-30 14:38:32 +00:00
Claudio Takahasi
ada09c331c network: ignore repeated BNEP conn req msg from the same device if there a pending auth 2007-03-30 13:54:31 +00:00
Claudio Takahasi
778fb0ca85 network: Added bridge add interface function 2007-03-29 21:49:17 +00:00
Luiz Augusto von Dentz
3b82e98cb0 Fixes to use DefaultAdapter when an adapter is necessary. 2007-03-29 20:23:05 +00:00
Luiz Augusto von Dentz
d0c225bdc8 Fix message unref and interface name bugs. 2007-03-29 19:40:17 +00:00
Claudio Takahasi
6c3a14c15d network: only send cancel authorization if the error name is NoReply 2007-03-29 19:14:31 +00:00
Claudio Takahasi
675f1f3b5e network: cancel authorization if the time expires 2007-03-29 19:10:15 +00:00
Claudio Takahasi
a74ce132aa network: reject incomming connections if there is a pending authorization 2007-03-29 18:27:01 +00:00
Luiz Augusto von Dentz
fe648edb4d Add code to extract record attributes. 2007-03-29 14:01:25 +00:00
Luiz Augusto von Dentz
ead055c1bc Lower number of possible interfaces from 48 to 7 and other minor fixes. 2007-03-29 13:33:27 +00:00
Claudio Takahasi
9c2ff557a3 network: removed ProviderName attribute from the server service record 2007-03-28 21:11:22 +00:00
Claudio Takahasi
a26656784f network: update the service record when the attributes changed(name, security) 2007-03-28 20:59:36 +00:00
Claudio Takahasi
12575376b7 network: making service name/security configurable 2007-03-28 17:52:43 +00:00
Luiz Augusto von Dentz
1e711201f6 Add connection state to prevent concurrent connections 2007-03-28 15:51:54 +00:00
Claudio Takahasi
ea1a79ba43 network: reply bnep "not allowed" if the bnep_connadd fails 2007-03-28 15:33:31 +00:00
Claudio Takahasi
fdacbf3a77 network: Added more debug error information for ioctl BNEPCONNADD call 2007-03-28 15:24:22 +00:00
Claudio Takahasi
50bec7777e network: fixed server role when calling bnep_connadd 2007-03-28 15:22:39 +00:00
Claudio Takahasi
44f1d3a1a0 network: added Server.Disable 2007-03-28 14:35:28 +00:00
Claudio Takahasi
45bddf6307 network: Remove the service record when the server path is unregistered 2007-03-28 13:44:27 +00:00
Luiz Augusto von Dentz
e7b6b11e91 Get rid of old ioctl compability hack. 2007-03-27 22:11:29 +00:00
Luiz Augusto von Dentz
fab1c990ee Add code to check server capabilities. 2007-03-27 21:58:58 +00:00
Claudio Takahasi
556bafad38 network: Added authorization for incomming connections 2007-03-27 21:34:13 +00:00
Luiz Augusto von Dentz
580d52c4b0 Add err_not_supported. 2007-03-27 21:30:35 +00:00
Marcel Holtmann
71aaf58c77 The service must start even without any adapters attached 2007-03-27 10:38:17 +00:00
Marcel Holtmann
3ee5b90642 Improve D-Bus system bus integration 2007-03-27 10:21:45 +00:00
Claudio Takahasi
2b349e5e40 network: added initial code for server L2CAP listening 2007-03-26 20:08:34 +00:00
Luiz Augusto von Dentz
edfeafb778 Remove warning. 2007-03-26 20:03:25 +00:00
Luiz Augusto von Dentz
85a868434e Add connection watchdog. 2007-03-26 19:20:49 +00:00
Claudio Takahasi
1e3f6fcf0d network: removed memory leak(servers/connections list) 2007-03-26 19:11:57 +00:00
Claudio Takahasi
daf9e4f8a6 network: added function to create the server(NAP/GN) service record 2007-03-26 18:59:34 +00:00
Luiz Augusto von Dentz
479dbf10dc Fix connect. 2007-03-26 18:35:08 +00:00
Claudio Takahasi
0ebeaaa03e metwork: Added function to call the service record registration 2007-03-26 14:43:52 +00:00
Luiz Augusto von Dentz
82cef341d2 Fixes to use non-bloking socket on connect. 2007-03-26 13:39:46 +00:00
Luiz Augusto von Dentz
9bea84c70c Fix service exit. 2007-03-26 13:35:30 +00:00
Luiz Augusto von Dentz
4ce3d5461a Buf fixes. 2007-03-23 21:23:04 +00:00
Claudio Takahasi
d98a405d8f network: Added invalid service class verification for Manager.CreateConnection 2007-03-23 21:15:40 +00:00
Claudio Takahasi
ef3649fd9e network: using service class identifier instead of the uuid 128 string for server registration 2007-03-23 21:04:08 +00:00
Claudio Takahasi
696c7534ec network: Added hexadecimal verification for Manager.CreateServer 2007-03-23 20:33:54 +00:00
Claudio Takahasi
2e39ac5872 network: Fixed string/service id/uuid convertion functions 2007-03-23 19:10:37 +00:00
Luiz Augusto von Dentz
bdb402511c Connection code. 2007-03-22 20:30:19 +00:00
Luiz Augusto von Dentz
29809147d7 Add bnep_init and bnep_cleanup to manager. 2007-03-22 20:26:04 +00:00
Luiz Augusto von Dentz
e46f647bc9 Add err_connection_failed. 2007-03-22 20:15:59 +00:00
Claudio Takahasi
0f7f9e9d9f network: returning a better message content in the D-Bus error for invalid arguments 2007-03-22 17:56:08 +00:00
Claudio Takahasi
d1ffb661fd network: added Server.SetRouting 2007-03-22 17:43:32 +00:00
Luiz Augusto von Dentz
d1d248d12b Initial code of bnep common. 2007-03-22 17:36:56 +00:00
Claudio Takahasi
ed83ee24ed network: Added Server.SetSecurity 2007-03-22 17:20:19 +00:00
Claudio Takahasi
b877355338 network: Added Server.GetSecurity() 2007-03-22 17:12:40 +00:00
Claudio Takahasi
f844fe4f42 network: removed err_generic function 2007-03-22 17:07:24 +00:00
Claudio Takahasi
9cefcf43f4 network: Added Server.SetName 2007-03-22 15:24:51 +00:00
Claudio Takahasi
04b559087e network: Added Server.GetName() 2007-03-22 15:03:34 +00:00
Claudio Takahasi
d1e15b83b0 network: Added Server.GetUUID() 2007-03-22 14:21:01 +00:00
Marcel Holtmann
a1e5adc417 Install the network service if enabled 2007-03-21 21:25:10 +00:00
Marcel Holtmann
e8b263fa47 Add file for shared functions 2007-03-21 20:28:55 +00:00
Marcel Holtmann
4128274b3b Add functions for creating and removing HAL devices 2007-03-21 19:35:35 +00:00
Claudio Takahasi
912bb20c21 network: added network API description skeleton 2007-03-21 18:36:53 +00:00
Luiz Augusto von Dentz
11676370a1 Remove duplicate code and some minor fixes. 2007-03-21 18:04:04 +00:00
Marcel Holtmann
833ce8edc2 Implement generic HAL device helpers 2007-03-21 14:24:15 +00:00
Luiz Augusto von Dentz
ad5740f569 Initial code of CreateConnection and RemoveConnection methods. 2007-03-20 19:59:55 +00:00
Luiz Augusto von Dentz
c41c67efc3 Initial code of CreateServer and RemoveServer methods. 2007-03-20 15:10:58 +00:00
Marcel Holtmann
6e2ea33ba7 Create a common HAL abstraction layer 2007-03-20 14:48:00 +00:00
Marcel Holtmann
faaa78e898 Add HAL device for testing 2007-03-19 20:14:37 +00:00
Marcel Holtmann
fc191be195 Work around the missing D-Bus system bus 2007-03-19 20:04:00 +00:00
Marcel Holtmann
e867e1dc93 Try to init the HAL context 2007-03-19 19:46:43 +00:00
Marcel Holtmann
37ca3ab597 Check for HAL support 2007-03-19 19:27:28 +00:00
Marcel Holtmann
d56a98ac7b Add skeleton for HAL support 2007-03-19 19:17:33 +00:00
Luiz Augusto von Dentz
0ac929228a Fix build, move errors to error file and add server registration. 2007-03-19 13:57:52 +00:00
Luiz Augusto von Dentz
851ad267e5 - Fix standalone init when there is no bluetooth adapter. 2007-03-19 13:24:41 +00:00
Luiz Augusto von Dentz
1055292b83 Initial implementation of network server interface. 2007-03-16 20:44:42 +00:00
Marcel Holtmann
7ba9c777c7 Add minimal support for bridge creation and removal 2007-03-16 19:58:29 +00:00
Marcel Holtmann
57821cca7b Add error specific skeleton files 2007-03-16 18:17:27 +00:00
Claudio Takahasi
74b17da9af Network: Added network connection methods skeleton 2007-03-15 14:23:47 +00:00
Claudio Takahasi
9411bce4ba Network: Added ListServers 2007-03-15 13:42:30 +00:00
Claudio Takahasi
7e39b983e5 Network: Added unknown connection path fallback 2007-03-13 18:20:18 +00:00
Claudio Takahasi
6bd2d4e0d8 Network: support for standalone start mode 2007-03-12 20:15:15 +00:00
Claudio Takahasi
29b4c4f802 Network: added server methods skeleton 2007-03-12 01:06:47 +00:00
Claudio Takahasi
e7e20e6343 Network: main loop creation 2007-03-09 22:12:19 +00:00
Marcel Holtmann
f612aabb41 Don't forget to link against GLib 2007-03-09 15:46:51 +00:00
Marcel Holtmann
ff7979aa54 Add API document and service description file 2007-03-09 15:44:48 +00:00
Marcel Holtmann
855cf21612 Create init and exit functions 2007-03-09 15:37:57 +00:00
Marcel Holtmann
3406c27e75 Add skeleton for network service 2007-03-09 15:33:38 +00:00
Marcel Holtmann
884cfe825d Don't install services that are in experimental state 2007-01-20 02:36:57 +00:00
Marcel Holtmann
cc918032d6 Rename service and install it 2007-01-19 21:55:53 +00:00
Marcel Holtmann
c761480865 Add skeletons for service implementations 2006-10-27 14:46:36 +00:00