Function

Ibissource_serialize

since: 0.9

Declaration [src]

char*
ibis_source_serialize (
  const char* nick,
  const char* user,
  const char* host
)

Description [src]

Creates a source from its parts.

This does the reverse of ibis_source_parse().

Available since: 0.9

Parameters

nick

Type: const char*

The nick.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
user

Type: const char*

The user field.

The argument can be NULL.
The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
host

Type: const char*

The host field.

The argument can be NULL.
The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Return value

Type: char*

The new source.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.