diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2005-04-05 15:20:10 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2005-04-05 15:20:10 +0000 |
commit | b0f097c96eed5c5227973a48d8ad30bb5c18703e (patch) | |
tree | 5d7e7f77261d66645ec819926160de32a9f0e9ce | |
parent | 44b78feaa5e08e10d3d61404cc8ce8de416f70c3 (diff) |
Add support for browsing the L2CAP group
-rw-r--r-- | tools/sdptool.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/sdptool.c b/tools/sdptool.c index 962c9ce9..980778ea 100644 --- a/tools/sdptool.c +++ b/tools/sdptool.c @@ -2096,12 +2096,13 @@ static int do_search(bdaddr_t *bdaddr, struct search_context *context) static struct option browse_options[] = { { "help", 0,0, 'h' }, { "tree", 0,0, 't' }, + { "l2cap", 0,0, 'l' }, { 0, 0, 0, 0 } }; static char *browse_help = "Usage:\n" - "\tbrowse [--tree] [bdaddr]\n"; + "\tbrowse [--tree] [--l2cap] [bdaddr]\n"; /* * Browse the full SDP database (i.e. list all services starting from the @@ -2115,13 +2116,16 @@ static int cmd_browse(int argc, char **argv) /* Initialise context */ memset(&context, '\0', sizeof(struct search_context)); /* We want to browse the top-level/root */ - sdp_uuid16_create(&(context.group), PUBLIC_BROWSE_GROUP); + sdp_uuid16_create(&context.group, PUBLIC_BROWSE_GROUP); for_each_opt(opt, browse_options, 0) { switch(opt) { case 't': context.tree = 1; break; + case 'l': + sdp_uuid16_create(&context.group, L2CAP_UUID); + break; default: printf(browse_help); return -1; |