aboutsummaryrefslogtreecommitdiffstats
path: root/src/OutputState.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-11-28 18:48:35 +0100
committerMax Kellermann <max@duempel.org>2013-11-28 18:48:35 +0100
commitaf4133e3c92c78cc19ff14b876be6afcab1db091 (patch)
treeda38387995bde630b20f81a717862ae21d19bb48 /src/OutputState.cxx
parenta788b7e747bc21b9aadee45dd028fa6198af794e (diff)
downloadmpd-af4133e3c92c78cc19ff14b876be6afcab1db091.tar.gz
mpd-af4133e3c92c78cc19ff14b876be6afcab1db091.tar.xz
mpd-af4133e3c92c78cc19ff14b876be6afcab1db091.zip
Util/StringUtil: add StringStartsWith()
Replaces GLib's g_str_has_prefix().
Diffstat (limited to 'src/OutputState.cxx')
-rw-r--r--src/OutputState.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/OutputState.cxx b/src/OutputState.cxx
index 8705176ae..0124e1e33 100644
--- a/src/OutputState.cxx
+++ b/src/OutputState.cxx
@@ -28,8 +28,7 @@
#include "OutputInternal.hxx"
#include "OutputError.hxx"
#include "Log.hxx"
-
-#include <glib.h>
+#include "util/StringUtil.hxx"
#include <assert.h>
#include <stdlib.h>
@@ -61,7 +60,7 @@ audio_output_state_read(const char *line)
const char *name;
struct audio_output *ao;
- if (!g_str_has_prefix(line, AUDIO_DEVICE_STATE))
+ if (!StringStartsWith(line, AUDIO_DEVICE_STATE))
return false;
line += sizeof(AUDIO_DEVICE_STATE) - 1;