* Returns 1 if the given modifier is active with the specified type(s), 0 if
* not, or -1 if the modifier is invalid.
*/
-int xkb_state_mod_index_is_active(struct xkb_state *state,
- xkb_mod_index_t idx,
- enum xkb_state_component type)
+int
+xkb_state_mod_index_is_active(struct xkb_state *state,
+ xkb_mod_index_t idx,
+ enum xkb_state_component type)
{
int ret = 0;
* Returns 1 if the given modifier is active with the specified type(s), 0 if
* not, or -1 if the modifier is invalid.
*/
-int xkb_state_mod_name_is_active(struct xkb_state *state, const char *name,
- enum xkb_state_component type)
+int
+xkb_state_mod_name_is_active(struct xkb_state *state, const char *name,
+ enum xkb_state_component type)
{
xkb_mod_index_t idx = xkb_map_mod_get_index(state->xkb, name);
* Returns 1 if the given group is active with the specified type(s), 0 if
* not, or -1 if the group is invalid.
*/
-int xkb_state_group_index_is_active(struct xkb_state *state,
- xkb_group_index_t idx,
- enum xkb_state_component type)
+int
+xkb_state_group_index_is_active(struct xkb_state *state,
+ xkb_group_index_t idx,
+ enum xkb_state_component type)
{
int ret = 0;
* Returns 1 if the given modifier is active with the specified type(s), 0 if
* not, or -1 if the modifier is invalid.
*/
-int xkb_state_group_name_is_active(struct xkb_state *state, const char *name,
- enum xkb_state_component type)
+int
+xkb_state_group_name_is_active(struct xkb_state *state, const char *name,
+ enum xkb_state_component type)
{
xkb_group_index_t idx = xkb_map_group_get_index(state->xkb, name);
/**
* Returns 1 if the given LED is active, 0 if not, or -1 if the LED is invalid.
*/
-int xkb_state_led_index_is_active(struct xkb_state *state, xkb_led_index_t idx)
+int
+xkb_state_led_index_is_active(struct xkb_state *state, xkb_led_index_t idx)
{
if (idx >= xkb_map_num_leds(state->xkb))
return -1;
/**
* Returns 1 if the given LED is active, 0 if not, or -1 if the LED is invalid.
*/
-int xkb_state_led_name_is_active(struct xkb_state *state, const char *name)
+int
+xkb_state_led_name_is_active(struct xkb_state *state, const char *name)
{
xkb_led_index_t idx = xkb_map_led_get_index(state->xkb, name);