239 MSG(
"a_Bw_get_current_doc() multiple docs not implemented\n");
bool_t a_Bw_expecting(BrowserWindow *bw)
int a_Bw_remove_client(BrowserWindow *bw, int ClientKey)
Remove the cache-client from the bw's list (client can be a image or a html page) Return: 0 if found,...
void a_Bw_expect(BrowserWindow *bw, const DilloUrl *url)
void a_Bw_free(BrowserWindow *bw)
Free resources associated to a bw.
void a_Bw_close_client(BrowserWindow *bw, int ClientKey)
Close a cache-client upon successful retrieval.
void * a_Bw_get_url_doc(BrowserWindow *bw, const DilloUrl *url)
Get document by URL.
static BrowserWindow ** bws
void a_Bw_add_url(BrowserWindow *bw, const DilloUrl *Url)
Add an URL to the browser window's list.
BrowserWindow * a_Bw_get(int i)
Return a bw by index.
void a_Bw_stop_clients(BrowserWindow *bw, int flags)
Stop the active clients of this bw's top page.
void * a_Bw_get_current_doc(BrowserWindow *bw)
Get current document.
void a_Bw_add_client(BrowserWindow *bw, int Key, int Root)
Add a reference to a cache-client.
void a_Bw_init(void)
Initialize global data.
void a_Bw_cleanup(BrowserWindow *bw)
Empty RootClients, ImageClients and PageUrls lists and reset progress bar data.
void a_Bw_cancel_expect(BrowserWindow *bw)
const DilloUrl * a_Bw_expected_url(BrowserWindow *bw)
BrowserWindow * a_Bw_new(void)
Create a new browser window and return it.
void a_Bw_remove_doc(BrowserWindow *bw, void *vdoc)
Remove a document from the bw's list.
void a_Bw_add_doc(BrowserWindow *bw, void *vdoc)
Add a document to the browser window's list.
void a_Capi_stop_client(int Key, int force)
Remove a client from the cache client queue.
Dlist * dList_new(int size)
Create a new empty list.
int dList_length(Dlist *lp)
For completing the ADT.
void * dList_nth_data(Dlist *lp, int n0)
Return the nth data item, NULL when not found or 'n0' is out of range.
void dList_remove_fast(Dlist *lp, const void *data)
Remove a data item without preserving order.
void dStr_free(Dstr *ds, int all)
Free a dillo string.
Dstr * dStr_new(const char *s)
Create a new string.
void dList_append(Dlist *lp, void *data)
Append a data item to the list.
void dList_free(Dlist *lp)
Free a list (not its elements)
void * dList_find_custom(Dlist *lp, const void *data, dCompareFunc func)
Search a data item using a custom function.
void * dList_find(Dlist *lp, const void *data)
Return the found data item, or NULL if not present.
#define dReturn_if_fail(expr)
int(* dCompareFunc)(const void *a, const void *b)
#define dNew0(type, count)
#define a_List_add(list, num_items, alloc_step)
#define a_List_remove(list, item, num_items)
Quickly remove an item from the list ==> We preserve relative position, but not the element index <==...
Contains the specific data for a single window.
Dlist * ImageClients
Image Keys for all active connections in the window.
int NumImagesGot
Number of images already loaded.
int redirect_level
Counter for the number of hops on a redirection.
int meta_refresh_status
Url for zero-delay redirections in the META element.
Dlist * RootClients
A list of active cache clients in the window (The primary Key)
Dlist * Docs
Root document(s).
Dlist * nav_stack
The navigation stack (holds indexes to history list)
int NumImages
Number of images in the page.
int nav_stack_ptr
'nav_stack_ptr' refers to what's being displayed
DilloUrl * meta_refresh_url
Dlist * PageUrls
List of all Urls requested by this page (and its types)
int num_page_bugs
HTML-bugs detected at parse time.
DilloUrl * nav_expect_url
When the user clicks a link, the URL isn't pushed directly to history; nav_expect_url holds it until ...
int NumPendingStyleSheets
Number of not yet arrived style sheets.
void a_UIcmd_set_buttons_sens(BrowserWindow *bw)
void a_UIcmd_set_img_prog(BrowserWindow *bw, int n_img, int t_img, int cmd)
int a_Url_cmp(const DilloUrl *A, const DilloUrl *B)
Compare two Url's to check if they're the same, or which one is bigger.
void a_Url_free(DilloUrl *url)
Free a DilloUrl.
DilloUrl * a_Url_dup(const DilloUrl *ori)
Duplicate a Url structure.