Signed-off-by: Jinhyung Choi <jinhyung2.choi@samsung.com>
Conflicts:
tizen/src/ecs/ecs_msg_injector.c
Change-Id: I798f31c1c72ad9f1317b255c196c24d186634473
return NULL;
}
+bool is_ecs_running(void) {
+ if (current_ecs != NULL) {
+ return current_ecs->ecs_running;
+ }
+
+ return false;
+}
+
static int stop_ecs(void) {
void *ret = NULL;
}nfc_msg_info;
int start_ecs(void);
+bool is_ecs_running(void);
ECS_Client *find_client(unsigned char id, unsigned char type);
bool handle_protobuf_msg(ECS_Client* cli, char* data, const int len);
const char* ijdata = (data + catsize + 2 + 1 + 1);
+ if (!is_ecs_running()) {
+ LOG_SEVERE("ECS is not running.\n");
+ return false;
+ }
+
if (injector_req_handle(cat, action, ijdata)) {
return true;
}