Implement storage of URLs in a hash map

This commit is contained in:
Kovid Goyal
2020-08-26 13:25:37 +05:30
parent e99d93ca30
commit 33beecddda
10 changed files with 1428 additions and 31 deletions

15
kitty/hyperlink.h Normal file
View File

@@ -0,0 +1,15 @@
/*
* Copyright (C) 2020 Kovid Goyal <kovid at kovidgoyal.net>
*
* Distributed under terms of the GPL3 license.
*/
#pragma once
#include "screen.h"
HYPERLINK_POOL_HANDLE alloc_hyperlink_pool(void);
void free_hyperlink_pool(HYPERLINK_POOL_HANDLE);
void clear_hyperlink_pool(HYPERLINK_POOL_HANDLE);
hyperlink_id_type get_id_for_hyperlink(Screen*, const char*, const char*);
hyperlink_id_type remap_hyperlink_ids(Screen *self, hyperlink_id_type *map);