Fix Doxygen mistakes
[platform/core/api/metadata-editor.git] / include / metadata_editor_private.h
1 /*
2 * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
3 *
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
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
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.
15 */
16
17
18 #ifndef __TIZEN_MULTIMEDIA_METADATA_EDITOR_PRIVATE_H__
19 #define __TIZEN_MULTIMEDIA_METADATA_EDITOR_PRIVATE_H__
20
21 #include <iostream>
22 #include <sys/stat.h>
23
24 #include <stdio.h>
25 #include <string.h>
26
27 #include <dlog.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>
45
46 using namespace std;
47
48 #ifdef __cplusplus
49 extern "C" {
50 #endif /* __cplusplus */
51
52 #ifdef LOG_TAG
53 #undef LOG_TAG
54 #endif
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); } }
58
59 #define META_MAX_BUF_LEN 20
60
61
62 #define metadata_editor_debug(fmt, arg...) do { \
63                 LOGD("" fmt "", ##arg);     \
64         } while (0)
65
66 #define metadata_editor_info(fmt, arg...) do { \
67                 LOGI("" fmt "", ##arg);     \
68         } while (0)
69
70 #define metadata_editor_error(fmt, arg...) do { \
71                 LOGE("" fmt "", ##arg);     \
72         } while (0)
73
74 #define metadata_editor_debug_fenter() do { \
75                 LOGD("<Enter>");     \
76         } while (0)
77
78 #define metadata_editor_debug_fleave() do { \
79                 LOGD("<Leave>");     \
80         } while (0)
81
82 #define metadata_editor_retvm_if(expr, val, fmt, arg...) do { \
83                         if (expr) { \
84                                 LOGE("" fmt "", ##arg); \
85                                 return (val); \
86                         } \
87                 } while (0)
88
89 typedef struct {
90         void*   file;
91         int     filetype;
92         bool    isOpen;
93         bool    isReadOnly;
94 } metadata_editor_s;
95
96 #ifdef __cplusplus
97 }
98 #endif /* __cplusplus */
99 #endif /*__TIZEN_MULTIMEDIA_METADATA_EDITOR_PRIVATE_H__*/