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
a20c35e9
Commit
a20c35e9
authored
May 31, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move non-deprecated version functions out of the deprecated file
parent
a308763e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
63 additions
and
31 deletions
+63
-31
src/Makefile.am
src/Makefile.am
+1
-0
src/libvlc.c
src/libvlc.c
+0
-31
src/version.c
src/version.c
+62
-0
No files found.
src/Makefile.am
View file @
a20c35e9
...
@@ -267,6 +267,7 @@ SOURCES_libvlc_common = \
...
@@ -267,6 +267,7 @@ SOURCES_libvlc_common = \
libvlc-common.c
\
libvlc-common.c
\
libvlc.h
\
libvlc.h
\
libvlc-module.c
\
libvlc-module.c
\
version.c
\
interface/interface.h
\
interface/interface.h
\
interface/interface.c
\
interface/interface.c
\
interface/intf_eject.c
\
interface/intf_eject.c
\
...
...
src/libvlc.c
View file @
a20c35e9
...
@@ -49,37 +49,6 @@
...
@@ -49,37 +49,6 @@
#include <vlc_aout.h>
#include <vlc_aout.h>
#include <vlc_vout.h>
#include <vlc_vout.h>
/*****************************************************************************
* VLC_Version: return the libvlc version.
*****************************************************************************
* This function returns full version string (numeric version and codename).
*****************************************************************************/
char
const
*
VLC_Version
(
void
)
{
return
VERSION_MESSAGE
;
}
/*****************************************************************************
* VLC_CompileBy, VLC_CompileHost, VLC_CompileDomain,
* VLC_Compiler, VLC_Changeset
*****************************************************************************/
#define DECLARE_VLC_VERSION( func, var ) \
char const * VLC_##func ( void ) \
{ \
return VLC_##var ; \
}
DECLARE_VLC_VERSION
(
CompileBy
,
COMPILE_BY
);
DECLARE_VLC_VERSION
(
CompileHost
,
COMPILE_HOST
);
DECLARE_VLC_VERSION
(
CompileDomain
,
COMPILE_DOMAIN
);
DECLARE_VLC_VERSION
(
Compiler
,
COMPILER
);
extern
const
char
psz_vlc_changeset
[];
const
char
*
VLC_Changeset
(
void
)
{
return
psz_vlc_changeset
;
}
#define LIBVLC_FUNC \
#define LIBVLC_FUNC \
libvlc_int_t * p_libvlc = vlc_current_object( i_object ); \
libvlc_int_t * p_libvlc = vlc_current_object( i_object ); \
if( !p_libvlc ) return VLC_ENOOBJ;
if( !p_libvlc ) return VLC_ENOOBJ;
...
...
src/version.c
0 → 100644
View file @
a20c35e9
/*****************************************************************************
* version.c: LibVLC version infos
*****************************************************************************
* Copyright (C) 1998-2008 the VideoLAN team
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
* Gildas Bazin <gbazin@videolan.org>
* Derk-Jan Hartman <hartman at videolan dot org>
* Rémi Denis-Courmont <rem # videolan : org>
*
* 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.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <vlc/vlc.h>
/*****************************************************************************
* VLC_Version: return the libvlc version.
*****************************************************************************
* This function returns full version string (numeric version and codename).
*****************************************************************************/
char
const
*
VLC_Version
(
void
)
{
return
VERSION_MESSAGE
;
}
/*****************************************************************************
* VLC_CompileBy, VLC_CompileHost, VLC_CompileDomain,
* VLC_Compiler, VLC_Changeset
*****************************************************************************/
#define DECLARE_VLC_VERSION( func, var ) \
char const * VLC_##func ( void ) \
{ \
return VLC_##var ; \
}
DECLARE_VLC_VERSION
(
CompileBy
,
COMPILE_BY
);
DECLARE_VLC_VERSION
(
CompileHost
,
COMPILE_HOST
);
DECLARE_VLC_VERSION
(
CompileDomain
,
COMPILE_DOMAIN
);
DECLARE_VLC_VERSION
(
Compiler
,
COMPILER
);
extern
const
char
psz_vlc_changeset
[];
const
char
*
VLC_Changeset
(
void
)
{
return
psz_vlc_changeset
;
}
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