summaryrefslogtreecommitdiff
path: root/quantum/keymap_introspection.h
blob: 23f6f2016fae9829ab63541021c002b300aff50d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright 2022 Nick Brassel (@tzarc)
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once

#include <stdint.h>

// Get the number of layers defined in the keymap
uint8_t keymap_layer_count(void);

#if defined(ENCODER_ENABLE) && defined(ENCODER_MAP_ENABLE)

// Get the number of layers defined in the encoder map
uint8_t encodermap_layer_count(void);

#endif // defined(ENCODER_ENABLE) && defined(ENCODER_MAP_ENABLE)