The Winamp Remote Control suite
a remote control client and plugin for Winamp 2.x, 5.x
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
testserver.cpp
Go to the documentation of this file.
1
#pragma hdrstop
2
3
#include "
RPCExecutor.h
"
4
5
#include "
WinampTestServer.h
"
6
#include "
ConsoleCallObserver.h
"
7
8
#ifdef __BORLANDC__
9
#pragma argsused
10
#endif
11
int
main
(
int
argc,
char
* argv[])
12
{
13
14
WinampRemote::Remoting::ConsoleCallObserver
cco;
15
16
// this code is only used in the out of process test process
17
WinampRemote::Server::WinampTestServer
localWinamp
;
18
19
cco.
notifyStatus
(
"testserver starting"
);
20
21
// for this mock server, no need for another thread, simply block on this
22
WinampRemote::Server::RPCExecutor::instance
().
setWinampServer
(&localWinamp);
23
WinampRemote::Server::RPCExecutor::instance
().
setCallObserver
(&cco);
24
WinampRemote::Server::RPCExecutor::instance
().
Execute
();
25
cco.
notifyStatus
(
"RPC loop terminated: testserver exiting"
);
26
27
return
0;
28
29
}
30
testserver.cpp
Generated by
1.8.1.1