2 * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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
17 * @file cynara-error.h
18 * @author Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
19 * @author Zofia Abramowska <z.abramowska@samsung.com>
21 * @brief This file contains error codes returned by client APIs of Cynara.
24 #ifndef CYNARA_ERROR_H
25 #define CYNARA_ERROR_H
29 * exported by the foundation API.
30 * result codes begin with the start error code and extend into negative direction.
34 /*! \brief indicating the result of the one specific API is successful or access is allowed */
35 #define CYNARA_API_SUCCESS 0
37 /*! \brief indicating that access that was checked is denied */
38 #define CYNARA_API_ACCESS_DENIED -1
40 /*! \brief indicating system is running out of memory state */
41 #define CYNARA_API_OUT_OF_MEMORY -2
43 /*! \brief indicating the API's parameter is malformed */
44 #define CYNARA_API_INVALID_PARAM -3
46 /*! \brief service not available */
47 #define CYNARA_API_SERVICE_NOT_AVAILABLE -4
50 #endif // CYNARA_ERROR_H