Lines Matching full:char_map
592 * and saves it into char_map as its name.
595 kcm_get_charmap_name(const char* kcm_file_path, AKeyCharmap* char_map) {
596 kcm_extract_charmap_name(kcm_file_path, char_map->name,
597 sizeof(char_map->name));
609 * char_map - Upon success will contain initialized characters map.
613 parse_kcm_file(const char* kcm_file_path, AKeyCharmap* char_map) {
624 char_map->num_entries = 0;
625 char_map->entries = 0;
635 kcm_get_charmap_name(kcm_file_path, char_map);
638 char_map->num_entries = 0;
639 char_map->entries = qemu_malloc(sizeof(AKeyEntry) * map_size);
653 if (map_size == char_map->num_entries) {
657 memcpy(new_map, char_map->entries,
658 char_map->num_entries * sizeof(AKeyEntry));
659 qemu_free((void*)char_map->entries);
660 char_map->entries = new_map;
662 entries = (AKeyEntry*)char_map->entries;
663 entries[char_map->num_entries] = key_entry;
664 char_map->num_entries++;
684 if (0 != char_map->entries) {
685 qemu_free((void*)char_map->entries);
686 char_map->entries = 0;
688 char_map->num_entries = 0;