BrowserGetDefault

From TrillWiki

Jump to: navigation, search

The browserGetDefault function will return the default browser for a particular protocol.

Compatibility: 2.0 and higher

Contents

Syntax

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

BrowserGetDefault 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 to set the default browser.
name
The name of the browser.
callback
The callback to use for the browser notification to receive the browser_defaultValue.
data
The data to send along with the above callback.


Return Value

Negative value on error, 0 on success.

Remarks

See the Browser Notifications section for more information on what is returned from this function.