Browser defaultValue

From TrillWiki

Jump to: navigation, search

The browser_defaultValue notification is sent to the callback provided when a plugin requests the default browser.

Compatibility: 2.0 and higher

Contents

Syntax

callback(int window_id, char *icontrol, "browser_defaultValue", browser_entry_t *data, void *userData);

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

Browser defaultValue utilitizes the browser_entry_t structure.

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


Note: The data parameter is NULL if there is no default browser for this protocol.


protocol
The protocol for the browser.
name
The name of the browser.
description
A short description of the browser.
callback
The callback associated with the browser.
data
The user data to send along with the above callback.


Return Value

Must return 0.

Remarks

Plugins should not use this callback provided directly, but use the browserOpen call. This should only be used to check to see what the current browser is.


Personal tools