ELinks 0.18.0
task.h File Reference
#include "cache/cache.h"
#include "session/session.h"
Include dependency graph for task.h:
This graph shows which files directly or indirectly include this file:

Data Structures

struct  link_def
 This is for map_selected(), it is used to pass around information about in-imagemap links. More...
 

Functions

void abort_preloading (struct session *, int)
 
void ses_load (struct session *ses, struct uri *uri, char *target_frame, struct location *target_location, cache_mode_T cache_mode, enum task_type task_type)
 
void ses_goto (struct session *, struct uri *, char *, struct location *, cache_mode_T, enum task_type, int)
 
struct view_stateses_forward (struct session *, int)
 If loaded_in_frame is set, this was called just to indicate a move inside a frameset, and we basically just reset the appropriate frame's view_state in that case.
 
struct uriget_hooked_uri (const char *uristring, struct session *ses, char *cwd)
 
void goto_uri (struct session *ses, struct uri *uri)
 
void goto_uri_frame (struct session *, struct uri *, char *, cache_mode_T)
 
void delayed_goto_uri_frame (void *)
 
void goto_url (struct session *, char *)
 
void goto_url_with_hook (struct session *, const char *)
 
int goto_url_home (struct session *ses)
 
void goto_imgmap (struct session *, struct uri *, char *)
 
void map_selected (struct terminal *term, void *ld, void *ses)
 

Function Documentation

◆ abort_preloading()

void abort_preloading ( struct session * ses,
int interrupt )

◆ delayed_goto_uri_frame()

void delayed_goto_uri_frame ( void * data)

◆ get_hooked_uri()

struct uri * get_hooked_uri ( const char * uristring,
struct session * ses,
char * cwd )

◆ goto_imgmap()

void goto_imgmap ( struct session * ses,
struct uri * uri,
char * target )

◆ goto_uri()

void goto_uri ( struct session * ses,
struct uri * uri )

◆ goto_uri_frame()

void goto_uri_frame ( struct session * ses,
struct uri * uri,
char * target,
cache_mode_T cache_mode )

◆ goto_url()

void goto_url ( struct session * ses,
char * url )

◆ goto_url_home()

int goto_url_home ( struct session * ses)

◆ goto_url_with_hook()

void goto_url_with_hook ( struct session * ses,
const char * url )

◆ map_selected()

void map_selected ( struct terminal * term,
void * ld,
void * ses )

◆ ses_forward()

struct view_state * ses_forward ( struct session * ses,
int loaded_in_frame )

If loaded_in_frame is set, this was called just to indicate a move inside a frameset, and we basically just reset the appropriate frame's view_state in that case.

When clicking on a link inside a frame, the frame URI is somehow updated and added to the files-to-load queue, then ses_forward() is called with loaded_in_frame unset, duplicating the whole frameset's location, then later the file-to-load callback calls it for the particular frame with loaded_in_frame set.

◆ ses_goto()

void ses_goto ( struct session * ,
struct uri * ,
char * ,
struct location * ,
cache_mode_T ,
enum task_type,
int  )

◆ ses_load()

void ses_load ( struct session * ses,
struct uri * uri,
char * target_frame,
struct location * target_location,
cache_mode_T cache_mode,
enum task_type task_type )