Changeset 62ffefd4354ff47900238126151b0ca2d05f581e

Show
Ignore:
Timestamp:
20/10/07 15:39:41 (1 year ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1192887581 +0000
git-parent:

[6dd8082f73ba1ec60597e9462076ad4aaa75ac00]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1192887581 +0000
Message:

Protects internal headers against incorrect/multiple inclusions

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/audio_output/aout_internal.h

    rd20dd24 r62ffefd  
    2121 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. 
    2222 *****************************************************************************/ 
     23 
     24#if defined(__PLUGIN__) || defined(__BUILTIN__) || !defined(__LIBVLC__) 
     25# error This header file can only be included from LibVLC. 
     26#endif 
     27 
     28#ifndef __LIBVLC_AOUT_INTERNAL_H 
     29# define __LIBVLC_AOUT_INTERNAL_H 1 
    2330 
    2431#if defined( __APPLE__ ) || defined( SYS_BSD ) 
     
    132139int aout_DecPlay( aout_instance_t *, aout_input_t *, aout_buffer_t *, int i_input_rate ); 
    133140 
     141#endif /* !__LIBVLC_AOUT_INTERNAL_H */ 
  • src/input/input_internal.h

    ra0429d0 r62ffefd  
    2121 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. 
    2222 *****************************************************************************/ 
     23 
     24#if defined(__PLUGIN__) || defined(__BUILTIN__) || !defined(__LIBVLC__) 
     25# error This header file can only be included from LibVLC. 
     26#endif 
    2327 
    2428#ifndef _INPUT_INTERNAL_H 
     
    358362} 
    359363 
    360 #if defined(__PLUGIN__) || defined(__BUILTIN__) 
    361 # warning This is an internal header, something is wrong if you see this message. 
    362 #else 
    363364/* Stream */ 
    364365/** 
     
    390391                                          VLC_OBJECT_STREAM, "stream" ); 
    391392} 
     393 
    392394#endif 
    393  
    394 #endif 
  • src/input/vlm_internal.h

    r6ee1e19 r62ffefd  
    2121 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. 
    2222 *****************************************************************************/ 
     23 
     24#if defined(__PLUGIN__) || defined(__BUILTIN__) || !defined(__LIBVLC__) 
     25# error This header file can only be included from LibVLC. 
     26#endif 
    2327 
    2428#ifndef _VLM_INTERNAL_H 
  • src/interface/interface.h

    rd3fe7f2 r62ffefd  
    2424 *****************************************************************************/ 
    2525 
     26#if defined(__PLUGIN__) || defined(__BUILTIN__) || !defined(__LIBVLC__) 
     27# error This header file can only be included from LibVLC. 
     28#endif 
     29 
     30#ifndef __LIBVLC_INTERFACE_H 
     31# define __LIBVLC_INTERFACE_H 1 
     32 
    2633/********************************************************************** 
    2734 * Interaction 
     
    3037void intf_InteractionManage( playlist_t *); 
    3138void intf_InteractionDestroy( interaction_t *); 
     39#endif 
  • src/misc/variables.h

    raf44752 r62ffefd  
    2222 *****************************************************************************/ 
    2323 
     24#if defined(__PLUGIN__) || defined(__BUILTIN__) || !defined(__LIBVLC__) 
     25# error This header file can only be included from LibVLC. 
     26#endif 
     27 
     28#ifndef __LIBVLC_VARIABLES_H 
     29# define __LIBVLC_VARIABLES_H 1 
    2430 
    2531typedef struct callback_entry_t callback_entry_t; 
     
    7076    callback_entry_t * p_entries; 
    7177}; 
    72  
     78#endif 
  • src/modules/configuration.h

    r942772a r62ffefd  
    1818 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. 
    1919 *****************************************************************************/ 
     20 
     21#if defined(__PLUGIN__) || defined(__BUILTIN__) || !defined(__LIBVLC__) 
     22# error This header file can only be included from LibVLC. 
     23#endif 
    2024 
    2125#ifndef LIBVLC_CONFIGURATION_H 
  • src/modules/modules.h

    r8952d64 r62ffefd  
    2121 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. 
    2222 *****************************************************************************/ 
     23 
     24#if defined(__PLUGIN__) || defined(__BUILTIN__) || !defined(__LIBVLC__) 
     25# error This header file can only be included from LibVLC. 
     26#endif 
     27 
     28#ifndef __LIBVLC_MODULES_H 
     29# define __LIBVLC_MODULES_H 1 
     30 
    2331 
    2432/* Number of tries before we unload an unused module */ 
     
    153161#define module_ResetBank(a)    __module_ResetBank(VLC_OBJECT(a)) 
    154162void  __module_ResetBank       ( vlc_object_t * ); 
     163 
     164#endif /* !__LIBVLC_MODULES_H */ 
  • src/playlist/playlist_internal.h

    rd3b42e4 r62ffefd  
    2222 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. 
    2323 *****************************************************************************/ 
     24 
     25#ifndef __LIBVLC_PLAYLIST_INTERNAL_H 
     26# define __LIBVLC_PLAYLIST_INTERNAL_H 1 
    2427 
    2528/** 
     
    131134 
    132135#define PLI_NAME( p ) p && p->p_input ? p->p_input->psz_name : "null" 
     136#endif /* !__LIBVLC_PLAYLIST_INTERNAL_H */ 
  • src/stream_output/stream_output.h

    rd212179 r62ffefd  
    2424 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. 
    2525 ***************************************************************************/ 
     26 
     27#if defined(__PLUGIN__) || defined(__BUILTIN__) || !defined(__LIBVLC__) 
     28# error This header file can only be included from LibVLC. 
     29#endif 
    2630 
    2731#ifndef VLC_SRC_STREAMOUT_H