diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-03-04 12:00:59 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-03-04 12:00:59 +0100 |
commit | 86dc1e14486044c4b5d7838005fbe7960d157026 (patch) | |
tree | 6bf2c878a94b7e93ff38fb91f5ca5915fa324e04 /include | |
parent | 45c70cbecf980769ec5cda10e1186bf3d7dcb580 (diff) |
Detect plugins on startup.
Diffstat (limited to 'include')
-rw-r--r-- | include/mode-private.h | 6 | ||||
-rw-r--r-- | include/rofi.h | 8 |
2 files changed, 13 insertions, 1 deletions
diff --git a/include/mode-private.h b/include/mode-private.h index 935402e4..67d3ca9d 100644 --- a/include/mode-private.h +++ b/include/mode-private.h @@ -1,7 +1,8 @@ #ifndef ROFI_MODE_PRIVATE_H #define ROFI_MODE_PRIVATE_H -#define ABI_VERSION 0x00000002 +#include <gmodule.h> +#define ABI_VERSION 0x00000003 /** * @param data Pointer to #Mode object. @@ -149,5 +150,8 @@ struct rofi_mode _mode_free free; /** Extra fields for script */ void *ed; + + /** Module */ + GModule *module; }; #endif // ROFI_MODE_PRIVATE_H diff --git a/include/rofi.h b/include/rofi.h index 87e571e4..ee2d4ccd 100644 --- a/include/rofi.h +++ b/include/rofi.h @@ -41,6 +41,7 @@ const Mode * rofi_get_mode ( unsigned int index ); * Queue an error. */ void rofi_add_error_message ( GString *str ); + /** * @param code the code to return * @@ -48,6 +49,13 @@ void rofi_add_error_message ( GString *str ); * This function sets the code that rofi will return on exit. */ void rofi_set_return_code ( int code ); + +/** + * @param name Search for mode with this name. + * + * @return returns Mode * when found, NULL if not. + */ +Mode * rofi_collect_modi_search ( const char *name ); /** Reset terminal */ #define color_reset "\033[0m" /** Set terminal text bold */ |