Function
Xemeaddress_parse
since: 0.1
Declaration [src]
gboolean
xeme_address_parse (
const char* address,
char** bare_jid,
char** local,
char** domain,
char** resource
)
Description [src]
Splits address
according to the rules of
RFC 6122 and returns the
results into the optional local
, domain
, and resource
.
Available since: 0.1
Parameters
address
-
Type:
const char*
The address to parse.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. bare_jid
-
Type:
char**
An optional return address for the bare jid, that is the
local@domain
part of the jid including the@
.The argument can be NULL
.The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. local
-
Type:
char**
An optional return address for the localpart.
The argument can be NULL
.The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. domain
-
Type:
char**
An optional return address for the domainpart.
The argument can be NULL
.The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. resource
-
Type:
char**
An optional return address for the resourcepart.
The argument can be NULL
.The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string.