]> git.sesse.net Git - vlc/commitdiff
. normalement on devrait se prendre 1 seul mail par commit gr�ce aux
authorSam Hocevar <sam@videolan.org>
Thu, 9 Mar 2000 10:08:50 +0000 (10:08 +0000)
committerSam Hocevar <sam@videolan.org>
Thu, 9 Mar 2000 10:08:50 +0000 (10:08 +0000)
  top scripts de tibob.
 . suppression de Makefile
 . rajout de include/defs.h.in qui g�n�re include/defs.h

 pour g�n�rer le Makefile et defs.h il faut lancer ./configure

 pour ceux qui voudraient toucher � configure.in, "include/defs.h.in" est
g�n�r� par la commande autoheader, et "configure" est g�n�r� par autoconf

47 files changed:
Makefile [deleted file]
Makefile.in
src/ac3_decoder/ac3_bit_allocate.c
src/ac3_decoder/ac3_decoder.c
src/ac3_decoder/ac3_decoder_thread.c
src/ac3_decoder/ac3_downmix.c
src/ac3_decoder/ac3_exponent.c
src/ac3_decoder/ac3_imdct.c
src/ac3_decoder/ac3_mantissa.c
src/ac3_decoder/ac3_parse.c
src/ac3_decoder/ac3_rematrix.c
src/audio_decoder/audio_decoder.c
src/audio_decoder/audio_math.c
src/audio_output/audio_output.c
src/generic_decoder/generic_decoder.c
src/input/input.c
src/input/input_ctrl.c
src/input/input_file.c
src/input/input_netlist.c
src/input/input_network.c
src/input/input_pcr.c
src/input/input_psi.c
src/input/input_vlan.c
src/interface/interface.c
src/interface/intf_cmd.c
src/interface/intf_console.c
src/interface/intf_ctrl.c
src/interface/intf_msg.c
src/interface/main.c
src/misc/decoder_fifo.c
src/misc/mtime.c
src/misc/netutils.c
src/misc/plugins.c
src/misc/rsc_files.c
src/spu_decoder/spu_decoder.c
src/video_decoder/vdec_idct.c
src/video_decoder/vdec_motion.c
src/video_decoder/vdec_motion_inner.c
src/video_decoder/video_decoder.c
src/video_output/video_output.c
src/video_output/video_text.c
src/video_output/video_yuv.c
src/video_parser/video_fifo.c
src/video_parser/video_parser.c
src/video_parser/vpar_blocks.c
src/video_parser/vpar_headers.c
src/video_parser/vpar_synchro.c

diff --git a/Makefile b/Makefile
deleted file mode 100644 (file)
index f74d5ab..0000000
--- a/Makefile
+++ /dev/null
@@ -1,438 +0,0 @@
-# Generated automatically from Makefile.in by configure.
-################################################################################
-# vlc (VideoLAN Client) main makefile
-# (c)1998 VideoLAN
-################################################################################
-# This makefile is the main makefile for the VideoLAN client.
-################################################################################
-
-################################################################################
-# Configuration
-################################################################################
-
-# Audio output settings
-AUDIO = dsp
-#AUDIO += esd
-# Not yet supported
-#AUDIO += alsa
-# Fallback method that should always work
-AUDIO += dummy
-
-# Video output settings
-VOUT = x11
-#VOUT += fb
-#VOUT += ggi
-#VOUT += glide
-# Not yet supported
-#VOUT = beos
-#VOUT += dga
-# Fallback method that should always work
-VOUT += dummy
-
-# Interface settings
-INTF = x11
-#INTF += fb
-#INTF += ggi
-#INTF += glide
-# Not yet supported
-#INTF = beos
-#INTF += dga
-# Fallback method that should always work
-INTF += dummy
-
-# Target architecture
-ARCH=X86
-#ARCH=PPC
-#ARCH=SPARC
-
-# Target operating system
-SYS=LINUX
-#SYS=GNU
-#SYS=BSD
-#SYS=BEOS
-
-# For x86 architecture, choose MMX support
-ARCH += MMX
-# For x86 architecture, optimize for Pentium Pro
-# (choose NO if you get `Invalid instruction' errors)
-ARCH += PPRO
-
-# Decoder choice - ?? old decoder will be removed soon
-#DECODER=old
-DECODER=new
-
-# Debugging mode on or off (set to 1 to activate)
-DEBUG=0
-
-#----------------- do not change anything below this line ----------------------
-
-################################################################################
-# Configuration pre-processing
-################################################################################
-
-# Program version and codename - may only be changed by the project leader
-PROGRAM_VERSION = 0.1.99
-PROGRAM_CODENAME = Onatopp
-
-# audio and video options
-AUDIO := $(shell echo $(AUDIO) | tr 'A-Z' 'a-z')
-VIDEO := $(shell echo $(VIDEO) | tr 'A-Z' 'a-z')
-
-# PROGRAM_OPTIONS is an identification string of the compilation options
-PROGRAM_OPTIONS = $(SYS) $(ARCH)
-ifeq ($(DEBUG),1)
-PROGRAM_OPTIONS += DEBUG
-endif
-
-# PROGRAM_BUILD is a complete identification of the build
-# ( we can't use fancy options with date since OSes like Solaris
-# or FreeBSD have strange date implementations )
-PROGRAM_BUILD = `date` $(USER)
-# XXX: beos does not support hostname
-#PROGRAM_BUILD = `date` $(USER)@`hostname`
-
-# DEFINE will contain some of the constants definitions decided in Makefile, 
-# including ARCH_xx and SYS_xx. It will be passed to C compiler.
-DEFINE += -DARCH_$(shell echo $(ARCH) | cut -f1 -d' ')
-DEFINE += -DSYS_$(SYS)
-DEFINE += -DPLUGIN_PATH="\"$(PREFIX)/lib/videolan/vlc\""
-DEFINE += -DPROGRAM_VERSION="\"$(PROGRAM_VERSION)\""
-DEFINE += -DPROGRAM_CODENAME="\"$(PROGRAM_CODENAME)\""
-DEFINE += -DPROGRAM_OPTIONS="\"$(shell echo $(PROGRAM_OPTIONS) | tr 'A-Z' 'a-z')\""
-DEFINE += -DPROGRAM_BUILD="\"$(PROGRAM_BUILD)\""
-ifeq ($(DEBUG),1)
-DEFINE += -DDEBUG
-endif
-
-################################################################################
-# Tuning and other variables - do not change anything except if you know
-# exactly what you are doing
-################################################################################
-
-#
-# C headers directories
-#
-INCLUDE += -Iinclude -I/usr/local/include -I/usr/X11R6/include
-
-#
-# Libraries
-#
-
-ifeq ($(SYS),GNU)
-LIB += -lthreads -ldl
-endif
-
-ifeq ($(SYS),BSD)
-LIB += -pthread -lgnugetopt
-LIB += -L/usr/local/lib
-endif
-
-ifeq ($(SYS),LINUX)
-LIB += -lpthread -ldl
-endif
-
-ifeq ($SYS),BEOS)
-LIB += -llibroot -llibgame -llibbe
-endif
-
-LIB += -lm
-
-#
-# C compiler flags: compilation
-#
-CCFLAGS += $(DEFINE) $(INCLUDE)
-CCFLAGS += -Wall
-CCFLAGS += -D_REENTRANT
-CCFLAGS += -D_GNU_SOURCE
-
-# Optimizations : don't compile debug versions with them
-CCFLAGS += -O6
-CCFLAGS += -ffast-math -funroll-loops -fargument-noalias-global
-CCFLAGS += -fomit-frame-pointer
-
-# Optimizations for x86 familiy
-ifneq (,$(findstring X86,$(ARCH)))
-CCFLAGS += -malign-double
-#CCFLAGS += -march=pentium
-# Eventual Pentium Pro optimizations
-ifneq (,$(findstring PPRO,$(ARCH)))
-ifneq ($(SYS), BSD)
-CCFLAGS += -march=pentiumpro
-endif
-endif
-# Eventual MMX optimizations for x86
-ifneq (,$(findstring MMX,$(ARCH)))
-CFLAGS += -DHAVE_MMX
-endif
-endif
-
-# Optimizations for PowerPC
-ifneq (,$(findstring PPC,$(ARCH)))
-CCFLAGS += -mcpu=604e -mmultiple -mhard-float -mstring
-endif
-
-# Optimizations for Sparc
-ifneq (,$(findstring SPARC,$(ARCH)))
-CCFLAGS += -mhard-float
-endif
-
-#
-# C compiler flags: dependancies
-#
-DCFLAGS += $(INCLUDE)
-DCFLAGS += -MM
-
-#
-# C compiler flags: linking
-#
-LCFLAGS += $(LIB)
-LCFLAGS += -Wall
-#LCFLAGS += -s
-
-#
-# Additionnal debugging flags
-#
-
-# Debugging support
-ifeq ($(DEBUG),1)
-CFLAGS += -g
-#CFLAGS += -pg
-endif
-
-#################################################################################
-# Objects and files
-#################################################################################
-
-#
-# C Objects
-# 
-interface_obj =                interface/main.o \
-                                               interface/interface.o \
-                                               interface/intf_msg.o \
-                                               interface/intf_cmd.o \
-                                               interface/intf_ctrl.o \
-                                               interface/intf_console.o
-
-input_obj =                    input/input_vlan.o \
-                                               input/input_file.o \
-                                               input/input_netlist.o \
-                                               input/input_network.o \
-                                               input/input_ctrl.o \
-                                               input/input_pcr.o \
-                                               input/input_psi.o \
-                                               input/input.o
-
-audio_output_obj =             audio_output/audio_output.o
-
-video_output_obj =             video_output/video_output.o \
-                                               video_output/video_text.o \
-                                               video_output/video_yuv.o
-
-ac3_decoder_obj =              ac3_decoder/ac3_decoder_thread.o \
-                                               ac3_decoder/ac3_decoder.o \
-                                               ac3_decoder/ac3_parse.o \
-                                               ac3_decoder/ac3_exponent.o \
-                                               ac3_decoder/ac3_bit_allocate.o \
-                                               ac3_decoder/ac3_mantissa.o \
-                                               ac3_decoder/ac3_rematrix.o \
-                                               ac3_decoder/ac3_imdct.o \
-                                               ac3_decoder/ac3_downmix.o
-
-audio_decoder_obj =            audio_decoder/audio_decoder.o \
-                                               audio_decoder/audio_math.o
-
-spu_decoder_obj =              spu_decoder/spu_decoder.o
-
-#??generic_decoder_obj =               generic_decoder/generic_decoder.o
-# remeber to add it to OBJ 
-
-ifeq ($(DECODER),old)
-CFLAGS += -DOLD_DECODER
-video_decoder_obj =            video_decoder_ref/video_decoder.o \
-                                               video_decoder_ref/display.o \
-                                               video_decoder_ref/getblk.o \
-                                               video_decoder_ref/gethdr.o \
-                                               video_decoder_ref/getpic.o \
-                                               video_decoder_ref/getvlc.o \
-                                               video_decoder_ref/idct.o \
-                                               video_decoder_ref/motion.o \
-                                               video_decoder_ref/mpeg2dec.o \
-                                               video_decoder_ref/recon.o \
-                                               video_decoder_ref/spatscal.o
-else
-video_parser_obj =             video_parser/video_parser.o \
-                                               video_parser/vpar_headers.o \
-                                               video_parser/vpar_blocks.o \
-                                               video_parser/vpar_synchro.o \
-                                               video_parser/video_fifo.o
-
-video_decoder_obj =            video_decoder/video_decoder.o \
-                                               video_decoder/vdec_motion.o \
-                                               video_decoder/vdec_motion_inner.o \
-                                               video_decoder/vdec_idct.o
-endif
-
-misc_obj =                     misc/mtime.o \
-                                               misc/rsc_files.o \
-                                               misc/netutils.o \
-                                               misc/plugins.o \
-                                               misc/decoder_fifo.o
-
-C_OBJ = $(interface_obj) \
-               $(input_obj) \
-               $(audio_output_obj) \
-               $(video_output_obj) \
-               $(ac3_decoder_obj) \
-               $(audio_decoder_obj) \
-               $(spu_decoder_obj) \
-               $(generic_decoder_obj) \
-               $(video_parser_obj) \
-               $(video_decoder_obj) \
-               $(vlan_obj) \
-               $(misc_obj)
-
-#
-# Assembler Objects
-# 
-ifneq (,$(findstring X86,$(ARCH)))
-ifneq (,$(findstring MMX,$(ARCH)))
-ifeq ($(DECODER),new)
-ASM_OBJ =                      video_decoder/vdec_idctmmx.o \
-                                               video_output/video_yuv_mmx.o
-else
-ASM_OBJ =                      video_decoder_ref/vdec_idctmmx.o \
-                                               video_output/video_yuv_mmx.o
-endif
-endif
-endif
-
-#
-# Plugins
-#
-intf_plugin =           $(INTF:%=plugins/intf/intf_%.so)
-aout_plugin =           $(AOUT:%=plugins/aout/aout_%.so)
-vout_plugin =           $(VOUT:%=plugins/vout/vout_%.so)
-
-PLUGIN_OBJ = $(intf_plugin) $(aout_plugin) $(vout_plugin)
-
-#
-# Other lists of files
-#
-C_OBJ := $(C_OBJ:%.o=src/%.o)
-ASM_OBJ := $(ASM_OBJ:%.o=src/%.o)
-sources := $(C_OBJ:%.o=%.c) $(PLUGIN_OBJ:%.so=%.c)
-dependancies := $(sources:%.c=.dep/%.d)
-
-# All symbols must be exported
-export
-
-################################################################################
-# Targets
-################################################################################
-
-#
-# Virtual targets
-#
-all: vlc
-
-clean:
-       rm -f $(C_OBJ) $(ASM_OBJ) $(PLUGIN_OBJ)
-
-distclean: clean
-       rm -f **/*.o **/*.so **/*~ *.log
-       rm -f vlc gmon.out core
-       rm -rf .dep
-
-install:
-       $(INSTALL) vlc $(PREFIX)/bin
-       mkdir -p $(PREFIX)/lib/videolan/vlc
-       $(INSTALL) $(PLUGIN_OBJ) $(PREFIX)/lib/videolan/vlc
-
-show:
-       @echo "Command line for C objects:"
-       @echo $(CC) $(CCFLAGS) $(CFLAGS) -c -o "<dest.o>" "<src.c>"
-       @echo
-       @echo "Command line for assembler objects:"
-       @echo $(CC) $(CFLAGS) -c -o "<dest.o>" "<src.S>"
-
-FORCE:
-
-#
-# Real targets
-#
-vlc: $(C_OBJ) $(ASM_OBJ) $(PLUGIN_OBJ)
-       $(CC) $(CCFLAGS) $(LCFLAGS) $(CFLAGS) --export-dynamic -rdynamic -o $@ $(C_OBJ) $(ASM_OBJ)      
-
-#
-# Generic rules (see below)
-#
-$(dependancies): %.d: FORCE
-       @$(MAKE) -s --no-print-directory -f Makefile.dep $@
-
-$(C_OBJ): %.o: Makefile.dep
-$(C_OBJ): %.o: .dep/%.d
-$(C_OBJ): %.o: %.c
-       @echo "compiling $*.o from $*.c"
-       @$(CC) $(CCFLAGS) $(CFLAGS) -c -o $@ $<
-
-$(ASM_OBJ): %.o: Makefile.dep
-$(ASM_OBJ): %.o: %.S
-       @echo "assembling $*.o from $*.S"
-       @$(CC) $(CFLAGS) -c -o $@ $<
-
-$(PLUGIN_OBJ): %.so: Makefile.dep
-$(PLUGIN_OBJ): %.so: .dep/%.d
-
-# audio plugins
-plugins/aout/aout_dummy.so plugins/aout/aout_dsp.so: %.so: %.c
-               @echo "compiling $*.so from $*.c"
-               @$(CC) $(CCFLAGS) $(CFLAGS) -shared -o $@ $<
-
-plugins/aout/aout_esd.so: %.so: %.c
-               @echo "compiling $*.so from $*.c"
-ifeq ($(SYS), BSD)
-               @$(CC) $(CCFLAGS) $(CFLAGS) -lesd -shared -o $@ $<
-else
-               @$(CC) $(CCFLAGS) $(CFLAGS) -laudiofile -lesd -shared -o $@ $<
-endif
-
-# video plugins
-plugins/intf/intf_dummy.so plugins/vout/vout_dummy.so \
-       plugins/intf/intf_fb.so plugins/vout/vout_fb.so: %.so: %.c
-               @echo "compiling $*.so from $*.c"
-               @$(CC) $(CCFLAGS) $(CFLAGS) -shared -o $@ $<
-
-plugins/intf/intf_x11.so plugins/vout/vout_x11.so: %.so: %.c
-               @echo "compiling $*.so from $*.c"
-               @$(CC) $(CCFLAGS) $(CFLAGS) -I/usr/X11R6/include -L/usr/X11R6/lib -lX11 -lXext -shared -o $@ $<
-
-plugins/intf/intf_glide.so plugins/vout/vout_glide.so: %.so: %.c
-               @echo "compiling $*.so from $*.c"
-               @$(CC) $(CCFLAGS) $(CFLAGS) -I/usr/include/glide -lglide2x -shared -o $@ $<
-
-plugins/intf/intf_ggi.so plugins/vout/vout_ggi.so: %.so: %.c
-               @echo "compiling $*.so from $*.c"
-               @$(CC) $(CCFLAGS) $(CFLAGS) -lggi -shared -o $@ $<
-
-
-################################################################################
-# Note on generic rules and dependancies
-################################################################################
-
-# Note on dependancies: each .c file is associated with a .d file, which
-# depends of it. The .o file associated with a .c file depends of the .d, of the
-# .c itself, and of Makefile. The .d files are stored in a separate .dep/
-# directory.
-# The dep directory should be ignored by CVS.
-
-# Note on inclusions: depending of the target, the dependancies files must
-# or must not be included. The problem is that if we ask make to include a file,
-# and this file does not exist, it is made before it can be included. In a
-# general way, a .d file should be included if and only if the corresponding .o
-# needs to be re-made.
-
-# Two makefiles are used: the main one (this one) has regular generic rules,
-# except for .o files, for which it calls the object Makefile. Dependancies
-# are not included in this file.
-# The object Makefile known how to make a .o from a .c, and includes
-# dependancies for the target, but only those required.
index e96b4554d2810a0e2c504385339919f86739d939..3ea1614122e2c0500544f284b1fa4c6216840237 100644 (file)
@@ -339,6 +339,7 @@ clean:
 
 distclean: clean
        rm -f **/*.o **/*.so **/*~ *.log
+       rm -f Makefile include/defs.h config.cache config.log
        rm -f vlc gmon.out core
        rm -rf .dep
 
index 3d812e0d38d5200d77d259b3ca98e53765175432..9b99abbc1c2311bd5b38450703d00c5dd2b43b33 100644 (file)
@@ -20,6 +20,7 @@
  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  * Boston, MA 02111-1307, USA.
  *****************************************************************************/
+#include "defs.h"
 
 #include "int_types.h"
 #include "ac3_decoder.h"
index fb6e8026211b1683fd04c516885b668e64134f6b..c63478527a1c89870400443272764e576688015e 100644 (file)
@@ -20,6 +20,7 @@
  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  * Boston, MA 02111-1307, USA.
  *****************************************************************************/
+#include "defs.h"
 
 #include "int_types.h"
 #include "ac3_decoder.h"
index 76b1def656f696f8f6fd87d4f887fc1fd5adce20..f8b2cbc8a0a6dade9470d1a37787812c32f41564 100644 (file)
@@ -33,6 +33,8 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <unistd.h>                                              /* getpid() */
 
 #include <stdio.h>                                           /* "intf_msg.h" */
@@ -40,9 +42,9 @@
 #include <sys/types.h>                        /* on BSD, uio.h needs types.h */
 #include <sys/uio.h>                                            /* "input.h" */
 
-#include "threads.h"
-#include "common.h"
 #include "config.h"
+#include "common.h"
+#include "threads.h"
 #include "mtime.h"
 #include "plugins.h"
 #include "debug.h"                                      /* "input_netlist.h" */
index 7c160a1e619f9c3bdb95641170f700079f27af41..1c65e8ad2f74a1f3aa0b06dd5f2ea25afd28bb9e 100644 (file)
@@ -20,6 +20,7 @@
  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  * Boston, MA 02111-1307, USA.
  *****************************************************************************/
+#include "defs.h"
 
 #include "int_types.h"
 #include "ac3_decoder.h"
index 80902b25c9347a858f2e6f9b1d2a4d334ffe794d..80be24b6a9224d0a2a85e84479ebe1acde9b61b9 100644 (file)
@@ -20,6 +20,7 @@
  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  * Boston, MA 02111-1307, USA.
  *****************************************************************************/
+#include "defs.h"
 
 #include <stdio.h>                                           /* "intf_msg.h" */
 
index 3466ad532d3c499e16b94a86870be901915adb0b..c2291b84899b7e90729d181f906299822905d5f0 100644 (file)
@@ -20,6 +20,7 @@
  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  * Boston, MA 02111-1307, USA.
  *****************************************************************************/
+#include "defs.h"
 
 #include <math.h>
 
index 51d876b9841179a4868c51b7f744fcad8f7d4c03..95dd80119330a0b07ece6460c29e3c198c442801 100644 (file)
@@ -20,6 +20,7 @@
  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  * Boston, MA 02111-1307, USA.
  *****************************************************************************/
+#include "defs.h"
 
 #include <stdio.h>                                           /* "intf_msg.h" */
 
index e55c3b3e6de2bf121be27e224901a012cc25f090..fa3cd87320ac2f08ba685d659416fa3e34ca81d8 100644 (file)
@@ -20,6 +20,7 @@
  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  * Boston, MA 02111-1307, USA.
  *****************************************************************************/
+#include "defs.h"
 
 #include "int_types.h"
 #include "ac3_decoder.h"
index 8dbfc90f16a9dc56575c9566d4017af17e509393..3d51ee64f1c1008a19ee7cf5cbde0c667e0d649a 100644 (file)
@@ -20,6 +20,7 @@
  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  * Boston, MA 02111-1307, USA.
  *****************************************************************************/
+#include "defs.h"
 
 #include "int_types.h"
 #include "ac3_decoder.h"
index 48567fbeddb84bd0824f9c65588f0a4e8d2027c2..ded62b1f8dd5f8877147b7c2daf0412eef0dcf7a 100644 (file)
@@ -32,6 +32,8 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <unistd.h>                                              /* getpid() */
 
 #include <stdio.h>                                           /* "intf_msg.h" */
@@ -39,9 +41,9 @@
 #include <sys/types.h>                        /* on BSD, uio.h needs types.h */
 #include <sys/uio.h>                                            /* "input.h" */
 
-#include "threads.h"
-#include "common.h"
 #include "config.h"
+#include "common.h"
+#include "threads.h"
 #include "mtime.h"
 #include "plugins.h"
 #include "debug.h"                                      /* "input_netlist.h" */
index 1200f0cb2a24f6d87ed62a411a6bd37cda6571de..de1189d22377efb2364973dd3c8d1dc7bfee2c41 100644 (file)
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <stdio.h>                                           /* "intf_msg.h" */
 #include <stdlib.h>                                      /* malloc(), free() */
 #include <sys/types.h>                        /* on BSD, uio.h needs types.h */
 #include <sys/uio.h>                                            /* "input.h" */
 
-#include "threads.h"
 #include "config.h"
 #include "common.h"
+#include "threads.h"
 #include "mtime.h"                                                /* mtime_t */
 #include "plugins.h"
 
index 6b951162d35ec978b14e7b9ed4eef33cc63232f0..d5d89561a9ada1ee6f669606bb9fe3349e0d6fe8 100644 (file)
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <unistd.h>                                              /* getpid() */
 
 #include <stdio.h>                                           /* "intf_msg.h" */
 #include <stdlib.h>                            /* calloc(), malloc(), free() */
 
-#include "threads.h"
-#include "common.h"
 #include "config.h"
+#include "common.h"
+#include "threads.h"
 #include "mtime.h"                             /* mtime_t, mdate(), msleep() */
 #include "plugins.h"
 
index 3efd9b804be1f4bdf49c2cd94606c2692187fc23..32e7a2d14a2a1b8d084857707bb9fb0873b86632 100644 (file)
@@ -32,6 +32,8 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <errno.h>
 #include <stdlib.h>
 #include <string.h>
index 85adfe29f603afae6ddd04121e24d91896559471..24f36f66b828341309b2231f2d82bc796470dec8 100644 (file)
@@ -26,6 +26,8 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <errno.h>                                                  /* errno */
 #include <sys/types.h>                        /* on BSD, uio.h needs types.h */
 #include <sys/uio.h>                                            /* "input.h" */
@@ -34,9 +36,9 @@
 #include <stdlib.h>                                                /* free() */
 #include <netinet/in.h>                                           /* ntohs() */
 
-#include "threads.h"
-#include "common.h"
 #include "config.h"
+#include "common.h"
+#include "threads.h"
 #include "mtime.h"
 #include "intf_msg.h"
 #include "plugins.h"
index 7e482d745c52ce7cd8f746090800c555938a4f77..a3dc4241e5bb05be5a523e980b137a59fc275c56 100644 (file)
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <sys/types.h>                        /* on BSD, uio.h needs types.h */
 #include <sys/uio.h>                                            /* "input.h" */
 
 #include <netinet/in.h>                                             /* ntohs */
 
-#include "threads.h"
-#include "common.h"
 #include "config.h"
+#include "common.h"
+#include "threads.h"
 #include "mtime.h"
 #include "intf_msg.h"
 #include "plugins.h"
index 5754dd7f61795dfda570745dd1f52a913143cc57..f6da4561d11fd25a1821b11ab9adb16b6f786202 100644 (file)
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <sys/types.h>                        /* on BSD, uio.h needs types.h */
 #include <sys/uio.h>                                            /* "input.h" */
 
-#include "threads.h"
-#include "common.h"
 #include "config.h"
+#include "common.h"
+#include "threads.h"
 #include "mtime.h"
 
 #include "input.h"
index 724e4a3cd0d6dfb8e1b6f16a11719503c4f67a50..cd8568bef121c08bfcdfadbe43cb5078b012a88e 100644 (file)
@@ -25,6 +25,8 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <sys/types.h>                        /* on BSD, uio.h needs types.h */
 #include <sys/uio.h>                                            /* "input.h" */
 
@@ -32,9 +34,9 @@
 #include <string.h>                                            /* strerror() */
 #include <errno.h>                                                  /* errno */
 
-#include "threads.h"
-#include "common.h"
 #include "config.h"
+#include "common.h"
+#include "threads.h"
 #include "mtime.h"
 #include "intf_msg.h"
 #include "debug.h"
index f69244df819ebe0f14081e19f9cd6d947a6387bb..9d8149265a10c6e8fa4465e80819d78dcceded30 100644 (file)
@@ -25,6 +25,8 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <sys/types.h>                        /* on BSD, uio.h needs types.h */
 #include <sys/uio.h>                                            /* "input.h" */
 #include <string.h>                                            /* strerror() */
@@ -39,9 +41,9 @@
 #include <netdb.h>     /* servent, getservbyname(), hostent, gethostbyname() */
 #include <netinet/in.h>                     /* sockaddr_in, htons(), htonl() */
 
-#include "threads.h"
-#include "common.h"
 #include "config.h"
+#include "common.h"
+#include "threads.h"
 #include "mtime.h"
 #include "netutils.h"
 
index 57af8a70b35cf91ccf095919e43ddac8d16f8a05..8111a345773ffa545d412b9f30a087a76064d969 100644 (file)
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <sys/types.h>                        /* on BSD, uio.h needs types.h */
 #include <sys/uio.h>                                            /* "input.h" */
 #include <stdlib.h>                              /* atoi(), malloc(), free() */
 #include <netinet/in.h>                                           /* ntohl() */
 
-#include "threads.h"
 #include "config.h"
 #include "common.h"
+#include "threads.h"
 #include "mtime.h"
 #include "debug.h"
 #include "input.h"
index 015427753234270c71b65e6d26dceb1e712cb5a4..29b061eadc25afcc2900a4339d9b34461ff6cc65 100644 (file)
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <sys/types.h>                        /* on BSD, uio.h needs types.h */
 #include <sys/uio.h>                                            /* "input.h" */
 #include <stdlib.h>                                     /* free(), realloc() */
 #include <string.h>                                               /* bzero() */
 #include <netinet/in.h>                                           /* ntohs() */
 
-#include "threads.h"
-#include "common.h"
 #include "config.h"
+#include "common.h"
+#include "threads.h"
 #include "mtime.h"
 #include "intf_msg.h"
 #include "debug.h"
index a089abe6bf230f9942304305b069a26faac3c9c1..7ef3e68d7ef675e2a48048d315e9b061f3642d1f 100644 (file)
@@ -24,6 +24,8 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <errno.h>                                                 /* ENOMEM */
 #include <stdio.h>                                              /* sprintf() */
 #include <unistd.h>                                               /* close() */
@@ -44,9 +46,9 @@
 #include <net/if.h>                            /* interface (arch-dependent) */
 #endif
 
-#include "threads.h"
 #include "config.h"
 #include "common.h"
+#include "threads.h"
 #include "mtime.h"
 #include "netutils.h"
 #include "input_vlan.h"
index e8c49b944fae52643912c10435a6c104dbe4038c..e72b2f5701a79ae3dc9107acda9c923a832176f1 100644 (file)
@@ -26,6 +26,8 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <errno.h>                                                 /* ENOMEM */
 #include <stdlib.h>                                      /* free(), strtol() */
 #include <stdio.h>                                                   /* FILE */
@@ -33,9 +35,9 @@
 #include <sys/types.h>                        /* on BSD, uio.h needs types.h */
 #include <sys/uio.h>                                          /* for input.h */
 
-#include "threads.h"
 #include "config.h"
 #include "common.h"
+#include "threads.h"
 #include "mtime.h"
 #include "plugins.h"
 #include "input.h"
index 91b8adb20cef42c84398e457b0569b29be5c6d1f..ba242e4b906e085564ee7b446b58a306bd3be7a7 100644 (file)
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <errno.h>                                                  /* errno */
 #include <stdio.h>                                                   /* FILE */
 #include <stdlib.h>                                    /* strtod(), strtol() */
 #include <string.h>                                            /* strerror() */
 
-#include "threads.h"
 #include "config.h"
 #include "common.h"
+#include "threads.h"
 #include "mtime.h"
 #include "plugins.h"
 
index bb158dd83ef4889937f07c1aeada522b1f733422..49dbc4b78e121a2e153624f22197792dbe163984 100644 (file)
@@ -24,6 +24,8 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <stdlib.h>                                              /* malloc() */
 
 #include "config.h"
index 797f770f30754818af6b17224ca9de60f18386ed..bb520ccf31e27ac50320b252a0a57951ea3f1432 100644 (file)
@@ -41,6 +41,8 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <sys/types.h>                        /* on BSD, uio.h needs types.h */
 #include <sys/stat.h>                        /* on BSD, fstat() needs stat.h */
 #include <sys/uio.h>                                            /* "input.h" */
@@ -50,9 +52,9 @@
 #include <fcntl.h>                                                 /* open() */
 
 /* Common headers */
-#include "threads.h"
 #include "config.h"
 #include "common.h"
+#include "threads.h"
 #include "mtime.h"
 #include "debug.h"
 #include "plugins.h"
index 5a8376b99e91d39038f46dceb753bf56bdc1d1d2..d00b7d175b7ef3999f4989aaeb51e2169e7091cc 100644 (file)
@@ -26,6 +26,8 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <errno.h>                                                  /* errno */
 #include <fcntl.h>                     /* O_CREAT, O_TRUNC, O_WRONLY, O_SYNC */
 #include <stdio.h>                                               /* required */
@@ -34,9 +36,9 @@
 #include <string.h>                                            /* strerror() */
 #include <unistd.h>                                      /* close(), write() */
 
-#include "threads.h"
 #include "config.h"
 #include "common.h"
+#include "threads.h"
 #include "mtime.h"
 #include "plugins.h"
 #include "intf_msg.h"
index 4969b50e6818963c8d13e5525a0c564b4b59e39d..00c2510251d38d5cdd0904f7409bfaa87840641e 100644 (file)
@@ -26,6 +26,8 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <signal.h>                               /* SIGHUP, SIGINT, SIGKILL */
 #include <getopt.h>                                              /* getopt() */
 #include <stdio.h>                                              /* sprintf() */
@@ -34,9 +36,9 @@
 #include <stdlib.h>                                  /* getenv(), strtol(),  */
 #include <string.h>                                            /* strerror() */
 
-#include "threads.h"
 #include "config.h"
 #include "common.h"
+#include "threads.h"
 #include "mtime.h"
 #include "plugins.h"
 #include "input_vlan.h"
index 1431ca58565045723aa73b31c04342c903d742d0..ec3970ec8358c452f6b3acf2af026fe432602857 100644 (file)
  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  * Boston, MA 02111-1307, USA.
  *****************************************************************************/
+#include "defs.h"
 
 #include <sys/types.h>                        /* on BSD, uio.h needs types.h */
 #include <sys/uio.h>                                          /* for input.h */
 
-#include "threads.h"
 #include "config.h"
 #include "common.h"
+#include "threads.h"
 #include "mtime.h"
 
 #include "debug.h"                 /* XXX?? temporaire, requis par netlist.h */
index cd11520ae01375a447eea4aa9e7c5d31d34629b8..7c6e2e7174fc2ad77c8ad5fe63c6d211f51b2ea1 100644 (file)
@@ -30,6 +30,8 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <stdio.h>                                              /* sprintf() */
 #include <unistd.h>                                              /* select() */
 #include <sys/time.h>
@@ -38,6 +40,7 @@
 #include <kernel/OS.h>
 #endif
 
+#include "config.h"
 #include "common.h"
 #include "mtime.h"
 
index 6566f21c9716b01f4b72ca147830c37b908943a5..5175527412dd656f30363b7b2719aebf4fffa380 100644 (file)
@@ -24,6 +24,8 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <netdb.h>                                        /* gethostbyname() */
 #include <stdlib.h>                             /* free(), realloc(), atoi() */
 #include <errno.h>                                                /* errno() */
index ced56d186c491fb16e74188c40a3357e674d14a0..b744b2f81b40f28ed9447709247ee0116faee512 100644 (file)
@@ -20,6 +20,7 @@
  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  * Boston, MA 02111-1307, USA.
  *****************************************************************************/
+#include "defs.h"
 
 #include <stdlib.h>                                      /* free(), strtol() */
 #include <stdio.h>                                              /* sprintf() */
@@ -42,12 +43,8 @@ int RequestPlugin ( plugin_id_t * p_plugin, char * psz_mask, char * psz_name )
     char * psz_plugin;
     char * psz_plugin_path[ PLUGIN_PATH_COUNT ] =
     {
-        ".",
-        PLUGIN_PATH,
-        /* these ones should disappear */
-        "./audio_output",
-        "./video_output",
-        "./interface"
+        ".", PLUGIN_PATH,
+        "plugins/aout", "plugins/vout", "plugins/intf" /* these ones should disappear */
     };
 
     i_length = strlen( psz_mask ) + strlen( psz_name );
index e2816354f207f8ebdf2d575e44958248ea5969fa..f0375c99a656339306d5c31430cb37d6ee147126 100644 (file)
@@ -42,6 +42,8 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <errno.h>                                                  /* errno */
 #include <fcntl.h>                                                 /* open() */
 #include <stdlib.h>                                                /* free() */
index 0910b57fbd377eada17d9ea69474b6d083d4c805..e348aaf65f87e6e27a2efb046c57ff054f6e6e9d 100644 (file)
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <stdlib.h>                                      /* malloc(), free() */
 #include <sys/types.h>                        /* on BSD, uio.h needs types.h */
 #include <sys/uio.h>                                          /* for input.h */
 #include <unistd.h>                                              /* getpid() */
 
-#include "threads.h"
 #include "config.h"
 #include "common.h"
+#include "threads.h"
 #include "mtime.h"
 
 #include "intf_msg.h"
index 2d867cd70f2eef4d3416555d732be6337005d367..7b20b9d633af2d37846249c4b4f5e9971b361cf2 100644 (file)
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <sys/types.h>                        /* on BSD, uio.h needs types.h */
 #include <sys/uio.h>                                          /* for input.h */
 
-#include "threads.h"
 #include "config.h"
 #include "common.h"
+#include "threads.h"
 #include "mtime.h"
 #include "plugins.h"
 
index eff0323b2bc523c28e1cfe0bb8e1819d392a306f..3b8f30b43c1448de83cb55e2e34a03343dea0069 100644 (file)
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <sys/types.h>                        /* on BSD, uio.h needs types.h */
 #include <sys/uio.h>                                          /* for input.h */
 
-#include "threads.h"
 #include "config.h"
 #include "common.h"
+#include "threads.h"
 #include "mtime.h"
 #include "plugins.h"
 
index 7181d558fdbd9f4701d621d288df3d6328c326f7..86683317a9c3d3b56bb5621aeedd36dcb98640c9 100644 (file)
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <sys/types.h>                        /* on BSD, uio.h needs types.h */
 #include <sys/uio.h>                                          /* for input.h */
 
-#include "threads.h"
 #include "config.h"
 #include "common.h"
+#include "threads.h"
 #include "mtime.h"
 #include "plugins.h"
 
index 4c7443f8aa50158bb581c809987a9ffd3f3ad5a0..a8406951573e2bebafac029e71724e0a287f8d06 100644 (file)
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <stdlib.h>                                                /* free() */
 #include <unistd.h>                                              /* getpid() */
 #include <sys/types.h>                        /* on BSD, uio.h needs types.h */
 #include <sys/uio.h>                                          /* for input.h */
 
-#include "threads.h"
 #include "config.h"
 #include "common.h"
+#include "threads.h"
 #include "mtime.h"
 #include "plugins.h"
 
index 5c9731834b45275243a15fc25ed47a0e70a55508..d2e165ee9c183cf27074ce9a69ccfe1a16467baa 100644 (file)
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <errno.h>                                                 /* ENOMEM */
 #include <stdlib.h>                                                /* free() */
 #include <stdio.h>                                              /* sprintf() */
 #include <string.h>                                            /* strerror() */
 
-#include "threads.h"
-#include "common.h"
 #include "config.h"
+#include "common.h"
+#include "threads.h"
 #include "mtime.h"
 #include "plugins.h"
 #include "video.h"
index d21a5f430bb2c179feb98742090ab981b3da66c3..3350cb4a18830619ae223b5366553bc4355edb01 100644 (file)
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <errno.h>                                                  /* errno */
 #include <stdlib.h>                                                /* free() */
 #include <string.h>                                            /* strerror() */
 #include <fcntl.h>                                                 /* open() */
 #include <unistd.h>                                       /* read(), close() */
 
-#include "common.h"
 #include "config.h"
+#include "common.h"
 #include "video_text.h"
 
 #include "intf_msg.h"
index 7113ca662fe0115f9e3c11e08a53f6648bbbff6a..7e6f7822207d1e399c926a1a3ee350aa21b82efa 100644 (file)
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <math.h>                                            /* exp(), pow() */
 #include <errno.h>                                                 /* ENOMEM */
 #include <stdlib.h>                                                /* free() */
 #include <string.h>                                            /* strerror() */
 
-#include "threads.h"
-#include "common.h"
 #include "config.h"
+#include "common.h"
+#include "threads.h"
 #include "mtime.h"
 #include "plugins.h"
 #include "video.h"
index d0c4df5578cf7b9fae694abc50b0fd98d2a5f152..26944d0831ba78b810f50f1cfc4f96c220f10240 100644 (file)
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <sys/types.h>                        /* on BSD, uio.h needs types.h */
 #include <sys/uio.h>                                             /* "input.h */
 
-#include "threads.h"
 #include "config.h"
 #include "common.h"
+#include "threads.h"
 #include "mtime.h"
 #include "plugins.h"
 
index beab526a7b846529452cc16544424f50a48985b4..8fafc20513533a451232bb9d32600977d8b1151b 100644 (file)
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <stdlib.h>                                      /* malloc(), free() */
 #include <unistd.h>                                              /* getpid() */
 #include <sys/types.h>                        /* on BSD, uio.h needs types.h */
 #include <sys/uio.h>                                            /* "input.h" */
 
-#include "threads.h"
 #include "config.h"
 #include "common.h"
+#include "threads.h"
 #include "mtime.h"
 #include "plugins.h"
 
index a0711fb3a54ede8832981e4403afdba926120322..4de3c41134f8cd4e514eaeb15833f1bfb96af41e 100644 (file)
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <sys/types.h>                        /* on BSD, uio.h needs types.h */
 #include <sys/uio.h>                                            /* "input.h" */
 
-#include "threads.h"
 #include "config.h"
 #include "common.h"
+#include "threads.h"
 #include "mtime.h"
 #include "plugins.h"
 
index d58dba8e788ef72d0e61d04fefc580556a085124..fc1b87f51cc5c52d880f19341f195ec333a46b42 100644 (file)
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <stdlib.h>                                                /* free() */
 #include <sys/types.h>                        /* on BSD, uio.h needs types.h */
 #include <sys/uio.h>                                            /* "input.h" */
 
-#include "threads.h"
 #include "config.h"
 #include "common.h"
+#include "threads.h"
 #include "mtime.h"
 #include "plugins.h"
 
index 200c0fe6148434067ac4735b137dfb9e2c12266e..c9cf211e26a82ad4a6ffeba60b8ddb6e26e67674 100644 (file)
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "defs.h"
+
 #include <stdlib.h>                                                /* free() */
 #include <sys/types.h>                        /* on BSD, uio.h needs types.h */
 #include <sys/uio.h>                                            /* "input.h" */
 
-#include "threads.h"
 #include "config.h"
 #include "common.h"
+#include "threads.h"
 #include "mtime.h"
 #include "plugins.h"