This file is indexed.

/usr/include/libsyncml-1.0/libsyncml/sml_devinf.h is in libsyncml-dev 0.5.4-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
/*
 * libsyncml - A syncml protocol implementation
 * Copyright (C) 2005  Armin Bauer <armin.bauer@opensync.org>
 * Copyright (C) 2007-2008  Michael Bell <michael.bell@opensync.org>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
 *
 */

/**
 * @defgroup SmlDevInf SyncML Device Information
 * @ingroup PublicLowLevelAPI
 * @brief The public part
 * 
 */
/*@{*/

#ifndef _SML_DEVINF_H_
#define _SML_DEVINF_H_

SmlDevInfDevTyp smlDevInfDevTypeFromString(const char *name, SmlError **error);
const char *smlDevInfDevTypeToString(SmlDevInfDevTyp type, SmlError **error);

SmlDevInf *smlDevInfNew(const char *devid, SmlDevInfDevTyp devtyp, SmlError **error);
SmlDevInf *smlDevInfRef(SmlDevInf *devinf);
void smlDevInfUnref(SmlDevInf *devinf);

const char *smlDevInfGetManufacturer(SmlDevInf *devinf);
void smlDevInfSetManufacturer(SmlDevInf *devinf, const char *man);
const char *smlDevInfGetModel(SmlDevInf *devinf);
void smlDevInfSetModel(SmlDevInf *devinf, const char *model);
const char *smlDevInfGetOEM(SmlDevInf *devinf);
void smlDevInfSetOEM(SmlDevInf *devinf, const char *oem);
const char *smlDevInfGetFirmwareVersion(SmlDevInf *devinf);
void smlDevInfSetFirmwareVersion(SmlDevInf *devinf, const char *firmwareVersion);
const char *smlDevInfGetSoftwareVersion(SmlDevInf *devinf);
void smlDevInfSetSoftwareVersion(SmlDevInf *devinf, const char *softwareVersion);
const char *smlDevInfGetHardwareVersion(SmlDevInf *devinf);
void smlDevInfSetHardwareVersion(SmlDevInf *devinf, const char *hardwareVersion);
const char *smlDevInfGetDeviceID(SmlDevInf *devinf);
void smlDevInfSetDeviceID(SmlDevInf *devinf, const char *devid);
SmlDevInfDevTyp smlDevInfGetDeviceType(SmlDevInf *devinf);
void smlDevInfSetDeviceType(SmlDevInf *devinf, SmlDevInfDevTyp devtyp);
SmlBool smlDevInfSupportsUTC(SmlDevInf *devinf);
void smlDevInfSetSupportsUTC(SmlDevInf *devinf, SmlBool supports);
SmlBool smlDevInfSupportsLargeObjs(SmlDevInf *devinf);
void smlDevInfSetSupportsLargeObjs(SmlDevInf *devinf, SmlBool supports);
SmlBool smlDevInfSupportsNumberOfChanges(SmlDevInf *devinf);
void smlDevInfSetSupportsNumberOfChanges(SmlDevInf *devinf, SmlBool supports);

void smlDevInfAddDataStore(SmlDevInf *devinf, SmlDevInfDataStore *datastore);
unsigned int smlDevInfNumDataStores(SmlDevInf *devinf);
const SmlDevInfDataStore *smlDevInfGetNthDataStore(const SmlDevInf *devinf, unsigned int nth);

SmlDevInfDataStore *smlDevInfDataStoreNew(const char *sourceRef, SmlError **error);
SmlDevInfDataStore *smlDevInfDataStoreRef(SmlDevInfDataStore *datastore);
void smlDevInfDataStoreUnref(SmlDevInfDataStore *datastore);

const char *smlDevInfDataStoreGetSourceRef(const SmlDevInfDataStore *datastore);
void smlDevInfDataStoreSetSourceRef(SmlDevInfDataStore *datastore, const char *sourceref);
const char *smlDevInfDataStoreGetDisplayName(const SmlDevInfDataStore *datastore);
void smlDevInfDataStoreSetDisplayName(SmlDevInfDataStore *datastore, const char *displayName);
unsigned int smlDevInfGetMaxGUIDSize(const SmlDevInfDataStore *datastore);
void smlDevInfSetMaxGUIDSize(SmlDevInfDataStore *datastore, unsigned int max);

void smlDevInfDataStoreSetRxPref(SmlDevInfDataStore *datastore, const char *contenttype, const char *version);
SmlBool smlDevInfDataStoreGetRxPref(const SmlDevInfDataStore *datastore, char **contenttype, char **version);
void smlDevInfDataStoreAddRx(SmlDevInfDataStore *datastore, SmlDevInfContentType *ct);
unsigned int smlDevInfDataStoreNumRx(const SmlDevInfDataStore *datastore);
const SmlDevInfContentType *smlDevInfDataStoreGetNthRx(const SmlDevInfDataStore *datastore, unsigned int n);
void smlDevInfDataStoreSetTxPref(SmlDevInfDataStore *datastore, const char *contenttype, const char *version);
SmlBool smlDevInfDataStoreGetTxPref(const SmlDevInfDataStore *datastore, char **contenttype, char **version);
void smlDevInfDataStoreAddTx(SmlDevInfDataStore *datastore, SmlDevInfContentType *ct);
unsigned int smlDevInfDataStoreNumTx(const SmlDevInfDataStore *datastore);
const SmlDevInfContentType *smlDevInfDataStoreGetNthTx(const SmlDevInfDataStore *datastore, unsigned int n);

void smlDevInfDataStoreSetMemory(SmlDevInfDataStore *datastore, SmlBool shared, unsigned int maxid, unsigned int maxmem);
void smlDevInfDataStoreGetMemory(const SmlDevInfDataStore *datastore, SmlBool *shared, unsigned int *maxid, unsigned int *maxmem);
void smlDevInfDataStoreSetSyncCap(SmlDevInfDataStore *datastore, SmlDevInfSyncCap cap, SmlBool supported);
SmlBool smlDevInfDataStoreGetSyncCap(const SmlDevInfDataStore *datastore, SmlDevInfSyncCap cap);

SmlBool smlDevInfAssemble(SmlDevInf *devinf, char **data, unsigned int *size, SmlError **error);
SmlCommand *smlDevInfNewResult(SmlCommand *cmd, SmlDevInf *devinf, SmlDevInfVersion version, SmlError **error);
SmlCommand *smlDevInfNewPut(SmlDevInf *devinf, SmlDevInfVersion version, SmlError **error);
SmlCommand *smlDevInfNewGet(SmlDevInfVersion version, SmlError **error);

void smlDevInfConfigureSession(SmlDevInf *devinf, SmlSession *session);

SmlDevInf *smlDevInfParse(const char *data, unsigned int length, SmlError **error);
SmlDevInf *smlDevInfFromResult(SmlCommand *result, SmlError **error);

SmlDevInfCTCapType smlDevInfCTCapTypeFromString(const char *name, SmlError **error);
const char *smlDevInfCTCapTypeToString(SmlDevInfCTCapType type, SmlError **error);

/* this interface enforce the logical structure behind the devinf spec */
/* so we can generate SyncML 1.0, 1.1 and 1.2 devinf from this structure */
/* the CTCap will be assigned to a datastore if CTType and VerCT match */

/* PropParam stuff */

SmlDevInfPropParam *smlDevInfNewPropParam(SmlError **error);
void smlDevInfPropParamSetParamName(        // REQUIRED
			SmlDevInfPropParam *propParam,
			const char *paramName);
void smlDevInfPropParamSetDataType(
			SmlDevInfPropParam *propParam,
			const char *dataType);
void smlDevInfPropParamSetDisplayName(
			SmlDevInfPropParam *propParam,
			const char *displayName);
void smlDevInfPropParamAddValEnum(
			SmlDevInfPropParam *propParam,
			const char *valEnum);

char *smlDevInfPropParamGetParamName(const SmlDevInfPropParam *propParam);
char *smlDevInfPropParamGetDataType(const SmlDevInfPropParam *propParam);
char *smlDevInfPropParamGetDisplayName(const SmlDevInfPropParam *propParam);
unsigned int smlDevInfPropParamNumValEnums(const SmlDevInfPropParam *propParam);
char *smlDevInfPropParamGetNthValEnum(
			const SmlDevInfPropParam *propParam,
			unsigned int n);

/* Property stuff */

SmlDevInfProperty *smlDevInfNewProperty(SmlError **error);
void smlDevInfPropertySetPropName(         // REQUIRED
			SmlDevInfProperty *property,
			const char *propName);
void smlDevInfPropertySetPropSize(
			SmlDevInfProperty *property,
			unsigned int propSize);
void smlDevInfPropertySetDataType(
			SmlDevInfProperty *property,
			const char *dataType);
void smlDevInfPropertySetMaxOccur(
			SmlDevInfProperty *property,
			unsigned int maxOccur);
void smlDevInfPropertySetMaxSize(
			SmlDevInfProperty *property,
			unsigned int maxSize);
void smlDevInfPropertySetNoTruncate(
			SmlDevInfProperty *property);
void smlDevInfPropertySetDisplayName(
			SmlDevInfProperty *property,
			const char *displayName);
void smlDevInfPropertyAddValEnum(
			SmlDevInfProperty *property,
			const char *valEnum);
void smlDevInfPropertyAddPropParam(
			SmlDevInfProperty *property,
			SmlDevInfPropParam *propParam);

char *smlDevInfPropertyGetPropName(const SmlDevInfProperty *property);
char *smlDevInfPropertyGetDataType(const SmlDevInfProperty *property);
unsigned int smlDevInfPropertyGetMaxOccur(const SmlDevInfProperty *property);
unsigned int smlDevInfPropertyGetMaxSize(const SmlDevInfProperty *property);
SmlBool smlDevInfPropertyGetNoTruncate(const SmlDevInfProperty *property);
char *smlDevInfPropertyGetDisplayName(const SmlDevInfProperty *property);
unsigned int smlDevInfPropertyNumValEnums(const SmlDevInfProperty *property);
char *smlDevInfPropertyGetNthValEnum(
			const SmlDevInfProperty *property,
			unsigned int n);
unsigned int smlDevInfPropertyNumPropParams(const SmlDevInfProperty *property);
const SmlDevInfPropParam *smlDevInfPropertyGetNthPropParam(
			const SmlDevInfProperty *property,
			unsigned int n);

/* CTCap stuff */

SmlDevInfContentType *smlDevInfNewContentType(
			const char *cttype,
			const char *verct,
			SmlError **error);
char *smlDevInfContentTypeGetCTType(const SmlDevInfContentType *ct);
char *smlDevInfContentTypeGetVerCT(const SmlDevInfContentType *ct);
void smlDevInfFreeContentType(SmlDevInfContentType *ct);

SmlDevInfCTCap *smlDevInfNewCTCap(SmlError **error);
void smlDevInfCTCapSetCTType(
			SmlDevInfCTCap *ctcap,
			const char *cttype);     // REQUIRED => NOT NULL
void smlDevInfCTCapSetVerCT(
			SmlDevInfCTCap *ctcap,
			const char *verct);     // REQUIRED => NOT NULL
char *smlDevInfCTCapGetCTType(const SmlDevInfCTCap *ctcap);
char *smlDevInfCTCapGetVerCT(const SmlDevInfCTCap *ctcap);
void smlDevInfCTCapAddProperty(
			SmlDevInfCTCap *ctcap,
			SmlDevInfProperty *property);
void smlDevInfAppendCTCap(SmlDevInf *devinf, SmlDevInfCTCap *ctcap);

const SmlDevInfCTCap *smlDevInfGetCTCap(
			const SmlDevInf *devinf,
			SmlDevInfContentType *ct);
unsigned int smlDevInfNumCTCaps(const SmlDevInf *devinf);
const SmlDevInfCTCap *smlDevInfGetNthCTCap(
			const SmlDevInf *devinf,
			unsigned int n);
unsigned int smlDevInfCTCapNumProperties(const SmlDevInfCTCap *ctcap);
const SmlDevInfProperty *smlDevInfCTCapGetNthProperty(
			const SmlDevInfCTCap *ctcap,
			unsigned int n);

/* expire date: 20090120 */
void smlDevInfAddCTCap(SmlDevInf *devinf, SmlDevInfCTCapType type, const char *value) LIBSYNCML_DEPRECATED;
SmlDevInfCTCapType smlDevInfGetNthCTCapType(SmlDevInf *devinf, unsigned int nth) LIBSYNCML_DEPRECATED;
const char *smlDevInfGetNthCTCapValue(SmlDevInf *devinf, unsigned int nth) LIBSYNCML_DEPRECATED;

/* expire date: 20090407 */
void smlDevInfDataStoreSetRx(SmlDevInfDataStore *datastore, const char *contenttype, const char *version) LIBSYNCML_DEPRECATED;
SmlBool smlDevInfDataStoreGetRx(const SmlDevInfDataStore *datastore, char **contenttype, char **version) LIBSYNCML_DEPRECATED;
void smlDevInfDataStoreSetTx(SmlDevInfDataStore *datastore, const char *contenttype, const char *version) LIBSYNCML_DEPRECATED;
SmlBool smlDevInfDataStoreGetTx(const SmlDevInfDataStore *datastore, char **contenttype, char **version) LIBSYNCML_DEPRECATED;

#endif //_SML_DEVINF_H_

/*@}*/