--- test/simple-agent | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/test/simple-agent b/test/simple-agent index f2cc3dd..43f03fe 100755 --- a/test/simple-agent +++ b/test/simple-agent @@ -69,6 +69,16 @@ class Agent(dbus.service.Object): raise Rejected("Mode change by user") @dbus.service.method("org.bluez.Agent", + in_signature="o", out_signature="") + + def RequestApproval(self, device): + print "RequestApproval (%s)" % (device) + approve = raw_input("Approve pairing (yes/no): ") + if (approve == "yes"): + return + raise Rejected("Not approved") + + @dbus.service.method("org.bluez.Agent", in_signature="", out_signature="") def Cancel(self): print "Cancel" -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html