14 #include "emotion_private.h"
15 #include "emotion_generic.h"
17 static Eina_Prefix *pfx = NULL;
19 static int _emotion_generic_log_domain = -1;
20 #define DBG(...) EINA_LOG_DOM_DBG(_emotion_generic_log_domain, __VA_ARGS__)
21 #define INF(...) EINA_LOG_DOM_INFO(_emotion_generic_log_domain, __VA_ARGS__)
22 #define WRN(...) EINA_LOG_DOM_WARN(_emotion_generic_log_domain, __VA_ARGS__)
23 #define ERR(...) EINA_LOG_DOM_ERR(_emotion_generic_log_domain, __VA_ARGS__)
24 #define CRITICAL(...) EINA_LOG_DOM_CRIT(_emotion_generic_log_domain, __VA_ARGS__)
27 struct _default_players {
32 static struct _default_players players[] = {
33 #ifdef EMOTION_BUILD_VLC
34 { "vlc", "em_generic_vlc" },
40 _get_player(const char *name)
42 const char *selected_name = NULL;
43 const char *libdir = eina_prefix_lib_get(pfx);
44 static char buf[PATH_MAX];
49 for (i = 0; players[i].name; i++)
51 if (!strcmp(players[i].name, name))
53 selected_name = players[i].cmdline;
59 if ((!selected_name) && (name))
66 if (selected_name[0] == '/') cmd = selected_name;
69 snprintf(buf, sizeof(buf), "%s/emotion/utils/%s",
70 libdir, selected_name);
74 DBG("Try generic player '%s'", cmd);
75 if (access(cmd, R_OK | X_OK) == 0)
77 INF("Using generic player '%s'", cmd);
82 for (i = 0; players[i].name; i++)
84 snprintf(buf, sizeof(buf), "%s/emotion/utils/%s",
85 libdir, players[i].cmdline);
86 DBG("Try generic player '%s'", buf);
87 if (access(buf, R_OK | X_OK) == 0)
89 INF("Using fallback player '%s'", buf);
94 ERR("no generic player found, given name='%s'", name ? name : "");
99 _player_send_cmd(Emotion_Generic_Video *ev, int cmd)
101 if (cmd >= EM_CMD_LAST)
103 ERR("invalid command to player.");
106 ecore_exe_send(ev->player.exe, &cmd, sizeof(cmd));
110 _player_send_int(Emotion_Generic_Video *ev, int number)
112 ecore_exe_send(ev->player.exe, &number, sizeof(number));
116 _player_send_float(Emotion_Generic_Video *ev, float number)
118 ecore_exe_send(ev->player.exe, &number, sizeof(number));
122 _player_send_str(Emotion_Generic_Video *ev, const char *str, Eina_Bool stringshared)
127 len = eina_stringshare_strlen(str) + 1;
129 len = strlen(str) + 1;
130 ecore_exe_send(ev->player.exe, &len, sizeof(len));
131 ecore_exe_send(ev->player.exe, str, len);
135 _create_shm_data(Emotion_Generic_Video *ev, const char *shmname)
140 Emotion_Generic_Video_Shared *vs;
142 shmfd = shm_open(shmname, O_CREAT | O_RDWR | O_TRUNC, 0777);
143 size = 3 * (ev->w * ev->h * DEFAULTPITCH) + sizeof(*vs);
145 npages = (int)(size / getpagesize()) + 1;
146 size = npages * getpagesize();
147 char *buf = malloc(size);
149 if (ftruncate(shmfd, size))
151 ERR("error when allocating shared memory (size = %zd): "
152 "%s", size, strerror(errno));
155 vs = mmap(NULL, size, PROT_READ|PROT_WRITE, MAP_SHARED, shmfd, 0);
156 if (vs == MAP_FAILED)
158 ERR("error when mapping shared memory.\n");
162 memcmp(vs, buf, size);
167 vs->pitch = DEFAULTPITCH;
168 vs->frame.emotion = 0;
169 vs->frame.player = 1;
172 sem_init(&vs->lock, 1, 1);
173 ev->frame.frames[0] = (unsigned char *)vs + sizeof(*vs);
174 ev->frame.frames[1] = (unsigned char *)vs + sizeof(*vs) + vs->height * vs->width * vs->pitch;
175 ev->frame.frames[2] = (unsigned char *)vs + sizeof(*vs) + 2 * vs->height * vs->width * vs->pitch;
178 munmap(ev->shared, ev->shared->size);
185 _player_new_frame(Emotion_Generic_Video *ev)
188 _emotion_frame_new(ev->obj);
192 _player_file_set_done(Emotion_Generic_Video *ev)
194 if (!_create_shm_data(ev, ev->shmname))
196 ERR("could not create shared memory.");
199 _player_send_cmd(ev, EM_CMD_FILE_SET_DONE);
203 _file_open(Emotion_Generic_Video *ev)
205 INF("Opening file: %s", ev->filename);
206 ev->w = DEFAULTWIDTH;
207 ev->h = DEFAULTHEIGHT;
208 ev->ratio = (double)DEFAULTWIDTH / DEFAULTHEIGHT;
215 _player_send_cmd(ev, EM_CMD_FILE_SET);
216 _player_send_str(ev, ev->filename, EINA_TRUE);
220 _player_ready(Emotion_Generic_Video *ev)
222 INF("received: player ready.");
224 ev->initializing = EINA_FALSE;
225 ev->ready = EINA_TRUE;
233 #define RCV_CMD_PARAM(src, param) \
234 memcpy(&(param), (src), sizeof((param))); \
235 (src) = (char *)(src) + sizeof((param));
237 #define RCV_CMD_STR(src, buf, len) \
238 RCV_CMD_PARAM((src), (len)); \
239 memcpy((buf), (src), (len)); \
240 (src) = (char *)(src) + len;
243 _player_int_read(Emotion_Generic_Video *ev, void **data)
246 memcpy(&number, *data, sizeof(number));
247 *data = (char *)(*data) + sizeof(number);
253 _player_frame_resize(Emotion_Generic_Video *ev, void *line)
256 RCV_CMD_PARAM(line, w);
257 RCV_CMD_PARAM(line, h);
259 INF("received frame resize: %dx%d", w, h);
262 ev->ratio = (float)w / h;
267 _emotion_frame_resize(ev->obj, ev->w, ev->h, ev->ratio);
271 _player_length_changed(Emotion_Generic_Video *ev, void *line)
274 RCV_CMD_PARAM(line, length);
276 INF("received length changed: %0.3f", length);
279 _emotion_video_pos_update(ev->obj, ev->pos, ev->len);
283 _player_position_changed(Emotion_Generic_Video *ev, void *line)
286 RCV_CMD_PARAM(line, position);
288 INF("received position changed: %0.3f", position);
291 _emotion_video_pos_update(ev->obj, ev->pos, ev->len);
296 float progress = ev->pos / ev->len;
298 snprintf(buf, sizeof(buf), "%0.1f%%", progress * 100);
300 _emotion_progress_set(ev->obj, buf, progress);
304 _player_seekable_changed(Emotion_Generic_Video *ev, void *line)
307 RCV_CMD_PARAM(line, seekable);
309 INF("received seekable changed: %d", seekable);
311 seekable = !!seekable;
313 ev->seekable = seekable;
317 _player_volume(Emotion_Generic_Video *ev, void *line)
320 RCV_CMD_PARAM(line, vol);
322 INF("received volume: %0.3f", vol);
326 if (vol != oldvol && !ev->opening)
327 _emotion_audio_level_change(ev->obj);
331 _player_audio_mute(Emotion_Generic_Video *ev, void *line)
334 RCV_CMD_PARAM(line, mute);
336 INF("received audio mute: %d", mute);
338 ev->audio_mute = !!mute;
342 _audio_channels_free(Emotion_Generic_Video *ev)
345 for (i = 0; i < ev->audio_channels_count; i++)
346 eina_stringshare_del(ev->audio_channels[i].name);
347 free(ev->audio_channels);
348 ev->audio_channels_count = 0;
352 _player_audio_tracks_info(Emotion_Generic_Video *ev, void *line)
354 int track_current, tracks_count;
357 if (ev->audio_channels_count)
358 _audio_channels_free(ev);
360 RCV_CMD_PARAM(line, track_current);
361 RCV_CMD_PARAM(line, tracks_count);
362 INF("video with %d audio tracks (current = %d):", tracks_count, track_current);
363 ev->audio_channels = calloc(
364 tracks_count, sizeof(Emotion_Generic_Audio_Channel));
365 ev->audio_channels_count = tracks_count;
366 ev->audio_channel_current = track_current;
367 for (i = 0; i < tracks_count; i++)
371 RCV_CMD_PARAM(line, tid);
372 RCV_CMD_STR(line, buf, len);
373 ev->audio_channels[i].id = tid;
374 ev->audio_channels[i].name = eina_stringshare_add_length(buf, len);
375 INF("\t%d: %s", tid, buf);
380 _player_file_closed(Emotion_Generic_Video *ev)
382 INF("Closed previous file.");
383 sem_destroy(&ev->shared->lock);
385 ev->closing = EINA_FALSE;
392 _player_open_done(Emotion_Generic_Video *ev)
394 ev->opening = EINA_FALSE;
395 shm_unlink(ev->shmname);
396 _emotion_open_done(ev->obj);
400 _player_send_cmd(ev, EM_CMD_PLAY);
401 _player_send_float(ev, ev->pos);
408 _player_read_cmd(Emotion_Generic_Video *ev, void *line, int size)
411 RCV_CMD_PARAM(line, type);
417 case EM_RESULT_FRAME_NEW:
418 _player_new_frame(ev);
420 case EM_RESULT_FILE_SET:
421 _player_file_set_done(ev);
423 case EM_RESULT_FILE_SET_DONE:
424 _player_open_done(ev);
426 case EM_RESULT_FILE_CLOSE:
427 _player_file_closed(ev);
429 case EM_RESULT_PLAYBACK_STOPPED:
430 _emotion_playback_finished(ev->obj);
432 case EM_RESULT_FRAME_SIZE:
433 _player_frame_resize(ev, line);
435 case EM_RESULT_LENGTH_CHANGED:
436 _player_length_changed(ev, line);
438 case EM_RESULT_POSITION_CHANGED:
439 _player_position_changed(ev, line);
441 case EM_RESULT_SEEKABLE_CHANGED:
442 _player_seekable_changed(ev, line);
444 case EM_RESULT_AUDIO_TRACK_INFO:
445 _player_audio_tracks_info(ev, line);
448 WRN("received wrong command: %d", type);
455 _player_data_cb(void *data, int type __UNUSED__, void *event)
457 Ecore_Exe_Event_Data *ev = event;
458 Emotion_Generic_Video *evideo = data;
463 if (ev->exe != evideo->player.exe)
465 ERR("slave != ev->exe");
466 return ECORE_CALLBACK_DONE;
471 ERR("invalid command: missing bytes.");
472 return ECORE_CALLBACK_DONE;
475 for (i = 0; ev->lines[i].line; i++)
476 _player_read_cmd(evideo, ev->lines[i].line, ev->lines[i].size);
478 return ECORE_CALLBACK_DONE;
482 _player_add_cb(void *data, int type __UNUSED__, void *event)
484 Ecore_Exe_Event_Add *event_add = event;
485 Ecore_Exe *player = event_add->exe;
486 Emotion_Generic_Video *ev = data;
488 if (ev->player.exe != player)
490 ERR("ev->player != player.");
491 return ECORE_CALLBACK_DONE;
494 _player_send_cmd(ev, EM_CMD_INIT);
495 _player_send_str(ev, ev->shmname, EINA_TRUE);
497 return ECORE_CALLBACK_DONE;
501 _player_del_cb(void *data, int type __UNUSED__, void *event)
503 Ecore_Exe_Event_Del *event_del = event;
504 Ecore_Exe *player = event_del->exe;
505 Emotion_Generic_Video *ev = data;
508 ev->player.exe = NULL;
509 ev->ready = EINA_FALSE;
510 _emotion_decode_stop(ev->obj);
512 return ECORE_CALLBACK_DONE;
516 _fork_and_exec(Evas_Object *obj, Emotion_Generic_Video *ev)
521 gettimeofday(&tv, NULL);
522 snprintf(shmname, sizeof(shmname), "/em-generic-shm_%d_%d",
523 (int)tv.tv_sec, (int)tv.tv_usec);
525 ev->shmname = eina_stringshare_add(shmname);
527 ev->player_add = ecore_event_handler_add(
528 ECORE_EXE_EVENT_ADD, _player_add_cb, ev);
529 ev->player_del = ecore_event_handler_add(
530 ECORE_EXE_EVENT_DEL, _player_del_cb, ev);
531 ev->player_data = ecore_event_handler_add(
532 ECORE_EXE_EVENT_DATA, _player_data_cb, ev);
534 ev->player.exe = ecore_exe_pipe_run(
536 ECORE_EXE_PIPE_READ | ECORE_EXE_PIPE_WRITE |
537 ECORE_EXE_PIPE_READ_LINE_BUFFERED | ECORE_EXE_NOT_LEADER,
542 ERR("could not start player.");
546 ev->initializing = EINA_TRUE;
552 em_init(Evas_Object *obj, void **emotion_video, Emotion_Module_Options *opt)
554 Emotion_Generic_Video *ev;
557 if (!emotion_video) return 0;
558 player = _get_player(opt ? opt->player : NULL);
559 if (!player) return 0;
561 ev = (Emotion_Generic_Video *)calloc(1, sizeof(*ev));
566 ev->audio_mute = EINA_FALSE;
569 ev->cmdline = eina_stringshare_add(player);
572 return _fork_and_exec(obj, ev);
576 em_shutdown(void *data)
578 Emotion_Generic_Video *ev = data;
584 ecore_exe_terminate(ev->player.exe);
585 ecore_exe_free(ev->player.exe);
586 ev->player.exe = NULL;
590 munmap(ev->shared, ev->shared->size);
592 _audio_channels_free(ev);
594 eina_stringshare_del(ev->cmdline);
595 eina_stringshare_del(ev->shmname);
597 ecore_event_handler_del(ev->player_add);
598 ecore_event_handler_del(ev->player_data);
599 ecore_event_handler_del(ev->player_del);
605 em_file_open(const char *file, Evas_Object *obj, void *data)
607 Emotion_Generic_Video *ev = data;
608 INF("file set: %s", file);
612 ev->opening = EINA_TRUE;
614 eina_stringshare_replace(&ev->filename, file);
623 em_file_close(void *data)
625 Emotion_Generic_Video *ev = data;
628 INF("file close: %s", ev->filename);
633 _player_send_cmd(ev, EM_CMD_FILE_CLOSE);
634 ev->closing = EINA_TRUE;
637 static Emotion_Format
638 em_format_get(void *ef)
640 return EMOTION_FORMAT_BGRA;
644 em_video_data_size_get(void *data, int *w, int *h)
646 Emotion_Generic_Video *ev = data;
654 em_play(void *data, double pos)
656 Emotion_Generic_Video *ev = data;
661 ev->play = EINA_TRUE;
662 INF("play: %0.3f", pos);
664 if (ev->initializing || ev->opening)
669 _player_send_cmd(ev, EM_CMD_PLAY);
670 _player_send_float(ev, ev->pos);
674 ev->player.exe = ecore_exe_pipe_run(
676 ECORE_EXE_PIPE_READ | ECORE_EXE_PIPE_WRITE |
677 ECORE_EXE_PIPE_READ_LINE_BUFFERED | ECORE_EXE_NOT_LEADER,
681 ERR("could not start player.");
687 Emotion_Generic_Video *ev = data;
692 ev->play = EINA_FALSE;
697 _player_send_cmd(ev, EM_CMD_STOP);
698 _emotion_decode_stop(ev->obj);
702 em_size_get(void *data, int *w, int *h)
704 Emotion_Generic_Video *ev = data;
710 em_pos_set(void *data, double pos)
712 Emotion_Generic_Video *ev = data;
713 float position = pos;
714 _player_send_cmd(ev, EM_CMD_POSITION_SET);
715 _player_send_float(ev, position);
716 _emotion_seek_done(ev->obj);
720 em_len_get(void *data)
722 Emotion_Generic_Video *ev = data;
727 em_fps_num_get(void *data)
729 Emotion_Generic_Video *ev = data;
730 return (int)(ev->fps * 1000.0);
734 em_fps_den_get(void *ef)
740 em_fps_get(void *data)
742 Emotion_Generic_Video *ev = data;
747 em_pos_get(void *data)
749 Emotion_Generic_Video *ev = data;
754 em_vis_set(void *ef, Emotion_Vis vis)
759 em_vis_get(void *data)
761 Emotion_Generic_Video *ev = data;
766 em_vis_supported(void *ef, Emotion_Vis vis)
772 em_ratio_get(void *data)
774 Emotion_Generic_Video *ev = data;
778 static int em_video_handled(void *ef)
780 fprintf(stderr, "video handled!\n");
784 static int em_audio_handled(void *ef)
786 fprintf(stderr, "audio handled!\n");
790 static int em_seekable(void *data)
792 Emotion_Generic_Video *ev = data;
796 static void em_frame_done(void *ef)
801 em_yuv_rows_get(void *data, int w, int h, unsigned char **yrows, unsigned char **urows, unsigned char **vrows)
803 Emotion_Generic_Video *ev;
804 volatile Emotion_Generic_Video_Shared *vs;
809 em_bgra_data_get(void *data, unsigned char **bgra_data)
811 Emotion_Generic_Video *ev = data;
813 if (!ev || ev->opening || ev->closing)
817 sem_wait(&ev->shared->lock);
819 // send current frame to emotion
820 if (ev->shared->frame.emotion != ev->shared->frame.last)
822 ev->shared->frame.next = ev->shared->frame.emotion;
823 ev->shared->frame.emotion = ev->shared->frame.last;
825 *bgra_data = ev->frame.frames[ev->shared->frame.emotion];
828 sem_post(&ev->shared->lock);
835 em_event_feed(void *ef, int event)
840 em_event_mouse_button_feed(void *ef, int button, int x, int y)
845 em_event_mouse_move_feed(void *ef, int x, int y)
850 em_video_channel_count(void *ef)
857 em_video_channel_set(void *ef, int channel)
862 em_video_channel_get(void *ef)
868 em_video_channel_name_get(void *ef, int channel)
874 em_video_channel_mute_set(void *ef, int mute)
879 em_video_channel_mute_get(void *data)
881 Emotion_Generic_Video *ev = data;
882 return ev->video_mute;
886 em_audio_channel_count(void *data)
888 Emotion_Generic_Video *ev = data;
889 return ev->audio_channels_count;
893 em_audio_channel_set(void *data, int channel)
895 Emotion_Generic_Video *ev = data;
898 for (i = 0; i < ev->audio_channels_count; i++)
900 if (ev->audio_channels[i].id == channel)
902 _player_send_cmd(ev, EM_CMD_AUDIO_TRACK_SET);
903 _player_send_int(ev, channel);
910 em_audio_channel_get(void *data)
912 Emotion_Generic_Video *ev = data;
913 return ev->audio_channel_current;
917 em_audio_channel_name_get(void *data, int channel)
919 Emotion_Generic_Video *ev = data;
922 for (i = 0; i < ev->audio_channels_count; i++)
924 if (ev->audio_channels[i].id == channel)
925 return ev->audio_channels[i].name;
932 em_audio_channel_mute_set(void *data, int mute)
934 Emotion_Generic_Video *ev = data;
935 _player_send_cmd(ev, EM_CMD_AUDIO_MUTE_SET);
936 _player_send_int(ev, mute);
937 ev->audio_mute = !!mute;
941 em_audio_channel_mute_get(void *data)
943 Emotion_Generic_Video *ev = data;
944 return ev->audio_mute;
948 em_audio_channel_volume_set(void *data, double vol)
950 Emotion_Generic_Video *ev = data;
953 if (vol > 1.0) vol = 1.0;
954 if (vol < 0.0) vol = 0.0;
957 _player_send_cmd(ev, EM_CMD_VOLUME_SET);
958 _player_send_float(ev, fvol);
964 em_audio_channel_volume_get(void *data)
966 Emotion_Generic_Video *ev = data;
971 em_spu_channel_count(void *ef)
977 em_spu_channel_set(void *ef, int channel)
982 em_spu_channel_get(void *ef)
989 em_spu_channel_name_get(void *ef, int channel)
995 em_spu_channel_mute_set(void *ef, int mute)
1001 em_spu_channel_mute_get(void *ef)
1007 em_chapter_count(void *ef)
1014 em_chapter_set(void *ef, int chapter)
1019 em_chapter_get(void *ef)
1026 em_chapter_name_get(void *ef, int chapter)
1032 em_speed_set(void *data, double speed)
1034 Emotion_Generic_Video *ev = data;
1037 _player_send_cmd(ev, EM_CMD_SPEED_SET);
1038 _player_send_float(ev, rate);
1044 em_speed_get(void *data)
1046 Emotion_Generic_Video *ev = data;
1047 return (double)ev->speed;
1057 em_meta_get(void *ef, int meta)
1059 char * meta_data = NULL;
1063 static Emotion_Video_Module em_module =
1066 em_shutdown, /* shutdown */
1067 em_file_open, /* file_open */
1068 em_file_close, /* file_close */
1071 em_size_get, /* size_get */
1072 em_pos_set, /* pos_set */
1073 em_len_get, /* len_get */
1074 em_fps_num_get, /* fps_num_get */
1075 em_fps_den_get, /* fps_den_get */
1076 em_fps_get, /* fps_get */
1077 em_pos_get, /* pos_get */
1078 em_vis_set, /* vis_set */
1079 em_vis_get, /* vis_get */
1080 em_vis_supported, /* vis_supported */
1081 em_ratio_get, /* ratio_get */
1082 em_video_handled, /* video_handled */
1083 em_audio_handled, /* audio_handled */
1084 em_seekable, /* seekable */
1085 em_frame_done, /* frame_done */
1086 em_format_get, /* format_get */
1087 em_video_data_size_get, /* video_data_size_get */
1088 em_yuv_rows_get, /* yuv_rows_get */
1089 em_bgra_data_get, /* bgra_data_get */
1090 em_event_feed, /* event_feed */
1091 em_event_mouse_button_feed, /* event_mouse_button_feed */
1092 em_event_mouse_move_feed, /* event_mouse_move_feed */
1093 em_video_channel_count, /* video_channel_count */
1094 em_video_channel_set, /* video_channel_set */
1095 em_video_channel_get, /* video_channel_get */
1096 em_video_channel_name_get, /* video_channel_name_get */
1097 em_video_channel_mute_set, /* video_channel_mute_set */
1098 em_video_channel_mute_get, /* video_channel_mute_get */
1099 em_audio_channel_count, /* audio_channel_count */
1100 em_audio_channel_set, /* audio_channel_set */
1101 em_audio_channel_get, /* audio_channel_get */
1102 em_audio_channel_name_get, /* audio_channel_name_get */
1103 em_audio_channel_mute_set, /* audio_channel_mute_set */
1104 em_audio_channel_mute_get, /* audio_channel_mute_get */
1105 em_audio_channel_volume_set, /* audio_channel_volume_set */
1106 em_audio_channel_volume_get, /* audio_channel_volume_get */
1107 em_spu_channel_count, /* spu_channel_count */
1108 em_spu_channel_set, /* spu_channel_set */
1109 em_spu_channel_get, /* spu_channel_get */
1110 em_spu_channel_name_get, /* spu_channel_name_get */
1111 em_spu_channel_mute_set, /* spu_channel_mute_set */
1112 em_spu_channel_mute_get, /* spu_channel_mute_get */
1113 em_chapter_count, /* chapter_count */
1114 em_chapter_set, /* chapter_set */
1115 em_chapter_get, /* chapter_get */
1116 em_chapter_name_get, /* chapter_name_get */
1117 em_speed_set, /* speed_set */
1118 em_speed_get, /* speed_get */
1119 em_eject, /* eject */
1120 em_meta_get, /* meta_get */
1125 module_open(Evas_Object *obj, const Emotion_Video_Module **module, void **video, Emotion_Module_Options *opt)
1131 if (_emotion_generic_log_domain < 0)
1133 eina_threads_init();
1134 eina_log_threads_enable();
1135 _emotion_generic_log_domain = eina_log_domain_register
1136 ("emotion-generic", EINA_COLOR_LIGHTCYAN);
1137 if (_emotion_generic_log_domain < 0)
1139 EINA_LOG_CRIT("Could not register log domain 'emotion-generic'");
1145 if (!em_module.init(obj, video, opt)) {
1149 *module = &em_module;
1154 static void module_close(Emotion_Video_Module *module, void *video)
1156 em_module.shutdown(video);
1161 generic_module_init(void)
1165 pfx = eina_prefix_new(NULL, emotion_object_add,
1166 "EMOTION", "emotion", NULL,
1171 if (!pfx) return EINA_FALSE;
1173 return _emotion_module_register("generic", module_open, module_close);
1177 generic_module_shutdown(void)
1181 eina_prefix_free(pfx);
1184 _emotion_module_unregister("generic");
1187 #ifndef EMOTION_STATIC_BUILD_GENERIC
1189 EINA_MODULE_INIT(generic_module_init);
1190 EINA_MODULE_SHUTDOWN(generic_module_shutdown);