Medium windowClose

From TrillWiki

Jump to: navigation, search

The medium_windowClose notification is sent whenever a message window is closed.

Compatibility: 2.0 and higher

Contents

Syntax

callback(int window_id, char *icontrol, "medium_windowClose", message_t *data, void *userData);

Note that all Trillian functions and notifications begin with a lower-case letter, despite the Wiki requirement that all pages start with a capital letter.

Parameters

Medium windowClose utilitizes the message_t structure.

struct message_t
{
    unsigned int                struct_size;

    char                        *medium;
    int                         connection_id;

    char                        *name;
    char                        *type;
    char                        *text;

    char                        *location;

    void                        *extra_information;
    
    /* 2.0 
     */
    int                         window_id;
    unsigned int                extra_information_size;
    unsigned int                time_stamp;

    char                        *display_name;
    char                        *section;

    /* 3.0
     */
    struct capability_t         *capability_list;
    int                         text_len;
    int                         message_id;
};



medium
The medium for the window.
connection_id
The connection for the window.
name
The address of the person associated with the window.
type
The type of window that is closed, current types are: close_status, close_private and close_group.
location
If a multi-person chat window is being closed, this is the name of the chat session. Otherwise this is NULL.
window_id
The window_id associated.
display_name
The display_name for the window.


Return Value

Must return 0.

Remarks

None.


See also: medium_windowOpen

Personal tools