EventsDisconnect

From TrillWiki

Jump to: navigation, search

The eventsDisconnect function will disconnect a plugin from a connected event that was previously connected to using eventsConnect.

Compatibility: 2.0 and higher

Contents

Syntax

plugin_send(MYGUID, "eventsDisconnect", struct event_connect_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

EventsDisconnect utilitizes the event_connect_t structure.

struct event_connect_t {  
 	unsigned int			struct_size; 
 							 
 	char				*type; 
 							 
 	int				event_id; 
 							 
 	ttkCallback			callback; 
 	void				*data; 
 };


event_id
The event id returned from the eventsConnect function.


Return Value

Negative value on error, event id on success.

Remarks

None.