Method

XemeStanzamarshal_attributes

since: 0.1

Declaration [src]

char*
xeme_stanza_marshal_attributes (
  XemeStanza* stanza
)

Description [src]

Marshals the common attributes: id, to, from, type, and xml:lang to a string.

If none of the attributes are set, NULL will be returned. If at least one attribute is set, the returned string will not have any padding so you will have to add your own.

Available since: 0.1

Return value

Type: char*

The attributes marshaled as a string.

The caller of the method takes ownership of the data, and is responsible for freeing it.
The return value can be NULL.
The value is a NUL terminated UTF-8 string.