aboutsummaryrefslogtreecommitdiffstats
path: root/src/filter
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-12-25 14:57:16 +0100
committerMax Kellermann <max@duempel.org>2009-12-25 16:39:45 +0100
commitc3bb81abecbdefb91e0cccb86c28a694a1f63129 (patch)
tree1f394765b72b1eb7b1157a1733ff6dc2e28ea7fd /src/filter
parentd469c8137fc54e64b87c604c058d7d9b43246632 (diff)
downloadmpd-c3bb81abecbdefb91e0cccb86c28a694a1f63129.tar.gz
mpd-c3bb81abecbdefb91e0cccb86c28a694a1f63129.tar.xz
mpd-c3bb81abecbdefb91e0cccb86c28a694a1f63129.zip
filter/route: route_filter_parse() returns bool
Indicate success and error.
Diffstat (limited to 'src/filter')
-rw-r--r--src/filter/route_filter_plugin.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/filter/route_filter_plugin.c b/src/filter/route_filter_plugin.c
index 5610220fc..a90abe56f 100644
--- a/src/filter/route_filter_plugin.c
+++ b/src/filter/route_filter_plugin.c
@@ -118,8 +118,9 @@ struct route_filter {
* and input channel a gets copied to output channel b, etc.
* @param param the configuration block to read
* @param filter a route_filter whose min_channels and sources[] to set
+ * @return true on success, false on error
*/
-static void
+static bool
route_filter_parse(const struct config_param *param,
struct route_filter *filter,
GError **error_r) {
@@ -161,7 +162,7 @@ route_filter_parse(const struct config_param *param,
param->line, tokens[c]);
g_strfreev(sd);
g_strfreev(tokens);
- return;
+ return false;
}
source = strtol(sd[0], NULL, 10);
@@ -200,7 +201,7 @@ route_filter_parse(const struct config_param *param,
param->line, tokens[c]);
g_strfreev(sd);
g_strfreev(tokens);
- return;
+ return false;
}
source = strtol(sd[0], NULL, 10);
@@ -212,6 +213,8 @@ route_filter_parse(const struct config_param *param,
}
g_strfreev(tokens);
+
+ return true;
}
static struct filter *