Changeset 44c1d4ca1491dda070e06ebb6beef1e3c8d35e01
- 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
| r8558137 |
r44c1d4c |
|
| 2 | 2 | |
|---|
| 3 | 3 | /* 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 $ |
|---|
| 5 | 5 | */ |
|---|
| 6 | 6 | |
|---|
| … | … | |
| 25 | 25 | #ifndef _WIN32 |
|---|
| 26 | 26 | #include <unistd.h> |
|---|
| | 27 | #else |
|---|
| | 28 | #ifndef YY_ALWAYS_INTERACTIVE |
|---|
| | 29 | #ifndef YY_NEVER_INTERACTIVE |
|---|
| | 30 | extern int isatty YY_PROTO(( int )); |
|---|
| | 31 | #endif |
|---|
| | 32 | #endif |
|---|
| 27 | 33 | #endif |
|---|
| 28 | 34 | |
|---|
| … | … | |
| 3043 | 3049 | #define INITIAL 0 |
|---|
| 3044 | 3050 | /* 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. |
|---|
| 3046 | 3052 | * |
|---|
| 3047 | 3053 | * This program was generated with the FleXML XML processor generator, |
|---|
| … | … | |
| 3831 | 3837 | * ***************************************************************************** |
|---|
| 3832 | 3838 | * * 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 $ |
|---|
| 3834 | 3840 | * * |
|---|
| 3835 | 3841 | * * Authors: Olivier Teuli� <ipkiss@via.ecp.fr> |
|---|
| r8558137 |
r44c1d4c |
|
| 1 | 1 | /* XML application for skin.dtd (Id: skin.dtd,v 1.3 2003/03/19 17:14:50 karibu Exp). |
|---|
| 2 | 2 | * Includes actions from skin.act. |
|---|
| 3 | | * Generated 2003/03/20 10:30:38. |
|---|
| | 3 | * Generated 2003/04/08 20:19:55. |
|---|
| 4 | 4 | * |
|---|
| 5 | 5 | * This program was generated with the FleXML XML processor generator, |
|---|
| r8558137 |
r44c1d4c |
|
| 1 | 1 | /* 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. |
|---|
| 3 | 3 | * |
|---|
| 4 | 4 | * This program was generated with the FleXML XML processor generator, |
|---|
| r2387d9b |
r44c1d4c |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Olivier Teuli� <ipkiss@via.ecp.fr> |
|---|
| … | … | |
| 169 | 169 | return VLC_FULLSCREEN; |
|---|
| 170 | 170 | |
|---|
| | 171 | // Network events |
|---|
| | 172 | else if( Desc == "VLC_NET_ADDUDP" ) |
|---|
| | 173 | return VLC_NET_ADDUDP; |
|---|
| | 174 | |
|---|
| 171 | 175 | // Window event |
|---|
| 172 | 176 | else if( Desc == "WINDOW_MOVE" ) |
|---|
| … | … | |
| 275 | 279 | break; |
|---|
| 276 | 280 | |
|---|
| | 281 | case VLC_NET_ADDUDP: |
|---|
| | 282 | Param2 = atoi( para1 ); |
|---|
| | 283 | break; |
|---|
| | 284 | |
|---|
| 277 | 285 | case CTRL_ID_VISIBLE: |
|---|
| 278 | 286 | Param1 = (unsigned int)FindControl( para1 ); |
|---|
| r2387d9b |
r44c1d4c |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Olivier Teuli� <ipkiss@via.ecp.fr> |
|---|
| … | … | |
| 87 | 87 | #define VLC_PLAYLIST_ADD_FILE (VLC_MESSAGE + 301) |
|---|
| 88 | 88 | #define VLC_TEST_ALL_CLOSED (VLC_MESSAGE + 600) |
|---|
| | 89 | |
|---|
| | 90 | // Network events |
|---|
| | 91 | #define VLC_NET_ADDUDP (VLC_MESSAGE + 701) |
|---|
| 89 | 92 | |
|---|
| 90 | 93 | // Window event |
|---|
| r8558137 |
r44c1d4c |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Olivier Teuli� <ipkiss@via.ecp.fr> |
|---|
| … | … | |
| 155 | 155 | return true; |
|---|
| 156 | 156 | |
|---|
| | 157 | case VLC_NET_ADDUDP: |
|---|
| | 158 | AddNetworkUDP( (int)evt->GetParam2() ); |
|---|
| | 159 | return true; |
|---|
| | 160 | |
|---|
| 157 | 161 | default: |
|---|
| 158 | 162 | return true; |
|---|
| … | … | |
| 584 | 588 | } |
|---|
| 585 | 589 | //--------------------------------------------------------------------------- |
|---|
| | 590 | |
|---|
| | 591 | |
|---|
| | 592 | //--------------------------------------------------------------------------- |
|---|
| | 593 | // Network |
|---|
| | 594 | //--------------------------------------------------------------------------- |
|---|
| | 595 | void 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 | |
|---|
| ra64501f |
r44c1d4c |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Olivier Teuli� <ipkiss@via.ecp.fr> |
|---|
| … | … | |
| 53 | 53 | void FullScreen(); |
|---|
| 54 | 54 | void ChangeVolume( unsigned int msg, long param ); |
|---|
| | 55 | void AddNetworkUDP( int port ); |
|---|
| 55 | 56 | |
|---|
| 56 | 57 | void InterfaceRefresh( bool All = false ); |
|---|