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

Don't expose 3.0 types when using 2.2

parent c7515b98
......@@ -492,6 +492,7 @@ public:
libvlc_dialog_set_callbacks(*this, nullptr, nullptr);
}
#if LIBVLC_VERSION_INT >= LIBVLC_VERSION(3, 0, 0, 0)
/**
* Get media discoverer services by category
*
......@@ -518,6 +519,7 @@ public:
res.emplace_back( pp_descs[i]->psz_name, pp_descs[i]->psz_longname, pp_descs[i]->i_cat );
return res;
}
#endif
#endif
};
......
......@@ -39,6 +39,7 @@ class MediaList;
class MediaDiscoverer : public Internal<libvlc_media_discoverer_t>
{
public:
#if LIBVLC_VERSION_INT >= LIBVLC_VERSION(3, 0, 0, 0)
enum class Category
{
Devices = libvlc_media_discoverer_devices,
......@@ -77,7 +78,7 @@ public:
std::string m_longName;
Category m_category;
};
#endif
/**
* Discover media service by name.
*
......
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