pthread_mutex_unlock(&lib_maps_message_mutex);
}
-static void generate_target_bins(struct user_space_inst_t *us_inst)
+static void generate_target_bins(struct user_space_inst_t *us_inst,
+ enum AppMessageType type)
{
lock_lib_maps_message();
LOGE("Can't allocate memory for lib_maps_message\n");
goto unlock_lib_maps_msg;
}
- lib_maps_message->type = APP_MSG_TARGET_BINS;
+ lib_maps_message->type = type;
lib_maps_message->length = total_len;
/* pack data */
if (write_procs(us_inst))
LOGE("Error adding binaries\n");
- generate_target_bins(us_inst);
+ generate_target_bins(us_inst, APP_MSG_TARGET_BINS_ADD);
if (!add_preload_probes(&us_inst->lib_inst_list)) {
LOGE("cannot add preload probe\n");
if (write_procs(us_inst))
LOGE("Error adding binaries\n");
- generate_target_bins(us_inst);
+ generate_target_bins(us_inst, APP_MSG_TARGET_BINS_ADD);
send_target_bins_to_all_targets();
msg_swap_inst_add_exit:
if (write_procs(us_inst))
LOGE("Error adding binaries\n");
- generate_target_bins(us_inst);
+ generate_target_bins(us_inst, APP_MSG_TARGET_BINS_REMOVE);
send_target_bins_to_all_targets();
msg_swap_inst_remove_exit:
PRINTMSG("APP_MSG_CONFIG");
_configure(data_buf);
recved |= MSG_CONFIG_RECV;
- } else if (log.type == APP_MSG_TARGET_BINS) {
- PRINTMSG("APP_MSG_TARGET_BINS <%u>",
+ } else if (log.type == APP_MSG_TARGET_BINS_ADD) {
+ PRINTMSG("APP_MSG_TARGET_BINS_ADD <%u>",
*((const uint32_t *)data_buf));
/* do nothing */
recved |= MSG_TARGET_BINS_RECV;
PRINTMSG("APP_MSG_STOP_WITHOUT_KILL");
do_finit();
break;
- } else if(log.type == APP_MSG_TARGET_BINS) {
- PRINTMSG("APP_MSG_TARGET_BINS");
+ } else if (log.type == APP_MSG_TARGET_BINS_ADD) {
+ PRINTMSG("APP_MSG_TARGET_BINS_ADD");
+ } else if (log.type == APP_MSG_TARGET_BINS_REMOVE) {
+ PRINTMSG("APP_MSG_TARGET_BINS_REMOVE");
} else if(log.type == APP_MSG_GET_UI_HIERARCHY) {
enum ErrorCode err_code = ERR_UNKNOWN;
Eina_Bool rendering;