NetSurf
|
#include <stdlib.h>
#include <assert.h>
#include <errno.h>
#include <stdbool.h>
#include <string.h>
#include <strings.h>
#include <time.h>
#include <sys/select.h>
#include <sys/stat.h>
#include <sys/utsname.h>
#include <image.h>
#include <Resources.h>
#include <String.h>
#include <libwapcaplet/libwapcaplet.h>
#include "utils/config.h"
#include "utils/nsoption.h"
#include "utils/log.h"
#include "utils/messages.h"
#include "utils/utils.h"
#include "utils/ring.h"
#include "content/fetch.h"
#include "content/fetchers.h"
#include "beos/fetch_rsrc.h"
#include "beos/filetype.h"
#include "beos/gui.h"
Go to the source code of this file.
Data Structures | |
struct | fetch_rsrc_context |
Macros | |
#define | __STDBOOL_H__ 1 |
Functions | |
static bool | fetch_rsrc_initialise (lwc_string *scheme) |
static void | fetch_rsrc_finalise (lwc_string *scheme) |
static bool | fetch_rsrc_can_fetch (const nsurl *url) |
static void * | fetch_rsrc_setup (struct fetch *parent_fetch, nsurl *url, bool only_2xx, bool downgrade_tls, const char *post_urlenc, const struct fetch_multipart_data *post_multipart, const char **headers) |
static bool | fetch_rsrc_start (void *ctx) |
static void | fetch_rsrc_free (void *ctx) |
static void | fetch_rsrc_abort (void *ctx) |
static void | fetch_rsrc_send_callback (const fetch_msg *msg, struct fetch_rsrc_context *c) |
static bool | fetch_rsrc_process (struct fetch_rsrc_context *c) |
static void | fetch_rsrc_poll (lwc_string *scheme) |
static int | find_app_resources () |
BResources * | get_app_resources () |
void | fetch_rsrc_register (void) |
void | fetch_rsrc_unregister (void) |
Variables | |
static struct fetch_rsrc_context * | ring = NULL |
BResources * | gAppResources = NULL |
#define __STDBOOL_H__ 1 |
Definition at line 22 of file fetch_rsrc.cpp.
|
static |
Definition at line 133 of file fetch_rsrc.cpp.
References fetch_rsrc_context::aborted.
Referenced by fetch_rsrc_register().
|
static |
Definition at line 85 of file fetch_rsrc.cpp.
Referenced by fetch_rsrc_register().
|
static |
Definition at line 79 of file fetch_rsrc.cpp.
References NSLOG.
Referenced by fetch_rsrc_register().
|
static |
Definition at line 121 of file fetch_rsrc.cpp.
References fetch_rsrc_context::data, fetch_rsrc_context::mimetype, fetch_rsrc_context::name, ring, RING_REMOVE, and fetch_rsrc_context::url.
Referenced by fetch_rsrc_register().
|
static |
Definition at line 72 of file fetch_rsrc.cpp.
References NSLOG.
Referenced by fetch_rsrc_register().
|
static |
Definition at line 256 of file fetch_rsrc.cpp.
References fetch_rsrc_context::aborted, fetch_msg::buf, fetch_msg::data, fetch_rsrc_context::data, fetch_rsrc_context::datalen, FETCH_DATA, FETCH_FINISHED, fetch_free(), FETCH_HEADER, fetch_remove_from_queues(), fetch_rsrc_process(), fetch_rsrc_send_callback(), fetch_set_http_code(), fetch_msg::header_or_data, fetch_msg::len, fetch_rsrc_context::locked, fetch_rsrc_context::mimetype, NSLOG, fetch_rsrc_context::parent_fetch, fetch_rsrc_context::r_next, ring, fetch_msg::type, and fetch_rsrc_context::url.
Referenced by fetch_rsrc_register().
|
static |
Definition at line 152 of file fetch_rsrc.cpp.
References fetch_msg::data, fetch_rsrc_context::data, fetch_rsrc_context::datalen, fetch_msg::error, FETCH_ERROR, fetch_filetype(), fetch_rsrc_send_callback(), gAppResources, fetch_rsrc_context::mimetype, fetch_rsrc_context::name, NSLOG, fetch_msg::type, type, and fetch_rsrc_context::url.
Referenced by fetch_rsrc_poll().
void fetch_rsrc_register | ( | void | ) |
Definition at line 365 of file fetch_rsrc.cpp.
References beos_warn_user(), die(), fetch_rsrc_abort(), fetch_rsrc_can_fetch(), fetch_rsrc_finalise(), fetch_rsrc_free(), fetch_rsrc_initialise(), fetch_rsrc_poll(), fetch_rsrc_setup(), fetch_rsrc_start(), fetcher_add(), find_app_resources(), NSERROR_OK, and SLEN.
Referenced by gui_init().
|
static |
Definition at line 144 of file fetch_rsrc.cpp.
References fetch_send_callback(), fetch_rsrc_context::locked, and fetch_rsrc_context::parent_fetch.
Referenced by fetch_rsrc_poll(), and fetch_rsrc_process().
|
static |
Definition at line 90 of file fetch_rsrc.cpp.
References nsurl_access(), nsurl_length(), fetch_rsrc_context::parent_fetch, ring, RING_INSERT, and fetch_rsrc_context::url.
Referenced by fetch_rsrc_register().
|
static |
Definition at line 116 of file fetch_rsrc.cpp.
Referenced by fetch_rsrc_register().
void fetch_rsrc_unregister | ( | void | ) |
Definition at line 401 of file fetch_rsrc.cpp.
References gAppResources.
Referenced by gui_quit().
|
static |
Definition at line 340 of file fetch_rsrc.cpp.
References gAppResources, nsbeos_find_app_path(), and path().
Referenced by fetch_rsrc_register().
BResources * get_app_resources | ( | ) |
Definition at line 360 of file fetch_rsrc.cpp.
References gAppResources.
Referenced by nsbeos_throbber_initialise_from_png().
BResources* gAppResources = NULL |
Definition at line 70 of file fetch_rsrc.cpp.
Referenced by fetch_rsrc_process(), fetch_rsrc_unregister(), find_app_resources(), get_app_resources(), and BBitmapButton::SetBitmap().
|
static |
Definition at line 68 of file fetch_rsrc.cpp.
Referenced by fetch_rsrc_free(), fetch_rsrc_poll(), and fetch_rsrc_setup().