NetSurf
Functions
url_protocol.c File Reference

ANT URL launching protocol implementation. More...

#include "utils/config.h"
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <oslib/inetsuite.h>
#include <oslib/wimp.h>
#include "utils/log.h"
#include "utils/messages.h"
#include "utils/nsurl.h"
#include "content/fetch.h"
#include "netsurf/browser_window.h"
#include "riscos/gui.h"
#include "riscos/uri.h"
#include "riscos/url_protocol.h"
Include dependency graph for url_protocol.c:

Go to the source code of this file.

Functions

void ro_url_message_received (wimp_message *message)
 Handle a Message_InetSuiteOpenURL. More...
 
void ro_url_broadcast (const char *url)
 Broadcast an ANT URL message. More...
 
void ro_url_load (const char *url)
 Launch a program to handle an URL, using the ANT protocol Alias$URLOpen_ system. More...
 
void ro_url_bounce (wimp_message *message)
 Handle a bounced Message_InetSuiteOpenURL. More...
 

Detailed Description

ANT URL launching protocol implementation.

See http://www.vigay.com/inet/inet_url.html

Definition in file url_protocol.c.

Function Documentation

◆ ro_url_bounce()

void ro_url_bounce ( wimp_message *  message)

Handle a bounced Message_InetSuiteOpenURL.

Definition at line 224 of file url_protocol.c.

References ro_uri_launch().

Referenced by ro_gui_user_message().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ro_url_broadcast()

void ro_url_broadcast ( const char *  url)

Broadcast an ANT URL message.

Definition at line 151 of file url_protocol.c.

References NSLOG, ro_uri_launch(), and ro_warn_user().

Referenced by gui_launch_url().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ro_url_load()

void ro_url_load ( const char *  url)

Launch a program to handle an URL, using the ANT protocol Alias$URLOpen_ system.

Definition at line 183 of file url_protocol.c.

References NSLOG, and ro_warn_user().

Referenced by ro_uri_bounce().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ro_url_message_received()

void ro_url_message_received ( wimp_message *  message)

Handle a Message_InetSuiteOpenURL.

Definition at line 52 of file url_protocol.c.

References browser_window_create(), BW_CREATE_HISTORY, fetch_can_fetch(), messages_get_errorcode(), NSERROR_OK, NSLOG, nsurl_create(), nsurl_unref(), ro_warn_user(), and strndup().

Referenced by ro_gui_user_message().

Here is the call graph for this function:
Here is the caller graph for this function: