51 NSLOG(netsurf, INFO,
"Unable to create hash table");
59 const char *accelerators_path;
nserror nsgtk_accelerator_init(char **respaths)
const char * nsgtk_accelerator_get_desc(const char *key)
static struct hash_table * accelerators_hash
The hash table used to store the accelerators.
#define HASH_SIZE
acclelerators are stored in a fixed-size hash table.
nserror
Enumeration of error codes.
@ NSERROR_NOMEM
Memory exhaustion.
char ** respaths
resource search path vector
struct hash_table * hash_create(unsigned int chains)
Create a new hash table.
nserror hash_add_inline(struct hash_table *ht, const uint8_t *data, size_t size)
Add key/value pairs to a hash table with data from a memory buffer.
nserror hash_add_file(struct hash_table *ht, const char *path)
Add key/value pairs to a hash table with data from a file.
const char * hash_get(struct hash_table *ht, const char *key)
Looks up a the value associated with with a key from a specific hash table.
Interface to Write-Once hash table for string to string mapping.
#define NSLOG(catname, level, logmsg, args...)
nserror nsgtk_data_from_resname(const char *resname, const uint8_t **data_out, size_t *data_size_out)
Get direct pointer to resource data.
nserror nsgtk_path_from_resname(const char *resname, const char **path_out)
Get path to resource data.
Interface to gtk builtin resource handling.