summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-02-19 19:29:06 +0100
committerDave Davenport <qball@gmpclient.org>2016-02-19 19:29:06 +0100
commit4eb3fd1da33e91ad76efe1508702de50daf0df34 (patch)
tree85bab400c0f584c663c353614d57b72cae44732e /include
parenta125f6d515a205f2ca4bc16f4a31311aedb540af (diff)
Test for single mainloop
Diffstat (limited to 'include')
-rw-r--r--include/rofi.h1
-rw-r--r--include/view-internal.h1
-rw-r--r--include/view.h7
3 files changed, 7 insertions, 2 deletions
diff --git a/include/rofi.h b/include/rofi.h
index d4c8646e..ef717cbc 100644
--- a/include/rofi.h
+++ b/include/rofi.h
@@ -46,6 +46,7 @@ const Mode * rofi_get_mode ( unsigned int index );
*/
int locate_switcher ( KeySym key, unsigned int modstate );
+void rofi_set_return_code ( int code );
/** Reset terminal */
#define color_reset "\033[0m"
/** Set terminal text bold */
diff --git a/include/view-internal.h b/include/view-internal.h
index 38f24511..27ee8a00 100644
--- a/include/view-internal.h
+++ b/include/view-internal.h
@@ -3,6 +3,7 @@
#include "widget.h"
#include "textbox.h"
#include "scrollbar.h"
+#include "x11-helper.h"
/**
* @ingroup ViewHandle
diff --git a/include/view.h b/include/view.h
index 82de0d0f..f9763b83 100644
--- a/include/view.h
+++ b/include/view.h
@@ -28,13 +28,15 @@ typedef enum
* @param prompt The prompt to show.
* @param message Extra message to display.
* @param flags Flags indicating state of the menu.
+ * @param finalize the finailze callback
*
* Main menu callback.
*
* @returns The command issued (see MenuReturn)
*/
-RofiViewState *rofi_view_create ( Mode *sw, const char *input, char *prompt, const char *message, MenuFlags flags )
-__attribute__ ( ( nonnull ( 1, 2, 3 ) ) );
+RofiViewState *rofi_view_create ( Mode *sw, const char *input, char *prompt, const char *message, MenuFlags flags, void ( *finalize )(
+ RofiViewState * ) )
+__attribute__ ( ( nonnull ( 1, 2, 3, 6 ) ) );
/**
* @param state The Menu Handle
@@ -147,6 +149,7 @@ void rofi_view_cleanup ( void );
*/
void rofi_view_call_thread ( gpointer data, gpointer user_data );
+Mode * rofi_view_get_mode ( RofiViewState *state );
/** @} */
/***
* @defgroup ViewThreadPool ViewThreadPool