summaryrefslogtreecommitdiffstats
path: root/include/mode.h
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-03-01 09:57:54 +0100
committerDave Davenport <qball@gmpclient.org>2017-03-01 09:57:54 +0100
commit45c70cbecf980769ec5cda10e1186bf3d7dcb580 (patch)
tree6f226bd82cc54a4aad62a75048e8329510eb28b6 /include/mode.h
parent8aac855fe045bc3e388dc888b01ed3438522f0f8 (diff)
Allow modes to set message box, instead of view creation argument.
Diffstat (limited to 'include/mode.h')
-rw-r--r--include/mode.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/mode.h b/include/mode.h
index b8ee36c4..0dbef79c 100644
--- a/include/mode.h
+++ b/include/mode.h
@@ -185,5 +185,14 @@ void mode_set_config ( Mode *mode );
* @returns a newly allocated string
*/
char * mode_preprocess_input ( Mode *mode, const char *input );
+
+/**
+ * @param mode The mode to query
+ *
+ * Query the mode for a user display.
+ *
+ * @return a new allocated (valid pango markup) message to display (user should free).
+ */
+char *mode_get_message ( const Mode *mode );
/*@}*/
#endif