Changeset 44c1d4ca1491dda070e06ebb6beef1e3c8d35e01

Show
Ignore:
Timestamp:
12/04/03 00:08:07 (6 years ago)
Author:
VideoLAN <videolan@videolan.org>
git-committer:
VideoLAN <videolan@videolan.org> 1050098887 +0000
git-parent:

[9b4e33b4404dbc6d313345aae3fe87c4351e8453]

git-author:
VideoLAN <videolan@videolan.org> 1050098887 +0000
Message:

* New message: VLC_NET_ADDUDP, to add an UDP stream to the playlist. Still

experimental

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/gui/skins/parser/flex.c

    r8558137 r44c1d4c  
    22 
    33/* Scanner skeleton version: 
    4  * $Header: /root/vlc-cvs/modules/gui/skins/parser/flex.c,v 1.4 2003/03/20 09:29:07 karibu Exp $ 
     4 * $Header: /root/vlc-cvs/modules/gui/skins/parser/flex.c,v 1.5 2003/04/11 22:08:06 videolan Exp $ 
    55 */ 
    66 
     
    2525#ifndef _WIN32 
    2626#include <unistd.h> 
     27#else 
     28#ifndef YY_ALWAYS_INTERACTIVE 
     29#ifndef YY_NEVER_INTERACTIVE 
     30extern int isatty YY_PROTO(( int )); 
     31#endif 
     32#endif 
    2733#endif 
    2834 
     
    30433049#define INITIAL 0 
    30443050/* Validating XML processor for skin.dtd (Id: skin.dtd,v 1.3 2003/03/19 17:14:50 karibu Exp). 
    3045  * Generated 2003/03/20 10:30:38
     3051 * Generated 2003/04/08 20:19:55
    30463052 * 
    30473053 * This program was generated with the FleXML XML processor generator, 
     
    38313837  *  ***************************************************************************** 
    38323838  *  * Copyright (C) 2003 VideoLAN 
    3833   *  * $Id: flex.c,v 1.4 2003/03/20 09:29:07 karibu Exp $ 
     3839  *  * $Id: flex.c,v 1.5 2003/04/11 22:08:06 videolan Exp $ 
    38343840  *  * 
    38353841  *  * Authors: Olivier Teuli� <ipkiss@via.ecp.fr> 
  • modules/gui/skins/parser/skin.c

    r8558137 r44c1d4c  
    11/* XML application for skin.dtd (Id: skin.dtd,v 1.3 2003/03/19 17:14:50 karibu Exp). 
    22 * Includes actions from skin.act. 
    3  * Generated 2003/03/20 10:30:38
     3 * Generated 2003/04/08 20:19:55
    44 * 
    55 * This program was generated with the FleXML XML processor generator, 
  • modules/gui/skins/parser/skin.h

    r8558137 r44c1d4c  
    11/* XML processor/application API for skin.dtd (Id: skin.dtd,v 1.3 2003/03/19 17:14:50 karibu Exp). 
    2  * Generated 2003/03/20 10:30:38
     2 * Generated 2003/04/08 20:19:55
    33 * 
    44 * This program was generated with the FleXML XML processor generator, 
  • modules/gui/skins/src/event.cpp

    r2387d9b r44c1d4c  
    33 ***************************************************************************** 
    44 * Copyright (C) 2003 VideoLAN 
    5  * $Id: event.cpp,v 1.4 2003/04/08 02:06:13 gbazin Exp $ 
     5 * $Id: event.cpp,v 1.5 2003/04/11 22:08:06 videolan Exp $ 
    66 * 
    77 * Authors: Olivier Teuli� <ipkiss@via.ecp.fr> 
     
    169169        return VLC_FULLSCREEN; 
    170170 
     171    // Network events 
     172    else if( Desc == "VLC_NET_ADDUDP" ) 
     173        return VLC_NET_ADDUDP; 
     174 
    171175    // Window event 
    172176    else if( Desc == "WINDOW_MOVE" ) 
     
    275279            break; 
    276280 
     281        case VLC_NET_ADDUDP: 
     282            Param2 = atoi( para1 ); 
     283            break; 
     284 
    277285        case CTRL_ID_VISIBLE: 
    278286            Param1 = (unsigned int)FindControl( para1 ); 
  • modules/gui/skins/src/event.h

    r2387d9b r44c1d4c  
    33 ***************************************************************************** 
    44 * Copyright (C) 2003 VideoLAN 
    5  * $Id: event.h,v 1.3 2003/04/08 02:06:13 gbazin Exp $ 
     5 * $Id: event.h,v 1.4 2003/04/11 22:08:06 videolan Exp $ 
    66 * 
    77 * Authors: Olivier Teuli� <ipkiss@via.ecp.fr> 
     
    8787#define VLC_PLAYLIST_ADD_FILE (VLC_MESSAGE + 301) 
    8888#define VLC_TEST_ALL_CLOSED (VLC_MESSAGE + 600) 
     89 
     90// Network events 
     91#define VLC_NET_ADDUDP      (VLC_MESSAGE + 701) 
    8992 
    9093// Window event 
  • modules/gui/skins/src/vlcproc.cpp

    r8558137 r44c1d4c  
    33 ***************************************************************************** 
    44 * Copyright (C) 2003 VideoLAN 
    5  * $Id: vlcproc.cpp,v 1.3 2003/03/20 09:29:07 karibu Exp $ 
     5 * $Id: vlcproc.cpp,v 1.4 2003/04/11 22:08:06 videolan Exp $ 
    66 * 
    77 * Authors: Olivier Teuli� <ipkiss@via.ecp.fr> 
     
    155155            return true; 
    156156 
     157        case VLC_NET_ADDUDP: 
     158            AddNetworkUDP( (int)evt->GetParam2() ); 
     159            return true; 
     160 
    157161        default: 
    158162            return true; 
     
    584588} 
    585589//--------------------------------------------------------------------------- 
     590 
     591 
     592//--------------------------------------------------------------------------- 
     593// Network 
     594//--------------------------------------------------------------------------- 
     595void VlcProc::AddNetworkUDP( int port ) 
     596{ 
     597    config_PutInt( p_intf, "network-channel", FALSE ); 
     598 
     599    // Build source name 
     600    char *s_port = new char[5]; 
     601    sprintf( s_port, "%i", port ); 
     602    string source = "udp:@:" + (string)s_port; 
     603    delete[] s_port; 
     604 
     605    playlist_Add( p_intf->p_sys->p_playlist, (char *)source.c_str(), 
     606        PLAYLIST_APPEND, PLAYLIST_END ); 
     607 
     608    // Refresh interface ! 
     609    p_intf->p_sys->p_theme->EvtBank->Get( "playlist_refresh" ) 
     610        ->PostSynchroMessage(); 
     611    InterfaceRefresh(); 
     612} 
     613//--------------------------------------------------------------------------- 
     614 
     615 
  • modules/gui/skins/src/vlcproc.h

    ra64501f r44c1d4c  
    33 ***************************************************************************** 
    44 * Copyright (C) 2003 VideoLAN 
    5  * $Id: vlcproc.h,v 1.1 2003/03/18 02:21:47 ipkiss Exp $ 
     5 * $Id: vlcproc.h,v 1.2 2003/04/11 22:08:07 videolan Exp $ 
    66 * 
    77 * Authors: Olivier Teuli� <ipkiss@via.ecp.fr> 
     
    5353        void FullScreen(); 
    5454        void ChangeVolume( unsigned int msg, long param ); 
     55        void AddNetworkUDP( int port ); 
    5556 
    5657        void InterfaceRefresh( bool All = false );