"\t-S, --sco Dump SCO traffic\n"
"\t-A, --a2dp Dump A2DP stream traffic\n"
"\t-E, --ellisys [ip] Send Ellisys HCI Injection\n"
+ "\t-P, --no-pager Disable pager usage\n"
#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
"\t-C, --count <num> Save traces by <num> rotation\n"
"\t-W, --size <num> Save traces at most <num> size\n"
}
static const struct option main_options[] = {
- { "tty", required_argument, NULL, 'd' },
+ { "tty", required_argument, NULL, 'd' },
{ "tty-speed", required_argument, NULL, 'B' },
- { "read", required_argument, NULL, 'r' },
- { "write", required_argument, NULL, 'w' },
- { "analyze", required_argument, NULL, 'a' },
- { "server", required_argument, NULL, 's' },
- { "priority",required_argument, NULL, 'p' },
- { "index", required_argument, NULL, 'i' },
- { "time", no_argument, NULL, 't' },
- { "date", no_argument, NULL, 'T' },
- { "sco", no_argument, NULL, 'S' },
- { "a2dp", no_argument, NULL, 'A' },
- { "ellisys", required_argument, NULL, 'E' },
+ { "read", required_argument, NULL, 'r' },
+ { "write", required_argument, NULL, 'w' },
+ { "analyze", required_argument, NULL, 'a' },
+ { "server", required_argument, NULL, 's' },
+ { "priority", required_argument, NULL, 'p' },
+ { "index", required_argument, NULL, 'i' },
+ { "time", no_argument, NULL, 't' },
+ { "date", no_argument, NULL, 'T' },
+ { "sco", no_argument, NULL, 'S' },
+ { "a2dp", no_argument, NULL, 'A' },
+ { "ellisys", required_argument, NULL, 'E' },
#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
{ "count", required_argument, NULL, 'C' },
{ "size", required_argument, NULL, 'W' },
#endif
- { "todo", no_argument, NULL, '#' },
- { "version", no_argument, NULL, 'v' },
- { "help", no_argument, NULL, 'h' },
+ { "no-pager", no_argument, NULL, 'P' },
+ { "todo", no_argument, NULL, '#' },
+ { "version", no_argument, NULL, 'v' },
+ { "help", no_argument, NULL, 'h' },
{ }
};
int main(int argc, char *argv[])
{
unsigned long filter_mask = 0;
+ bool use_pager = true;
const char *reader_path = NULL;
const char *writer_path = NULL;
const char *analyze_path = NULL;
opt = getopt_long(argc, argv, "d:r:w:a:s:p:i:tTSE:C:W:vh",
main_options, NULL);
#else
- opt = getopt_long(argc, argv, "d:r:w:a:s:p:i:tTSAE:vh",
- main_options, NULL);
+ opt = getopt_long(argc, argv, "d:r:w:a:s:p:i:tTSAEP:vh",
+ main_options, NULL);
#endif
if (opt < 0)
break;
ellisys_server = optarg;
ellisys_port = 24352;
break;
+ case 'P':
+ use_pager = false;
+ break;
#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
case 'C':
rotate_count = atoi(optarg);
if (ellisys_server)
ellisys_enable(ellisys_server, ellisys_port);
- control_reader(reader_path);
+ control_reader(reader_path, use_pager);
return EXIT_SUCCESS;
}