Speech link Data exchange interface.
Speech link Data exchange interface. This interface provides the data exchange mechanism for speech link. Attributes may be assigned a value and the value of an attribute can be retrieved.
The body is a pointer to internal memory and should not be deleted by the
caller.
SLDATA_API SLresult SLDataShutdown()
SLDATA_API SLresult SLDataCreate(SLData** data)
SLDATA_API SLresult SLDataClone(SLData *original, SLData **clone)
clone - [out] The clone of the original.
SLDATA_API SLresult SLDataParseString(const void *body, SLuint bodyLength, SLData** data)
bodyLength - The number of bytes in body. If the string is
0-terminated, the corresponding * bytes should not be counted.
data - [out] A pointer to the newly created SLData object.
SLDATA_API SLresult SLDataDelete(SLData **data)
SLDATA_API SLresult SLDataToString(SLData *data, SLchar *buffer, SLuint *bufferSize)
buffer - [out] The buffer to which the SLdata is to be output. This
buffer must be allocated by the caller.
bufferSize - [in] The size of the buffer (the number of SLchar
the buffer can contain including the
NULL-character).
SLDATA_API SLresult SLDataGetBody(SLData *data, const SLchar **mimetype, const void **body, SLuint *bodySize)
mimetype - [out] A pointer to a mimetype string that will be written
containing the mimetype of the data contained in the body. The SLchar is
null terminated. String will be NULL if there is no body.
body - [out] A pointer to the body of the SLdata. Set to NULL if the
data has no body.
bodySize - [out] The length in bytes of the body. Set to 0 if the data
had no body.
SLDATA_API SLresult SLDataSetBody(SLData *data, const SLchar *mimetype, const void *body, SLuint bodySize)
mimetype - [in] A NULL terminated string that contains the mimetype of
the body
body - [in] The new body of the SLdata. If NULL, clears the body of
the data
bodySize - [in] The number of bytes in body.
SLDATA_API SLresult SLDataSetAttribute(SLData *data, const SLchar *attribute, const SLchar *value)
attribute - The attribute that is to be set.
value - The value to which the attribute is set.
SLDATA_API SLresult SLDataGetAttribute(SLData *data, const SLchar *attribute, const SLchar **value)
attribute - [in] The attribute for which the value is to be
retrieved.
value - [out] The value of the attribute. If the attribute is not
set for the object, this value is set to NULL and
SL_SUCCESS is returned.
SLDATA_API SLresult SLDataGetAttributeList(SLData *data, SLAttributeList** attributes)
attributes - [out] An AttributeList object containing the list
of attributes names.
SLDATA_API SLresult SLDataDeleteAttributeList(SLAttributeList **attributes)
SLDATA_API SLresult SLDataGetNbAttributes(SLAttributeList *attributes, SLuint* nbAttributes)
nbAttributes - [out] The number of attributes for this attribute list.
SLDATA_API SLresult SLDataGetAttributeName(SLAttributeList *attributes, SLuint idx, const SLchar** name)
idx - [in] The index of the attribute to return. Attributes are
numbered from 0 to N-1.
name - [out] The name of the attribute at index.
SLDATA_API SLresult SLDataGetAttributeValue(SLAttributeList *attributes, SLuint idx, const SLchar** value)
idx - [in] The index of the attribute to return. Attributes are
numbered from 0 to N-1.
value - [out] The value of the attribute at index.
Alphabetic index HTML hierarchy of classes or Java