commit eb9cbcba6ce8028e674a2b2c59643163bb8e1213 from: Omar Polo date: Mon Jan 03 12:36:49 2022 UTC move session_tab{,_hist} to session.h commit - bad198b35f41daf3816f19bcb2892487a881e40c commit + eb9cbcba6ce8028e674a2b2c59643163bb8e1213 blob - 269ddf8cfbad17a47c163c1af36eb6f4857ab7b5 blob + a5f1ec253f2c26c6a8bbd0a97fb2babfdf79ada7 --- fs.c +++ fs.c @@ -36,6 +36,7 @@ #include "fs.h" #include "pages.h" #include "telescope.h" +#include "session.h" static void die(void) __attribute__((__noreturn__)); static void send_file(uint32_t, FILE *); blob - 7f07e22acf62c3676335e7e4fc7795b4ac8f2fa8 blob + c7f67ee3bcf557fad065232a7ae38a2d58181698 --- fs.h +++ fs.h @@ -21,19 +21,6 @@ #include -#include "telescope.h" - -struct session_tab { - uint32_t flags; - char uri[GEMINI_URL_LEN]; - char title[TITLE_MAX]; -}; - -struct session_tab_hist { - char uri[GEMINI_URL_LEN]; - int future; -}; - extern char config_path_base[PATH_MAX]; extern char data_path_base[PATH_MAX]; extern char cache_path_base[PATH_MAX]; blob - f942629ad759f05d1c88bda01b3fc3aa6d20c545 blob + 6d2ba716953cd94537053699950aa11304f5a8c8 --- session.h +++ session.h @@ -19,6 +19,17 @@ #include "telescope.h" +struct session_tab { + uint32_t flags; + char uri[GEMINI_URL_LEN]; + char title[TITLE_MAX]; +}; + +struct session_tab_hist { + char uri[GEMINI_URL_LEN]; + int future; +}; + void switch_to_tab(struct tab *); unsigned int tab_new_id(void); struct tab *new_tab(const char *, const char *base, struct tab *);