char *always;
char *db;
char *module;
+ char *input;
} path;
int max_size_type;
#define READER_PATH g_conf.path.reader
#define ALWAYS_PATH g_conf.path.always
#define MODULE_PATH g_conf.path.module
+#define INPUT_PATH g_conf.path.input
#define REPLACE_TAG_APPID g_conf.replace_tag
#define SLAVE_TTL g_conf.slave_ttl
.conf = "/opt/usr/live/%s/etc/%s.conf",
.script = "/opt/usr/live/%s/res/script/%s.edj",
.module = "/opt/usr/live/%s/libexec/liblive-%s.so",
+ .input = "/dev/input/event1",
},
.ping_time = 240.0f,
DbgPrint("Shared folder: %s\n", g_conf.path.image);
}
+static void input_path_handler(char *buffer)
+{
+ g_conf.path.input = strdup(buffer);
+ if (!g_conf.path.input)
+ ErrPrint("Heap: %s\n", strerror(errno));
+ DbgPrint("Input path: %s\n", g_conf.path.input);
+}
+
static void ping_time_handler(char *buffer)
{
if (sscanf(buffer, "%lf", &g_conf.ping_time) != 1)
.handler = com_core_thread_handler,
},
{
+ .name = "input",
+ .handler = input_path_handler,
+ },
+ {
.name = NULL,
.handler = NULL,
},