Changeset 0b776c28b4446eed12dcc984b07f5fcae06d4b6d

Show
Ignore:
Timestamp:
05/03/08 12:49:48 (4 months ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1209811788 +0300
git-parent:

[7f682030017e1c075474ca18fba3ca1a1cb0a9d4]

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

b_daemon does not need to be exported through vlc_global

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/libvlc-common.c

    rc07b1d0 r0b776c2  
    9797 
    9898/***************************************************************************** 
    99  * The evil global variable. We handle it with care, don't worry. 
     99 * The evil global variables. We handle them with care, don't worry. 
    100100 *****************************************************************************/ 
    101101static libvlc_int_t *    p_static_vlc = NULL; 
    102102static volatile unsigned int i_instances = 0; 
     103 
     104static bool b_daemon = false; 
    103105 
    104106/***************************************************************************** 
     
    325327            b_exit = true; 
    326328        } 
    327         p_libvlc_global->b_daemon = true; 
     329        b_daemon = true; 
    328330 
    329331        /* lets check if we need to write the pidfile */ 
     
    372374            close( STDERR_FILENO ); 
    373375 
    374             p_libvlc_global->b_daemon = true; 
     376            b_daemon = true; 
    375377        } 
    376378#endif 
     
    11321134 
    11331135#ifndef WIN32 
    1134     if( vlc_global()->b_daemon && b_block && !psz_module ) 
     1136    if( b_daemon && b_block && !psz_module ) 
    11351137    { 
    11361138        /* Daemon mode hack. 
  • src/libvlc.h

    r0799868 r0b776c2  
    121121 
    122122    /* Arch-specific variables */ 
    123 #if !defined( WIN32 ) 
    124     bool             b_daemon; 
    125 #endif 
    126123#if defined( SYS_BEOS ) 
    127124    vlc_object_t *         p_appthread;