EditEventUnregister

From TrillWiki

Jump to: navigation, search

The editEventUnregister function stops edit events from being sent to a plugin which called editEventRegister.

Compatibility: 2.0 and higher

Contents

Syntax

plugin_send(MYGUID, "editEventUnregister", edit_event_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

EditEventUnregister utilitizes the edit_event_t structure.

 struct edit_event_t { 
 	unsigned int   				struct_size; 
 
 	int					window_id; 
 	int     				edit_event_id; 
 
 	char					*event; 
 
 	ttkCallback				callback; 
 	void					*data; 
 };



edit_event_id
ID passed back when the event was registered using editEventRegister.


Return Value

Returns a negative value on error, 0 on success.

Remarks

Be sure to call this when the plugin is stopped for all edit events that are registered.


Personal tools