2 * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #ifndef __TIZEN_MULTIMEDIA_METADATA_EDITOR_PRIVATE_H__
19 #define __TIZEN_MULTIMEDIA_METADATA_EDITOR_PRIVATE_H__
28 #include <taglib/tag.h>
29 #include <taglib/mpegfile.h>
30 #include <taglib/mp4file.h>
31 #include <taglib/flacfile.h>
32 #include <taglib/oggflacfile.h>
33 #include <taglib/vorbisfile.h>
34 #include <taglib/wavfile.h>
35 #include <taglib/id3v1tag.h>
36 #include <taglib/id3v2tag.h>
37 #include <taglib/mp4tag.h>
38 #include <taglib/xiphcomment.h>
39 #include <taglib/commentsframe.h>
40 #include <taglib/textidentificationframe.h>
41 #include <taglib/attachedpictureframe.h>
42 #include <taglib/unsynchronizedlyricsframe.h>
43 #include <taglib/mp4item.h>
44 #include <taglib/mp4coverart.h>
50 #endif /* __cplusplus */
55 #define LOG_TAG "CAPI_MEDIA_METADATA_EDITOR"
56 #define META_SAFE_FREE(src) { if (src) {free(src); src = NULL; } }
57 #define META_MALLOC(src, size) { if (size <= 0) { src = NULL; } else { src = (char *)malloc(size); if (src) memset(src, 0x0, size); } }
59 #define META_MAX_BUF_LEN 20
62 #define metadata_editor_debug(fmt, arg...) do { \
63 LOGD("" fmt "", ##arg); \
66 #define metadata_editor_info(fmt, arg...) do { \
67 LOGI("" fmt "", ##arg); \
70 #define metadata_editor_error(fmt, arg...) do { \
71 LOGE("" fmt "", ##arg); \
74 #define metadata_editor_debug_fenter() do { \
78 #define metadata_editor_debug_fleave() do { \
82 #define metadata_editor_retvm_if(expr, val, fmt, arg...) do { \
84 LOGE("" fmt "", ##arg); \
98 #endif /* __cplusplus */
99 #endif /*__TIZEN_MULTIMEDIA_METADATA_EDITOR_PRIVATE_H__*/