Commit 4518e7e6 authored by Guillaume Roguez's avatar Guillaume Roguez Committed by Alexandre Lision

api: fix no-video build

Refs #65931

Change-Id: Ibb5f113cec88a8add533cd241f5863dcdd27d2cd
parent d823984d
......@@ -121,13 +121,17 @@ int DBusClient::initLibrary(int sflphFlags)
using DRing::CallSignal;
using DRing::ConfigurationSignal;
using DRing::PresenceSignal;
using DRing::VideoSignal;
using SharedCallback = std::shared_ptr<DRing::CallbackWrapperBase>;
auto callM = callManager_.get();
auto confM = configurationManager_.get();
auto presM = presenceManager_.get();
#ifdef RING_VIDEO
using DRing::VideoSignal;
auto videoM = videoManager_.get();
#endif
const std::map<DRing::EventHandlerKey, std::map<std::string, SharedCallback>> evHandlers = {
{ // Call event handlers
......
......@@ -77,10 +77,12 @@ getSignalHandlers()
exported_callback<DRing::PresenceSignal::NewBuddyNotification>(),
exported_callback<DRing::PresenceSignal::SubscriptionStateChanged>(),
#ifdef RING_VIDEO
/* Video */
exported_callback<DRing::VideoSignal::DeviceEvent>(),
exported_callback<DRing::VideoSignal::DecodingStarted>(),
exported_callback<DRing::VideoSignal::DecodingStopped>(),
#endif
};
return handlers;
......
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