aboutsummaryrefslogtreecommitdiffstats
path: root/src/filter_internal.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/filter_internal.h (renamed from src/buffer2array.h)25
1 files changed, 16 insertions, 9 deletions
diff --git a/src/buffer2array.h b/src/filter_internal.h
index bed23a29f..b086e31b1 100644
--- a/src/buffer2array.h
+++ b/src/filter_internal.h
@@ -17,15 +17,22 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef MPD_BUFFER_2_ARRAY_H
-#define MPD_BUFFER_2_ARRAY_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.
+/** \file
+ *
+ * Internal stuff for the filter core and filter plugins.
*/
-int buffer2array(char *buffer, char *array[], const int max);
+
+#ifndef MPD_FILTER_INTERNAL_H
+#define MPD_FILTER_INTERNAL_H
+
+struct filter {
+ const struct filter_plugin *plugin;
+};
+
+static inline void
+filter_init(struct filter *filter, const struct filter_plugin *plugin)
+{
+ filter->plugin = plugin;
+}
#endif