Commit f9fc3a42 authored by Max Kellermann's avatar Max Kellermann

fifo_buffer: move to util/

parent 76bc28ab
...@@ -208,8 +208,6 @@ src_mpd_SOURCES = \ ...@@ -208,8 +208,6 @@ src_mpd_SOURCES = \
src/DatabaseSelection.cxx src/DatabaseSelection.hxx \ src/DatabaseSelection.cxx src/DatabaseSelection.hxx \
src/ExcludeList.cxx src/ExcludeList.hxx \ src/ExcludeList.cxx src/ExcludeList.hxx \
src/fd_util.c \ src/fd_util.c \
src/fifo_buffer.c src/fifo_buffer.h \
src/growing_fifo.c src/growing_fifo.h \
src/filter_config.c \ src/filter_config.c \
src/filter_plugin.c \ src/filter_plugin.c \
src/filter_registry.c \ src/filter_registry.c \
...@@ -343,6 +341,8 @@ endif ...@@ -343,6 +341,8 @@ endif
# Generic utility library # Generic utility library
libutil_a_SOURCES = \ libutil_a_SOURCES = \
src/util/fifo_buffer.c src/util/fifo_buffer.h \
src/util/growing_fifo.c src/util/growing_fifo.h \
src/util/LazyRandomEngine.cxx src/util/LazyRandomEngine.hxx \ src/util/LazyRandomEngine.cxx src/util/LazyRandomEngine.hxx \
src/util/SliceBuffer.hxx \ src/util/SliceBuffer.hxx \
src/util/HugeAllocator.cxx src/util/HugeAllocator.hxx \ src/util/HugeAllocator.cxx src/util/HugeAllocator.hxx \
...@@ -1077,6 +1077,7 @@ test_run_input_SOURCES = test/run_input.c \ ...@@ -1077,6 +1077,7 @@ test_run_input_SOURCES = test/run_input.c \
src/fd_util.c src/fd_util.c
test_dump_text_file_LDADD = \ test_dump_text_file_LDADD = \
libutil.a \
$(INPUT_LIBS) \ $(INPUT_LIBS) \
$(ARCHIVE_LIBS) \ $(ARCHIVE_LIBS) \
$(GLIB_LIBS) $(GLIB_LIBS)
...@@ -1085,7 +1086,7 @@ test_dump_text_file_SOURCES = test/dump_text_file.cxx \ ...@@ -1085,7 +1086,7 @@ test_dump_text_file_SOURCES = test/dump_text_file.cxx \
src/IOThread.cxx \ src/IOThread.cxx \
src/ConfigFile.cxx src/tokenizer.c src/utils.c src/string_util.c\ src/ConfigFile.cxx src/tokenizer.c src/utils.c src/string_util.c\
src/Tag.cxx src/TagNames.c src/TagPool.cxx \ src/Tag.cxx src/TagNames.c src/TagPool.cxx \
src/text_input_stream.c src/fifo_buffer.c \ src/text_input_stream.c \
src/uri.c \ src/uri.c \
src/fd_util.c src/fd_util.c
...@@ -1106,7 +1107,7 @@ test_dump_playlist_SOURCES = test/dump_playlist.cxx \ ...@@ -1106,7 +1107,7 @@ test_dump_playlist_SOURCES = test/dump_playlist.cxx \
src/Song.cxx src/Tag.cxx src/TagNames.c src/TagPool.cxx src/TagSave.cxx \ src/Song.cxx src/Tag.cxx src/TagNames.c src/TagPool.cxx src/TagSave.cxx \
src/tag_handler.c src/tag_file.c \ src/tag_handler.c src/tag_file.c \
src/audio_check.c src/pcm_buffer.c \ src/audio_check.c src/pcm_buffer.c \
src/text_input_stream.c src/fifo_buffer.c \ src/text_input_stream.c \
src/cue/cue_parser.c src/cue/cue_parser.h \ src/cue/cue_parser.c src/cue/cue_parser.h \
src/fd_util.c src/fd_util.c
...@@ -1200,7 +1201,6 @@ if ENABLE_ENCODER ...@@ -1200,7 +1201,6 @@ if ENABLE_ENCODER
noinst_PROGRAMS += test/run_encoder noinst_PROGRAMS += test/run_encoder
test_run_encoder_SOURCES = test/run_encoder.c \ test_run_encoder_SOURCES = test/run_encoder.c \
test/stdbin.h \ test/stdbin.h \
src/fifo_buffer.c src/growing_fifo.c \
src/ConfigFile.cxx src/tokenizer.c \ src/ConfigFile.cxx src/tokenizer.c \
src/utils.c src/string_util.c \ src/utils.c src/string_util.c \
src/Tag.cxx src/TagNames.c src/TagPool.cxx \ src/Tag.cxx src/TagNames.c src/TagPool.cxx \
...@@ -1210,6 +1210,7 @@ test_run_encoder_SOURCES = test/run_encoder.c \ ...@@ -1210,6 +1210,7 @@ test_run_encoder_SOURCES = test/run_encoder.c \
test_run_encoder_LDADD = \ test_run_encoder_LDADD = \
$(ENCODER_LIBS) \ $(ENCODER_LIBS) \
libpcm.a \ libpcm.a \
libutil.a \
$(TAG_LIBS) \ $(TAG_LIBS) \
$(GLIB_LIBS) $(GLIB_LIBS)
endif endif
...@@ -1226,12 +1227,12 @@ test_test_vorbis_encoder_SOURCES = test/test_vorbis_encoder.c \ ...@@ -1226,12 +1227,12 @@ test_test_vorbis_encoder_SOURCES = test/test_vorbis_encoder.c \
src/audio_format.c \ src/audio_format.c \
src/audio_parser.c \ src/audio_parser.c \
src/pcm_buffer.c \ src/pcm_buffer.c \
src/fifo_buffer.c src/growing_fifo.c \
$(ENCODER_SRC) $(ENCODER_SRC)
test_test_vorbis_encoder_CPPFLAGS = $(AM_CPPFLAGS) \ test_test_vorbis_encoder_CPPFLAGS = $(AM_CPPFLAGS) \
$(ENCODER_CFLAGS) $(ENCODER_CFLAGS)
test_test_vorbis_encoder_LDADD = $(MPD_LIBS) \ test_test_vorbis_encoder_LDADD = $(MPD_LIBS) \
$(ENCODER_LIBS) \ $(ENCODER_LIBS) \
libutil.a \
$(GLIB_LIBS) $(GLIB_LIBS)
endif endif
...@@ -1253,7 +1254,6 @@ test_run_normalize_LDADD = \ ...@@ -1253,7 +1254,6 @@ test_run_normalize_LDADD = \
test_run_convert_SOURCES = test/run_convert.c \ test_run_convert_SOURCES = test/run_convert.c \
src/dsd2pcm/dsd2pcm.c \ src/dsd2pcm/dsd2pcm.c \
src/fifo_buffer.c \
src/audio_format.c \ src/audio_format.c \
src/audio_check.c \ src/audio_check.c \
src/audio_parser.c src/audio_parser.c
...@@ -1279,7 +1279,6 @@ test_run_output_SOURCES = test/run_output.cxx \ ...@@ -1279,7 +1279,6 @@ test_run_output_SOURCES = test/run_output.cxx \
src/audio_parser.c \ src/audio_parser.c \
src/timer.c src/clock.c \ src/timer.c src/clock.c \
src/Tag.cxx src/TagNames.c src/TagPool.cxx \ src/Tag.cxx src/TagNames.c src/TagPool.cxx \
src/fifo_buffer.c src/growing_fifo.c \
src/page.c \ src/page.c \
src/socket_util.c \ src/socket_util.c \
src/resolver.c \ src/resolver.c \
...@@ -1323,9 +1322,10 @@ if ENABLE_INOTIFY ...@@ -1323,9 +1322,10 @@ if ENABLE_INOTIFY
noinst_PROGRAMS += test/run_inotify noinst_PROGRAMS += test/run_inotify
test_run_inotify_SOURCES = test/run_inotify.cxx \ test_run_inotify_SOURCES = test/run_inotify.cxx \
src/fd_util.c \ src/fd_util.c \
src/fifo_buffer.c \
src/InotifySource.cxx src/InotifySource.cxx
test_run_inotify_LDADD = $(GLIB_LIBS) test_run_inotify_LDADD = \
libutil.a \
$(GLIB_LIBS)
endif endif
test_test_byte_reverse_SOURCES = \ test_test_byte_reverse_SOURCES = \
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include "ClientList.hxx" #include "ClientList.hxx"
#include "Partition.hxx" #include "Partition.hxx"
#include "fd_util.h" #include "fd_util.h"
#include "fifo_buffer.h" #include "util/fifo_buffer.h"
extern "C" { extern "C" {
#include "resolver.h" #include "resolver.h"
} }
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include "config.h" #include "config.h"
#include "ClientInternal.hxx" #include "ClientInternal.hxx"
#include "fifo_buffer.h" #include "util/fifo_buffer.h"
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include "config.h" #include "config.h"
#include "InotifySource.hxx" #include "InotifySource.hxx"
#include "fifo_buffer.h" #include "util/fifo_buffer.h"
#include "fd_util.h" #include "fd_util.h"
#include "mpd_error.h" #include "mpd_error.h"
......
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
#include "encoder_plugin.h" #include "encoder_plugin.h"
#include "audio_format.h" #include "audio_format.h"
#include "pcm_buffer.h" #include "pcm_buffer.h"
#include "fifo_buffer.h" #include "util/fifo_buffer.h"
#include "growing_fifo.h" #include "util/growing_fifo.h"
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
......
...@@ -20,8 +20,8 @@ ...@@ -20,8 +20,8 @@
#include "config.h" #include "config.h"
#include "encoder_api.h" #include "encoder_api.h"
#include "encoder_plugin.h" #include "encoder_plugin.h"
#include "fifo_buffer.h" #include "util/fifo_buffer.h"
#include "growing_fifo.h" #include "util/growing_fifo.h"
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
......
...@@ -20,8 +20,8 @@ ...@@ -20,8 +20,8 @@
#include "config.h" #include "config.h"
#include "encoder_api.h" #include "encoder_api.h"
#include "encoder_plugin.h" #include "encoder_plugin.h"
#include "fifo_buffer.h" #include "util/fifo_buffer.h"
#include "growing_fifo.h" #include "util/growing_fifo.h"
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include "config.h" #include "config.h"
#include "httpd_client.h" #include "httpd_client.h"
#include "httpd_internal.h" #include "httpd_internal.h"
#include "fifo_buffer.h" #include "util/fifo_buffer.h"
#include "page.h" #include "page.h"
#include "icy_server.h" #include "icy_server.h"
#include "glib_socket.h" #include "glib_socket.h"
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include "config.h" #include "config.h"
#include "osx_output_plugin.h" #include "osx_output_plugin.h"
#include "output_api.h" #include "output_api.h"
#include "fifo_buffer.h" #include "util/fifo_buffer.h"
#include <glib.h> #include <glib.h>
#include <CoreAudio/AudioHardware.h> #include <CoreAudio/AudioHardware.h>
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include "config.h" #include "config.h"
#include "text_input_stream.h" #include "text_input_stream.h"
#include "input_stream.h" #include "input_stream.h"
#include "fifo_buffer.h" #include "util/fifo_buffer.h"
#include <glib.h> #include <glib.h>
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include "audio_format.h" #include "audio_format.h"
#include "pcm_convert.h" #include "pcm_convert.h"
#include "conf.h" #include "conf.h"
#include "fifo_buffer.h" #include "util/fifo_buffer.h"
#include "stdbin.h" #include "stdbin.h"
#include <glib.h> #include <glib.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment