blob: 96d046be38fcd347546418e93ff730bb7d0a05a6 [file] [log] [blame]
/*
* Copyright (C) 2015 Savoir-Faire Linux Inc.
* Author: Guillaume Roguez <Guillaume.Roguez@savoirfairelinux.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Additional permission under GNU GPL version 3 section 7:
*
* If you modify this program, or any covered work, by linking or
* combining it with the OpenSSL project's OpenSSL library (or a
* modified version of that library), containing parts covered by the
* terms of the OpenSSL or SSLeay licenses, Savoir-Faire Linux Inc.
* grants you additional permission to convey the resulting work.
* Corresponding Source for a non-source form of such a combination
* shall include the source code for the parts of OpenSSL used as well
* as that of the covered work.
*/
#include "ring_signal.h"
namespace ring {
SignalHandlerMap&
getSignalHandlers()
{
static SignalHandlerMap handlers = {
/* Call */
exported_callback<DRing::CallSignal::StateChange>(),
exported_callback<DRing::CallSignal::TransferFailed>(),
exported_callback<DRing::CallSignal::TransferSucceeded>(),
exported_callback<DRing::CallSignal::RecordPlaybackStopped>(),
exported_callback<DRing::CallSignal::VoiceMailNotify>(),
exported_callback<DRing::CallSignal::IncomingMessage>(),
exported_callback<DRing::CallSignal::IncomingCall>(),
exported_callback<DRing::CallSignal::RecordPlaybackFilepath>(),
exported_callback<DRing::CallSignal::ConferenceCreated>(),
exported_callback<DRing::CallSignal::ConferenceChanged>(),
exported_callback<DRing::CallSignal::UpdatePlaybackScale>(),
exported_callback<DRing::CallSignal::ConferenceRemoved>(),
exported_callback<DRing::CallSignal::NewCallCreated>(),
exported_callback<DRing::CallSignal::SipCallStateChanged>(),
exported_callback<DRing::CallSignal::RecordingStateChanged>(),
exported_callback<DRing::CallSignal::SecureSdesOn>(),
exported_callback<DRing::CallSignal::SecureSdesOff>(),
exported_callback<DRing::CallSignal::SecureZrtpOn>(),
exported_callback<DRing::CallSignal::SecureZrtpOff>(),
exported_callback<DRing::CallSignal::ShowSAS>(),
exported_callback<DRing::CallSignal::ZrtpNotSuppOther>(),
exported_callback<DRing::CallSignal::ZrtpNegotiationFailed>(),
exported_callback<DRing::CallSignal::RtcpReportReceived>(),
exported_callback<DRing::CallSignal::PeerHold>(),
exported_callback<DRing::CallSignal::VideoMuted>(),
exported_callback<DRing::CallSignal::AudioMuted>(),
/* Configuration */
exported_callback<DRing::ConfigurationSignal::VolumeChanged>(),
exported_callback<DRing::ConfigurationSignal::AccountsChanged>(),
exported_callback<DRing::ConfigurationSignal::StunStatusFailed>(),
exported_callback<DRing::ConfigurationSignal::RegistrationStateChanged>(),
exported_callback<DRing::ConfigurationSignal::VolatileDetailsChanged>(),
exported_callback<DRing::ConfigurationSignal::CertificatePinned>(),
exported_callback<DRing::ConfigurationSignal::CertificatePathPinned>(),
exported_callback<DRing::ConfigurationSignal::CertificateExpired>(),
exported_callback<DRing::ConfigurationSignal::CertificateStateChanged>(),
exported_callback<DRing::ConfigurationSignal::IncomingAccountMessage>(),
exported_callback<DRing::ConfigurationSignal::IncomingTrustRequest>(),
exported_callback<DRing::ConfigurationSignal::Error>(),
/* Presence */
exported_callback<DRing::PresenceSignal::NewServerSubscriptionRequest>(),
exported_callback<DRing::PresenceSignal::ServerError>(),
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;
}
}; // namespace ring