summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/core-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-10-07 03:39:30 +0200
committerLennart Poettering <lennart@poettering.net>2009-10-07 03:39:30 +0200
commit692ce73899285c6ed07e93084a5f830a9a8effcc (patch)
treefb57aacd95086eb35787f902353857daf3f8fe95 /src/pulsecore/core-util.h
parentb3592a160f0d2a28605048a81c0261bf7c45acbb (diff)
parent019331d25b6af107fb8cacc3ada552e7567a64bf (diff)
Merge remote branch 'tanuk/dbus-work'
Diffstat (limited to 'src/pulsecore/core-util.h')
-rw-r--r--src/pulsecore/core-util.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pulsecore/core-util.h b/src/pulsecore/core-util.h
index 84752d4d..9986b14a 100644
--- a/src/pulsecore/core-util.h
+++ b/src/pulsecore/core-util.h
@@ -224,6 +224,13 @@ unsigned pa_ncpus(void);
char *pa_replace(const char*s, const char*a, const char *b);
+/* Escapes p by inserting backslashes in front of backslashes. chars is a
+ * regular (ie. NULL-terminated) string containing additional characters that
+ * should be escaped. chars can be NULL. The caller has to free the returned
+ * string. */
+char *pa_escape(const char *p, const char *chars);
+
+/* Does regular backslash unescaping. Returns the argument p. */
char *pa_unescape(char *p);
char *pa_realpath(const char *path);