commit 9ad4627d13d5a7da0762f35192a0428a7ac8010c from: Omar Polo date: Wed Mar 10 22:29:04 2021 UTC add stop_tab api commit - 71a2feab64c718e24fd610ee8c95a57f6da13b8c commit + 9ad4627d13d5a7da0762f35192a0428a7ac8010c blob - fa7bc4bd5791b0a038c6719767da0a74425341cb blob + 4fe903ae320e7036cdfea34342a5ae4e04c06447 --- telescope.c +++ telescope.c @@ -287,6 +287,13 @@ load_url(struct tab *tab, const char *url) protos[0].loadfn(tab, url); } +void +stop_tab(struct tab *tab) +{ + imsg_compose(ibuf, IMSG_STOP, tab->id, 0, -1, NULL, 0); + imsg_flush(ibuf); +} + int main(void) { blob - 2ca8fdf2b69ebaf2803317f281603af31265e97e blob + f4c658d59575f21d0f4a690189336e0a5b8833f9 --- telescope.h +++ telescope.h @@ -130,6 +130,7 @@ extern const char *err_pages[70]; void load_about_url(struct tab*, const char*); void load_gemini_url(struct tab*, const char*); void load_url(struct tab*, const char*); +void stop_tab(struct tab*); /* ui.c */ int ui_init(void);