NetSurf
|
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"
Go to the source code of this file.
Data Structures | |
struct | ami_protocol |
Functions | |
static struct ami_protocol * | ami_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 |
Fetching of data from a file (implementation).
Definition in file launch.c.
|
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().
|
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().
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().
|
static |
Definition at line 72 of file launch.c.
References GetHead(), GetSucc(), IsMinListEmpty, and ami_protocol::node.
Referenced by ami_openurl_close().
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().
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().
|
static |
Definition at line 41 of file launch.c.
Referenced by ami_openurl_add_protocol(), ami_openurl_close(), ami_openurl_open(), and gui_launch_url().
struct OpenURLIFace* IOpenURL = NULL |
Definition at line 39 of file launch.c.
Referenced by ami_openurl_close(), ami_openurl_open(), and gui_launch_url().
struct Library* OpenURLBase = NULL |
Definition at line 38 of file launch.c.
Referenced by ami_openurl_close(), and ami_openurl_open().