From 11c347fad8a3281d6b3c613d9c84346508a80c55 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Thu, 11 Feb 2016 08:41:19 +0100 Subject: Use accessors in RofiView to get modi's and num modi for sidebar. --- include/rofi.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'include/rofi.h') diff --git a/include/rofi.h b/include/rofi.h index 75713df7..d4c8646e 100644 --- a/include/rofi.h +++ b/include/rofi.h @@ -19,6 +19,22 @@ */ extern const char *cache_dir; +/** + * Get the number of enabled modi. + * + * @returns the number of enabled modi. + */ +unsigned int rofi_get_num_enabled_modi ( void ); + +/** + * @param index The mode to return. (should be smaller then rofi_get_num_enabled_mode) + * + * Get an enabled mode handle. + * + * @returns a Mode handle. + */ +const Mode * rofi_get_mode ( unsigned int index ); + /** * @param key the Key to match * @param modstate the modifier state to match -- cgit v1.2.3