Pushed latest libmedia-service for tizen beta
[platform/core/multimedia/libmedia-service.git] / include / visual-svc-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  * This file defines the error code of media service
24  *
25  * @file        visual-svc-error.h
26  * @author              Hyunjun Ko <zzoon.ko@samsung.com>
27  * @version     1.0
28  * @brief       This file defines the error code of media service 
29  */
30
31 /**
32 * @ingroup VISUAL_SVC_API
33 * @defgroup     VISUAL_SVC_ERROR Media service error code table
34 * @{
35 */
36
37 #ifndef _VISUAL_SVC_ERROR_H_
38 #define _VISUAL_SVC_ERROR_H_
39
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif /* __cplusplus */
44
45 //Error types definition
46 #define MB_SVC_ERROR_NONE                                       0                               /**< base */
47 #define MB_SVC_ERROR_INVALID_PARAMETER          -1                      /**< invalid parameter(s) */
48 #define MB_SVC_ERROR_INVALID_MEDIA              -2                              /**< invalid or unknown media */
49 #define MB_SVC_ERROR_FILE_NOT_EXSITED           -3                              /**< file doesn't exist */
50 #define MB_SVC_ERROR_DIR_NOT_EXSITED            -4                              /**< folder doesn't exist */
51
52 #define MB_SVC_ERROR_FILE_IO                            -11                             /**< file I/O error  */
53 #define MB_SVC_ERROR_OUT_OF_MEMORY              -12                             /**< memory allocation error*/
54
55 #define MB_SVC_ERROR_CREATE_THUMBNAIL       -101                        /**< create thumbnail */
56 #define MB_SVC_ERROR_COPY_THUMBNAIL             -102                    /**< copy thumbnail */
57 #define MB_SVC_ERROR_MOVE_THUMBNAIL             -103                    /**< move thumbnail */
58
59 #define MB_SVC_ERROR_DB_CONNECT                         -201                    /**< connect DB error */
60 #define MB_SVC_ERROR_DB_DISCONNECT                      -202                    /**< disconnect DB error  */
61 #define MB_SVC_ERROR_DB_CREATE_TABLE            -203                    /**< create table error */
62 #define MB_SVC_ERROR_DB_NO_RECORD                       -204                    /**< No record */
63 #define MB_SVC_ERROR_DB_OUT_OF_RANGE            -205                    /**< DB out of table records range*/
64 #define MB_SVC_ERROR_DB_INTERNAL                        -206                    /**< internal db error  */
65
66 #define MB_SVC_ERROR_NOT_IMPLEMENTED            -997                    /**< Not implemented */
67 #define MB_SVC_ERROR_INTERNAL                           -998                    /**< internal error */
68 #define MB_SVC_ERROR_UNKNOWN                            -999                    /**< Unknown error */
69
70
71 #ifdef __cplusplus
72 }
73 #endif /* __cplusplus */
74
75 /**
76 * @}
77 */
78
79 #endif /*_VISUAL_SVC_ERROR_H_*/
80
81
82