4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: JuHak Park <juhaki.park@samsung.com>,
7 * JuneHyuk Lee <junhyuk7.lee@samsung.com>,
8 * SunBong Ha <sunbong.ha@samsung.com>
10 * Licensed under the Apache License, Version 2.0 (the "License");
11 * you may not use this file except in compliance with the License.
12 * You may obtain a copy of the License at
14 * http://www.apache.org/licenses/LICENSE-2.0
16 * Unless required by applicable law or agreed to in writing, software
17 * distributed under the License is distributed on an "AS IS" BASIS,
18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 * See the License for the specific language governing permissions and
20 * limitations under the License.
29 * For any sort of issue you concern as to this software,
30 * you may use following point of contact.
31 * All resources contributed on this software
32 * are orinigally written by S-Core Inc., a member of Samsung Group.
34 * SeongWon Shim <seongwon.shim@samsung.com>
40 * @brief This file is the header file of interface of DevInf structure
46 #include "ServiceAdapter/SA_Define.h"
49 * @par Description: API to create DevInf structure
52 * @par Typical use case:
53 * @par Method of function operation:
54 * @par Important notes:
55 * @param[in] Session structure
56 * @param[out] DevInf structure
58 * @return ERROR_INTERNAL_OK on success
59 * ERROR_INTERNAL_ERROR, ERROR_INTERNAL_NOT_DEFINED, ERROR_INTERNAL_NO_MEMORY on error
72 SA_ErrorType create_devinf(Session *session, DevInf **pDevInf);
75 * @par Description: API to free DevInf structure
78 * @par Typical use case:
79 * @par Method of function operation:
80 * @par Important notes:
81 * @param[in] DevInf structure
96 void free_devinf(DevInf *devInf);
99 * @par Description: API to set sync cap in DevInfDataStore structure
102 * @par Typical use case:
103 * @par Method of function operation:
104 * @par Important notes:
105 * @param[in] DevInfDataStore structure
106 * @param[in] DevInf sync type
107 * @param[in] whether support or not
122 void set_devInf_datastore_synccap(DevInfDataStore *devInfDataStore, DevInfSyncCap cap, int supported);
126 * @par Description: API to get sync cap from DevInfDataStore structure
129 * @par Typical use case:
130 * @par Method of function operation:
131 * @par Important notes:
132 * @param[in] DevInfDataStore structure
133 * @param[in] DevInf sync type
135 * @return True on success
149 int get_devinf_datastore_synccap(const DevInfDataStore *devInfDataStore, DevInfSyncCap cap);
152 DevInfSyncCap convert_devinf_synccap(unsigned int id);
154 #endif /* SA_DEVINF_H_ */