Initial refactoring merge
[platform/core/telephony/libtapi.git] / include / common / tel_return.h
1 /*
2  * tel-headers
3  *
4  * Copyright (c) 2013 Samsung Electronics Co. Ltd. All rights reserved.
5  * Copyright (c) 2013 Intel Corporation. All rights reserved.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19
20 #ifndef __TEL_RETURN_H__
21 #define __TEL_RETURN_H__
22
23 /**
24 *  @addtogroup TAPI_COMMON
25 *  @{
26 *
27 *  @file tel_return.h
28 *  @brief TAPI return values
29 */
30
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34
35 /**
36  * @enum TelReturn
37  * TAPI return values
38  */
39 typedef enum {
40         TEL_RETURN_SUCCESS, /**< Operation completed successfully */
41         TEL_RETURN_FAILURE, /**< Operation Failed */
42         TEL_RETURN_INVALID_PARAMETER, /**< Invalid input parameters */
43         TEL_RETURN_MEMORY_FAILURE, /**< Memory allocation failed */
44         TEL_RETURN_OPERATION_NOT_SUPPORTED, /**< Operation not supported */
45         TEL_RETURN_UNKNOWN_FAILURE /**< Unknown failure */
46 } TelReturn;
47
48 #ifdef __cplusplus
49 }
50 #endif
51
52 /** @}*/
53
54 #endif /* __TEL_RETURN_H__ */