Changeset 6db16f08c744e65a458764c114feef1926cb0f11

Show
Ignore:
Timestamp:
30/03/08 17:32:20 (8 months ago)
Author:
Pierre d'Herbemont <pdherbemont@videolan.org>
git-committer:
Pierre d'Herbemont <pdherbemont@videolan.org> 1206891140 +0200
git-parent:

[ef81e665be4bf3a169443a8af0cce89af39ce4de]

git-author:
Tanguy Krotoff <tkrotoff@gmail.com> 1206889070 +0200
Message:

libvlc: add functions libvlc_get_version() and others

Signed-off-by: Pierre d'Herbemont <pdherbemont@videolan.org>

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • include/vlc/libvlc.h

    rbf1292e r6db16f0  
    145145 */ 
    146146VLC_PUBLIC_API void libvlc_retain( libvlc_instance_t * ); 
     147 
     148/** 
     149 * Retrieve libvlc version. 
     150 * 
     151 * Example: "0.9.0-git Grishenko" 
     152 * 
     153 * \return a string containing the libvlc version 
     154 */ 
     155VLC_PUBLIC_API const char * libvlc_get_version(); 
     156 
     157/** 
     158 * Retrieve libvlc compiler version. 
     159 * 
     160 * Example: "gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu6)" 
     161 * 
     162 * \return a string containing the libvlc compiler version 
     163 */ 
     164VLC_PUBLIC_API const char * libvlc_get_compiler(); 
     165 
     166/** 
     167 * Retrieve libvlc changeset. 
     168 * 
     169 * Example: "aa9bce0bc4" 
     170 * 
     171 * \return a string containing the libvlc changeset 
     172 */ 
     173VLC_PUBLIC_API const char * libvlc_get_changeset(); 
    147174 
    148175/** @}*/ 
  • src/control/core.c

    r99a25fe r6db16f0  
    2121 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. 
    2222 *****************************************************************************/ 
     23 
    2324#include "libvlc_internal.h" 
    2425#include <vlc/libvlc.h> 
     
    174175    return p_instance->p_libvlc_int->i_object_id; 
    175176} 
     177 
     178const char * libvlc_get_version() 
     179{ 
     180    return VLC_Version(); 
     181} 
     182 
     183const char * libvlc_get_compiler() 
     184{ 
     185    return VLC_Compiler(); 
     186} 
     187 
     188const char * libvlc_get_changeset() 
     189{ 
     190    return VLC_Changeset(); 
     191}