30 #ifndef _SML_ELEMENTS_H_
31 #define _SML_ELEMENTS_H_
39 void smlLocationSetName(
SmlLocation *loc,
const char *name);
43 SmlBool smlLocationIsRelative (
SmlLocation *location);
45 SmlCred *smlCredNewFromString(
const char *type,
const char *format,
const char *data,
SmlError **error);
46 SmlCred *smlCredNewAuth(SmlAuthType type,
const char *username,
const char *password,
SmlError **error);
47 SmlCred *smlCredNew(SmlAuthType type, SmlFormatType format,
const char *data,
const char*username,
SmlError **error);
49 void smlCredUnref(
SmlCred *cred);
50 void smlCredFree(
SmlCred *cred) LIBSYNCML_DEPRECATED;
56 SmlItem *smlItemNewForData(
const char *data,
unsigned int size,
SmlError **error);
58 void smlItemUnref(
SmlItem *item);
59 SmlBool smlItemAddData(
SmlItem *item,
const char *data,
unsigned int size,
SmlError **error);
61 SmlBool smlItemHasData(
SmlItem *item);
73 void smlItemSetRaw(
SmlItem *item, SmlBool raw);
78 SmlChal *smlChalNewFromBinary(SmlAuthType type,
const char *nonce,
size_t length,
SmlError **error);
79 SmlChal *smlChalNewFromBase64(SmlAuthType type,
const char *nonce,
SmlError **error);
81 void smlChalUnref(
SmlChal *chal);
82 void smlChalFree(
SmlChal *chal) LIBSYNCML_DEPRECATED;
88 #endif //_SML_ELEMENTS_H_