1 #ifndef EL__SESSION_TASK_H 2 #define EL__SESSION_TASK_H 3 4 #include "cache/cache.h" 5 #include "session/session.h" 6 7 struct download; 8 struct location; 9 struct terminal; 10 struct view_state; 11 struct uri; 12 13 /* This is for map_selected(), it is used to pass around information about 14 * in-imagemap links. */ 15 struct link_def { 16 unsigned char *link; 17 unsigned char *target; 18 }; 19 20 void abort_preloading(struct session *, int); 21 22 void ses_goto(struct session *, struct uri *, unsigned char *, 23 struct location *, enum cache_mode, enum task_type, int); 24 struct view_state *ses_forward(struct session *, int); 25 26 struct uri *get_hooked_uri(unsigned char *uristring, struct session *ses, unsigned char *cwd); 27 28 void goto_uri(struct session *ses, struct uri *uri); 29 void goto_uri_frame(struct session *, struct uri *, unsigned char *, enum cache_mode); 30 void goto_url(struct session *, unsigned char *); 31 void goto_url_with_hook(struct session *, unsigned char *); 32 int goto_url_home(struct session *ses); 33 void goto_imgmap(struct session *, struct uri *, unsigned char *); 34 void map_selected(struct terminal *term, void *ld, void *ses); 35 36 #endif 37