forked from mirrors/linphone-iphone
fix(daemon): compile with new cpp flags
This commit is contained in:
parent
353e0c0cbe
commit
ab473feed1
43 changed files with 141 additions and 96 deletions
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
adaptive-jitter-compensation.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,7 +25,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class AdaptiveBufferCompensationCommand: public DaemonCommand {
|
||||
public:
|
||||
AdaptiveBufferCompensationCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string &args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_ADAPTIVE_BUFFER_COMPENSATION_H_
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
answer.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,7 +25,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class AnswerCommand: public DaemonCommand {
|
||||
public:
|
||||
AnswerCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string &args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_ANSWER_H_
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
audio-codec-get.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,7 +25,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class AudioCodecGetCommand: public DaemonCommand {
|
||||
public:
|
||||
AudioCodecGetCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string &args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_AUDIO_CODEC_GET_H_
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
audio-codec-move.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,7 +25,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class AudioCodecMoveCommand: public DaemonCommand {
|
||||
public:
|
||||
AudioCodecMoveCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string &args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_AUDIO_CODEC_MOVE_H_
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
audio-codec-set.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,7 +25,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class AudioCodecSetCommand: public DaemonCommand {
|
||||
public:
|
||||
AudioCodecSetCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string &args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_AUDIO_CODEC_SET_H_
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
audio-codec-toggle.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,7 +25,9 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class AudioCodecToggleCommand: public DaemonCommand {
|
||||
public:
|
||||
AudioCodecToggleCommand(const char *name, const char *proto, const char *help, bool enable);
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string &args) override;
|
||||
|
||||
protected:
|
||||
bool mEnable;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
audio-stream-start.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,7 +25,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class AudioStreamStartCommand: public DaemonCommand {
|
||||
public:
|
||||
AudioStreamStartCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string &args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_AUDIO_STREAM_START_H_
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
audio-stream-stats.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,7 +25,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class AudioStreamStatsCommand: public DaemonCommand {
|
||||
public:
|
||||
AudioStreamStatsCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string &args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_AUDIO_STREAM_STATS_H_
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
audio-stream-stop.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,7 +25,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class AudioStreamStopCommand: public DaemonCommand {
|
||||
public:
|
||||
AudioStreamStopCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_AUDIO_STREAM_STOP_H_
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
auth-infos-clear.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,7 +25,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class AuthInfosClearCommand: public DaemonCommand {
|
||||
public:
|
||||
AuthInfosClearCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_AUTH_INFOS_CLEAR_H_
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
call-mute.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -26,7 +26,8 @@ class CallMuteCommand : public DaemonCommand
|
|||
{
|
||||
public:
|
||||
CallMuteCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_CALL_MUTE_H
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
call-pause.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -26,7 +26,8 @@ class CallPauseCommand : public DaemonCommand
|
|||
{
|
||||
public:
|
||||
CallPauseCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_CALL_PAUSE_H
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
call-resume.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -26,7 +26,8 @@ class CallResumeCommand : public DaemonCommand
|
|||
{
|
||||
public:
|
||||
CallResumeCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_CALL_RESUME_H
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
call-stats.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,7 +25,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class CallStatsCommand: public DaemonCommand {
|
||||
public:
|
||||
CallStatsCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_CALL_STATS_H_
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
call-status.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,7 +25,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class CallStatusCommand: public DaemonCommand {
|
||||
public:
|
||||
CallStatusCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_CALL_STATUS_H_
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
call-transfer.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -26,7 +26,8 @@ class CallTransferCommand : public DaemonCommand
|
|||
{
|
||||
public:
|
||||
CallTransferCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_CALL_TRANSFER_H
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
call.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,7 +25,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class CallCommand: public DaemonCommand {
|
||||
public:
|
||||
CallCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_CALL_H_
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
cn.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,7 +25,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class CNCommand: public DaemonCommand {
|
||||
public:
|
||||
CNCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_CN_H_
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
conference.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -26,7 +26,8 @@ class ConferenceCommand : public DaemonCommand
|
|||
{
|
||||
public:
|
||||
ConferenceCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_CONFERENCE_H
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
configcommand.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,13 +25,15 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class ConfigGetCommand: public DaemonCommand {
|
||||
public:
|
||||
ConfigGetCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
class ConfigSetCommand: public DaemonCommand {
|
||||
public:
|
||||
ConfigSetCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_CONFIG_H_
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
contact.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,7 +25,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class ContactCommand: public DaemonCommand {
|
||||
public:
|
||||
ContactCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_CONTACT_H_
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
dtmf.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,7 +25,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class DtmfCommand: public DaemonCommand {
|
||||
public:
|
||||
DtmfCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_DTMF_H_
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
firewall-policy.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,7 +25,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class FirewallPolicyCommand: public DaemonCommand {
|
||||
public:
|
||||
FirewallPolicyCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_FIREWALL_POLICY_H_
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
help.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,7 +25,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class HelpCommand: public DaemonCommand {
|
||||
public:
|
||||
HelpCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_HELP_H_
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
ipv6.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,7 +25,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class IPv6Command: public DaemonCommand {
|
||||
public:
|
||||
IPv6Command();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_IPV6_H_
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
jitterbuffer.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,15 +25,17 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
|
||||
class JitterBufferCommand : public DaemonCommand{
|
||||
public:
|
||||
JitterBufferCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
JitterBufferCommand();
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
|
||||
class JitterBufferResetCommand : public DaemonCommand{
|
||||
public:
|
||||
JitterBufferResetCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
JitterBufferResetCommand();
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_JITTER_BUFFER_H
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
media-encryption.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,7 +25,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class MediaEncryptionCommand: public DaemonCommand {
|
||||
public:
|
||||
MediaEncryptionCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_MEDIA_ENCRYPTION_H_
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
msfilter-add-fmtp.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,7 +25,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class MSFilterAddFmtpCommand : public DaemonCommand {
|
||||
public:
|
||||
MSFilterAddFmtpCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_MSFILTER_ADD_FMTP
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
netsim.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,7 +25,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class NetsimCommand: public DaemonCommand {
|
||||
public:
|
||||
NetsimCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_NETSIM_H_
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
play-wav.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,7 +25,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class PlayWavCommand: public DaemonCommand {
|
||||
public:
|
||||
PlayWavCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_PLAY_WAV_H_
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
pop-event.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,7 +25,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class PopEventCommand: public DaemonCommand {
|
||||
public:
|
||||
PopEventCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_POP_EVENT_H_
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
port.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,7 +25,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class PortCommand: public DaemonCommand {
|
||||
public:
|
||||
PortCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_PORT_H_
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
ptime.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,7 +25,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class PtimeCommand: public DaemonCommand {
|
||||
public:
|
||||
PtimeCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_PTIME_H_
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
quit.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,7 +25,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class QuitCommand: public DaemonCommand {
|
||||
public:
|
||||
QuitCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_QUIT_H_
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
register-info.h
|
||||
Copyright (C) 2017 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2017 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -26,7 +26,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class RegisterInfoCommand: public DaemonCommand {
|
||||
public:
|
||||
RegisterInfoCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_REGISTER_INFO_H_
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
register-status.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,7 +25,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class RegisterStatusCommand: public DaemonCommand {
|
||||
public:
|
||||
RegisterStatusCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_REGISTER_STATUS_H_
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
register.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,7 +25,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class RegisterCommand: public DaemonCommand {
|
||||
public:
|
||||
RegisterCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_REGISTER_H_
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
terminate.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,7 +25,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class TerminateCommand: public DaemonCommand {
|
||||
public:
|
||||
TerminateCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_TERMINATE_H_
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
unregister.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,7 +25,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class UnregisterCommand: public DaemonCommand {
|
||||
public:
|
||||
UnregisterCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_UNREGISTER_H_
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
version.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -25,7 +25,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
class VersionCommand: public DaemonCommand {
|
||||
public:
|
||||
VersionCommand();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_VERSION_H_
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
video.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -26,7 +26,8 @@ class Video : public DaemonCommand
|
|||
{
|
||||
public:
|
||||
Video();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -34,14 +35,16 @@ class VideoSource : public DaemonCommand
|
|||
{
|
||||
public:
|
||||
VideoSource();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
class AutoVideo : public DaemonCommand
|
||||
{
|
||||
public:
|
||||
AutoVideo();
|
||||
virtual void exec(Daemon *app, const std::string& args);
|
||||
|
||||
void exec(Daemon *app, const std::string& args) override;
|
||||
};
|
||||
|
||||
#endif // LINPHONE_DAEMON_COMMAND_VIDEO_H
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
daemon-pipetest.c
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
@ -79,7 +79,7 @@ int main(int argc, char *argv[]){
|
|||
SetConsoleMode(hin, fdwOldMode);
|
||||
#else
|
||||
struct pollfd pfds[2] = { { 0 } };
|
||||
int bytes;
|
||||
ssize_t bytes;
|
||||
pfds[0].fd=fd;
|
||||
pfds[0].events=POLLIN;
|
||||
pfds[1].fd=1;
|
||||
|
|
@ -91,11 +91,11 @@ int main(int argc, char *argv[]){
|
|||
/*splice to stdout*/
|
||||
if (pfds[0].revents & POLLIN){
|
||||
if ((bytes=read(pfds[0].fd,buf,sizeof(buf)))>0){
|
||||
if (write(0,buf,bytes)==-1){
|
||||
if (write(0,buf,(size_t)bytes)==-1){
|
||||
ortp_error("Fail to write to stdout?");
|
||||
break;
|
||||
}
|
||||
fprintf(stdout,"\n");
|
||||
fprintf(stdout,"\n");
|
||||
}else if (bytes==0){
|
||||
break;
|
||||
}
|
||||
|
|
@ -103,10 +103,10 @@ int main(int argc, char *argv[]){
|
|||
/*splice from stdin to pipe */
|
||||
if (pfds[1].revents & POLLIN){
|
||||
if ((bytes=read(pfds[1].fd,buf,sizeof(buf)))>0){
|
||||
if (write(pfds[0].fd,buf,bytes)==-1){
|
||||
if (write(pfds[0].fd,buf,(size_t)bytes)==-1){
|
||||
ortp_error("Fail to write to unix socket");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}else if (bytes==0){
|
||||
break;
|
||||
}
|
||||
|
|
@ -117,4 +117,3 @@ int main(int argc, char *argv[]){
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
daemon.h
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
Copyright (C) 2016 Belledonne Communications, Grenoble, France
|
||||
|
||||
This library is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue