Changeset 08999a39bccd9b1b199294933a54c50e94f4148f
- Timestamp:
- 04/24/02 02:36:24
(6 years ago)
- Author:
- Sam Hocevar <sam@videolan.org>
- git-committer:
- Sam Hocevar <sam@videolan.org> 1019608584 +0000
- git-parent:
[4144b604ceafac6c65629df78a9078f7d93e7e6b]
- git-author:
- Sam Hocevar <sam@videolan.org> 1019608584 +0000
- Message:
- ./src/interface/main.c: we no longer segfault if argc == 0.
- ALL: renamed PLUGINS to PLUGINS to avoid conflicts with libraries
defining it. Grmbl.
- ./src/input/input_ext-plugins.c: cosmetic change.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r1b0868e |
r08999a3 |
|
| 129 | 129 | as follows: |
|---|
| 130 | 130 | bpr2mak intfwin.bpr -s \ |
|---|
| 131 | | | sed 's#^LIBPATH = .*#&;$$(RELEASELIBPATH)# ; s#^USERDEFINES = .*#& -DWIN32 -DPLUGIN -DMODULE_NAME_IS_intfwin -DMODULE_NAME=intfwin#' \ |
|---|
| | 131 | | sed 's#^LIBPATH = .*#&;$$(RELEASELIBPATH)# ; s#^USERDEFINES = .*#& -DWIN32 -D__PLUGIN__ -DMODULE_NAME_IS_intfwin -DMODULE_NAME=intfwin#' \ |
|---|
| 132 | 132 | > intfwin.mak // Create a makefile from intfwin.bpr |
|---|
| 133 | 133 | make -fintfwin // It's Borland's make utility ! |
|---|
| rfbe65af |
r08999a3 |
|
| 252 | 252 | # C compiler flags: plugins and builtins compilation |
|---|
| 253 | 253 | # |
|---|
| 254 | | plugins_CFLAGS += -DPLUGIN -I../../include -I../../extras |
|---|
| 255 | | builtins_CFLAGS += -DBUILTIN -I../../include -I../../extras |
|---|
| | 254 | vlc_CFLAGS += -D__VLC__ |
|---|
| | 255 | plugins_CFLAGS += -D__PLUGIN__ -I../../include -I../../extras |
|---|
| | 256 | builtins_CFLAGS += -D__BUILTIN__ -I../../include -I../../extras |
|---|
| 256 | 257 | |
|---|
| 257 | 258 | # |
|---|
| r5322a29 |
r08999a3 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 1999, 2000 VideoLAN |
|---|
| 5 | | * $Id: audio_output.h,v 1.45 2002/03/26 23:08:40 gbazin Exp $ |
|---|
| | 5 | * $Id: audio_output.h,v 1.46 2002/04/24 00:36:24 sam Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Michel Kaempf <maxx@via.ecp.fr> |
|---|
| … | … | |
| 38 | 38 | } aout_bank_t; |
|---|
| 39 | 39 | |
|---|
| 40 | | #ifndef PLUGIN |
|---|
| | 40 | #ifndef __PLUGIN__ |
|---|
| 41 | 41 | extern aout_bank_t *p_aout_bank; |
|---|
| 42 | 42 | #else |
|---|
| … | … | |
| 208 | 208 | * Prototypes |
|---|
| 209 | 209 | *****************************************************************************/ |
|---|
| 210 | | #ifndef PLUGIN |
|---|
| | 210 | #ifndef __PLUGIN__ |
|---|
| 211 | 211 | void aout_InitBank ( void ); |
|---|
| 212 | 212 | void aout_EndBank ( void ); |
|---|
| rce25f1e |
r08999a3 |
|
| 4 | 4 | ***************************************************************************** |
|---|
| 5 | 5 | * Copyright (C) 1998, 1999, 2000 VideoLAN |
|---|
| 6 | | * $Id: common.h,v 1.96 2002/04/21 11:23:03 gbazin Exp $ |
|---|
| | 6 | * $Id: common.h,v 1.97 2002/04/24 00:36:24 sam Exp $ |
|---|
| 7 | 7 | * |
|---|
| 8 | 8 | * Authors: Samuel Hocevar <sam@via.ecp.fr> |
|---|
| … | … | |
| 683 | 683 | } module_symbols_t; |
|---|
| 684 | 684 | |
|---|
| 685 | | #ifdef PLUGIN |
|---|
| | 685 | #ifdef __PLUGIN__ |
|---|
| 686 | 686 | extern module_symbols_t* p_symbols; |
|---|
| 687 | 687 | #endif |
|---|
| ra6bccb1 |
r08999a3 |
|
| 5 | 5 | ***************************************************************************** |
|---|
| 6 | 6 | * Copyright (C) 1999, 2000 VideoLAN |
|---|
| 7 | | * $Id: configuration.h,v 1.8 2002/04/23 14:16:19 sam Exp $ |
|---|
| | 7 | * $Id: configuration.h,v 1.9 2002/04/24 00:36:24 sam Exp $ |
|---|
| 8 | 8 | * |
|---|
| 9 | 9 | * Authors: Gildas Bazin <gbazin@netcourrier.com> |
|---|
| … | … | |
| 66 | 66 | * data. |
|---|
| 67 | 67 | *****************************************************************************/ |
|---|
| 68 | | #ifndef PLUGIN |
|---|
| | 68 | #ifndef __PLUGIN__ |
|---|
| 69 | 69 | int config_GetIntVariable( const char *psz_name ); |
|---|
| 70 | 70 | float config_GetFloatVariable( const char *psz_name ); |
|---|
| r4144b60 |
r08999a3 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 1999-2001 VideoLAN |
|---|
| 5 | | * $Id: input_ext-dec.h,v 1.55 2002/04/23 23:44:36 fenrir Exp $ |
|---|
| | 5 | * $Id: input_ext-dec.h,v 1.56 2002/04/24 00:36:24 sam Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Christophe Massiot <massiot@via.ecp.fr> |
|---|
| … | … | |
| 211 | 211 | * Prototypes from input_ext-dec.c |
|---|
| 212 | 212 | *****************************************************************************/ |
|---|
| 213 | | #ifndef PLUGIN |
|---|
| | 213 | #ifndef __PLUGIN__ |
|---|
| 214 | 214 | void InitBitstream ( struct bit_stream_s *, struct decoder_fifo_s *, |
|---|
| 215 | 215 | void (* pf_bitstream_callback)( struct bit_stream_s *, |
|---|
| … | … | |
| 543 | 543 | * Prototypes from input_dec.c |
|---|
| 544 | 544 | *****************************************************************************/ |
|---|
| 545 | | #ifndef PLUGIN |
|---|
| | 545 | #ifndef __PLUGIN__ |
|---|
| 546 | 546 | void DecoderError ( struct decoder_fifo_s * p_fifo ); |
|---|
| 547 | 547 | #else |
|---|
| ra6bccb1 |
r08999a3 |
|
| 5 | 5 | ***************************************************************************** |
|---|
| 6 | 6 | * Copyright (C) 1999, 2000 VideoLAN |
|---|
| 7 | | * $Id: input_ext-intf.h,v 1.64 2002/04/23 14:16:20 sam Exp $ |
|---|
| | 7 | * $Id: input_ext-intf.h,v 1.65 2002/04/24 00:36:24 sam Exp $ |
|---|
| 8 | 8 | * |
|---|
| 9 | 9 | * Authors: Christophe Massiot <massiot@via.ecp.fr> |
|---|
| … | … | |
| 50 | 50 | } input_bank_t; |
|---|
| 51 | 51 | |
|---|
| 52 | | #ifndef PLUGIN |
|---|
| | 52 | #ifndef __PLUGIN__ |
|---|
| 53 | 53 | extern input_bank_t *p_input_bank; |
|---|
| 54 | 54 | #else |
|---|
| … | … | |
| 330 | 330 | * Prototypes |
|---|
| 331 | 331 | *****************************************************************************/ |
|---|
| 332 | | #ifndef PLUGIN |
|---|
| | 332 | #ifndef __PLUGIN__ |
|---|
| 333 | 333 | void input_InitBank ( void ); |
|---|
| 334 | 334 | void input_EndBank ( void ); |
|---|
| r5658c1d |
r08999a3 |
|
| 4 | 4 | ***************************************************************************** |
|---|
| 5 | 5 | * Copyright (C) 1999-2002 VideoLAN |
|---|
| 6 | | * $Id: input_ext-plugins.h,v 1.21 2002/03/04 23:56:37 massiot Exp $ |
|---|
| | 6 | * $Id: input_ext-plugins.h,v 1.22 2002/04/24 00:36:24 sam Exp $ |
|---|
| 7 | 7 | * |
|---|
| 8 | 8 | * Authors: Christophe Massiot <massiot@via.ecp.fr> |
|---|
| … | … | |
| 39 | 39 | * Prototypes from input_programs.c |
|---|
| 40 | 40 | *****************************************************************************/ |
|---|
| 41 | | #ifndef PLUGIN |
|---|
| | 41 | #ifndef __PLUGIN__ |
|---|
| 42 | 42 | int input_InitStream( struct input_thread_s *, size_t ); |
|---|
| 43 | 43 | void input_EndStream ( struct input_thread_s * ); |
|---|
| … | … | |
| 74 | 74 | * Prototypes from input_dec.c |
|---|
| 75 | 75 | *****************************************************************************/ |
|---|
| 76 | | #ifndef PLUGIN |
|---|
| | 76 | #ifndef __PLUGIN__ |
|---|
| 77 | 77 | //decoder_capabilities_s * input_ProbeDecoder( void ); |
|---|
| 78 | 78 | vlc_thread_t input_RunDecoder( struct input_thread_s *, |
|---|
| … | … | |
| 90 | 90 | * Prototypes from input_clock.c |
|---|
| 91 | 91 | *****************************************************************************/ |
|---|
| 92 | | #ifndef PLUGIN |
|---|
| | 92 | #ifndef __PLUGIN__ |
|---|
| 93 | 93 | void input_ClockInit( struct pgrm_descriptor_s * ); |
|---|
| 94 | 94 | int input_ClockManageControl( struct input_thread_s *, |
|---|
| … | … | |
| 105 | 105 | * Prototypes from input_ext-plugins.h (buffers management) |
|---|
| 106 | 106 | *****************************************************************************/ |
|---|
| 107 | | #ifndef PLUGIN |
|---|
| | 107 | #ifndef __PLUGIN__ |
|---|
| 108 | 108 | void * input_BuffersInit( void ); |
|---|
| 109 | 109 | void input_BuffersEnd( struct input_buffers_s * ); |
|---|
| … | … | |
| 284 | 284 | * Prototypes |
|---|
| 285 | 285 | *****************************************************************************/ |
|---|
| 286 | | #ifndef PLUGIN |
|---|
| | 286 | #ifndef __PLUGIN__ |
|---|
| 287 | 287 | void input_ParsePES ( struct input_thread_s *, struct es_descriptor_s * ); |
|---|
| 288 | 288 | void input_GatherPES ( struct input_thread_s *, struct data_packet_s *, |
|---|
| … | … | |
| 324 | 324 | * Prototypes |
|---|
| 325 | 325 | *****************************************************************************/ |
|---|
| 326 | | #ifndef PLUGIN |
|---|
| | 326 | #ifndef __PLUGIN__ |
|---|
| 327 | 327 | void input_FDClose( struct input_thread_s * ); |
|---|
| 328 | 328 | ssize_t input_FDRead( input_thread_t *, byte_t *, size_t ); |
|---|
| r730cc39 |
r08999a3 |
|
| 5 | 5 | ***************************************************************************** |
|---|
| 6 | 6 | * Copyright (C) 1999, 2000 VideoLAN |
|---|
| 7 | | * $Id: interface.h,v 1.27 2002/02/19 00:50:18 sam Exp $ |
|---|
| | 7 | * $Id: interface.h,v 1.28 2002/04/24 00:36:24 sam Exp $ |
|---|
| 8 | 8 | * |
|---|
| 9 | 9 | * Authors: Vincent Seguin <seguin@via.ecp.fr> |
|---|
| … | … | |
| 101 | 101 | void intf_MsgDestroy ( void ); |
|---|
| 102 | 102 | |
|---|
| 103 | | #ifndef PLUGIN |
|---|
| | 103 | #ifndef __PLUGIN__ |
|---|
| 104 | 104 | intf_subscription_t* intf_MsgSub ( void ); |
|---|
| 105 | 105 | void intf_MsgUnsub ( intf_subscription_t * ); |
|---|
| rc7b1c47 |
r08999a3 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2001, 2002 VideoLAN |
|---|
| 5 | | * $Id: intf_eject.h,v 1.1 2002/01/09 02:01:14 sam Exp $ |
|---|
| | 5 | * $Id: intf_eject.h,v 1.2 2002/04/24 00:36:24 sam Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Author: Julien Blache <jb@technologeek.org> |
|---|
| … | … | |
| 22 | 22 | *****************************************************************************/ |
|---|
| 23 | 23 | |
|---|
| 24 | | #ifndef PLUGIN |
|---|
| | 24 | #ifndef __PLUGIN__ |
|---|
| 25 | 25 | int intf_Eject( const char * ); |
|---|
| 26 | 26 | #else |
|---|
| r730cc39 |
r08999a3 |
|
| 5 | 5 | ***************************************************************************** |
|---|
| 6 | 6 | * Copyright (C) 1999, 2000 VideoLAN |
|---|
| 7 | | * $Id: intf_msg.h,v 1.18 2002/02/19 00:50:19 sam Exp $ |
|---|
| | 7 | * $Id: intf_msg.h,v 1.19 2002/04/24 00:36:24 sam Exp $ |
|---|
| 8 | 8 | * |
|---|
| 9 | 9 | * Authors: Vincent Seguin <seguin@via.ecp.fr> |
|---|
| … | … | |
| 27 | 27 | * Prototypes |
|---|
| 28 | 28 | *****************************************************************************/ |
|---|
| 29 | | #ifndef PLUGIN |
|---|
| | 29 | #ifndef __PLUGIN__ |
|---|
| 30 | 30 | void intf_Msg ( char *psz_format, ... ); |
|---|
| 31 | 31 | void intf_ErrMsg ( char *psz_format, ... ); |
|---|
| rcc0f0bb |
r08999a3 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 1999, 2000 VideoLAN |
|---|
| 5 | | * $Id: intf_playlist.h,v 1.5 2001/12/30 07:09:54 sam Exp $ |
|---|
| | 5 | * $Id: intf_playlist.h,v 1.6 2002/04/24 00:36:24 sam Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Samuel Hocevar <sam@zoy.org> |
|---|
| … | … | |
| 70 | 70 | * Prototypes |
|---|
| 71 | 71 | *****************************************************************************/ |
|---|
| 72 | | #ifndef PLUGIN |
|---|
| | 72 | #ifndef __PLUGIN__ |
|---|
| 73 | 73 | playlist_t * intf_PlaylistCreate ( void ); |
|---|
| 74 | 74 | void intf_PlaylistInit ( playlist_t * p_playlist ); |
|---|
| rcc0f0bb |
r08999a3 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 1998-2001 VideoLAN |
|---|
| 5 | | * $Id: iso_lang.h,v 1.2 2001/12/30 07:09:54 sam Exp $ |
|---|
| | 5 | * $Id: iso_lang.h,v 1.3 2002/04/24 00:36:24 sam Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Author: St�ane Borel <stef@via.ecp.fr> |
|---|
| … | … | |
| 22 | 22 | *****************************************************************************/ |
|---|
| 23 | 23 | |
|---|
| 24 | | #ifndef PLUGIN |
|---|
| | 24 | #ifndef __PLUGIN__ |
|---|
| 25 | 25 | char * DecodeLanguage( u16 ); |
|---|
| 26 | 26 | #else |
|---|
| rfb3f8ba |
r08999a3 |
|
| 4 | 4 | ***************************************************************************** |
|---|
| 5 | 5 | * Copyright (C) 1999, 2000 VideoLAN |
|---|
| 6 | | * $Id: main.h,v 1.33 2002/03/21 07:11:57 gbazin Exp $ |
|---|
| | 6 | * $Id: main.h,v 1.34 2002/04/24 00:36:24 sam Exp $ |
|---|
| 7 | 7 | * |
|---|
| 8 | 8 | * Authors: Vincent Seguin <seguin@via.ecp.fr> |
|---|
| … | … | |
| 70 | 70 | } main_t; |
|---|
| 71 | 71 | |
|---|
| 72 | | #ifndef PLUGIN |
|---|
| | 72 | #ifndef __PLUGIN__ |
|---|
| 73 | 73 | extern main_t *p_main; |
|---|
| 74 | 74 | #else |
|---|
| r4f6c862 |
r08999a3 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2001 VideoLAN |
|---|
| 5 | | * $Id: modules.h,v 1.47 2002/04/19 13:56:10 sam Exp $ |
|---|
| | 5 | * $Id: modules.h,v 1.48 2002/04/24 00:36:24 sam Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Samuel Hocevar <sam@zoy.org> |
|---|
| … | … | |
| 97 | 97 | } module_bank_t; |
|---|
| 98 | 98 | |
|---|
| 99 | | #ifndef PLUGIN |
|---|
| | 99 | #ifndef __PLUGIN__ |
|---|
| 100 | 100 | extern module_bank_t *p_module_bank; |
|---|
| 101 | 101 | #else |
|---|
| … | … | |
| 336 | 336 | * Exported functions. |
|---|
| 337 | 337 | *****************************************************************************/ |
|---|
| 338 | | #ifndef PLUGIN |
|---|
| | 338 | #ifndef __PLUGIN__ |
|---|
| 339 | 339 | void module_InitBank ( void ); |
|---|
| 340 | 340 | void module_LoadMain ( void ); |
|---|
| ra6bccb1 |
r08999a3 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2001 VideoLAN |
|---|
| 5 | | * $Id: modules_inner.h,v 1.15 2002/04/23 14:16:20 sam Exp $ |
|---|
| | 5 | * $Id: modules_inner.h,v 1.16 2002/04/24 00:36:24 sam Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Samuel Hocevar <sam@zoy.org> |
|---|
| … | … | |
| 39 | 39 | * #define MODULE_VAR(blah) "VLC_MODULE_foo_blah" |
|---|
| 40 | 40 | * |
|---|
| 41 | | * and, if BUILTIN is set, we will also need: |
|---|
| | 41 | * and, if __BUILTIN__ is set, we will also need: |
|---|
| 42 | 42 | * #define MODULE_FUNC( zog ) module_foo_zog |
|---|
| 43 | 43 | * |
|---|
| … | … | |
| 56 | 56 | /* If the module is built-in, then we need to define foo_InitModule instead |
|---|
| 57 | 57 | * of InitModule. Same for Activate- and DeactivateModule. */ |
|---|
| 58 | | #ifdef BUILTIN |
|---|
| | 58 | #ifdef __BUILTIN__ |
|---|
| 59 | 59 | # define _M( function ) CONCATENATE( function, MODULE_NAME ) |
|---|
| 60 | 60 | # define __VLC_SYMBOL( symbol ) CONCATENATE( symbol, MODULE_NAME ) |
|---|
| ree87a69 |
r08999a3 |
|
| 10 | 10 | ***************************************************************************** |
|---|
| 11 | 11 | * Copyright (C) 1996, 1997, 1998, 1999, 2000 VideoLAN |
|---|
| 12 | | * $Id: mtime.h,v 1.10 2002/01/29 20:11:18 gbazin Exp $ |
|---|
| | 12 | * $Id: mtime.h,v 1.11 2002/04/24 00:36:24 sam Exp $ |
|---|
| 13 | 13 | * |
|---|
| 14 | 14 | * Authors: Vincent Seguin <seguin@via.ecp.fr> |
|---|
| … | … | |
| 51 | 51 | * Prototypes |
|---|
| 52 | 52 | *****************************************************************************/ |
|---|
| 53 | | #ifndef PLUGIN |
|---|
| | 53 | #ifndef __PLUGIN__ |
|---|
| 54 | 54 | char * mstrtime ( char *psz_buffer, mtime_t date ); |
|---|
| 55 | 55 | mtime_t mdate ( void ); |
|---|
| rcc0f0bb |
r08999a3 |
|
| 5 | 5 | ***************************************************************************** |
|---|
| 6 | 6 | * Copyright (C) 1999, 2000, 2001 VideoLAN |
|---|
| 7 | | * $Id: netutils.h,v 1.18 2001/12/30 07:09:54 sam Exp $ |
|---|
| | 7 | * $Id: netutils.h,v 1.19 2002/04/24 00:36:24 sam Exp $ |
|---|
| 8 | 8 | * |
|---|
| 9 | 9 | * Authors: Vincent Seguin <seguin@via.ecp.fr> |
|---|
| … | … | |
| 34 | 34 | int network_BuildAddr ( struct sockaddr_in *, char *, int ); |
|---|
| 35 | 35 | |
|---|
| 36 | | #ifndef PLUGIN |
|---|
| | 36 | #ifndef __PLUGIN__ |
|---|
| 37 | 37 | int network_ChannelJoin ( int ); |
|---|
| 38 | 38 | int network_ChannelCreate ( void ); |
|---|
| r4f08a70 |
r08999a3 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2001 VideoLAN |
|---|
| 5 | | * $Id: os_specific.h,v 1.1 2002/04/02 23:43:57 gbazin Exp $ |
|---|
| | 5 | * $Id: os_specific.h,v 1.2 2002/04/24 00:36:24 sam Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Samuel Hocevar <sam@zoy.org> |
|---|
| … | … | |
| 42 | 42 | struct main_sys_s; |
|---|
| 43 | 43 | |
|---|
| 44 | | #ifndef PLUGIN |
|---|
| | 44 | #ifndef __PLUGIN__ |
|---|
| 45 | 45 | extern struct main_sys_s *p_main_sys; |
|---|
| 46 | 46 | #else |
|---|
| rb29f85e |
r08999a3 |
|
| 6 | 6 | ***************************************************************************** |
|---|
| 7 | 7 | * Copyright (C) 1999, 2000 VideoLAN |
|---|
| 8 | | * $Id: video_output.h,v 1.73 2002/04/04 05:08:05 sam Exp $ |
|---|
| | 8 | * $Id: video_output.h,v 1.74 2002/04/24 00:36:24 sam Exp $ |
|---|
| 9 | 9 | * |
|---|
| 10 | 10 | * Authors: Vincent Seguin <seguin@via.ecp.fr> |
|---|
| … | … | |
| 40 | 40 | } vout_bank_t; |
|---|
| 41 | 41 | |
|---|
| 42 | | #ifndef PLUGIN |
|---|
| | 42 | #ifndef __PLUGIN__ |
|---|
| 43 | 43 | extern vout_bank_t *p_vout_bank; |
|---|
| 44 | 44 | #else |
|---|
| … | … | |
| 190 | 190 | * Prototypes |
|---|
| 191 | 191 | *****************************************************************************/ |
|---|
| 192 | | #ifndef PLUGIN |
|---|
| | 192 | #ifndef __PLUGIN__ |
|---|
| 193 | 193 | void vout_InitBank ( void ); |
|---|
| 194 | 194 | void vout_EndBank ( void ); |
|---|
| r4f08a70 |
r08999a3 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 1998, 1999, 2000 VideoLAN |
|---|
| 5 | | * $Id: vlc.h,v 1.6 2002/04/02 23:43:57 gbazin Exp $ |
|---|
| | 5 | * $Id: vlc.h,v 1.7 2002/04/24 00:36:24 sam Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Samuel Hocevar <sam@via.ecp.fr> |
|---|
| … | … | |
| 27 | 27 | * Required vlc headers |
|---|
| 28 | 28 | *****************************************************************************/ |
|---|
| 29 | | #include "defs.h" |
|---|
| 30 | | #include "config.h" |
|---|
| | 29 | #if defined( __VLC__ ) || defined( __PLUGIN__ ) || defined( __BUILTIN__ ) |
|---|
| | 30 | # include "defs.h" |
|---|
| | 31 | # include "config.h" |
|---|
| 31 | 32 | |
|---|
| 32 | | #if defined( PLUGIN ) || defined( BUILTIN ) |
|---|
| 33 | | # include "modules_inner.h" |
|---|
| | 33 | # if defined( __PLUGIN__ ) || defined( __BUILTIN__ ) |
|---|
| | 34 | # include "modules_inner.h" |
|---|
| | 35 | # endif |
|---|
| | 36 | |
|---|
| | 37 | # include "common.h" |
|---|
| | 38 | |
|---|
| | 39 | # include "os_specific.h" |
|---|
| | 40 | |
|---|
| | 41 | # include "intf_msg.h" |
|---|
| | 42 | # include "threads.h" |
|---|
| | 43 | # include "mtime.h" |
|---|
| | 44 | # include "modules.h" |
|---|
| | 45 | |
|---|
| | 46 | # include "main.h" |
|---|
| | 47 | # include "configuration.h" |
|---|
| 34 | 48 | #endif |
|---|
| 35 | 49 | |
|---|
| 36 | | #include "common.h" |
|---|
| | 50 | int main( int i_argc, char *ppsz_argv[], char *ppsz_env[] ); |
|---|
| 37 | 51 | |
|---|
| 38 | | #include "os_specific.h" |
|---|
| 39 | | |
|---|
| 40 | | #include "intf_msg.h" |
|---|
| 41 | | #include "threads.h" |
|---|
| 42 | | #include "mtime.h" |
|---|
| 43 | | #include "modules.h" |
|---|
| 44 | | |
|---|
| 45 | | #include "main.h" |
|---|
| 46 | | #include "configuration.h" |
|---|
| r0d69146 |
r08999a3 |
|
| 12 | 12 | ../intfwin.so: Makefile |
|---|
| 13 | 13 | rm -f intfwin.mak |
|---|
| 14 | | $(BCBUILDER)/Bin/bpr2mak intfwin.bpr -s | sed 's#^LIBPATH = .*#&;$$(RELEASELIBPATH)# ; s#^USERDEFINES = .*#& -DWIN32 -DPLUGIN -DMODULE_NAME_IS_intfwin -DMODULE_NAME=intfwin#' > intfwin.mak |
|---|
| | 14 | $(BCBUILDER)/Bin/bpr2mak intfwin.bpr -s | sed 's#^LIBPATH = .*#&;$$(RELEASELIBPATH)# ; s#^USERDEFINES = .*#& -DWIN32 -D__PLUGIN__ -DMODULE_NAME_IS_intfwin -DMODULE_NAME=intfwin#' > intfwin.mak |
|---|
| 15 | 15 | $(BCBUILDER)/Bin/make -f intfwin.mak -b |
|---|
| 16 | 16 | |
|---|
| r2fda60d |
r08999a3 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2001, 2002 VideoLAN |
|---|
| 5 | | * $Id: input_ext-plugins.c,v 1.5 2002/04/02 22:46:25 massiot Exp $ |
|---|
| | 5 | * $Id: input_ext-plugins.c,v 1.6 2002/04/24 00:36:24 sam Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Christophe Massiot <massiot@via.ecp.fr> |
|---|
| … | … | |
| 727 | 727 | NULL, NULL, &timeout ); |
|---|
| 728 | 728 | |
|---|
| 729 | | if( i_ret == -1 ) |
|---|
| | 729 | if( i_ret == -1 && errno != EINTR ) |
|---|
| 730 | 730 | { |
|---|
| 731 | 731 | intf_ErrMsg( "input error: network select error (%s)", strerror(errno) ); |
|---|
| r313043f |
r08999a3 |
|
| 5 | 5 | ***************************************************************************** |
|---|
| 6 | 6 | * Copyright (C) 1998-2001 VideoLAN |
|---|
| 7 | | * $Id: intf_msg.c,v 1.47 2002/03/20 23:00:15 gbazin Exp $ |
|---|
| | 7 | * $Id: intf_msg.c,v 1.48 2002/04/24 00:36:24 sam Exp $ |
|---|
| 8 | 8 | * |
|---|
| 9 | 9 | * Authors: Vincent Seguin <seguin@via.ecp.fr> |
|---|
| … | … | |
| 292 | 292 | * QueueMsg: add a message to a queue |
|---|
| 293 | 293 | ***************************************************************************** |
|---|
| 294 | | * This function provide basic functionnalities to other intf_*Msg functions. |
|---|
| 295 | | * It add a message to a queue (after having printed all stored messages if it |
|---|
| 296 | | * is full. If the message can't be converted to string in memory, it exit the |
|---|
| 297 | | * program. If the queue is not used, it prints the message immediately. |
|---|
| | 294 | * This function provides basic functionnalities to other intf_*Msg functions. |
|---|
| | 295 | * It adds a message to a queue (after having printed all stored messages if it |
|---|
| | 296 | * is full). If the message can't be converted to string in memory, it issues |
|---|
| | 297 | * a warning. |
|---|
| 298 | 298 | *****************************************************************************/ |
|---|
| 299 | 299 | static void QueueMsg( int i_type, int i_level, char *psz_format, va_list ap ) |
|---|
| … | … | |
| 320 | 320 | vfprintf(stderr, psz_format, ap ); |
|---|
| 321 | 321 | fprintf(stderr, "\n" ); |
|---|
| 322 | | exit( errno ); |
|---|
| | 322 | return; |
|---|
| 323 | 323 | } |
|---|
| 324 | 324 | |
|---|
| ra6bccb1 |
r08999a3 |
|
| 5 | 5 | ***************************************************************************** |
|---|
| 6 | 6 | * Copyright (C) 1998-2001 VideoLAN |
|---|
| 7 | | * $Id: main.c,v 1.186 2002/04/23 14:16:21 sam Exp $ |
|---|
| | 7 | * $Id: main.c,v 1.187 2002/04/24 00:36:24 sam Exp $ |
|---|
| 8 | 8 | * |
|---|
| 9 | 9 | * Authors: Vincent Seguin <seguin@via.ecp.fr> |
|---|
| … | … | |
| 90 | 90 | * |
|---|
| 91 | 91 | *****************************************************************************/ |
|---|
| 92 | | #define BUILTIN |
|---|
| | 92 | #define __BUILTIN__ |
|---|
| 93 | 93 | #define MODULE_NAME main |
|---|
| 94 | 94 | #include "modules_inner.h" /* for configuration stuff */ |
|---|
| … | … | |
| 543 | 543 | |
|---|
| 544 | 544 | /* Get the executable name (similar to the basename command) */ |
|---|
| 545 | | p_main->psz_arg0 = p_tmp = ppsz_argv[ 0 ]; |
|---|
| 546 | | while( *p_tmp ) |
|---|
| 547 | | { |
|---|
| 548 | | if( *p_tmp == '/' ) p_main->psz_arg0 = ++p_tmp; |
|---|
| 549 | | else ++p_tmp; |
|---|
| | 545 | if( i_argc > 0 ) |
|---|
| | 546 | { |
|---|
| | 547 | p_main->psz_arg0 = p_tmp = ppsz_argv[ 0 ]; |
|---|
| | 548 | while( *p_tmp ) |
|---|
| | 549 | { |
|---|
| | 550 | if( *p_tmp == '/' ) p_main->psz_arg0 = ++p_tmp; |
|---|
| | 551 | else ++p_tmp; |
|---|
| | 552 | } |
|---|
| | 553 | } |
|---|
| | 554 | else |
|---|
| | 555 | { |
|---|
| | 556 | p_main->psz_arg0 = "vlc"; |
|---|
| 550 | 557 | } |
|---|
| 551 | 558 | |
|---|