NetSurf
Data Structures | Functions | Variables
launch.c File Reference

Fetching of data from a file (implementation). More...

#include "amiga/os3support.h"
#include <string.h>
#include <stdbool.h>
#include <stdlib.h>
#include <proto/exec.h>
#include <proto/dos.h>
#include <proto/utility.h>
#include <proto/openurl.h>
#include "amiga/launch.h"
#include "amiga/object.h"
#include "utils/nsoption.h"
#include "utils/nsurl.h"
Include dependency graph for launch.c:

Go to the source code of this file.

Data Structures

struct  ami_protocol
 

Functions

static struct ami_protocolami_openurl_add_protocol (const char *url)
 
static void ami_openurl_free_list (struct MinList *list)
 
static BOOL ami_openurl_check_list (struct MinList *list, nsurl *url)
 
void ami_openurl_open (void)
 Initialise the fetcher. More...
 
void ami_openurl_close (void)
 
nserror gui_launch_url (struct nsurl *url)
 

Variables

struct Library * OpenURLBase = NULL
 
struct OpenURLIFace * IOpenURL = NULL
 
static struct MinList * ami_unsupportedprotocols
 

Detailed Description

Fetching of data from a file (implementation).

Definition in file launch.c.

Function Documentation

◆ ami_openurl_add_protocol()

static struct ami_protocol * ami_openurl_add_protocol ( const char *  url)
static

Definition at line 49 of file launch.c.

References ami_unsupportedprotocols, NSERROR_OK, nsurl_create(), nsurl_get_component(), NSURL_SCHEME, nsurl_unref(), and ami_protocol::protocol.

Referenced by gui_launch_url().

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

◆ ami_openurl_check_list()

static BOOL ami_openurl_check_list ( struct MinList *  list,
nsurl url 
)
static

Definition at line 93 of file launch.c.

References GetHead(), GetSucc(), IsMinListEmpty, ami_protocol::node, nsurl_get_component(), and NSURL_SCHEME.

Referenced by gui_launch_url().

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

◆ ami_openurl_close()

void ami_openurl_close ( void  )

Definition at line 140 of file launch.c.

References ami_openurl_free_list(), ami_unsupportedprotocols, IOpenURL, and OpenURLBase.

Referenced by gui_quit().

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

◆ ami_openurl_free_list()

static void ami_openurl_free_list ( struct MinList *  list)
static

Definition at line 72 of file launch.c.

References GetHead(), GetSucc(), IsMinListEmpty, and ami_protocol::node.

Referenced by ami_openurl_close().

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

◆ ami_openurl_open()

void ami_openurl_open ( void  )

Initialise the fetcher.

Must be called once before any other function.

Definition at line 127 of file launch.c.

References ami_AllocMinList(), ami_unsupportedprotocols, IOpenURL, nsoption_bool, and OpenURLBase.

Referenced by main().

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

◆ gui_launch_url()

nserror gui_launch_url ( struct nsurl url)

Definition at line 150 of file launch.c.

References ami_openurl_add_protocol(), ami_openurl_check_list(), ami_unsupportedprotocols, ASPrintf(), IOpenURL, NSERROR_OK, and nsurl_access().

Here is the call graph for this function:

Variable Documentation

◆ ami_unsupportedprotocols

struct MinList* ami_unsupportedprotocols
static

◆ IOpenURL

struct OpenURLIFace* IOpenURL = NULL

Definition at line 39 of file launch.c.

Referenced by ami_openurl_close(), ami_openurl_open(), and gui_launch_url().

◆ OpenURLBase

struct Library* OpenURLBase = NULL

Definition at line 38 of file launch.c.

Referenced by ami_openurl_close(), and ami_openurl_open().