core: Remove RequestSession and ReleaseSession
Luiz Augusto von Dentz
maintainerPATCH 1/2 core: Remove RequestSession and ReleaseSession
From: Luiz Augusto von Dentz <[email protected]>
Sessions is no longer used by obexd and the concept is probably not relevant anymore since BlueZ 5 don't remember powered state anymore.
--- doc/adapter-api.txt | 26 +--------- src/adapter.c | 134 ---------------------------------------------------- 2 files changed, 1 insertion(+), 159 deletions(-)
doc/adapter-api.txt +1 -25
@@ -14,31 +14,7 @@ Service org.bluez Interface org.bluez.Adapter1 Object path [variable prefix]/{hci0,hci1,...} -Methods void RequestSession() - - This method requests a client session that provides - operational Bluetooth. A possible mode change must be - confirmed by the user via the agent. - - Clients may request multiple sessions. All sessions - are released when adapter's mode is changed to off - state. - - Possible Errors: org.bluez.Error.Rejected - - void ReleaseSession() - - Release a previously requested session. It sets - adapter to the mode in use on the moment of session - request. - - Setting the powered or discoverable properties - changes adapter's mode persistently, such that session - release will not modify it. - - Possible Errors: org.bluez.Error.DoesNotExist - - void StartDiscovery() +Methods void StartDiscovery() This method starts the device discovery session. This includes an inquiry procedure and remote device name
src/adapter.c +0 -134
164 lines not on this page · raw message
Signature · 1 line
1.7.11.7
Luiz Augusto von Dentz
maintainerPATCH 2/2 core: Remove ConfirmModeChange method
From: Luiz Augusto von Dentz <[email protected]>
This method was only used by RequestSession which is now removed.
--- doc/agent-api.txt | 9 --------- src/agent.c | 55 ------------------------------------------------------- src/agent.h | 4 ---- 3 files changed, 68 deletions(-)
doc/agent-api.txt +0 -9
@@ -119,15 +119,6 @@ Methods void Release() Possible errors: org.bluez.Error.Rejected org.bluez.Error.Canceled - void ConfirmModeChange(string mode) - - This method gets called if a mode change is requested - that needs to be confirmed by the user. An example - would be leaving flight mode. - - Possible errors: org.bluez.Error.Rejected - org.bluez.Error.Canceled - void Cancel() This method gets called to indicate that the agent
src/agent.c +0 -55
61 lines not on this page · raw message
src/agent.h +0 -4
@@ -49,10 +49,6 @@ int agent_request_pincode(struct agent *agent, struct btd_device *device, agent_pincode_cb cb, gboolean secure, void *user_data, GDestroyNotify destroy); -int agent_confirm_mode_change (struct agent *agent,const char *new_mode, -agent_cb cb,void *user_data, -GDestroyNotify destroy); -int agent_request_passkey (struct agent *agent,struct btd_device *device,agent_passkey_cb cb,void *user_data,GDestroyNotify destroy);
Signature · 1 line
1.7.11.7
Hi Luiz,
Quoted 6 lines · Luiz Augusto von Dentz
Sessions is no longer used by obexd and the concept is probably not relevant anymore since BlueZ 5 don't remember powered state anymore.
--- doc/adapter-api.txt | 26 +--------- src/adapter.c | 134 ---------------------------------------------------- 2 files changed, 1 insertion(+), 159 deletions(-)
Both patches have been applied. Thanks.
Johan