*/
VLC_PUBLIC_API void libvlc_retain( libvlc_instance_t * );
+/**
+ * Retrieve libvlc version.
+ *
+ * Example: "0.9.0-git Grishenko"
+ *
+ * \return a string containing the libvlc version
+ */
+VLC_PUBLIC_API const char * libvlc_get_version();
+
+/**
+ * Retrieve libvlc compiler version.
+ *
+ * Example: "gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu6)"
+ *
+ * \return a string containing the libvlc compiler version
+ */
+VLC_PUBLIC_API const char * libvlc_get_compiler();
+
+/**
+ * Retrieve libvlc changeset.
+ *
+ * Example: "aa9bce0bc4"
+ *
+ * \return a string containing the libvlc changeset
+ */
+VLC_PUBLIC_API const char * libvlc_get_changeset();
+
/** @}*/
/*****************************************************************************
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
+
#include "libvlc_internal.h"
#include <vlc/libvlc.h>
{
return p_instance->p_libvlc_int->i_object_id;
}
+
+const char * libvlc_get_version()
+{
+ return VLC_Version();
+}
+
+const char * libvlc_get_compiler()
+{
+ return VLC_Compiler();
+}
+
+const char * libvlc_get_changeset()
+{
+ return VLC_Changeset();
+}