commit - ab0a42744b90d8cb40c1e7e2ab98e360bcd49bce
commit + dfb5eb393cd9d879637f6a643f31593ef8c654fa
blob - 4ff81ed2913c91b22e0e086708c6ab8f99d60237
blob + e2ed9c29c34d93bbed3ddc09bf911fb2f5a29eaf
--- telescope.c
+++ telescope.c
PROC_NET,
};
-static struct proto protos[] = {
- { "about", load_about_url },
- { "finger", load_finger_url },
- { "gemini", load_gemini_url },
- { NULL, NULL },
-};
-
-
#define CANNOT_FETCH 0
#define TOO_MUCH_REDIRECTS 1
#define MALFORMED_RESPONSE 2
static void handle_imsg_update_cert_ok(struct imsg *, size_t);
static void handle_dispatch_imsg(int, short, void*);
static void load_page_from_str(struct tab*, const char*);
+static void load_about_url(struct tab*, const char*);
+static void load_finger_url(struct tab *, const char *);
+static void load_gemini_url(struct tab*, const char*);
+static void load_via_proxy(struct tab *, const char *,
+ struct proxy *);
static int do_load_url(struct tab*, const char *, const char *);
static void parse_session_line(char *, const char **, uint32_t *);
static void load_last_session(void);
static pid_t start_child(enum telescope_process, const char *, int);
static int ui_send_net(int, uint32_t, const void *, uint16_t);
static int ui_send_fs(int, uint32_t, const void *, uint16_t);
+
+static struct proto protos[] = {
+ { "about", load_about_url },
+ { "finger", load_finger_url },
+ { "gemini", load_gemini_url },
+ { NULL, NULL },
+};
static imsg_handlerfn *handlers[] = {
[IMSG_ERR] = handle_imsg_err,
ui_on_tab_loaded(tab);
}
-void
+static void
load_about_url(struct tab *tab, const char *url)
{
tab->trust = TS_VERIFIED;
tab->hist_cur->h, strlen(tab->hist_cur->h)+1);
}
-void
+static void
load_finger_url(struct tab *tab, const char *url)
{
struct get_req req;
textplain_initparser(&tab->buffer.page);
}
-void
+static void
load_gemini_url(struct tab *tab, const char *url)
{
struct get_req req;
&req, sizeof(req));
}
-void
+static void
load_via_proxy(struct tab *tab, const char *url, struct proxy *p)
{
struct get_req req;
blob - 263bcb83c28c1289b993ac7ea39632c0d313937f
blob + 93fa4d640917a31c152c38fa8357eafc58809df1
--- telescope.h
+++ telescope.h
void sandbox_fs_process(void);
/* telescope.c */
-void load_about_url(struct tab*, const char*);
-void load_finger_url(struct tab *, const char *);
-void load_gemini_url(struct tab*, const char*);
-void load_via_proxy(struct tab *, const char *, struct proxy *);
void load_url(struct tab *, const char *, const char *);
int load_previous_page(struct tab*);
int load_next_page(struct tab*);