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.
19 * @SA_DevInf_Internal.h
21 * @brief This file is the header file that structure which is available in SA is defined
22 * about device information(DevInf)
25 #ifndef SA_DEVINF_INTERNAL_H_
26 #define SA_DEVINF_INTERNAL_H_
28 #include "service-adapter/sa_define.h"
30 #define DEFINE_DEVICE_TYPE_PAGER "pager"
31 #define DEFINE_DEVICE_TYPE_HANDHELD "handheld"
32 #define DEFINE_DEVICE_TYPE_PDA "pda"
33 #define DEFINE_DEVICE_TYPE_PHONE "phone"
34 #define DEFINE_DEVICE_TYPE_SMARTPHONE "smartphone"
35 #define DEFINE_DEVICE_TYPE_SERVER "server"
36 #define DEFINE_DEVICE_TYPE_WORKSTATION "workstation"
39 devinf_version_e version;
41 devinf_devtyp_e devtyp;
45 char *software_version;
46 char *hardware_version;
47 char *firmware_version;
51 int supports_large_objs;
52 int supports_number_of_changes;
54 GList *datastores; /*containing DevInfDataStore structure */
57 struct devinf_datastore {
58 int supports_hierarchical_sync;
62 unsigned int max_guid_size;
64 devinf_content_type_s *rx_pref;
65 devinf_content_type_s *tx_pref;
67 GList *filter_rx; /*need to be considered filter_rx,filterCap */
77 unsigned int sync_cap;
79 GList *ct_caps; /*containing DevInfCTCap structure */
82 struct devinf_content_type {
87 struct devinf_ct_cap {
88 devinf_content_type_s *ct;
89 GList *properties; /*containing DevInfProperty structure */
92 struct devinf_property {
95 unsigned int max_occur;
96 unsigned int max_size;
97 /* unsigned int propSize;*/
100 GList *val_enums; /*containing char* */
101 GList *prop_params; /*containing DevInfPropParam structure */
104 struct devinf_prop_param {
114 GList *filter_keyword;
118 #endif /* SA_DEVINF_INTERNAL_H_ */