aboutsummaryrefslogtreecommitdiffstats
path: root/src/filter/autoconvert_filter_plugin.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/filter/autoconvert_filter_plugin.h (renamed from src/buffer2array.h)21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/buffer2array.h b/src/filter/autoconvert_filter_plugin.h
index bed23a29f..730db197d 100644
--- a/src/buffer2array.h
+++ b/src/filter/autoconvert_filter_plugin.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2009 The Music Player Daemon Project
+ * Copyright (C) 2003-2010 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
@@ -17,15 +17,18 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef MPD_BUFFER_2_ARRAY_H
-#define MPD_BUFFER_2_ARRAY_H
+#ifndef AUTOCONVERT_FILTER_PLUGIN_H
+#define AUTOCONVERT_FILTER_PLUGIN_H
-/* tokenizes up to max elements in buffer (a null-terminated string) and
- * stores the result in array (which must be capable of holding up to
- * max elements). Tokenization is based on C string quoting rules.
- * The arguments buffer and array are modified.
- * Returns the number of elements tokenized.
+struct filter;
+
+/**
+ * Creates a new "autoconvert" filter. When opened, it ensures that
+ * the input audio format isn't changed. If the underlying filter
+ * requests a different format, it automatically creates a
+ * convert_filter.
*/
-int buffer2array(char *buffer, char *array[], const int max);
+struct filter *
+autoconvert_filter_new(struct filter *filter);
#endif