diff options
author | Gustavo Sverzut Barbieri <barbieri@profusion.mobi> | 2015-01-15 20:12:09 -0200 |
---|---|---|
committer | Gustavo Sverzut Barbieri <barbieri@profusion.mobi> | 2015-01-15 20:14:55 -0200 |
commit | 62e6c89b7c34ea13764ba15e1210df1f183fa90f (patch) | |
tree | e73496828c3282d1f814c42a04d5c9d68de3f5d2 | |
parent | ee1b334a03d383b80266ba966b7a8c84eb9d6e10 (diff) | |
download | lightmediascanner-62e6c89b7c34ea13764ba15e1210df1f183fa90f.tar.gz lightmediascanner-62e6c89b7c34ea13764ba15e1210df1f183fa90f.tar.bz2 lightmediascanner-62e6c89b7c34ea13764ba15e1210df1f183fa90f.zip |
move strings and declarations so they are local.
-rw-r--r-- | src/lib/lightmediascanner_dlna.c | 16 | ||||
-rw-r--r-- | src/lib/lightmediascanner_dlna.h | 17 | ||||
-rw-r--r-- | src/lib/lightmediascanner_dlna_rules.c | 6 |
3 files changed, 16 insertions, 23 deletions
diff --git a/src/lib/lightmediascanner_dlna.c b/src/lib/lightmediascanner_dlna.c index 764a207..1ceb4d3 100644 --- a/src/lib/lightmediascanner_dlna.c +++ b/src/lib/lightmediascanner_dlna.c @@ -41,6 +41,20 @@ struct dlna_image_container_rule { const struct lms_dlna_image_profile *rules; }; +extern const struct lms_dlna_image_profile _dlna_jpeg_rules[]; +extern const struct lms_dlna_image_profile _dlna_png_rules[]; + +extern const struct lms_dlna_audio_profile _dlna_mp3_rules[]; +extern const struct lms_dlna_audio_profile _dlna_mp4_audio_rules[]; +extern const struct lms_dlna_audio_profile _dlna_3gp_audio_rules[]; +extern const struct lms_dlna_audio_profile _dlna_wma_rules[]; +extern const struct lms_dlna_audio_profile _dlna_wave_rules[]; + +extern const struct lms_dlna_video_profile _dlna_mpeg_rules[]; +extern const struct lms_dlna_video_profile _dlna_mpegts_rules[]; +extern const struct lms_dlna_video_profile _dlna_mp4_video_rules[]; + +DECL_STR(_container_mp3, "mp3"); DECL_STR(_container_mp4, "mp4"); DECL_STR(_container_3gp, "3gp"); DECL_STR(_container_asf, "asf"); @@ -48,6 +62,8 @@ DECL_STR(_container_wma2, "wma2"); DECL_STR(_container_jpeg, "jpeg"); DECL_STR(_container_png, "png"); DECL_STR(_container_wave, "wave"); +DECL_STR(_container_mpeg, "mpeg"); +DECL_STR(_container_mpegts, "mpegts"); static const struct dlna_video_container_rule _video_container_rules[] = { { diff --git a/src/lib/lightmediascanner_dlna.h b/src/lib/lightmediascanner_dlna.h index 4f37528..4048722 100644 --- a/src/lib/lightmediascanner_dlna.h +++ b/src/lib/lightmediascanner_dlna.h @@ -162,21 +162,4 @@ const struct lms_dlna_video_profile *lms_dlna_get_video_profile(struct lms_video const struct lms_dlna_audio_profile *lms_dlna_get_audio_profile(struct lms_audio_info *info); const struct lms_dlna_image_profile *lms_dlna_get_image_profile(struct lms_image_info *info); -extern const struct lms_string_size _container_mp3; -extern const struct lms_string_size _container_mpeg; -extern const struct lms_string_size _container_mpegts; - -extern const struct lms_dlna_image_profile _dlna_jpeg_rules[]; -extern const struct lms_dlna_image_profile _dlna_png_rules[]; - -extern const struct lms_dlna_audio_profile _dlna_mp3_rules[]; -extern const struct lms_dlna_audio_profile _dlna_mp4_audio_rules[]; -extern const struct lms_dlna_audio_profile _dlna_3gp_audio_rules[]; -extern const struct lms_dlna_audio_profile _dlna_wma_rules[]; -extern const struct lms_dlna_audio_profile _dlna_wave_rules[]; - -extern const struct lms_dlna_video_profile _dlna_mpeg_rules[]; -extern const struct lms_dlna_video_profile _dlna_mpegts_rules[]; -extern const struct lms_dlna_video_profile _dlna_mp4_video_rules[]; - #endif /* _LIGHTMEDIASCANNER_DLNA_H_ */ diff --git a/src/lib/lightmediascanner_dlna_rules.c b/src/lib/lightmediascanner_dlna_rules.c index 5716ee3..01f4bc3 100644 --- a/src/lib/lightmediascanner_dlna_rules.c +++ b/src/lib/lightmediascanner_dlna_rules.c @@ -38,9 +38,6 @@ DECL_STR(_dlna_profile_aac_adts_320, "AAC_ADTS_320"); DECL_STR(_dlna_profile_aac_adts, "AAC_ADTS"); DECL_STR(_dlna_profile_aac_adts_mult5, "AAC_MULT5_ADTS"); -const struct lms_string_size _container_mp3 = LMS_STATIC_STRING_SIZE("mp3"); -const struct lms_string_size _testing = LMS_STATIC_STRING_SIZE("testing"); - static const struct lms_dlna_audio_rule _dlna_audio_rule_mpeg2_aac_adts_320 = { .codec = &_codec_mpeg2aac_lc, @@ -154,9 +151,6 @@ DECL_STR(_dlna_profile_mpeg1, "MPEG1"); DECL_STR(_dlna_mime_video, "video/mpeg"); DECL_STR(_dlna_mim_video_tts, "video/vnd.dlna.mpeg-tts"); -const struct lms_string_size _container_mpeg = LMS_STATIC_STRING_SIZE("mpeg"); -const struct lms_string_size _container_mpegts = LMS_STATIC_STRING_SIZE("mpegts"); - static const struct lms_dlna_video_rule _dlna_video_rule_mpeg_ps_pal[] = { { .res = DLNA_VIDEO_RES(720, 576), |