summaryrefslogtreecommitdiffstats
path: root/daemon/daemon.h
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2010-03-18 13:46:26 +0000
committerRichard Jones <rjones@redhat.com>2010-03-18 15:21:04 +0000
commit27e73269d384814eb5f76468f609f7844cb75b0b (patch)
treeb336ea3b156f67d9676d0707ee5b781919e81003 /daemon/daemon.h
parent676462684e05dd8341dd695762dd99a87d8ec022 (diff)
downloadlibguestfs-27e73269d384814eb5f76468f609f7844cb75b0b.tar.gz
libguestfs-27e73269d384814eb5f76468f609f7844cb75b0b.tar.xz
libguestfs-27e73269d384814eb5f76468f609f7844cb75b0b.zip
daemon: Add a trim utility function.
This function trims the whitespace from around a string. It does this in-place, so it can be called for malloc'd strings.
Diffstat (limited to 'daemon/daemon.h')
-rw-r--r--daemon/daemon.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/daemon/daemon.h b/daemon/daemon.h
index bb1ebb3a..777cf332 100644
--- a/daemon/daemon.h
+++ b/daemon/daemon.h
@@ -66,6 +66,8 @@ extern int commandrvf (char **stdoutput, char **stderror, int flags,
extern char **split_lines (char *str);
+extern void trim (char *str);
+
extern int device_name_translation (char *device, const char *func);
extern void udev_settle (void);