mirror of
https://github.com/Netflix/dial-reference.git
synced 2026-06-08 02:49:58 +00:00
Added app manager IPC interface. Updated verions to 2.1
This commit is contained in:
@@ -157,21 +157,21 @@ private:
|
||||
*/
|
||||
void stop(
|
||||
string& responseHeaders )
|
||||
{ stop(_stopurl, responseHeaders ); }
|
||||
{ stop(_name, responseHeaders ); }
|
||||
|
||||
/**
|
||||
* Stop the application using a custom stop URL.
|
||||
*
|
||||
* @param[out] responseHeaders HTML response headers
|
||||
*/
|
||||
void stop( string& stopurl, string& responseHeaders)
|
||||
void stop( string& appName, string& responseHeaders)
|
||||
{
|
||||
if( !stopurl.empty() )
|
||||
if( !appName.empty() )
|
||||
{
|
||||
_pServer->stopApplication( stopurl, responseHeaders );
|
||||
_pServer->stopApplication( appName, responseHeaders );
|
||||
}
|
||||
#ifdef DEBUG
|
||||
else ATRACE("%s: Not sending stop, stop URL is empty\n", __FUNCTION__);
|
||||
else ATRACE("%s: Not sending stop, appName is empty\n", __FUNCTION__);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -263,7 +263,7 @@ int DialServer::hideApplication(
|
||||
getStatus( application, responseHeaders, responseBody );
|
||||
|
||||
int status = sendCommand(
|
||||
(appUrl.append(application)).append("/"+m_stopEndPoint).append("/suspend"),
|
||||
(appUrl.append(application)).append("/"+m_stopEndPoint).append("/hide"),
|
||||
COMMAND_HIDE, emptyPayload, responseHeaders, responseBody );
|
||||
return status;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
TARGET=/usr/local/i686-netflix-linux-gnu-4.2/bin/i686-netflix-linux-gnu- \
|
||||
LDFLAGS="-L/usr/local/i686-netflix-linux-gnu-4.2/netflix/lib \
|
||||
-Wl,-rpath,/usr/local/i686-netflix-linux-gnu-4.2/netflix/lib" \
|
||||
INCLUDES=-I/usr/local/i686-netflix-linux-gnu-4.2/netflix/include \
|
||||
TARGET=/usr/local/i686-netflix-linux-gnu-4.3/bin/i686-netflix-linux-gnu- \
|
||||
LDFLAGS="-L/usr/local/i686-netflix-linux-gnu-4.3/netflix/lib \
|
||||
-Wl,-rpath,/usr/local/i686-netflix-linux-gnu-4.3/netflix/lib" \
|
||||
INCLUDES=-I/usr/local/i686-netflix-linux-gnu-4.3/netflix/include \
|
||||
make
|
||||
|
||||
@@ -223,11 +223,11 @@ int handleUser(DialDiscovery *pDial) {
|
||||
printf("0. Rescan and list DIAL servers\n");
|
||||
printf("1. Launch Netflix\n");
|
||||
printf("2. Hide Netflix\n");
|
||||
printf("3. Kill Netflix\n");
|
||||
printf("3. Stop Netflix\n");
|
||||
printf("4. Netflix status\n");
|
||||
printf("5. Launch YouTube\n");
|
||||
printf("6. Hide YouTube\n");
|
||||
printf("7. Kill YouTube\n");
|
||||
printf("7. Stop YouTube\n");
|
||||
printf("8. YouTube status\n");
|
||||
printf("9. Run conformance tests\n");
|
||||
printf("10. Wake up on lan/wlan\n");
|
||||
@@ -250,7 +250,7 @@ int handleUser(DialDiscovery *pDial) {
|
||||
pServer->hideApplication( netflix, responseHeaders, responseBody );
|
||||
break;
|
||||
case 3:
|
||||
printf("Kill Netflix\n");
|
||||
printf("Stop Netflix\n");
|
||||
pServer->stopApplication( netflix, responseHeaders );
|
||||
break;
|
||||
case 4:
|
||||
@@ -267,7 +267,7 @@ int handleUser(DialDiscovery *pDial) {
|
||||
pServer->hideApplication( youtube, responseHeaders, responseBody );
|
||||
break;
|
||||
case 7:
|
||||
printf("Kill YouTube\n");
|
||||
printf("Stop YouTube\n");
|
||||
pServer->stopApplication( youtube, responseHeaders );
|
||||
break;
|
||||
case 8:
|
||||
|
||||
Reference in New Issue
Block a user