2 * Copyright (c) 2011 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 ace_api_common.h
18 * @author Tomasz Swierczek (t.swierczek@samsung.com)
20 * @brief This is header for basic ACE data types and error codes
23 #ifndef ACE_API_COMMON_H
24 #define ACE_API_COMMON_H
30 // --------------- Boolean type and errors -------------------------------------
33 * Order and values of enum constants are part of API
50 ACE_OK, // Operation succeeded
51 ACE_INVALID_ARGUMENTS, // Invalid input parameters
52 ACE_INTERNAL_ERROR, // ACE internal error
53 ACE_ACE_UNKNOWN_ERROR // Unexpected operation
56 // --------------- Basic types -------------------------------------------------
58 typedef size_t ace_size_t;
59 typedef char* ace_string_t; // NULL-terminated string
60 typedef int ace_widget_handle_t;
61 typedef char* ace_resource_t;
62 typedef char* ace_subject_t;
63 typedef char* ace_session_id_t;
64 typedef void* ace_private_data_t;
66 // --------------- Access requests ---------------------------------------------
89 ace_param_list_t param_list;
100 ace_session_id_t session_id; // DEPRECATED will be removed
101 ace_widget_handle_t widget_handle; // DEPRECATED will be removed
102 ace_feature_list_t feature_list;
103 ace_dev_cap_list_t dev_cap_list;
106 // --------------- Popup data types --------------------------------------------
109 * Popup types that can be requested to be displayed by ACE
119 * Validity of answer that can be returned by ACE popup
132 #endif // ACE_API_COMMON_H