···2828#include "kernel.h"
2929#include "metadata.h"
3030#include "rbpaths.h"
3131+#include "chunk_alloc.h"
31323233#define PLAYLIST_ATTR_QUEUED 0x01
3334#define PLAYLIST_ATTR_INSERTED 0x02
···8485 global_settings.max_files_in_playlist */
8586 int num_inserted_tracks; /* number of tracks inserted */
8687 volatile unsigned long *indices; /* array of indices */
8787- int buffer_handle; /* handle to the below buffer (-1 if non-buflib) */
8888- volatile char *buffer;/* buffer for in-ram playlists */
8989- int buffer_size; /* size of buffer */
9090- int buffer_end_pos; /* last position where buffer was written */
8888+8989+ struct chunk_alloc_header name_chunk_buffer; /* chunk buffer for
9090+ in-ram playlist */
9191+9192 int index; /* index of current playing track */
9293 int first_index; /* index of first song in playlist */
9394 int amount; /* number of tracks in the index */