Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
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
GSoC
GSoC2018
macOS
vlc
Commits
4c5ad8e3
Commit
4c5ad8e3
authored
Sep 25, 2006
by
Olivier Aubert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove CORBA module, which I is not used anymore (not even by me...)
parent
bdfdc200
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
1 addition
and
1144 deletions
+1
-1144
AUTHORS
AUTHORS
+1
-1
MAINTAINERS
MAINTAINERS
+0
-1
build-vlc
build-vlc
+0
-1
config.in
config.in
+0
-1
configure.ac
configure.ac
+0
-25
defconfig
defconfig
+0
-1
modules/LIST
modules/LIST
+0
-1
modules/control/corba/MediaControl.idl
modules/control/corba/MediaControl.idl
+0
-104
modules/control/corba/Modules.am
modules/control/corba/Modules.am
+0
-54
modules/control/corba/README
modules/control/corba/README
+0
-53
modules/control/corba/corba.c
modules/control/corba/corba.c
+0
-900
vlc.roku
vlc.roku
+0
-2
No files found.
AUTHORS
View file @
4c5ad8e3
...
...
@@ -35,7 +35,7 @@ S: Germany
N: Olivier Aubert
E: oaubert at lisi dot univ-lyon1 dot fr
D:
CORBA interfac
e
D:
Mediacontrol API, Python bindings, svg modul
e
S: France
N: Sigmund Augdal Helberg
...
...
MAINTAINERS
View file @
4c5ad8e3
...
...
@@ -43,7 +43,6 @@
- skins2 : [ipkiss] [asmax]
- macosx : [thedj] [bigben] [fkuehne]
- lirc, dummy, rc, ncurses : [sam]
- corba : [oaubert]
- familiar : [jpsaman]
- http : [meuuh]
...
...
build-vlc
View file @
4c5ad8e3
...
...
@@ -14,7 +14,6 @@ GOOM goom
SLP slp
LIRC lirc
JOYSTICK joystick
CORBA corba
LIVEDOTCOM livedotcom
DVDREAD dvdread
DVDNAV dvdnav
...
...
config.in
View file @
4c5ad8e3
...
...
@@ -38,7 +38,6 @@ if [ "$CONFIG_GOOM" = "y" ]; then
fi
bool 'GaLaktos visualization plugin' CONFIG_GALAKTOS
bool 'IR remote control support' CONFIG_LIRC
bool 'Corba interface support' CONFIG_CORBA
endmenu
mainmenu_option next_comment
...
...
configure.ac
View file @
4c5ad8e3
...
...
@@ -5095,30 +5095,6 @@ then
fi
dnl
dnl corba (ORBit) plugin
dnl
dnl Default: do not enable corba
enablecorba=false
AC_ARG_ENABLE(corba,
[ --enable-corba corba interface support (default disabled)])
if test "${enable_corba}" = "yes"; then
GLIB_VERSION=2.3.2
PKG_CHECK_MODULES(CORBA,
ORBit-2.0 >= 2.8.0 \
glib-2.0 >= $GLIB_VERSION \
gobject-2.0 >= $GLIB_VERSION \
gthread-2.0 >= $GLIB_VERSION,
[
enablecorba=true
VLC_ADD_LDFLAGS([corba],[$CORBA_LIBS])
VLC_ADD_CFLAGS([corba],[$CORBA_CFLAGS])
VLC_ADD_PLUGINS([corba snapshot]) ],
[ enablecorba=false
AC_MSG_WARN(corba library not found) ])
fi
AM_CONDITIONAL(ENABLE_CORBA, test "$enablecorba" = "true")
AC_ARG_WITH(,[Misc options:])
dnl
...
...
@@ -5655,7 +5631,6 @@ AC_CONFIG_FILES([
modules/codec/spudec/Makefile
modules/control/Makefile
modules/control/http/Makefile
modules/control/corba/Makefile
modules/demux/Makefile
modules/demux/asf/Makefile
modules/demux/avi/Makefile
...
...
defconfig
View file @
4c5ad8e3
...
...
@@ -23,7 +23,6 @@ CONFIG_VISUAL=y
# CONFIG_SLP is not set
# CONFIG_LIRC is not set
CONFIG_JOYSTICK=y
# CONFIG_CORBA is not set
#
# Input plugins
...
...
modules/LIST
View file @
4c5ad8e3
...
...
@@ -48,7 +48,6 @@ $Id$
* cinepak: Cinepack video decoder
* clone: Clone video filter
* cmml: Continuous Media Markup Language annotations/hyperlinks decoder
* corba: CORBA control module
* crop: Crop video filter
* cvdsub: CVD subtitles decoder
* daap: iTunes shares services discovery
...
...
modules/control/corba/MediaControl.idl
deleted
100644 → 0
View file @
bdfdc200
/*
Module
inspired
by
the
MediaControl
IDL
*/
module
VLC
{
const
float
VERSION
=
0.1
;
enum
PositionOrigin
{
AbsolutePosition
,
RelativePosition
,
ModuloPosition
}
;
enum
PositionKey
{
ByteCount
,
SampleCount
,
MediaTime
}
;
struct
Position
{
PositionOrigin
origin
;
PositionKey
key
;
long
long
value
;
}
;
exception
PositionKeyNotSupported
{
string
message
; };
exception
PositionOriginNotSupported
{
string
message
; };
exception
InvalidPosition
{
string
message
; };
exception
PlaylistException
{
string
message
; };
exception
InternalException
{
string
message
; };
typedef
sequence
<
string
>
PlaylistSeq
;
typedef
sequence
<
octet
>
ByteSeq
;
struct
RGBPicture
{
short
width
;
short
height
;
long
type
;
ByteSeq
data
;
long
long
date
;
}
;
typedef
sequence
<
RGBPicture
>
RGBPictureSeq
;
/*
Cf
stream_control
.
h
*/
enum
PlayerStatus
{
PlayingStatus
,
PauseStatus
,
ForwardStatus
,
BackwardStatus
,
InitStatus
,
EndStatus
,
UndefinedStatus
}
;
struct
StreamInformation
{
PlayerStatus
streamstatus
;
string
url
; /* The URL of the current media stream */
long
long
position
; /* actual location in the stream (in ms) */
long
long
length
; /* total length of the stream (in ms) */
}
;
//
MediaControl
interface
is
similar
to
//
ControlledStream
interface
in
MSS
.
//
It
can
be
inherited
by
flow
endpoints
or
//
FlowConnection
interfaces
.
interface
MediaControl
{
Position
get_media_position
(
in
PositionOrigin
an_origin
,
in
PositionKey
a_key
)
raises
(
InternalException
,
PositionKeyNotSupported
)
;
void
set_media_position
(
in
Position
a_position
)
raises
(
InternalException
,
PositionKeyNotSupported
,
InvalidPosition
)
;
void
start
(
in
Position
a_position
)
raises
(
InternalException
,
InvalidPosition
,
PlaylistException
)
;
void
pause
(
in
Position
a_position
)
raises
(
InternalException
,
InvalidPosition
)
;
void
resume
(
in
Position
a_position
)
raises
(
InternalException
,
InvalidPosition
)
;
void
stop
(
in
Position
a_position
)
raises
(
InternalException
,
InvalidPosition
)
;
oneway
void
exit
()
; // Exits the player (not in the original spec)
void
playlist_add_item
(
in
string
a_file
)
raises
(
PlaylistException
)
;
void
playlist_clear
()
raises
(
PlaylistException
)
;
//
Returns
the
list
of
files
in
playlist
PlaylistSeq
playlist_get_list
()
raises
(
PlaylistException
)
;
//
Returns
a
snapshot
of
the
currently
displayed
picture
RGBPicture
snapshot
(
in
Position
a_position
)
raises
(
InternalException
)
;
RGBPictureSeq
all_snapshots
()
raises
(
InternalException
)
;
//
Displays
the
message
string
,
between
"begin"
and
"end"
positions
void
display_text
(
in
string
message
,
in
Position
begin
,
in
Position
end
)
raises
(
InternalException
)
;
StreamInformation
get_stream_information
()
raises
(
InternalException
)
;
unsigned
short
sound_get_volume
()
raises
(
InternalException
)
;
void
sound_set_volume
(
in
unsigned
short
volume
)
raises
(
InternalException
)
;
}
;
}
;
modules/control/corba/Modules.am
deleted
100644 → 0
View file @
bdfdc200
## corba module declaration
SOURCES_corba = corba.c ../../../src/control/mediacontrol_plugin.c
nodist_SOURCES_corba = \
MediaControl-common.c \
MediaControl-skels.c \
MediaControl-stubs.c \
MediaControl.h \
$(NULL)
if ENABLE_CORBA
GENERATEDFILES = MediaControl-common.c MediaControl-skels.c MediaControl.h
endif
CORBAIDLFILE = MediaControl.idl
EXTRA_DIST += $(CORBAIDLFILE)
BUILT_SOURCES += $(GENERATEDFILES)
if ENABLE_CORBA
corbaidldir = $(datadir)/idl
corbaidl_DATA = $(CORBAIDLFILE)
## orbittypelibdir = $(libdir)/orbit-2.0
orbittypelibdir = $(libdir)/advene
orbittypelib_DATA = MediaControl.so
orbittypelib_CFLAGS=`$(VLC_CONFIG) --cflags plugin corba`
orbittypelib_LIBS=`$(VLC_CONFIG) --libs plugin corba`
ORBIT_IDL=`$(PKG_CONFIG) --variable=orbit_idl ORBit-2.0`
## MediaControl.so rules
MediaControl-imodule.o: MediaControl-imodule.c
$(CC) -fPIC -o $@ -c $< $(orbittypelib_CFLAGS)
MediaControl.so: MediaControl-imodule.o
$(CC) -shared -o $@ $< $(orbittypelib_LIBS)
## We have to invoke 2 times $(ORBIT_IDL), else the --imodule
## invocation builds MediaControl-common.c without some
## glue code that is needed.
$(GENERATEDFILES): $(CORBAIDLFILE)
$(ORBIT_IDL) --imodule $<
$(ORBIT_IDL) $<
clean:
$(RM) -f $(GENERATEDFILES)
endif
modules/control/corba/README
deleted
100644 → 0
View file @
bdfdc200
* Corba module (server) side
** Dependencies
To compile the CORBA plugin, you need the orbit2 developpement files
(for Debian, install the package liborbit2-dev)
** How to run it ?
You run the CORBA module with the following command line :
vlc --intf corba
The CORBA module is initialized and saves its IOR into the file
/tmp/vlc-ior.ref
(it will soon move to $HOME/.vlc-ior.ref)
** Code architecture
The binding between VLC and the MediaControl API (at C-level) is done
through the mediacontrol-core.c file. This file implements an
object-oriented layer API accessible in C.
The corba.c itself only translates calls from CORBA to this C API,
which makes the code clearer overall. Moreover, the same
mediacontrol-core.c file is used by the vlc-python module to implement the
same API.
* Client side
A sample client code can be found at http://liris.cnrs.fr/advene/
** Dependencies
The python client uses the pyorbit library developped by James
Henstridge <james@daa.com.au>
** Typelib information
To simply access the server, you do not need any reference to the IDL
(CORBA2.0 provides introspection facilities). However, if you want to
use the structures defined in the IDL (Position, Origin, ...), you
need to use the IDL information, and compile a dynamic lib
(MediaControl.so) from the IDL.
* Interesting pointers
- GLib reference manual
http://developer.gnome.org/doc/API/glib/
- IDL quickref :
http://www.cs.rpi.edu/~musser/dsc/idl/idl-overview.html
modules/control/corba/corba.c
deleted
100644 → 0
View file @
bdfdc200
/*****************************************************************************
* corba.c : CORBA (ORBit) remote control plugin for vlc
*****************************************************************************
* Copyright (C) 2001 the VideoLAN team
* $Id$
*
* Authors: Olivier Aubert <oaubert@lisi.univ-lyon1.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
/*****************************************************************************
* Preamble
*****************************************************************************/
/* For CORBA */
#include "MediaControl.h"
#include "orbit/poa/portableserver-poa-type.h"
#include <vlc/vlc.h>
#include <vlc/mediacontrol.h>
#include <vlc/intf.h>
#include <vlc/vout.h>
#include <vlc/aout.h>
#include <errno.h>
#include <unistd.h>
/* FIXME: replace this to ~/.vlc/vlc-ior.ref thanks to
config_GetHomeDir( ) */
#ifndef __WIN32__
#define VLC_IOR_FILE "/tmp/vlc-ior.ref"
#else
#define VLC_IOR_FILE "vlc-ior-ref"
#endif
#define MC_TRY exception = mediacontrol_exception_init( exception )
#define MC_EXCEPT( return_value ) \
if ( exception->code )\
{ \
corba_raise( ev, exception ); \
mediacontrol_exception_free( exception ); \
return return_value; \
} else { mediacontrol_exception_free( exception ); }
#define handle_exception( m ) if( ev->_major != CORBA_NO_EXCEPTION ) \
{ \
msg_Err( servant->p_intf, m ); \
return; \
}
#define handle_exception_no_servant( p,m ) if( ev->_major != CORBA_NO_EXCEPTION ) \
{ \
msg_Err( p, m ); \
return; \
}
static
void
corba_raise
(
CORBA_Environment
*
ev
,
mediacontrol_Exception
*
exception
)
{
char
*
corba_exception
=
NULL
;
char
*
i_type
=
NULL
;
switch
(
exception
->
code
)
{
case
mediacontrol_InternalException
:
corba_exception
=
(
char
*
)
VLC_InternalException__alloc
();
i_type
=
ex_VLC_InternalException
;
break
;
case
mediacontrol_PlaylistException
:
corba_exception
=
(
char
*
)
VLC_PlaylistException__alloc
();
i_type
=
ex_VLC_PlaylistException
;
break
;
case
mediacontrol_InvalidPosition
:
corba_exception
=
(
char
*
)
VLC_InvalidPosition__alloc
();
i_type
=
ex_VLC_InvalidPosition
;
break
;
case
mediacontrol_PositionKeyNotSupported
:
corba_exception
=
(
char
*
)
VLC_PositionKeyNotSupported__alloc
();
i_type
=
ex_VLC_PositionKeyNotSupported
;
break
;
case
mediacontrol_PositionOriginNotSupported
:
corba_exception
=
(
char
*
)
VLC_PositionOriginNotSupported__alloc
();
i_type
=
ex_VLC_PositionOriginNotSupported
;
break
;
}
(
(
VLC_InternalException
*
)
corba_exception
)
->
message
=
CORBA_string_dup
(
exception
->
message
);
CORBA_exception_set
(
ev
,
CORBA_USER_EXCEPTION
,
i_type
,
corba_exception
);
return
;
}
static
mediacontrol_Position
*
corba_position_corba_to_c
(
const
VLC_Position
*
position
)
{
mediacontrol_Position
*
retval
;
retval
=
(
mediacontrol_Position
*
)
malloc
(
sizeof
(
mediacontrol_Position
)
);
if
(
!
retval
)
return
NULL
;
retval
->
origin
=
position
->
origin
;
retval
->
key
=
position
->
key
;
retval
->
value
=
position
->
value
;
return
retval
;
}
static
VLC_Position
*
corba_position_c_to_corba
(
const
mediacontrol_Position
*
position
)
{
VLC_Position
*
retval
;
retval
=
(
VLC_Position
*
)
malloc
(
sizeof
(
VLC_Position
)
);
if
(
!
retval
)
return
NULL
;
retval
->
origin
=
position
->
origin
;
retval
->
key
=
position
->
key
;
retval
->
value
=
position
->
value
;
return
retval
;
}
/*****************************************************************************
* intf_sys_t: description and status of corba interface
*****************************************************************************/
struct
intf_sys_t
{
CORBA_ORB
orb
;
GMainLoop
*
corbaloop
;
mediacontrol_Instance
*
mc
;
msg_subscription_t
*
p_sub
;
/* message bank subscription */
};
/*** App-specific servant structures ***/
/* We can add attributes to this structure, which is both a pointer on a
specific structure, and on a POA_VLC_MediaControl ( servant ). Cf
http://developer.gnome.org/doc/guides/corba/html/corba-poa-example.html */
typedef
struct
{
POA_VLC_MediaControl
servant
;
PortableServer_POA
poa
;
/* Ajouter ici les attributs utiles */
mediacontrol_Instance
*
mc
;
intf_thread_t
*
p_intf
;
}
impl_POA_VLC_MediaControl
;
/* Beginning of the CORBA code generated in Mediacontrol-skelimpl.c */
/* BEGIN INSERT */
/*** Implementation stub prototypes ***/
static
void
impl_VLC_MediaControl__destroy
(
impl_POA_VLC_MediaControl
*
servant
,
CORBA_Environment
*
ev
);
static
VLC_Position
impl_VLC_MediaControl_get_media_position
(
impl_POA_VLC_MediaControl
*
servant
,
const
VLC_PositionOrigin
an_origin
,
const
VLC_PositionKey
a_key
,
CORBA_Environment
*
ev
);
static
void
impl_VLC_MediaControl_set_media_position
(
impl_POA_VLC_MediaControl
*
servant
,
const
VLC_Position
*
a_position
,
CORBA_Environment
*
ev
);
static
void
impl_VLC_MediaControl_start
(
impl_POA_VLC_MediaControl
*
servant
,
const
VLC_Position
*
a_position
,
CORBA_Environment
*
ev
);
static
void
impl_VLC_MediaControl_pause
(
impl_POA_VLC_MediaControl
*
servant
,
const
VLC_Position
*
a_position
,
CORBA_Environment
*
ev
);
static
void
impl_VLC_MediaControl_resume
(
impl_POA_VLC_MediaControl
*
servant
,
const
VLC_Position
*
a_position
,
CORBA_Environment
*
ev
);
static
void
impl_VLC_MediaControl_stop
(
impl_POA_VLC_MediaControl
*
servant
,
const
VLC_Position
*
a_position
,
CORBA_Environment
*
ev
);
static
void
impl_VLC_MediaControl_exit
(
impl_POA_VLC_MediaControl
*
servant
,
CORBA_Environment
*
ev
);
static
void
impl_VLC_MediaControl_playlist_add_item
(
impl_POA_VLC_MediaControl
*
servant
,
const
CORBA_char
*
a_file
,
CORBA_Environment
*
ev
);
static
void
impl_VLC_MediaControl_playlist_clear
(
impl_POA_VLC_MediaControl
*
servant
,
CORBA_Environment
*
ev
);
static
VLC_PlaylistSeq
*
impl_VLC_MediaControl_playlist_get_list
(
impl_POA_VLC_MediaControl
*
servant
,
CORBA_Environment
*
ev
);
static
VLC_RGBPicture
*
impl_VLC_MediaControl_snapshot
(
impl_POA_VLC_MediaControl
*
servant
,
const
VLC_Position
*
a_position
,
CORBA_Environment
*
ev
);
static
VLC_RGBPictureSeq
*
impl_VLC_MediaControl_all_snapshots
(
impl_POA_VLC_MediaControl
*
servant
,
CORBA_Environment
*
ev
);
static
void
impl_VLC_MediaControl_display_text
(
impl_POA_VLC_MediaControl
*
servant
,
const
CORBA_char
*
message
,
const
VLC_Position
*
begin
,
const
VLC_Position
*
end
,
CORBA_Environment
*
ev
);
static
VLC_StreamInformation
*
impl_VLC_MediaControl_get_stream_information
(
impl_POA_VLC_MediaControl
*
servant
,
CORBA_Environment
*
ev
);
static
CORBA_unsigned_short
impl_VLC_MediaControl_sound_get_volume
(
impl_POA_VLC_MediaControl
*
servant
,
CORBA_Environment
*
ev
);
static
void
impl_VLC_MediaControl_sound_set_volume
(
impl_POA_VLC_MediaControl
*
servant
,
const
CORBA_unsigned_short
volume
,
CORBA_Environment
*
ev
);
/*** epv structures ***/
static
PortableServer_ServantBase__epv
impl_VLC_MediaControl_base_epv
=
{
NULL
,
/* _private data */
(
gpointer
)
&
impl_VLC_MediaControl__destroy
,
/* finalize routine */
NULL
,
/* default_POA routine */
};
static
POA_VLC_MediaControl__epv
impl_VLC_MediaControl_epv
=
{
NULL
,
/* _private */
(
gpointer
)
&
impl_VLC_MediaControl_get_media_position
,
(
gpointer
)
&
impl_VLC_MediaControl_set_media_position
,
(
gpointer
)
&
impl_VLC_MediaControl_start
,
(
gpointer
)
&
impl_VLC_MediaControl_pause
,
(
gpointer
)
&
impl_VLC_MediaControl_resume
,
(
gpointer
)
&
impl_VLC_MediaControl_stop
,
(
gpointer
)
&
impl_VLC_MediaControl_exit
,
(
gpointer
)
&
impl_VLC_MediaControl_playlist_add_item
,
(
gpointer
)
&
impl_VLC_MediaControl_playlist_clear
,
(
gpointer
)
&
impl_VLC_MediaControl_playlist_get_list
,
(
gpointer
)
&
impl_VLC_MediaControl_snapshot
,
(
gpointer
)
&
impl_VLC_MediaControl_all_snapshots
,
(
gpointer
)
&
impl_VLC_MediaControl_display_text
,
(
gpointer
)
&
impl_VLC_MediaControl_get_stream_information
,
(
gpointer
)
&
impl_VLC_MediaControl_sound_get_volume
,
(
gpointer
)
&
impl_VLC_MediaControl_sound_set_volume
,
};
/*** vepv structures ***/
static
POA_VLC_MediaControl__vepv
impl_VLC_MediaControl_vepv
=
{
&
impl_VLC_MediaControl_base_epv
,
&
impl_VLC_MediaControl_epv
,
};
/*** Stub implementations ***/
static
VLC_MediaControl
impl_VLC_MediaControl__create
(
PortableServer_POA
poa
,
CORBA_Environment
*
ev
)
{
VLC_MediaControl
retval
;
impl_POA_VLC_MediaControl
*
newservant
;
PortableServer_ObjectId
*
objid
;
newservant
=
g_new0
(
impl_POA_VLC_MediaControl
,
1
);
newservant
->
servant
.
vepv
=
&
impl_VLC_MediaControl_vepv
;
newservant
->
poa
=
(
PortableServer_POA
)
CORBA_Object_duplicate
(
(
CORBA_Object
)
poa
,
ev
);
POA_VLC_MediaControl__init
(
(
PortableServer_Servant
)
newservant
,
ev
);
/* Before servant is going to be activated all
* private attributes must be initialized. */
/* ------ init private attributes here ------ */
newservant
->
mc
=
NULL
;
/* ------ ---------- end ------------- ------ */
objid
=
PortableServer_POA_activate_object
(
poa
,
newservant
,
ev
);
CORBA_free
(
objid
);
retval
=
PortableServer_POA_servant_to_reference
(
poa
,
newservant
,
ev
);
return
retval
;
}
static
void
impl_VLC_MediaControl__destroy
(
impl_POA_VLC_MediaControl
*
servant
,
CORBA_Environment
*
ev
)
{
CORBA_Object_release
(
(
CORBA_Object
)
servant
->
poa
,
ev
);
/* No further remote method calls are delegated to
* servant and you may free your private attributes. */
/* ------ free private attributes here ------ */
/* ------ ---------- end ------------- ------ */
POA_VLC_MediaControl__fini
(
(
PortableServer_Servant
)
servant
,
ev
);
}
/* END INSERT */
/* Beginning of the CORBA functions that we define */
/* Returns the current position in the stream. The returned value can
be relative or absolute ( according to PositionOrigin ) and the unit
is set by PositionKey */
static
VLC_Position
impl_VLC_MediaControl_get_media_position
(
impl_POA_VLC_MediaControl
*
servant
,
const
VLC_PositionOrigin
an_origin
,
const
VLC_PositionKey
a_key
,
CORBA_Environment
*
ev
)
{
VLC_Position
*
retval
=
NULL
;
mediacontrol_Position
*
p_pos
;