3 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
21 * @brief This file is the header file of interface of DevInf structure
27 #include "service-adapter/sa_define.h"
30 * @par Description: API to create devinf_s structure
33 * @par Typical use case:
34 * @par Method of function operation:
35 * @par Important notes:
36 * @param[in] session_s structure
37 * @param[out] devinf_s structure
39 * @return ERROR_INTERNAL_OK on success
40 * ERROR_INTERNAL_ERROR, ERROR_INTERNAL_NOT_DEFINED, ERROR_INTERNAL_NO_MEMORY on error
53 sa_error_type_e create_devinf(session_s * session, devinf_s ** devinf);
56 * @par Description: API to free devinf_s structure
59 * @par Typical use case:
60 * @par Method of function operation:
61 * @par Important notes:
62 * @param[in] devinf_s structure
77 void free_devinf(devinf_s * devinf);
80 * @par Description: API to set sync cap in devinf_datastore_s structure
83 * @par Typical use case:
84 * @par Method of function operation:
85 * @par Important notes:
86 * @param[in] devinf_datastore_s structure
87 * @param[in] devinf_sync_cap_e sync type
88 * @param[in] whether support or not
103 void set_devinf_datastore_sync_cap(devinf_datastore_s * devinf_datastore, devinf_sync_cap_e cap, int supported);
106 * @par Description: API to get sync cap from devinf_datastore_s structure
109 * @par Typical use case:
110 * @par Method of function operation:
111 * @par Important notes:
112 * @param[in] devinf_datastore_s structure
113 * @param[in] devinf_sync_cap_e sync type
115 * @return True on success
129 int get_devinf_datastore_sync_cap(const devinf_datastore_s * devinf_datastore, devinf_sync_cap_e cap);
132 DevInfSyncCap convert_devinf_synccap(unsigned int id);
134 #endif /* SA_DEVINF_H_ */