OldSchool Library
Browser

Functions to display Sony's internet browser. More...

Macros

#define OSL_BROWSER_ERROR_MEMORY   -1
 Memory error initializing the browser.
 
#define OSL_BROWSER_ERROR_INIT   -2
 Error initializing the browser.
 

Functions

int oslBrowserInit (char *url, char *downloadDir, int browserMemory, unsigned int displaymode, unsigned int options, unsigned int interfacemode, unsigned int connectmode)
 Initializes the internet browser.
 
void oslDrawBrowser ()
 Renders the browser display.
 
int oslGetBrowserStatus ()
 Gets the current status of the browser.
 
void oslEndBrowser ()
 Ends the browser session.
 
int oslBrowserIsActive ()
 Checks if the browser is active.
 

Detailed Description

Functions to display Sony's internet browser.

Function Documentation

◆ oslBrowserInit()

int oslBrowserInit ( char * url,
char * downloadDir,
int browserMemory,
unsigned int displaymode,
unsigned int options,
unsigned int interfacemode,
unsigned int connectmode )

Initializes the internet browser.

This function initializes Sony's internet browser with the specified URL and options.

Parameters
urlThe URL to open.
downloadDirThe default download directory.
browserMemoryThe amount of memory to allocate for the browser.
displaymodeOne of the pspUtilityHtmlViewerDisplayModes.
optionsOne of the pspUtilityHtmlViewerOptions.
interfacemodeOne of the pspUtilityHtmlViewerInterfaceModes.
connectmodeOne of the pspUtilityHtmlViewerConnectModes.
Returns
Returns 0 on success, or a negative error code on failure.

◆ oslDrawBrowser()

void oslDrawBrowser ( )

Renders the browser display.

This function handles the drawing/rendering of the browser's display.

◆ oslGetBrowserStatus()

int oslGetBrowserStatus ( )

Gets the current status of the browser.

This function returns the current status of the browser, which can be used to determine if the browser is still active or if there are any errors.

Returns
The current status of the browser.

◆ oslEndBrowser()

void oslEndBrowser ( )

Ends the browser session.

This function closes the internet browser and frees any resources allocated during initialization.

◆ oslBrowserIsActive()

int oslBrowserIsActive ( )

Checks if the browser is active.

This function checks whether the browser is currently active.

Returns
Returns 1 if the browser is active, 0 otherwise.