summaryrefslogtreecommitdiffstats
path: root/hcid/parser.y
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-04-18 21:14:39 +0000
committerMarcel Holtmann <marcel@holtmann.org>2005-04-18 21:14:39 +0000
commit959b1e8c1d5ad023e1b3c8157a844c61df44a0a1 (patch)
tree3eeee7a4c3ea67db38ad5680a3716ee314c70215 /hcid/parser.y
parentbb30c261fcdb833bf5cac02f671822bbe443ff27 (diff)
Add support for setting the inquiry mode
Diffstat (limited to 'hcid/parser.y')
-rw-r--r--hcid/parser.y6
1 files changed, 5 insertions, 1 deletions
diff --git a/hcid/parser.y b/hcid/parser.y
index 136a8571..3534fb2b 100644
--- a/hcid/parser.y
+++ b/hcid/parser.y
@@ -64,7 +64,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_PTYPE K_NAME K_CLASS K_INQMODE K_LM K_LP K_AUTH K_ENCRYPT K_ISCAN K_PSCAN
%token K_PINHELP K_DBUSPINHELP
%token K_YES K_NO
@@ -190,6 +190,10 @@ device_opt:
parser_device->class = $2;
}
+ | K_INQMODE NUM {
+ parser_device->inqmode = $2;
+ }
+
| K_AUTH bool {
parser_device->auth = $2;
}