Skip to content

Commit ceddbe2

Browse files
committed
AVInput COM-RPC Support: Added debug
1 parent 6c945b5 commit ceddbe2

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

AVInput/AVInput.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,19 @@ namespace Plugin {
6363
{
6464
Register<JsonObject, JsonObject>(_T(AVINPUT_METHOD_GET_INPUT_DEVICES), &AVInput::getInputDevicesWrapper, this);
6565
SYSLOG(Logging::Startup, (_T("AVInput Constructor")));
66+
printf("*** _DEBUG: AVInput: ctor: entry");
6667
}
6768

6869
AVInput::~AVInput()
6970
{
71+
printf("*** _DEBUG: AVInput: xtor: entry");
7072
Unregister(_T(AVINPUT_METHOD_GET_INPUT_DEVICES));
7173
SYSLOG(Logging::Shutdown, (string(_T("AVInput Destructor"))));
7274
}
7375

7476
const string AVInput::Initialize(PluginHost::IShell* service)
7577
{
78+
printf("*** _DEBUG: AVInput: Initialize: entry");
7679
string message = "";
7780

7881
ASSERT(nullptr != service);
@@ -89,6 +92,7 @@ namespace Plugin {
8992
_avInput = service->Root<Exchange::IAVInput>(_connectionId, 5000, _T("AVInputImplementation"));
9093

9194
if (nullptr != _avInput) {
95+
printf("*** _DEBUG: AVInput: Initialize: Mark 1");
9296

9397
// Register for notifications
9498
_avInput->RegisterDevicesChangedNotification(_avInputNotification.baseInterface<Exchange::IAVInput::IDevicesChangedNotification>());
@@ -108,17 +112,23 @@ namespace Plugin {
108112
}
109113
}
110114
catch(const device::Exception& err) {
115+
printf("*** _DEBUG: AVInput: Initialize: Mark 2");
111116
LOGINFO("AVInput: Initialization failed due to device::manager::Initialize()");
112117
LOG_DEVICE_EXCEPTION0();
113118
}
114119

120+
printf("*** _DEBUG: AVInput: Initialize: Mark 3");
121+
115122
// Invoking Plugin API register to wpeframework
116123
Exchange::JAVInput::Register(*this, _avInput);
117124
} else {
125+
printf("*** _DEBUG: AVInput: Initialize: Mark 4");
118126
SYSLOG(Logging::Startup, (_T("AVInput::Initialize: Failed to initialize AVInput plugin")));
119127
message = _T("AVInput plugin could not be initialized");
120128
}
121129

130+
printf("*** _DEBUG: AVInput: Initialize: exit");
131+
122132
return message;
123133
}
124134

AVInput/AVInputImplementation.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ namespace Plugin {
4242

4343
AVInputImplementation::AVInputImplementation() : _adminLock()
4444
{
45+
printf("*** _DEBUG: AVInputImplementation: ctor: entry");
4546
LOGINFO("Create AVInputImplementation Instance");
4647

4748
m_primVolume = DEFAULT_PRIM_VOL_LEVEL;
@@ -59,6 +60,7 @@ namespace Plugin {
5960
template <typename T>
6061
Core::hresult AVInputImplementation::Register(std::list<T*>& list, T* notification)
6162
{
63+
printf("*** _DEBUG: AVInputImplementation: Register: entry");
6264
uint32_t status = Core::ERROR_GENERAL;
6365

6466
ASSERT(nullptr != notification);
@@ -72,6 +74,7 @@ namespace Plugin {
7274
}
7375

7476
_adminLock.Unlock();
77+
printf("*** _DEBUG: AVInputImplementation: Register: exit");
7578
return status;
7679
}
7780

0 commit comments

Comments
 (0)