Debian Codegraph @

test/compose-iter.h

raw
1 /*
2 * Copyright © 2022 Ran Benita <[email protected]>
3 * SPDX-License-Identifier: MIT
4 */
5 #pragma once
6
7 #include "config.h"
8 #include "src/compose/table.h"
9
10 /**
11 * The iterator function type used by xkb_compose_table_for_each().
12 */
13 typedef void
14 (*xkb_compose_table_iter_t)(struct xkb_compose_table_entry *entry,
15 void *data);
16
17 /**
18 * Run a specified function for every valid entry in the table.
19 *
20 * The entries are returned in lexicographic order of the left-hand
21 * side of entries. This does not correspond to the order in which
22 * the entries appear in the Compose file.
23 */
24 void
25 xkb_compose_table_for_each(struct xkb_compose_table *table,
26 xkb_compose_table_iter_t iter,
27 void *data);