30 #ifndef _SML_DEVINF_H_
31 #define _SML_DEVINF_H_
33 SmlDevInfDevTyp smlDevInfDevTypeFromString(
const char *name,
SmlError **error);
34 const char *smlDevInfDevTypeToString(SmlDevInfDevTyp type,
SmlError **error);
36 SmlDevInf *smlDevInfNew(
const char *devid, SmlDevInfDevTyp devtyp,
SmlError **error);
40 const char *smlDevInfGetManufacturer(
SmlDevInf *devinf);
41 void smlDevInfSetManufacturer(
SmlDevInf *devinf,
const char *man);
42 const char *smlDevInfGetModel(
SmlDevInf *devinf);
43 void smlDevInfSetModel(
SmlDevInf *devinf,
const char *model);
44 const char *smlDevInfGetOEM(
SmlDevInf *devinf);
45 void smlDevInfSetOEM(
SmlDevInf *devinf,
const char *oem);
46 const char *smlDevInfGetFirmwareVersion(
SmlDevInf *devinf);
47 void smlDevInfSetFirmwareVersion(
SmlDevInf *devinf,
const char *firmwareVersion);
48 const char *smlDevInfGetSoftwareVersion(
SmlDevInf *devinf);
49 void smlDevInfSetSoftwareVersion(
SmlDevInf *devinf,
const char *softwareVersion);
50 const char *smlDevInfGetHardwareVersion(
SmlDevInf *devinf);
51 void smlDevInfSetHardwareVersion(
SmlDevInf *devinf,
const char *hardwareVersion);
52 const char *smlDevInfGetDeviceID(
SmlDevInf *devinf);
53 void smlDevInfSetDeviceID(
SmlDevInf *devinf,
const char *devid);
54 SmlDevInfDevTyp smlDevInfGetDeviceType(
SmlDevInf *devinf);
55 void smlDevInfSetDeviceType(
SmlDevInf *devinf, SmlDevInfDevTyp devtyp);
56 SmlBool smlDevInfSupportsUTC(
SmlDevInf *devinf);
57 void smlDevInfSetSupportsUTC(
SmlDevInf *devinf, SmlBool supports);
58 SmlBool smlDevInfSupportsLargeObjs(
SmlDevInf *devinf);
59 void smlDevInfSetSupportsLargeObjs(
SmlDevInf *devinf, SmlBool supports);
60 SmlBool smlDevInfSupportsNumberOfChanges(
SmlDevInf *devinf);
61 void smlDevInfSetSupportsNumberOfChanges(
SmlDevInf *devinf, SmlBool supports);
64 unsigned int smlDevInfNumDataStores(
SmlDevInf *devinf);
72 void smlDevInfDataStoreSetSourceRef(
SmlDevInfDataStore *datastore,
const char *sourceref);
74 void smlDevInfDataStoreSetDisplayName(
SmlDevInfDataStore *datastore,
const char *displayName);
78 void smlDevInfDataStoreSetRxPref(
SmlDevInfDataStore *datastore,
const char *contenttype,
const char *version);
79 SmlBool smlDevInfDataStoreGetRxPref(
const SmlDevInfDataStore *datastore,
char **contenttype,
char **version);
83 void smlDevInfDataStoreSetTxPref(
SmlDevInfDataStore *datastore,
const char *contenttype,
const char *version);
84 SmlBool smlDevInfDataStoreGetTxPref(
const SmlDevInfDataStore *datastore,
char **contenttype,
char **version);
89 void smlDevInfDataStoreSetMemory(
SmlDevInfDataStore *datastore, SmlBool shared,
unsigned int maxid,
unsigned int maxmem);
90 void smlDevInfDataStoreGetMemory(
const SmlDevInfDataStore *datastore, SmlBool *shared,
unsigned int *maxid,
unsigned int *maxmem);
91 void smlDevInfDataStoreSetSyncCap(
SmlDevInfDataStore *datastore, SmlDevInfSyncCap cap, SmlBool supported);
92 SmlBool smlDevInfDataStoreGetSyncCap(
const SmlDevInfDataStore *datastore, SmlDevInfSyncCap cap);
94 SmlBool smlDevInfAssemble(
SmlDevInf *devinf,
char **data,
unsigned int *size,
SmlError **error);
101 SmlDevInf *smlDevInfParse(
const char *data,
unsigned int length,
SmlError **error);
104 SmlDevInfCTCapType smlDevInfCTCapTypeFromString(
const char *name,
SmlError **error);
105 const char *smlDevInfCTCapTypeToString(SmlDevInfCTCapType type,
SmlError **error);
114 void smlDevInfPropParamSetParamName(
116 const char *paramName);
117 void smlDevInfPropParamSetDataType(
119 const char *dataType);
120 void smlDevInfPropParamSetDisplayName(
122 const char *displayName);
123 void smlDevInfPropParamAddValEnum(
125 const char *valEnum);
131 char *smlDevInfPropParamGetNthValEnum(
138 void smlDevInfPropertySetPropName(
140 const char *propName);
141 void smlDevInfPropertySetPropSize(
143 unsigned int propSize);
144 void smlDevInfPropertySetDataType(
146 const char *dataType);
147 void smlDevInfPropertySetMaxOccur(
149 unsigned int maxOccur);
150 void smlDevInfPropertySetMaxSize(
152 unsigned int maxSize);
153 void smlDevInfPropertySetNoTruncate(
155 void smlDevInfPropertySetDisplayName(
157 const char *displayName);
158 void smlDevInfPropertyAddValEnum(
160 const char *valEnum);
161 void smlDevInfPropertyAddPropParam(
172 char *smlDevInfPropertyGetNthValEnum(
191 void smlDevInfCTCapSetCTType(
194 void smlDevInfCTCapSetVerCT(
199 void smlDevInfCTCapAddProperty(
207 unsigned int smlDevInfNumCTCaps(
const SmlDevInf *devinf);
211 unsigned int smlDevInfCTCapNumProperties(
const SmlDevInfCTCap *ctcap);
217 void smlDevInfAddCTCap(
SmlDevInf *devinf, SmlDevInfCTCapType type,
const char *value) LIBSYNCML_DEPRECATED;
218 SmlDevInfCTCapType smlDevInfGetNthCTCapType(
SmlDevInf *devinf,
unsigned int nth) LIBSYNCML_DEPRECATED;
219 const char *smlDevInfGetNthCTCapValue(
SmlDevInf *devinf,
unsigned int nth) LIBSYNCML_DEPRECATED;
222 void smlDevInfDataStoreSetRx(
SmlDevInfDataStore *datastore,
const char *contenttype,
const char *version) LIBSYNCML_DEPRECATED;
223 SmlBool smlDevInfDataStoreGetRx(
const SmlDevInfDataStore *datastore,
char **contenttype,
char **version) LIBSYNCML_DEPRECATED;
224 void smlDevInfDataStoreSetTx(
SmlDevInfDataStore *datastore,
const char *contenttype,
const char *version) LIBSYNCML_DEPRECATED;
225 SmlBool smlDevInfDataStoreGetTx(
const SmlDevInfDataStore *datastore,
char **contenttype,
char **version) LIBSYNCML_DEPRECATED;
227 #endif //_SML_DEVINF_H_