summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-09-27 20:00:33 +0200
committerDave Davenport <qball@gmpclient.org>2017-09-27 20:00:33 +0200
commita1ea3e268f92e9edcce6a794d98929effb036675 (patch)
tree4f5f9abe0a810b8f2bb35e8a7900a816dbbe827d /include
parentb7a36f5ea50649b514c54591530e1bafc15b3578 (diff)
Add more configuration options to script mode, getting closer to dmenu.
- urgent - active - prompt - message
Diffstat (limited to 'include')
-rw-r--r--include/helper.h22
-rw-r--r--include/rofi-types.h9
2 files changed, 31 insertions, 0 deletions
diff --git a/include/helper.h b/include/helper.h
index 0e953a6e..a120ebab 100644
--- a/include/helper.h
+++ b/include/helper.h
@@ -29,6 +29,7 @@
#define ROFI_HELPER_H
#include <cairo.h>
+#include <rofi-types.h>
/**
* @defgroup HELPERS Helpers
@@ -315,4 +316,25 @@ gboolean helper_execute_command ( const char *wd, const char *cmd, gboolean run_
*/
cairo_surface_t *cairo_image_surface_create_from_svg ( const gchar* file, int height );
+
+/**
+ * Ranges.
+ */
+
+/**
+ * @param input String to parse
+ * @param list List of ranges
+ * @param length Length of list.
+ *
+ * ranges
+ */
+void parse_ranges ( char *input, rofi_range_pair **list, unsigned int *length );
+
+/**
+ * @param format
+ * @param string
+ * @param selected_line
+ * @param filter
+ */
+void rofi_output_formatted_line ( const char *format, const char *string, int selected_line, const char *filter );
#endif // ROFI_HELPER_H
diff --git a/include/rofi-types.h b/include/rofi-types.h
index 57393981..d9bae009 100644
--- a/include/rofi-types.h
+++ b/include/rofi-types.h
@@ -216,4 +216,13 @@ typedef struct Property
PropertyValue value;
} Property;
+
+/**
+ * Structure to hold a range.
+ */
+typedef struct rofi_range_pair
+{
+ unsigned int start;
+ unsigned int stop;
+} rofi_range_pair;
#endif // INCLUDE_ROFI_TYPES_H