static const char *mesh_conf_fname;
static enum mesh_io_type io_type;
static void *io_opts;
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+bool use_raw = false;
+#endif
static const struct option main_options[] = {
{ "io", required_argument, NULL, 'i' },
{ "nodetach", no_argument, NULL, 'n' },
{ "debug", no_argument, NULL, 'd' },
{ "dbus-debug", no_argument, NULL, 'b' },
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+ { "use_raw", no_argument, NULL, 'r' },
+#endif
{ "help", no_argument, NULL, 'h' },
{ }
};
static bool parse_io(const char *optarg, enum mesh_io_type *type, void **opts)
{
if (strstr(optarg, "generic") == optarg) {
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+ struct mesh_io_opts *m_io_opts = l_new(struct mesh_io_opts, 1);
+ int *index = &(m_io_opts->index);
+ m_io_opts->use_raw = use_raw;
+ *opts = m_io_opts;
+#else
int *index = l_new(int, 1);
-
- *type = MESH_IO_TYPE_GENERIC;
*opts = index;
+#endif
+ *type = MESH_IO_TYPE_GENERIC;
optarg += strlen("generic");
if (!*optarg) {
for (;;) {
int opt;
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+ opt = getopt_long(argc, argv, "i:c:f:ndbhr", main_options, NULL);
+#else
opt = getopt_long(argc, argv, "i:c:f:ndbh", main_options, NULL);
+#endif
if (opt < 0)
break;
case 'b':
dbus_debug = true;
break;
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+ case 'r':
+ use_raw = true;
+ break;
+#endif
case 'h':
usage();
status = EXIT_SUCCESS;