From d3b763a48c09a60a0c0b5ccb6cccd9376875c470 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 30 Dec 2009 23:27:37 +0100 Subject: input_stream: return allocated input_stream objects Major API redesign: don't let the caller allocate the input_stream object. Let each input plugin allocate its own (derived/extended) input_stream pointer. The "data" attribute can now be removed, and all input plugins simply cast the input_stream pointer to their own structure (with an "struct input_stream base" as the first attribute). --- src/playlist_list.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/playlist_list.h') diff --git a/src/playlist_list.h b/src/playlist_list.h index 84e179b4d..f19fa6579 100644 --- a/src/playlist_list.h +++ b/src/playlist_list.h @@ -54,12 +54,10 @@ playlist_list_open_stream(struct input_stream *is, const char *uri); /** * Opens a playlist from a local file. * - * @param is an uninitialized #input_stream object (must be closed - * with input_stream_close() if this function succeeds) * @param path_fs the path of the playlist file * @return a playlist, or NULL on error */ struct playlist_provider * -playlist_list_open_path(struct input_stream *is, const char *path_fs); +playlist_list_open_path(const char *path_fs); #endif -- cgit v1.2.3