TizenRT Public API  v2.0 M2
dm_error.h
Go to the documentation of this file.
1 /****************************************************************************
2  *
3  * Copyright 2016 Samsung Electronics All Rights Reserved.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing,
12  * software distributed under the License is distributed on an
13  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
14  * either express or implied. See the License for the specific
15  * language governing permissions and limitations under the License.
16  *
17  ****************************************************************************/
18 
30 #ifndef DM_ERROR_H_
31 #define DM_ERROR_H_
32 
33 #include <errno.h>
34 
49 typedef enum {
50 
51  DM_ERROR_NONE = 0, /* Successful */
52 
53  DM_ERROR_INVALID_PARAMETER = -EINVAL, /* Invalid parameter : -22 */
54  DM_ERROR_NO_DATA = -ENODATA, /* No data available : -61*/
55  DM_ERROR_TIMED_OUT = -ETIME, /* Time out : -62 */
56  DM_ERROR_NOT_IMPLEMENTED = -ENOSYS, /* Function not implemented : -38 */
57 
58  DM_ERROR_NOT_SUPPORTED = -1101, /* Not supported */
59 
60  DM_ERROR_ALREADY_STARTED = -1201, /* Already started */
61  DM_ERROR_ALREADY_STOPPED = -1202, /* Already stopped */
62 
63  DM_ERROR_UNKNOWN = -1999, /* Unknown error */
64 } dm_error_e;
65 
66 #endif /* DM_ERROR_H_ */
67  // end of DM group
dm_error_e
Enumeration for the dm error.
Definition: dm_error.h:49