Commit Diff
Diff:
0640b55566b66eb28c4c16f22c10e47b58207394
c6e37ffde911f0a5e1a09ff309d347497c7a1d2e
Commit:
c6e37ffde911f0a5e1a09ff309d347497c7a1d2e
Tree:
41eb56264065fbfed8abf4708f0051b7176665f9
Author:
Omar Polo <op@omarpolo.com>
Date:
Fri May 27 17:55:15 2022 UTC
Message:
s/IMSG_GET_RAW/IMSG_GET and gc unused IMSG_GET_FILE
commit - 0640b55566b66eb28c4c16f22c10e47b58207394
commit + c6e37ffde911f0a5e1a09ff309d347497c7a1d2e
blob - 23fef5693b560ecabe0e48ecda84a09375d424d9
blob + 775dd96a91ec69593dfec0a7034df2229a7cc64e
--- include/telescope.h
+++ include/telescope.h
@@ -45,9 +45,7 @@ struct imsgev {
enum imsg_type {
/* ui <-> client/fs */
- IMSG_GET, /* data is URL, peerid the tab id */
- IMSG_GET_FILE, /* data is path, without \r\n or such */
- IMSG_GET_RAW, /* get but with an explicit req str */
+ IMSG_GET, /* struct get_req, peerid is the tab id */
IMSG_ERR,
IMSG_CHECK_CERT,
IMSG_CERT_STATUS,
blob - a9966d5ca5647879cf01340f26d4281496f2d80d
blob + eed3ce307fe29560ca7d427dfe178bcddc86a865
--- net.c
+++ net.c
@@ -667,7 +667,7 @@ handle_dispatch_imsg(int fd, short event, void *d)
break;
datalen = IMSG_DATA_SIZE(imsg);
switch (imsg.hdr.type) {
- case IMSG_GET_RAW:
+ case IMSG_GET:
r = imsg.data;
if (datalen != sizeof(*r) ||
r->host[sizeof(r->host) - 1] != '\0' ||
blob - 0a65f41e7d8245ce7b8797cc0a8716afbca5a494
blob + 015d9d5ecfe02cdc7d6e3ce56d92805b1230b7c1
--- telescope.c
+++ telescope.c
@@ -697,7 +697,7 @@ make_request(struct tab *tab, struct get_req *req, int
}
start_loading_anim(tab);
- ui_send_net(IMSG_GET_RAW, tab->id, req, sizeof(*req));
+ ui_send_net(IMSG_GET, tab->id, req, sizeof(*req));
/*
* So the various load_*_url can `return make_request` and
Omar Polo