diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2004-02-17 18:04:03 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2004-02-17 18:04:03 +0000 |
commit | f17bb94f47090f3397b60b5e264aa9f18dbf203d (patch) | |
tree | cd475c5e55def20433d0ac0e83a0410e0606da91 /hcid/parser.y | |
parent | 5903cfe8fdfa5df4a0ce737219385d16da85e279 (diff) |
Add D-Bus support for PIN request
Diffstat (limited to 'hcid/parser.y')
-rw-r--r-- | hcid/parser.y | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/hcid/parser.y b/hcid/parser.y index e14ca200..1848bd04 100644 --- a/hcid/parser.y +++ b/hcid/parser.y @@ -58,7 +58,7 @@ int yyerror(char *s); %token K_OPTIONS K_DEVICE %token K_AUTOINIT K_SECURITY K_PAIRING %token K_PTYPE K_NAME K_CLASS K_LM K_LP K_AUTH K_ENCRYPT K_ISCAN K_PSCAN -%token K_PINHELP +%token K_PINHELP K_DBUSPINHELP %token K_YES K_NO %token <str> WORD PATH STRING LIST HCI BDADDR @@ -112,10 +112,18 @@ hcid_opt: hcid.pairing = $2; } - | K_PINHELP PATH { + | K_PINHELP PATH { if (hcid.pin_helper) free(hcid.pin_helper); hcid.pin_helper = strdup($2); + hcid.dbus_pin_helper = 0; + } + + | K_DBUSPINHELP { + if (hcid.pin_helper) + free(hcid.pin_helper); + hcid.pin_helper = NULL; + hcid.dbus_pin_helper = 1; } | WORD { |