EventsStatusUnregister

From TrillWiki

Jump to: navigation, search

The eventsStatusUnregister function will unregister from an existing registered status that was previously registered using eventsStatusRegister.

Compatibility: 3.0 and higher

Contents

Syntax

plugin_send(MYGUID, "eventsStatusUnregister", struct event_status_register_t *);

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

EventsStatusUnregister utilitizes the event_status_register_t structure.

struct event_status_register_t
{
    unsigned int                struct_size;

    char                        *medium;
    char                        *status;
    char                        *description;

    int                         default_status;
    int                         event_id;

    ttkCallback                 callback;
    void                        *data;

    /* 3.0
     */

    unsigned char               *png_image;
    unsigned int                png_image_len;
};



event_id
The event id returned from the eventsStatusRegister function.


Return Value

Negative value on error, 0 on success.

Remarks

None.


Personal tools