Constructor

PurpleChatUsernew

since: 3.0

Declaration [src]

PurpleChatUser*
purple_chat_user_new (
  PurpleChatConversation* chat,
  const gchar* name,
  const gchar* alias,
  PurpleChatUserFlags flags
)

Description [src]

Creates a new chat user.

Available since: 3.0

Parameters

chat

Type: PurpleChatConversation

The chat that the buddy belongs to.

The data is owned by the caller of the function.
name

Type: const gchar*

The name.

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

Type: const gchar*

The alias.

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

Type: PurpleChatUserFlags

The flags.

Return value

Type: PurpleChatUser

The new chat user.

The caller of the function takes ownership of the data, and is responsible for freeing it.