added: start a thread for connecting to Kodi when requested
This commit is contained in:
parent
3d56ee20a8
commit
0e5becf050
5 changed files with 87 additions and 4 deletions
31
src/kodiclient.h
Normal file
31
src/kodiclient.h
Normal file
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
* ampswitch
|
||||
* Copyright (C) Bob 2021
|
||||
*
|
||||
* ampswitch 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.
|
||||
*
|
||||
* ampswitch 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <thread>
|
||||
|
||||
class CKodiClient
|
||||
{
|
||||
public:
|
||||
void Start();
|
||||
|
||||
private:
|
||||
static void SProcess(CKodiClient* kodiclient);
|
||||
void Process();
|
||||
|
||||
std::thread m_thread;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue