22 #include <t3key/key_api.h>
41 #define T3_KEY_VERSION 0
49 #define T3_KEY_CONST const
56 T3_KEY_CONST
char *
key;
70 #include "key_errors.h"
75 #define T3_ERR_INVALID_FORMAT (-32)
77 #define T3_ERR_TERMINFO_UNKNOWN (-31)
79 #define T3_ERR_NOMAP (-30)
81 #define T3_ERR_TRUNCATED_DB (-29)
83 #define T3_ERR_READ_ERROR (-28)
85 #define T3_ERR_WRONG_VERSION (-27)
const t3_key_string_list_t * t3_key_get_map_names(const char *term, int *error)
Get map names from database.
Definition: key.c:510
const char * key
The name of the key (with modifiers).
Definition: key.h:56
const char * t3_key_strerror(int error)
Get a string description for an error code.
Definition: key.c:581
const t3_key_node_t * next
Pointer to the next t3_key_node_t in the singly-linked list.
Definition: key.h:59
const t3_key_string_list_t * next
Pointer to the next t3_key_string_list_t in the singly-linked list.
Definition: key.h:67
char * t3_key_get_best_map_name(const char *term, int *error)
Get name of best map from database.
Definition: key.c:547
A structure which is part of a singly linked list and contains a single key definition.
Definition: key.h:55
long t3_key_get_version(void)
Get the value of T3_KEY_VERSION corresponding to the actual used library.
Definition: key.c:577
A structure which is part of a singly linked list and contains a single string.
Definition: key.h:65
const t3_key_node_t * t3_key_load_map(const char *term, const char *map_name, int *error)
Load a key map from database.
Definition: key.c:304
const char * string
A string.
Definition: key.h:66
const t3_key_node_t * t3_key_get_named_node(const t3_key_node_t *map, const char *name)
Get a named node from a map.
Definition: key.c:562
const char * string
The character sequence associated with the key.
Definition: key.h:57
void t3_key_free_names(const t3_key_string_list_t *list)
Free a map names list.
const size_t string_length
The length in bytes of t3_key_node_t::string.
Definition: key.h:58
void t3_key_free_map(const t3_key_node_t *list)
Free a key map.