summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-02-17 14:06:31 +0100
committerDave Davenport <qball@gmpclient.org>2017-02-17 14:06:31 +0100
commitdc7e4aa96e5fd6b3efd073d6b1d86606b0545bca (patch)
tree1d7a83f5c1e9e8ace83790c7b428f05161f0ed66 /include
parentf7b4bebb9b6188c5eee3d7e76c89f5b6d574f98d (diff)
Install some headers for use in plugins
Diffstat (limited to 'include')
-rw-r--r--include/helper-theme.h29
-rw-r--r--include/helper.h28
-rw-r--r--include/view.h2
-rw-r--r--include/x11-helper.h1
4 files changed, 39 insertions, 21 deletions
diff --git a/include/helper-theme.h b/include/helper-theme.h
new file mode 100644
index 00000000..d685a3fa
--- /dev/null
+++ b/include/helper-theme.h
@@ -0,0 +1,29 @@
+#ifndef ROFI_HELPER_THEME_H
+#define ROFI_HELPER_THEME_H
+#include <pango/pango.h>
+#include "theme.h"
+/**
+ * @defgroup HELPERS Helpers
+ * @{
+ */
+/**
+ * @param th The ThemeHighlight
+ * @param tokens Array of regexes used for matching
+ * @param input The input string to find the matches on
+ * @param retv The Attribute list to update with matches
+ *
+ * Creates a set of pango attributes highlighting the matches found in the input string.
+ *
+ * @returns the updated retv list.
+ */
+PangoAttrList *helper_token_match_get_pango_attr ( ThemeHighlight th, GRegex **tokens, const char *input, PangoAttrList *retv );
+
+/**
+ * @param pfd Pango font description to validate.
+ * @param font The name of the font to check.
+ *
+ * @returns true if font is valid.
+ */
+gboolean helper_validate_font ( PangoFontDescription *pfd, const char *font );
+/* @} */
+#endif // ROFI_HELPER_THEME_H
diff --git a/include/helper.h b/include/helper.h
index cd46eed8..cccc1a24 100644
--- a/include/helper.h
+++ b/include/helper.h
@@ -1,9 +1,5 @@
#ifndef ROFI_HELPER_H
#define ROFI_HELPER_H
-#include "rofi.h"
-
-#include <pango/pango.h>
-#include <theme.h>
/**
* @defgroup HELPERS Helpers
*/
@@ -198,18 +194,6 @@ char * rofi_force_utf8 ( gchar *data, ssize_t length );
char * rofi_latin_to_utf8_strdup ( const char *input, gssize length );
/**
- * @param th The ThemeHighlight
- * @param tokens Array of regexes used for matching
- * @param input The input string to find the matches on
- * @param retv The Attribute list to update with matches
- *
- * Creates a set of pango attributes highlighting the matches found in the input string.
- *
- * @returns the updated retv list.
- */
-PangoAttrList *token_match_get_pango_attr ( ThemeHighlight th, GRegex **tokens, const char *input, PangoAttrList *retv );
-
-/**
* @param pattern The user input to match against.
* @param plen Pattern length.
* @param str The input to match against pattern.
@@ -235,11 +219,15 @@ int rofi_scorer_fuzzy_evaluate ( const char *pattern, glong plen, const char *st
*/
int utf8_strncmp ( const char *a, const char* b, size_t n );
+
/**
- * @param pfd Pango font description to validate.
- * @param font The name of the font to check.
+ * @param wd The work directory (optional)
+ * @param cmd The cmd to execute
+ * @param run_in_term Indicate if command should be run in a terminal
+ *
+ * Execute command.
*
- * @returns true if font is valid.
+ * @returns FALSE On failure, TRUE on success
*/
-gboolean helper_validate_font ( PangoFontDescription *pfd, const char *font );
+int helper_execute_command ( const char *wd, const char *cmd, int run_in_term );
#endif // ROFI_HELPER_H
diff --git a/include/view.h b/include/view.h
index 1c9cec6d..817aeedb 100644
--- a/include/view.h
+++ b/include/view.h
@@ -1,6 +1,6 @@
#ifndef ROFI_VIEW_H
#define ROFI_VIEW_H
-
+#include "mode.h"
#include "xkb.h"
/**
diff --git a/include/x11-helper.h b/include/x11-helper.h
index fadfcf5c..a40fde88 100644
--- a/include/x11-helper.h
+++ b/include/x11-helper.h
@@ -3,6 +3,7 @@
#include <glib.h>
#include <cairo.h>
#include <xcb/xcb.h>
+#include <xkbcommon/xkbcommon.h>
#include "xkb.h"