Commit b545fe45 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Do not bind deprecated functions

parent 50e8d349
......@@ -77,11 +77,6 @@ void Instance::setExitHandler(void(*cb)(void *), void * opaque)
libvlc_set_exit_handler(m_obj, cb, opaque);
}
void Instance::wait()
{
libvlc_wait(m_obj);
}
void Instance::setUserAgent(const std::string& name, const std::string& http)
{
libvlc_set_user_agent(m_obj, name.c_str(), http.c_str());
......@@ -107,25 +102,6 @@ void Instance::logSetFile(FILE * stream)
libvlc_log_set_file(m_obj, stream);
}
unsigned Instance::logVerbosity()
{
unsigned c_result = libvlc_get_log_verbosity(m_obj);
unsigned result = c_result;
return result;
}
void Instance::setLogVerbosity(unsigned level)
{
libvlc_set_log_verbosity(m_obj, level);
}
libvlc_log_t * Instance::logOpen()
{
libvlc_log_t * c_result = libvlc_log_open(m_obj);
libvlc_log_t * result = c_result;
return result;
}
std::list<ModuleDescription> Instance::audioFilterList()
{
libvlc_module_description_t * c_result = libvlc_audio_filter_list_get(m_obj);
......
......@@ -112,15 +112,6 @@ public:
*/
void setExitHandler(void(*cb)(void *), void * opaque);
/**
* Waits until an interface causes the instance to exit. You should start
* at least one interface first, using Instance::addIntf() .
*
* \warning This function wastes one thread doing basically nothing.
* Instance::setExitHandler() should be used instead.
*/
void wait();
/**
* Sets the application name. LibVLC passes this as the user agent string
* when a protocol requires it.
......@@ -189,30 +180,6 @@ public:
*/
void logSetFile(FILE * stream);
/**
* Always returns minus one. This function is only provided for backward
* compatibility.
*
* \return always -1
*/
unsigned logVerbosity();
/**
* This function does nothing. It is only provided for backward
* compatibility.
*
* \param level ignored
*/
void setLogVerbosity(unsigned level);
/**
* This function does nothing useful. It is only provided for backward
* compatibility.
*
* \return an unique pointer or NULL on error
*/
libvlc_log_t * logOpen();
/**
* Returns a list of audio filters that are available.
*
......
......@@ -96,19 +96,6 @@ Media::~Media()
release();
}
std::vector<MediaTrackInfo> Media::tracksInfo() {
libvlc_media_track_info_t* infos;
int num = libvlc_media_get_tracks_info(m_obj, &infos);
std::vector<MediaTrackInfo> result;
result.reserve(num);
for (int i = 0; i < num; ++i) {
result.push_back(MediaTrackInfo(infos+i));
}
libvlc_free(infos);
return result;
}
void Media::addOption(const std::string& psz_options)
{
libvlc_media_add_option(m_obj, psz_options.c_str());
......
......@@ -129,11 +129,6 @@ public:
~Media();
/**
* Foo bar
*/
std::vector<MediaTrackInfo> tracksInfo();
/**
* Add an option to the media.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment