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
43 ACE_OK, // Operation succeeded
44 ACE_INVALID_ARGUMENTS, // Invalid input parameters
45 ACE_INTERNAL_ERROR, // ACE internal error
46 ACE_ACE_UNKNOWN_ERROR // Unexpected operation
49 // --------------- Basic types -------------------------------------------------
51 typedef size_t ace_size_t;
52 typedef char* ace_string_t; // NULL-terminated string
53 typedef int ace_widget_handle_t;
54 typedef char* ace_resource_t;
55 typedef char* ace_subject_t;
56 typedef char* ace_session_id_t;
57 typedef void* ace_private_data_t;
59 // --------------- Access requests ---------------------------------------------
82 ace_param_list_t param_list;
93 ace_session_id_t session_id; // DEPRECATED will be removed
94 ace_widget_handle_t widget_handle; // DEPRECATED will be removed
95 ace_feature_list_t feature_list;
96 ace_dev_cap_list_t dev_cap_list;
99 // --------------- Popup data types --------------------------------------------
102 * Popup types that can be requested to be displayed by ACE
112 * Validity of answer that can be returned by ACE popup
125 #endif // ACE_API_COMMON_H