aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/util.h
diff options
context:
space:
mode:
authorGravatar Brendan Taylor <whateley@gmail.com>2011-02-17 13:09:50 -0700
committerGravatar Brendan Taylor <whateley@gmail.com>2011-02-17 13:09:50 -0700
commit67af28c8d147e35c91ea91b0ddf51680d9feb475 (patch)
tree697e96acc530fefdc6ab6189d95e23127cc127cc /src/util.h
parentb7a47b3f58e6fa05d56577ea6425d353a41ddb86 (diff)
parente3b04d3ae9fb6dfeff5e6099784586b54591814e (diff)
Merge branch 'escaped_events' into experimental
Conflicts: src/util.c
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 126166b..75a614b 100644
--- a/src/util.h
+++ b/src/util.h
@@ -13,3 +13,7 @@ char* str_replace(const char* search, const char* replace, const char* str
gboolean for_each_line_in_file(const gchar *path, void (*callback)(const gchar *l, void *c), void *user_data);
gchar* find_existing_file(const gchar*);
gchar* argv_idx(const GArray*, const guint);
+/**
+ * appends `src' to `dest' with backslash, single-quotes and newlines in
+ * `src' escaped */
+GString * append_escaped (GString *dest, const gchar *src);