msg_error_t msg_launch_app(const char *app_id, bundle *bundle_data)
{
- msg_launch_app_data *data = (msg_launch_app_data *)calloc(1, sizeof(msg_launch_app_data));
- if (data == NULL) {
- MSG_ERR("Memory alloc failed!");
- return MSG_ERR_MEMORY_ERROR;
- }
-
- data->app_id = g_strdup(app_id);
- data->bundle_data = bundle_dup(bundle_data);
pthread_t thd;
pthread_attr_t attr;
return MSG_ERR_UNKNOWN;
}
+ msg_launch_app_data *data = (msg_launch_app_data *)calloc(1, sizeof(msg_launch_app_data));
+ if (data == NULL) {
+ MSG_ERR("Memory alloc failed!");
+ return MSG_ERR_MEMORY_ERROR;
+ }
+
+ data->app_id = g_strdup(app_id);
+ data->bundle_data = bundle_dup(bundle_data);
+
if (pthread_create(&thd, &attr, &_msg_launch_app, data) < 0) {
MSG_ERR("pthread_create() error");
}