@@ -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
0 commit comments