31#include "oslib/wimp.h"
45 uri_full_message_process *uri_message = (uri_full_message_process *)msg;
52 uri_handle = uri_message->handle;
65 uri_message->your_ref = uri_message->my_ref;
66 uri_message->action = message_URI_PROCESS_ACK;
68 xwimp_send_message(wimp_USER_MESSAGE, (wimp_message*)uri_message,
71 xuri_request_uri(0, 0, 0, uri_handle, &uri_length);
72 uri_requested = calloc((
unsigned int)uri_length,
sizeof(
char));
73 if (uri_requested == NULL)
76 xuri_request_uri(0, uri_requested, uri_length, uri_handle, NULL);
97 uri_dispatch_flags returned;
100 e = xuri_dispatch(uri_DISPATCH_INFORM_CALLER, uri,
task_handle,
101 &returned, &handle_task, &uri_handle);
103 if (e || returned & 1) {
112 uri_full_message_process *message = (uri_full_message_process *)msg;
117 if ((message->flags & 1) == 0)
121 e = xuri_request_uri(0, NULL, 0, message->handle, &size);
123 NSLOG(netsurf, INFO,
"xuri_request_uri: %d: %s", e->errnum,
128 uri_buf = malloc(size);
133 e = xuri_request_uri(0, uri_buf, size, message->handle, 0);
135 NSLOG(netsurf, INFO,
"xuri_request_uri: %d: %s", e->errnum,
Browser window creation and manipulation interface.
nserror browser_window_create(enum browser_window_create_flags flags, struct nsurl *url, struct nsurl *referrer, struct browser_window *existing, struct browser_window **bw)
Create and open a new root browser window with the given page.
@ BW_CREATE_HISTORY
this will form a new history node (don't set for back/reload/etc)
bool fetch_can_fetch(const nsurl *url)
Check if a URL's scheme can be fetched.
Fetching of data from a URL (interface).
nserror
Enumeration of error codes.
#define NSLOG(catname, level, logmsg, args...)
const char * messages_get_errorcode(nserror code)
lookup of a message by errorcode from the standard Messages hash.
Localised message support (interface).
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.
struct nsurl nsurl
NetSurf URL object.
wimp_t task_handle
RISC OS wimp task handle.
nserror ro_warn_user(const char *warning, const char *detail)
Display a warning for a serious problem (eg memory exhaustion).
Interface to utility string handling.
bool ro_uri_launch(const char *uri)
void ro_uri_message_received(wimp_message *msg)
void ro_uri_bounce(wimp_message *msg)
void ro_url_load(const char *url)
Launch a program to handle an URL, using the ANT protocol Alias$URLOpen_ system.
ANT URL launching protocol (interface).