• Home
  • Raw
  • Download

Lines Matching refs:reply

74 #define FAIL_IF_BAD_REPLY(reply, request_name) do {                     \  argument
75 if (!reply) { \
350 xcb_xkb_get_map_reply_t *reply, xcb_xkb_get_map_map_t *map) in get_types() argument
352 int types_length = xcb_xkb_get_map_map_types_rtrn_length(reply, map); in get_types()
354 xcb_xkb_get_map_map_types_rtrn_iterator(reply, map); in get_types()
356 FAIL_UNLESS(reply->firstType == 0); in get_types()
358 keymap->num_types = reply->nTypes; in get_types()
425 xcb_xkb_get_map_reply_t *reply, xcb_xkb_get_map_map_t *map) in get_sym_maps() argument
427 int sym_maps_length = xcb_xkb_get_map_map_syms_rtrn_length(reply, map); in get_sym_maps()
429 xcb_xkb_get_map_map_syms_rtrn_iterator(reply, map); in get_sym_maps()
431 FAIL_UNLESS(reply->minKeyCode <= reply->maxKeyCode); in get_sym_maps()
432 FAIL_UNLESS(reply->firstKeySym >= reply->minKeyCode); in get_sym_maps()
433 FAIL_UNLESS(reply->firstKeySym + reply->nKeySyms <= reply->maxKeyCode + 1); in get_sym_maps()
435 keymap->min_key_code = reply->minKeyCode; in get_sym_maps()
436 keymap->max_key_code = reply->maxKeyCode; in get_sym_maps()
445 struct xkb_key *key = &keymap->keys[reply->firstKeySym + i]; in get_sym_maps()
502 xcb_xkb_get_map_reply_t *reply, xcb_xkb_get_map_map_t *map) in get_actions() argument
505 xcb_xkb_get_map_map_acts_rtrn_count_length(reply, map); in get_actions()
508 xcb_xkb_get_map_map_acts_rtrn_acts_iterator(reply, map); in get_actions()
510 xcb_xkb_get_map_map_syms_rtrn_iterator(reply, map); in get_actions()
512 FAIL_UNLESS(reply->firstKeyAction == keymap->min_key_code); in get_actions()
513 FAIL_UNLESS(reply->firstKeyAction + reply->nKeyActions == in get_actions()
520 struct xkb_key *key = &keymap->keys[reply->firstKeyAction + i]; in get_actions()
553 xcb_xkb_get_map_reply_t *reply, xcb_xkb_get_map_map_t *map) in get_vmods() argument
558 NUM_REAL_MODS + MIN(msb_pos(reply->virtualMods), NUM_VMODS); in get_vmods()
561 if (reply->virtualMods & (1u << i)) { in get_vmods()
577 xcb_xkb_get_map_reply_t *reply, xcb_xkb_get_map_map_t *map) in get_explicits() argument
579 int length = xcb_xkb_get_map_map_explicit_rtrn_length(reply, map); in get_explicits()
581 xcb_xkb_get_map_map_explicit_rtrn_iterator(reply, map); in get_explicits()
622 xcb_xkb_get_map_reply_t *reply, xcb_xkb_get_map_map_t *map) in get_modmaps() argument
624 int length = xcb_xkb_get_map_map_modmap_rtrn_length(reply, map); in get_modmaps()
626 xcb_xkb_get_map_map_modmap_rtrn_iterator(reply, map); in get_modmaps()
649 xcb_xkb_get_map_reply_t *reply, xcb_xkb_get_map_map_t *map) in get_vmodmaps() argument
651 int length = xcb_xkb_get_map_map_vmodmap_rtrn_length(reply, map); in get_vmodmaps()
653 xcb_xkb_get_map_map_vmodmap_rtrn_iterator(reply, map); in get_vmodmaps()
678 xcb_xkb_get_map_reply_t *reply = xcb_xkb_get_map_reply(conn, cookie, NULL); in get_map() local
681 FAIL_IF_BAD_REPLY(reply, "XkbGetMap"); in get_map()
683 if ((reply->present & get_map_required_components) != get_map_required_components) in get_map()
686 xcb_xkb_get_map_map_unpack(xcb_xkb_get_map_map(reply), in get_map()
687 reply->nTypes, in get_map()
688 reply->nKeySyms, in get_map()
689 reply->nKeyActions, in get_map()
690 reply->totalActions, in get_map()
691 reply->totalKeyBehaviors, in get_map()
692 reply->virtualMods, in get_map()
693 reply->totalKeyExplicit, in get_map()
694 reply->totalModMapKeys, in get_map()
695 reply->totalVModMapKeys, in get_map()
696 reply->present, in get_map()
699 if (!get_types(keymap, conn, reply, &map) || in get_map()
700 !get_sym_maps(keymap, conn, reply, &map) || in get_map()
701 !get_actions(keymap, conn, reply, &map) || in get_map()
702 !get_vmods(keymap, conn, reply, &map) || in get_map()
703 !get_explicits(keymap, conn, reply, &map) || in get_map()
704 !get_modmaps(keymap, conn, reply, &map) || in get_map()
705 !get_vmodmaps(keymap, conn, reply, &map)) in get_map()
708 free(reply); in get_map()
712 free(reply); in get_map()
718 xcb_xkb_get_indicator_map_reply_t *reply) in get_indicators() argument
721 xcb_xkb_get_indicator_map_maps_iterator(reply); in get_indicators()
723 keymap->num_leds = msb_pos(reply->which); in get_indicators()
726 if (reply->which & (1u << i)) { in get_indicators()
770 xcb_xkb_get_indicator_map_reply_t *reply = in get_indicator_map() local
773 FAIL_IF_BAD_REPLY(reply, "XkbGetIndicatorMap"); in get_indicator_map()
775 if (!get_indicators(keymap, conn, reply)) in get_indicator_map()
778 free(reply); in get_indicator_map()
782 free(reply); in get_indicator_map()
788 xcb_xkb_get_compat_map_reply_t *reply) in get_sym_interprets() argument
790 int length = xcb_xkb_get_compat_map_si_rtrn_length(reply); in get_sym_interprets()
792 xcb_xkb_get_compat_map_si_rtrn_iterator(reply); in get_sym_interprets()
794 FAIL_UNLESS(reply->firstSIRtrn == 0); in get_sym_interprets()
795 FAIL_UNLESS(reply->nSIRtrn == reply->nTotalSI); in get_sym_interprets()
797 keymap->num_sym_interprets = reply->nSIRtrn; in get_sym_interprets()
850 xcb_xkb_get_compat_map_reply_t *reply = in get_compat_map() local
853 FAIL_IF_BAD_REPLY(reply, "XkbGetCompatMap"); in get_compat_map()
855 if (!get_sym_interprets(keymap, conn, reply)) in get_compat_map()
858 free(reply); in get_compat_map()
862 free(reply); in get_compat_map()
868 xcb_xkb_get_names_reply_t *reply, in get_type_names() argument
872 xcb_xkb_get_names_value_list_type_names_length(reply, list); in get_type_names()
876 xcb_xkb_get_names_value_list_n_levels_per_type_length(reply, list); in get_type_names()
882 FAIL_UNLESS(reply->nTypes == keymap->num_types); in get_type_names()
916 xcb_xkb_get_names_reply_t *reply, in get_indicator_names() argument
921 FAIL_UNLESS(msb_pos(reply->indicators) <= keymap->num_leds); in get_indicator_names()
924 if (reply->indicators & (1u << i)) { in get_indicator_names()
942 xcb_xkb_get_names_reply_t *reply, in get_vmod_names() argument
953 NUM_REAL_MODS + MIN(msb_pos(reply->virtualMods), NUM_VMODS); in get_vmod_names()
956 if (reply->virtualMods & (1u << i)) { in get_vmod_names()
971 xcb_xkb_get_names_reply_t *reply, in get_group_names() argument
974 int length = xcb_xkb_get_names_value_list_groups_length(reply, list); in get_group_names()
977 keymap->num_group_names = msb_pos(reply->groupNames); in get_group_names()
993 xcb_xkb_get_names_reply_t *reply, in get_key_names() argument
996 int length = xcb_xkb_get_names_value_list_key_names_length(reply, list); in get_key_names()
998 xcb_xkb_get_names_value_list_key_names_iterator(reply, list); in get_key_names()
1000 FAIL_UNLESS(reply->minKeyCode == keymap->min_key_code); in get_key_names()
1001 FAIL_UNLESS(reply->maxKeyCode == keymap->max_key_code); in get_key_names()
1002 FAIL_UNLESS(reply->firstKey == keymap->min_key_code); in get_key_names()
1003 FAIL_UNLESS(reply->firstKey + reply->nKeys - 1U == keymap->max_key_code); in get_key_names()
1007 xkb_atom_t *key_name = &keymap->keys[reply->firstKey + i].name; in get_key_names()
1031 xcb_xkb_get_names_reply_t *reply, in get_aliases() argument
1034 int length = xcb_xkb_get_names_value_list_key_aliases_length(reply, list); in get_aliases()
1036 xcb_xkb_get_names_value_list_key_aliases_iterator(reply, list); in get_aliases()
1038 keymap->num_key_aliases = reply->nKeyAliases; in get_aliases()
1068 xcb_xkb_get_names_reply_t *reply = in get_names() local
1072 FAIL_IF_BAD_REPLY(reply, "XkbGetNames"); in get_names()
1074 FAIL_UNLESS((reply->which & get_names_required) == get_names_required); in get_names()
1076 xcb_xkb_get_names_value_list_unpack(xcb_xkb_get_names_value_list(reply), in get_names()
1077 reply->nTypes, in get_names()
1078 reply->indicators, in get_names()
1079 reply->virtualMods, in get_names()
1080 reply->groupNames, in get_names()
1081 reply->nKeys, in get_names()
1082 reply->nKeyAliases, in get_names()
1083 reply->nRadioGroups, in get_names()
1084 reply->which, in get_names()
1095 if (!get_type_names(keymap, interner, reply, &list) || in get_names()
1096 !get_indicator_names(keymap, interner, reply, &list) || in get_names()
1097 !get_vmod_names(keymap, interner, reply, &list) || in get_names()
1098 !get_group_names(keymap, interner, reply, &list) || in get_names()
1099 !get_key_names(keymap, conn, reply, &list) || in get_names()
1100 !get_aliases(keymap, conn, reply, &list)) in get_names()
1103 free(reply); in get_names()
1107 free(reply); in get_names()
1115 xcb_xkb_get_controls_reply_t *reply = in get_controls() local
1118 FAIL_IF_BAD_REPLY(reply, "XkbGetControls"); in get_controls()
1119 FAIL_UNLESS(reply->numGroups > 0 && reply->numGroups <= 4); in get_controls()
1121 keymap->enabled_ctrls = translate_controls_mask(reply->enabledControls); in get_controls()
1122 keymap->num_groups = reply->numGroups; in get_controls()
1127 keymap->keys[i].repeats = (reply->perKeyRepeat[i / 8] & (1 << (i % 8))); in get_controls()
1129 free(reply); in get_controls()
1133 free(reply); in get_controls()