e_info: load protocol rules from rule file(E_INFO_RULE_FILE) in e_info_server_init() 50/71350/5
authorDuna Oh <duna.oh@samsung.com>
Wed, 25 May 2016 06:29:33 +0000 (15:29 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Mon, 30 May 2016 04:42:25 +0000 (21:42 -0700)
Rules in rule file should be written in below format
allow "iface=wl_pointer and type=event"
allow "iface=wl_touch and msg=down"
...
cf) enlightenment_info -protocol_rule add allow "iface=wl_pointer and type=event"

Signed-off-by: Duna Oh <duna.oh@samsung.com>
Change-Id: Ibdbae9223d805d646159646e40382dded303a3e1

src/bin/e_info_server.c

index 86291f7078099bc9f4b49841bdc86f06b410d74e..5e23148f5ca72511911fb133bcfef0971e49e124 100644 (file)
@@ -1348,7 +1348,8 @@ e_info_server_protocol_rule_path_init(char *rule_path)
 
     e_info_protocol_rule_set(argc, (const char**)&(argv[0]), reply, &len);
 
-    INF("%s: rule_path : %s\n", __func__, reply);
+    INF("%s: rule_path : %s\n", __func__, rule_path);
+    INF("%s\n", reply);
 
     return EINA_TRUE;
 }
@@ -1369,6 +1370,7 @@ e_info_server_init(void)
    E_EVENT_INFO_ROTATION_MESSAGE = ecore_event_type_new();
 
    e_info_protocol_init();
+   e_info_server_protocol_rule_path_init(getenv("E_INFO_RULE_FILE"));
 
    return 1;