Skip to content

Commit

Permalink
Merge pull request rdkcentral#269 from skyadiddee/master
Browse files Browse the repository at this point in the history
New event DOBBY_CTRL_EVENT_STOPPED_WITH_STATUS for capturing Netflix exit code. LLDEV-44648. LLAMA-10709
  • Loading branch information
goruklu authored Oct 5, 2023
2 parents 0d4590a + dd77b73 commit f1b8a6d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions daemon/lib/source/Dobby.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1856,6 +1856,18 @@ void Dobby::onContainerStopped(int32_t cd, const ContainerId& id, int status)
// Regardless of whether of the not the hooks executed successfully
// we fire off a notification event indicating that the container
// has stopped.

// Fire off a notification with status
if (!mIpcService->emitSignal(AI_IPC::Signal(mObjectPath,
DOBBY_CTRL_INTERFACE,
DOBBY_CTRL_EVENT_STOPPED_WITH_STATUS),
{ cd, id.str(), int32_t(status) }))
{
AI_LOG_ERROR("failed to emit '%s' signal",
DOBBY_CTRL_EVENT_STOPPED_WITH_STATUS);
}

//Fire off a normal notification
if (!mIpcService->emitSignal(AI_IPC::Signal(mObjectPath,
DOBBY_CTRL_INTERFACE,
DOBBY_CTRL_EVENT_STOPPED),
Expand Down
1 change: 1 addition & 0 deletions protocol/include/DobbyProtocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
#define DOBBY_CTRL_METHOD_LIST "List"
#define DOBBY_CTRL_EVENT_STARTED "Started"
#define DOBBY_CTRL_EVENT_STOPPED "Stopped"
#define DOBBY_CTRL_EVENT_STOPPED_WITH_STATUS "StoppedWithStatus"

#define DOBBY_DEBUG_INTERFACE DOBBY_SERVICE ".debug1"
#define DOBBY_DEBUG_METHOD_CREATE_BUNDLE "CreateBundle"
Expand Down

0 comments on commit f1b8a6d

Please sign in to comment.