X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fversion.c;h=4a73c3fb5913d9186627e1f8cc55691aa0d2ae15;hb=5ebd61f421602d9df5ab47d0044c0d0f32b0156a;hp=3bac4340ae34c307d12c61de1b5fecb100bf5c6a;hpb=d666030b2349e8a710fcba4d2cabb912cc700580;p=vlc diff --git a/src/version.c b/src/version.c index 3bac4340ae..4a73c3fb59 100644 --- a/src/version.c +++ b/src/version.c @@ -1,7 +1,7 @@ /***************************************************************************** * version.c: LibVLC version infos ***************************************************************************** - * Copyright (C) 1998-2008 the VideoLAN team + * Copyright (C) 1998-2008 VLC authors and VideoLAN * * Authors: Vincent Seguin * Samuel Hocevar @@ -9,19 +9,19 @@ * Derk-Jan Hartman * Rémi Denis-Courmont * - * 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 + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2.1 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. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser 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. + * You should have received a copy of the GNU Lesser 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 @@ -31,32 +31,15 @@ #include /***************************************************************************** - * 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_CompileBy, VLC_CompileHost * VLC_Compiler, VLC_Changeset *****************************************************************************/ #define DECLARE_VLC_VERSION( func, var ) \ -char const * VLC_##func ( void ) \ +const char * 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; -} +DECLARE_VLC_VERSION( CompileBy, COMPILE_BY ) +DECLARE_VLC_VERSION( CompileHost, COMPILE_HOST ) +DECLARE_VLC_VERSION( Compiler, COMPILER )