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