diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-10-14 08:47:21 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-10-14 08:47:21 +0200 |
commit | b4c599f022feb69d5be7c27a3037c70c02c44790 (patch) | |
tree | fe0a1d674e402182e6c8ae7e6ada3767d837f466 /include/rofi.h | |
parent | cc496c38ee31cab226bbede60d3790afcf108b3d (diff) |
Add more documentation.
Current state: 61% coverage.
Diffstat (limited to 'include/rofi.h')
-rw-r--r-- | include/rofi.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/rofi.h b/include/rofi.h index 5c830db3..f94a2ec9 100644 --- a/include/rofi.h +++ b/include/rofi.h @@ -36,6 +36,12 @@ unsigned int rofi_get_num_enabled_modi ( void ); */ const Mode * rofi_get_mode ( unsigned int index ); +/** + * @param code the code to return + * + * Return value are used for integrating dmenu rofi in scripts. + * This function sets the code that rofi will return on exit. + */ void rofi_set_return_code ( int code ); /** Reset terminal */ #define color_reset "\033[0m" @@ -46,6 +52,7 @@ void rofi_set_return_code ( int code ); /** Set terminal foreground text green */ #define color_green "\033[0;32m" +/** Appends instructions on how to report an error. */ #define ERROR_MSG( a ) a "\n" \ "If you suspect this is caused by a bug in rofi,\n" \ "please report the following information to rofi's github page:\n" \ @@ -54,6 +61,7 @@ void rofi_set_return_code ( int code ); " * Steps to reproduce\n" \ " * The version of rofi you are running\n\n" \ " <i>https://github.com/DaveDavenport/rofi/</i>" +/** Indicates if ERROR_MSG uses pango markup */ #define ERROR_MSG_MARKUP TRUE /*@}*/ #endif |