28#include <proto/exec.h>
30#include <proto/utility.h>
31#include <proto/openurl.h>
84 Remove((
struct Node *)
node);
85 if (
node->protocol) lwc_string_unref(
node->protocol);
97 lwc_string *url_scheme;
110 if ((lwc_string_isequal(url_scheme,
node->protocol,
111 &match) == lwc_error_ok) && (match ==
true)) {
112 lwc_string_unref(url_scheme);
115 }
while((
node=nnode));
117 lwc_string_unref(url_scheme);
130 if((
OpenURLBase = OpenLibrary(
"openurl.library",0))) {
153 APTR procwin = SetProcWindow((APTR)-1L);
155 char *launchurl = NULL;
161 URL_OpenA((STRPTR)url,NULL);
164 BPTR fptr = Open(launchurl,MODE_OLDFILE);
176 SetProcWindow(procwin);
nserror
Enumeration of error codes.
struct MinList * ami_AllocMinList(void)
List abstraction as OS3 appears to have problems with NewMinList()
static BOOL ami_openurl_check_list(struct MinList *list, nsurl *url)
nserror gui_launch_url(struct nsurl *url)
struct OpenURLIFace * IOpenURL
void ami_openurl_open(void)
Initialise the fetcher.
struct Library * OpenURLBase
void ami_openurl_close(void)
static void ami_openurl_free_list(struct MinList *list)
static struct ami_protocol * ami_openurl_add_protocol(const char *url)
static struct MinList * ami_unsupportedprotocols
Fetching of data from a URL (Registration).
NetSurf URL handling (interface).
nserror nsurl_create(const char *const url_s, nsurl **url)
Create a NetSurf URL object from a URL string.
void nsurl_unref(nsurl *url)
Drop a reference to a NetSurf URL object.
const char * nsurl_access(const nsurl *url)
Access a NetSurf URL object as a string.
lwc_string * nsurl_get_component(const nsurl *url, nsurl_component part)
Get part of a URL as a lwc_string, from a NetSurf URL object.
struct nsurl nsurl
NetSurf URL object.
char * ASPrintf(const char *fmt,...)
struct Node * GetHead(struct List *list)
struct Node * GetSucc(struct Node *node)
Minimal compatibility header for AmigaOS 3.
#define IsMinListEmpty(L)
Interface to utility string handling.
Option reading and saving interface.
#define nsoption_bool(OPTION)
Get the value of a boolean option.