6e6a229d58163875cbbd691e946c57ca78a988d4
[framework/multimedia/libmedia-service.git] / include / media-info-error.h
1 /*
2  * libmedia-service
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Hyunjun Ko <zzoon.ko@samsung.com>, Haejeong Kim <backto.kim@samsung.com>
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  */
21
22
23
24 #ifndef _MEDIA_INFO_ERROR_H_
25 #define _MEDIA_INFO_ERROR_H_
26
27 /**
28         @addtogroup MEDIA_INFO
29          @{
30          * @file                media-info-error.h
31          * @brief       This file defines error codes for media info.
32
33  */
34
35 /**
36         @defgroup MEDIA_INFO_COMMON  Global data structure and error code
37         @{
38
39         @par
40          type definition and error code
41  */
42
43
44 #define MEDIA_INFO_ERROR_NONE                                                   0                       /**< No Error */
45
46 #define MEDIA_INFO_ERROR_INVALID_PARAMETER                      -1                      /**< Invalid parameter */
47 #define MEDIA_INFO_ERROR_INVALID_MEDIA                          -2                      /**< Invalid media */
48 #define MEDIA_INFO_ERROR_INVALID_FILE_FORMAT            -3                      /**< Invalid file format */
49 #define MEDIA_INFO_ERROR_INVALID_PATH                           -4                      /**< Invalid file path */
50 #define MEDIA_INFO_ERROR_OUT_OF_MEMORY                          -5                      /**< Out of memory */
51 #define MEDIA_INFO_ERROR_OUT_OF_STORAGE                         -6                      /**< Out of storage */
52 #define MEDIA_INFO_ERROR_INSERT_FAIL                                    -7                      /**< Insert failed  */
53 #define MEDIA_INFO_ERROR_DRM_INSERT_FAIL                                -8                      /**< DRM file insert failed */
54
55 #define MEDIA_INFO_ERROR_ITEM_NOT_FOUND                         -11                     /**< Item not found */
56 #define MEDIA_INFO_ERROR_FILE_NOT_FOUND                         -12                     /**< File not found */
57 #define MEDIA_INFO_ERROR_APPEND_ITEM_FAILED                     -13                     /**< Append item failed */
58 #define MEDIA_INFO_ERROR_REMOVE_ITEM_FAILED                     -14                     /**< Remove item failed */
59 #define MEDIA_INFO_ERROR_GET_ITEM_FAILED                                -15                     /**< Get item failed */
60 #define MEDIA_INFO_ERROR_REMOVE_FILE_FAILED                     -16                     /**< Remove file failed */
61 #define MEDIA_INFO_ERROR_EXTRACT_FAILED                         -17                     /**< Extract Failed */
62 #define MEDIA_INFO_ERROR_MAKE_PLAYLIST_NAME_FAILED      -18                     /**< fail to make new playlist name */
63
64 #define MEDIA_INFO_ERROR_DATABASE_CONNECT                       -100            /**< DB connect error */
65 #define MEDIA_INFO_ERROR_DATABASE_DISCONNECT            -101            /**< DB disconnect error */
66 #define MEDIA_INFO_ERROR_DATABASE_QUERY                         -104            /**< DB query error */
67 #define MEDIA_INFO_ERROR_DATABASE_TABLE_OPEN            -105            /**< DB table open error */
68 #define MEDIA_INFO_ERROR_DATABASE_INVALID                       -106            /**< DB invalid error */
69 #define MEDIA_INFO_ERROR_DATABASE_INTERNAL                      -107            /**< DB internal error */
70
71 #define MEDIA_INFO_ERROR_SOCKET_CONN                                    -201            /**< Socket connect error */
72 #define MEDIA_INFO_ERROR_SOCKET_MSG                                     -202            /**< Socket message error */
73 #define MEDIA_INFO_ERROR_SOCKET_SEND                                    -203            /**< Socket send error */
74 #define MEDIA_INFO_ERROR_SOCKET_RECEIVE                         -204            /**< Socket receive error */
75 #define MEDIA_INFO_ERROR_SOCKET_RECEIVE_TIMEOUT -205            /**< Socket time out */
76
77 #define MEDIA_INFO_ERROR_INTERNAL                                               -998            /**< Internal error */
78 #define MEDIA_INFO_ERROR_UNKNOWN                                        -999            /**< Unknown error */
79 #define MEDIA_INFO_ERROR_NOT_IMPLEMENTED                        -200            /**< Not implemented */
80 /**
81         @}
82 */
83
84 /**
85         @}
86 */
87
88 #endif /*_MEDIA_INFO_ERROR_H_*/