Lines Matching refs:groupi
113 InitGroupInfo(GroupInfo *groupi) in InitGroupInfo() argument
115 memset(groupi, 0, sizeof(*groupi)); in InitGroupInfo()
119 ClearGroupInfo(GroupInfo *groupi) in ClearGroupInfo() argument
122 darray_foreach(leveli, groupi->levels) in ClearGroupInfo()
124 darray_free(groupi->levels); in ClearGroupInfo()
154 GroupInfo *groupi; in ClearKeyInfo() local
155 darray_foreach(groupi, keyi->groups) in ClearKeyInfo()
156 ClearGroupInfo(groupi); in ClearKeyInfo()
615 GroupInfo *groupi; in GetGroupIndex() local
619 darray_enumerate(i, groupi, keyi->groups) { in GetGroupIndex()
620 if (!(groupi->defined & field)) { in GetGroupIndex()
659 GroupInfo *groupi; in AddSymbolsToKey() local
665 groupi = &darray_item(keyi->groups, ndx); in AddSymbolsToKey()
668 groupi->defined |= GROUP_FIELD_SYMS; in AddSymbolsToKey()
681 if (groupi->defined & GROUP_FIELD_SYMS) { in AddSymbolsToKey()
690 if (darray_size(groupi->levels) < nLevels) in AddSymbolsToKey()
691 darray_resize0(groupi->levels, nLevels); in AddSymbolsToKey()
693 groupi->defined |= GROUP_FIELD_SYMS; in AddSymbolsToKey()
697 struct xkb_level *leveli = &darray_item(groupi->levels, i); in AddSymbolsToKey()
728 GroupInfo *groupi; in AddActionsToKey() local
735 groupi = &darray_item(keyi->groups, ndx); in AddActionsToKey()
738 groupi->defined |= GROUP_FIELD_ACTS; in AddActionsToKey()
750 if (groupi->defined & GROUP_FIELD_ACTS) { in AddActionsToKey()
761 if (darray_size(groupi->levels) < nActs) in AddActionsToKey()
762 darray_resize0(groupi->levels, nActs); in AddActionsToKey()
764 groupi->defined |= GROUP_FIELD_ACTS; in AddActionsToKey()
768 union xkb_action *toAct = &darray_item(groupi->levels, i).action; in AddActionsToKey()
1085 GroupInfo *groupi; in SetExplicitGroup() local
1091 darray_enumerate_from(i, groupi, keyi->groups, 1) { in SetExplicitGroup()
1092 if (groupi->defined) { in SetExplicitGroup()
1094 ClearGroupInfo(groupi); in SetExplicitGroup()
1095 InitGroupInfo(groupi); in SetExplicitGroup()
1291 FindAutomaticType(struct xkb_context *ctx, GroupInfo *groupi) in FindAutomaticType() argument
1294 const xkb_level_index_t width = darray_size(groupi->levels); in FindAutomaticType()
1297 (darray_item(groupi->levels, level).num_syms == 0 ? \ in FindAutomaticType()
1299 darray_item(groupi->levels, level).num_syms == 1 ? \ in FindAutomaticType()
1300 darray_item(groupi->levels, level).u.sym : \ in FindAutomaticType()
1302 darray_item(groupi->levels, level).u.syms[0]) in FindAutomaticType()
1348 GroupInfo *groupi = &darray_item(keyi->groups, group); in FindTypeForGroup() local
1349 xkb_atom_t type_name = groupi->type; in FindTypeForGroup()
1358 type_name = FindAutomaticType(keymap->ctx, groupi); in FindTypeForGroup()
1369 (unsigned long) darray_size(groupi->levels)); in FindTypeForGroup()
1401 GroupInfo *groupi; in CopySymbolsDefToKeymap() local
1419 darray_enumerate(i, groupi, keyi->groups) in CopySymbolsDefToKeymap()
1420 if (groupi->defined) in CopySymbolsDefToKeymap()
1434 darray_foreach_from(groupi, keyi->groups, 1) { in CopySymbolsDefToKeymap()
1435 if (groupi->defined) in CopySymbolsDefToKeymap()
1438 CopyGroupInfo(groupi, group0); in CopySymbolsDefToKeymap()
1444 darray_enumerate(i, groupi, keyi->groups) { in CopySymbolsDefToKeymap()
1451 if (type->num_levels < darray_size(groupi->levels)) { in CopySymbolsDefToKeymap()
1459 (int) darray_size(groupi->levels)); in CopySymbolsDefToKeymap()
1461 darray_foreach_from(leveli, groupi->levels, type->num_levels) in CopySymbolsDefToKeymap()
1464 darray_resize0(groupi->levels, type->num_levels); in CopySymbolsDefToKeymap()
1471 darray_enumerate(i, groupi, keyi->groups) in CopySymbolsDefToKeymap()
1472 darray_steal(groupi->levels, &key->groups[i].levels, NULL); in CopySymbolsDefToKeymap()
1487 darray_foreach(groupi, keyi->groups) { in CopySymbolsDefToKeymap()
1488 if (groupi->defined & GROUP_FIELD_ACTS) { in CopySymbolsDefToKeymap()