Dillo v3.1.1-119-g140d9ebd
Loading...
Searching...
No Matches
nav.c File Reference

Support for a navigation stack. More...

#include <stdio.h>
#include <sys/stat.h>
#include "msg.h"
#include "nav.h"
#include "history.h"
#include "web.hh"
#include "uicmd.hh"
#include "dialog.hh"
#include "prefs.h"
#include "capi.h"
#include "timeout.hh"
Include dependency graph for nav.c:

Go to the source code of this file.

Functions

void a_Nav_free (BrowserWindow *bw)
 
int a_Nav_stack_ptr (BrowserWindow *bw)
 
int a_Nav_get_uidx (BrowserWindow *bw, int i)
 
int a_Nav_get_top_uidx (BrowserWindow *bw)
 
static void Nav_stack_move_ptr (BrowserWindow *bw, int offset)
 
int a_Nav_stack_size (BrowserWindow *bw)
 
static void Nav_stack_truncate (BrowserWindow *bw, int pos)
 
static void Nav_stack_append (BrowserWindow *bw, int url_idx)
 
static void Nav_get_scroll_pos (BrowserWindow *bw, int *posx, int *posy)
 
static void Nav_save_scroll_pos (BrowserWindow *bw, int idx, int posx, int posy)
 
static void Nav_stack_clean (BrowserWindow *bw)
 
static void Nav_open_url (BrowserWindow *bw, const DilloUrl *url, const DilloUrl *requester, int offset)
 
void a_Nav_cancel_expect (BrowserWindow *bw)
 
void a_Nav_cancel_expect_if_eq (BrowserWindow *bw, const DilloUrl *url)
 
void a_Nav_expect_done (BrowserWindow *bw)
 
void a_Nav_push (BrowserWindow *bw, const DilloUrl *url, const DilloUrl *requester)
 
static void Nav_repush (BrowserWindow *bw)
 
static void Nav_repush_callback (void *data)
 
void a_Nav_repush (BrowserWindow *bw)
 
static void Nav_redirection0_callback (void *data)
 
void a_Nav_redirection0 (BrowserWindow *bw, const DilloUrl *new_url)
 
void a_Nav_back (BrowserWindow *bw)
 
void a_Nav_forw (BrowserWindow *bw)
 
void a_Nav_home (BrowserWindow *bw)
 
static void Nav_reload_callback (void *data)
 
void a_Nav_reload (BrowserWindow *bw)
 
void a_Nav_jump (BrowserWindow *bw, int offset, int new_bw)
 
static void Nav_save_cb (int Op, CacheClient_t *Client)
 
void a_Nav_save_url (BrowserWindow *bw, const DilloUrl *url, const char *filename)
 
int a_Nav_get_buf (const DilloUrl *Url, char **PBuf, int *BufSize)
 
void a_Nav_unref_buf (const DilloUrl *Url)
 
const char * a_Nav_get_content_type (const DilloUrl *url)
 
void a_Nav_set_vsource_url (const DilloUrl *Url)
 

Detailed Description

Support for a navigation stack.

Definition in file nav.c.

Function Documentation

◆ a_Nav_back()

void a_Nav_back ( BrowserWindow bw)

◆ a_Nav_cancel_expect()

◆ a_Nav_cancel_expect_if_eq()

void a_Nav_cancel_expect_if_eq ( BrowserWindow bw,
const DilloUrl url 
)

Definition at line 260 of file nav.c.

References a_Bw_expected_url(), a_Nav_cancel_expect(), and a_Url_cmp().

Referenced by a_Capi_ccc(), and Cache_process_queue().

◆ a_Nav_expect_done()

◆ a_Nav_forw()

void a_Nav_forw ( BrowserWindow bw)

◆ a_Nav_free()

void a_Nav_free ( BrowserWindow bw)

Definition at line 43 of file nav.c.

References a_Nav_cancel_expect(), dFree(), and BrowserWindow::nav_stack.

◆ a_Nav_get_buf()

int a_Nav_get_buf ( const DilloUrl Url,
char **  PBuf,
int *  BufSize 
)

Definition at line 580 of file nav.c.

References a_Capi_get_buf().

Referenced by a_UIcmd_view_page_source().

◆ a_Nav_get_content_type()

const char * a_Nav_get_content_type ( const DilloUrl url)

Definition at line 596 of file nav.c.

References a_Capi_get_content_type().

Referenced by a_UIcmd_view_page_source().

◆ a_Nav_get_top_uidx()

int a_Nav_get_top_uidx ( BrowserWindow bw)

Definition at line 72 of file nav.c.

References a_Nav_stack_ptr(), dList_nth_data(), and BrowserWindow::nav_stack.

◆ a_Nav_get_uidx()

int a_Nav_get_uidx ( BrowserWindow bw,
int  i 
)

Definition at line 63 of file nav.c.

References dList_nth_data(), and BrowserWindow::nav_stack.

◆ a_Nav_home()

void a_Nav_home ( BrowserWindow bw)

Definition at line 466 of file nav.c.

References a_Nav_push(), DilloPrefs::home, and prefs.

◆ a_Nav_jump()

void a_Nav_jump ( BrowserWindow bw,
int  offset,
int  new_bw 
)

◆ a_Nav_push()

◆ a_Nav_redirection0()

◆ a_Nav_reload()

void a_Nav_reload ( BrowserWindow bw)

Definition at line 516 of file nav.c.

References a_Timeout_add(), dReturn_if_fail, and Nav_reload_callback().

Referenced by a_Capi_ccc(), a_UIcmd_reload(), and Cache_auth_callback().

◆ a_Nav_repush()

void a_Nav_repush ( BrowserWindow bw)

◆ a_Nav_save_url()

void a_Nav_save_url ( BrowserWindow bw,
const DilloUrl url,
const char *  filename 
)

◆ a_Nav_set_vsource_url()

void a_Nav_set_vsource_url ( const DilloUrl Url)

Definition at line 604 of file nav.c.

References a_Capi_set_vsource_url().

Referenced by a_UIcmd_view_page_source().

◆ a_Nav_stack_ptr()

◆ a_Nav_stack_size()

◆ a_Nav_unref_buf()

void a_Nav_unref_buf ( const DilloUrl Url)

Definition at line 588 of file nav.c.

References a_Capi_unref_buf().

Referenced by a_UIcmd_view_page_source().

◆ Nav_get_scroll_pos()

static void Nav_get_scroll_pos ( BrowserWindow bw,
int *  posx,
int *  posy 
)
static

Definition at line 139 of file nav.c.

References a_Nav_stack_ptr(), dList_nth_data(), and BrowserWindow::nav_stack.

Referenced by a_Nav_expect_done().

◆ Nav_open_url()

◆ Nav_redirection0_callback()

static void Nav_redirection0_callback ( void *  data)
static

◆ Nav_reload_callback()

◆ Nav_repush()

◆ Nav_repush_callback()

static void Nav_repush_callback ( void *  data)
static

Definition at line 378 of file nav.c.

References _MSG, a_Timeout_remove(), and Nav_repush().

Referenced by a_Nav_repush().

◆ Nav_save_cb()

static void Nav_save_cb ( int  Op,
CacheClient_t Client 
)
static

◆ Nav_save_scroll_pos()

static void Nav_save_scroll_pos ( BrowserWindow bw,
int  idx,
int  posx,
int  posy 
)
static

Definition at line 154 of file nav.c.

References dList_nth_data(), and BrowserWindow::nav_stack.

Referenced by a_Nav_expect_done(), and Nav_open_url().

◆ Nav_stack_append()

static void Nav_stack_append ( BrowserWindow bw,
int  url_idx 
)
static

Definition at line 122 of file nav.c.

References dList_append(), dNew, dReturn_if_fail, and BrowserWindow::nav_stack.

Referenced by a_Nav_expect_done().

◆ Nav_stack_clean()

static void Nav_stack_clean ( BrowserWindow bw)
static

◆ Nav_stack_move_ptr()

static void Nav_stack_move_ptr ( BrowserWindow bw,
int  offset 
)
static

◆ Nav_stack_truncate()

static void Nav_stack_truncate ( BrowserWindow bw,
int  pos 
)
static