9eeb24a34ba95c7d467826589fd5bd2459bcf0c3
Stefan Schuermans implement SIP

Stefan Schuermans authored 5 years ago

1) /* Blinker
Stefan Schuermans update copyright header

Stefan Schuermans authored 5 years ago

2)    Copyright 2011-2019 Stefan Schuermans <stefan@blinkenarea.org>
Stefan Schuermans implement SIP

Stefan Schuermans authored 5 years ago

3)    Copyleft GNU public license - http://www.gnu.org/copyleft/gpl.html
4)    a blinkenarea.org project */
5) 
6) #ifndef BLINKER_SIPPHONE_H
7) #define BLINKER_SIPPHONE_H
8) 
9) #include <condition_variable>
10) #include <mutex>
11) #include <string>
12) #include <thread>
Stefan Schuermans implement common sound dir,...

Stefan Schuermans authored 5 years ago

13) #include <vector>
Stefan Schuermans implement SIP

Stefan Schuermans authored 5 years ago

14) 
Stefan Schuermans implement common sound dir,...

Stefan Schuermans authored 5 years ago

15) #include "Directory.h"
Stefan Schuermans implement SIP

Stefan Schuermans authored 5 years ago

16) #include "File.h"
17) #include "Module.h"
18) #include "NameFile.h"
19) #include "OpConn.h"
20) #include "OpConnIf.h"
21) #include "Time.h"
22) #include "TimeCallee.h"
23) 
24) namespace Blinker {
25) 
26) /// SIP phone connector
27) class SipPhone: public Module, public OpConnIf, public TimeCallee
28) {
29) public:
30)   /// configuration data for worker
31)   struct ConfigData {
Stefan Schuermans implement common sound dir,...

Stefan Schuermans authored 5 years ago

32)     std::vector<Directory> soundDirs; ///< dirs for sound files (1st = hi prio)
Stefan Schuermans implement SIP

Stefan Schuermans authored 5 years ago

33)     std::string logFileName; ///< base name of log file
34)   };
35)   /// data shared between linphone thread and main Blinker thread
36)   struct SharedData {
Stefan Schuermans fix liblinphone threading i...

Stefan Schuermans authored 5 years ago

37)     /// protection for this structure
38)     std::mutex mtx;
39)     /// worker threads waits on this condition, related mutex is g_mtx
40)     std::condition_variable cond;