commit - cbfb58710c4cc9122dd3c9581e2612ba6c881690
commit + f1c6e31eefd4cfa1d503cb3659c0e6330a122387
blob - 7d5d1534f4e070dc94113985cff02a3cf0d61e73
blob + b6d7dd1e51ffe4cd45f7ffa7829a8d9c2f94c2f5
--- telescope.h
+++ telescope.h
struct parser;
struct page;
-/* typedef void (*initparserfn)(struct parser*); */
-
typedef int (*parsechunkfn)(struct parser*, const char*, size_t);
typedef int (*parserfreefn)(struct parser*);
struct tofu_entry {
char domain[GEMINI_URL_LEN];
- /* enough space for ``PROTO:HASH''. probably isn't a good
- * idea tho. */
+
+ /*
+ * enough space for ``PROTO:HASH''. probably isn't a good
+ * idea tho.
+ */
char hash[128+1];
int verified;
};
struct proto {
const char *schema;
- /* should load the given url in the tab. Optionally, it may
+ /*
+ * should load the given url in the tab. Optionally, it may
* consider the given url as relative to the one already
* present in tab. It must set tab->urlstr to a serialized
- * human-friendly URL. */
+ * human-friendly URL.
+ */
void (*loadfn)(struct tab*, const char*);
};