Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
44c1d4ca
Commit
44c1d4ca
authored
Apr 11, 2003
by
VideoLAN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* New message: VLC_NET_ADDUDP, to add an UDP stream to the playlist. Still
experimental
parent
9b4e33b4
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
57 additions
and
9 deletions
+57
-9
modules/gui/skins/parser/flex.c
modules/gui/skins/parser/flex.c
+9
-3
modules/gui/skins/parser/skin.c
modules/gui/skins/parser/skin.c
+1
-1
modules/gui/skins/parser/skin.h
modules/gui/skins/parser/skin.h
+1
-1
modules/gui/skins/src/event.cpp
modules/gui/skins/src/event.cpp
+9
-1
modules/gui/skins/src/event.h
modules/gui/skins/src/event.h
+4
-1
modules/gui/skins/src/vlcproc.cpp
modules/gui/skins/src/vlcproc.cpp
+31
-1
modules/gui/skins/src/vlcproc.h
modules/gui/skins/src/vlcproc.h
+2
-1
No files found.
modules/gui/skins/parser/flex.c
View file @
44c1d4ca
/* A lexical scanner generated by flex */
/* Scanner skeleton version:
* $Header: /root/vlc-cvs/modules/gui/skins/parser/flex.c,v 1.
4 2003/03/20 09:29:07 karibu
Exp $
* $Header: /root/vlc-cvs/modules/gui/skins/parser/flex.c,v 1.
5 2003/04/11 22:08:06 videolan
Exp $
*/
#define FLEX_SCANNER
...
...
@@ -24,6 +24,12 @@
#include <stdlib.h>
#ifndef _WIN32
#include <unistd.h>
#else
#ifndef YY_ALWAYS_INTERACTIVE
#ifndef YY_NEVER_INTERACTIVE
extern
int
isatty
YY_PROTO
((
int
));
#endif
#endif
#endif
/* Use prototypes in function declarations. */
...
...
@@ -3042,7 +3048,7 @@ static char *yy_last_accepting_cpos;
char
*
yytext
;
#define INITIAL 0
/* Validating XML processor for skin.dtd (Id: skin.dtd,v 1.3 2003/03/19 17:14:50 karibu Exp).
* Generated 2003/0
3/20 10:30:38
.
* Generated 2003/0
4/08 20:19:55
.
*
* This program was generated with the FleXML XML processor generator,
* (Id: flexml.pl,v 1.24 1999/12/13 16:18:30 krisrose Exp).
...
...
@@ -3830,7 +3836,7 @@ FAIL("EOF in prolog.");
* * skin.dtd: DTD for the VLC skins
* *****************************************************************************
* * Copyright (C) 2003 VideoLAN
* * $Id: flex.c,v 1.
4 2003/03/20 09:29:07 karibu
Exp $
* * $Id: flex.c,v 1.
5 2003/04/11 22:08:06 videolan
Exp $
* *
* * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* * Emmanuel Puig <karibu@via.ecp.fr>
...
...
modules/gui/skins/parser/skin.c
View file @
44c1d4ca
/* XML application for skin.dtd (Id: skin.dtd,v 1.3 2003/03/19 17:14:50 karibu Exp).
* Includes actions from skin.act.
* Generated 2003/0
3/20 10:30:38
.
* Generated 2003/0
4/08 20:19:55
.
*
* This program was generated with the FleXML XML processor generator,
* (Id: flexml.pl,v 1.24 1999/12/13 16:18:30 krisrose Exp).
...
...
modules/gui/skins/parser/skin.h
View file @
44c1d4ca
/* XML processor/application API for skin.dtd (Id: skin.dtd,v 1.3 2003/03/19 17:14:50 karibu Exp).
* Generated 2003/0
3/20 10:30:38
.
* Generated 2003/0
4/08 20:19:55
.
*
* This program was generated with the FleXML XML processor generator,
* (Id: flexml.pl,v 1.24 1999/12/13 16:18:30 krisrose Exp).
...
...
modules/gui/skins/src/event.cpp
View file @
44c1d4ca
...
...
@@ -2,7 +2,7 @@
* event.cpp: Event class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: event.cpp,v 1.
4 2003/04/08 02:06:13 gbazi
n Exp $
* $Id: event.cpp,v 1.
5 2003/04/11 22:08:06 videola
n Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -168,6 +168,10 @@ unsigned int Event::GetMessageType( string Desc )
else
if
(
Desc
==
"VLC_FULLSCREEN"
)
return
VLC_FULLSCREEN
;
// Network events
else
if
(
Desc
==
"VLC_NET_ADDUDP"
)
return
VLC_NET_ADDUDP
;
// Window event
else
if
(
Desc
==
"WINDOW_MOVE"
)
return
WINDOW_MOVE
;
...
...
@@ -274,6 +278,10 @@ void Event::CreateEvent()
Param2
=
GetBool
(
para1
);
break
;
case
VLC_NET_ADDUDP
:
Param2
=
atoi
(
para1
);
break
;
case
CTRL_ID_VISIBLE
:
Param1
=
(
unsigned
int
)
FindControl
(
para1
);
Param2
=
GetBool
(
para2
);
...
...
modules/gui/skins/src/event.h
View file @
44c1d4ca
...
...
@@ -2,7 +2,7 @@
* event.h: Event class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: event.h,v 1.
3 2003/04/08 02:06:13 gbazi
n Exp $
* $Id: event.h,v 1.
4 2003/04/11 22:08:06 videola
n Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -87,6 +87,9 @@ using namespace std;
#define VLC_PLAYLIST_ADD_FILE (VLC_MESSAGE + 301)
#define VLC_TEST_ALL_CLOSED (VLC_MESSAGE + 600)
// Network events
#define VLC_NET_ADDUDP (VLC_MESSAGE + 701)
// Window event
#define WINDOW_MOVE (VLC_WINDOW + 1)
#define WINDOW_OPEN (VLC_WINDOW + 2)
...
...
modules/gui/skins/src/vlcproc.cpp
View file @
44c1d4ca
...
...
@@ -2,7 +2,7 @@
* vlcproc.cpp: VlcProc class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: vlcproc.cpp,v 1.
3 2003/03/20 09:29:07 karibu
Exp $
* $Id: vlcproc.cpp,v 1.
4 2003/04/11 22:08:06 videolan
Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -154,6 +154,10 @@ bool VlcProc::EventProc( Event *evt )
p_intf
->
p_sys
->
p_theme
->
ChangeTaskbar
();
return
true
;
case
VLC_NET_ADDUDP
:
AddNetworkUDP
(
(
int
)
evt
->
GetParam2
()
);
return
true
;
default:
return
true
;
}
...
...
@@ -583,3 +587,29 @@ void VlcProc::ChangeVolume( unsigned int msg, long param )
(
int
)(
volume
*
SLIDER_RANGE
/
AOUT_VOLUME_MAX
)
);
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// Network
//---------------------------------------------------------------------------
void
VlcProc
::
AddNetworkUDP
(
int
port
)
{
config_PutInt
(
p_intf
,
"network-channel"
,
FALSE
);
// Build source name
char
*
s_port
=
new
char
[
5
];
sprintf
(
s_port
,
"%i"
,
port
);
string
source
=
"udp:@:"
+
(
string
)
s_port
;
delete
[]
s_port
;
playlist_Add
(
p_intf
->
p_sys
->
p_playlist
,
(
char
*
)
source
.
c_str
(),
PLAYLIST_APPEND
,
PLAYLIST_END
);
// Refresh interface !
p_intf
->
p_sys
->
p_theme
->
EvtBank
->
Get
(
"playlist_refresh"
)
->
PostSynchroMessage
();
InterfaceRefresh
();
}
//---------------------------------------------------------------------------
modules/gui/skins/src/vlcproc.h
View file @
44c1d4ca
...
...
@@ -2,7 +2,7 @@
* vlcproc.h: VlcProc class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: vlcproc.h,v 1.
1 2003/03/18 02:21:47 ipkiss
Exp $
* $Id: vlcproc.h,v 1.
2 2003/04/11 22:08:07 videolan
Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -52,6 +52,7 @@ class VlcProc
void
MoveStream
(
long
Pos
);
void
FullScreen
();
void
ChangeVolume
(
unsigned
int
msg
,
long
param
);
void
AddNetworkUDP
(
int
port
);
void
InterfaceRefresh
(
bool
All
=
false
);
void
EnabledEvent
(
string
type
,
bool
state
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment