BrowserUnregister

From TrillWiki

Jump to: navigation, search

The browserUnregister function unregisters the plugin for a particular protocol that was registered using the browserRegister function.

Compatibility: 2.0 and higher

Contents

Syntax

plugin_send(MYGUID, "browserUnregister", struct browser_entry_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

BrowserUnregister utilitizes the browser_entry_t structure.

struct browser_entry_t {  
 	unsigned int				struct_size; 
 
 	char					*protocol; 
 
 	char					*name; 
 	char					*description; 
 
 	ttkCallback				callback; 
 	void					*data; 
 };


protocol
The protocol that this browser supports. An example would be "http" if you were to make a web browser.
name
The name of the browser.


Return Value

Negative value on error, 0 on success.

Remarks

Be sure to call this function when the plugin stops.


Personal tools