* @param path the path to the file
* @param size the size of the path
*
- * @note the allocated memory for the path string will be freed in tpclFileReleasePath
+ * @note the allocated memory for the path string will be freed in pclFileReleasePath
*
* @return positive value on success, which must be used when pclFileReleasePath will be called
* On error a negative value will be returned with th follwoing error codes:
gRegNotifySeatNo = seat_no;
gRegNotifyPolicy = regPolicy;
- if(regPolicy == Notify_lastEntry)
+ if(regPolicy == Notify_register)
{
// assign callback
gChangeNotifyCallback = callback;
notifyStruct.seat_no = atoi(seat_no);
// call the registered callback function
- gChangeNotifyCallback(¬ifyStruct);
-
+ if(gChangeNotifyCallback != NULL )
+ {
+ gChangeNotifyCallback(¬ifyStruct);
+ }
+ else
+ {
+ DLT_LOG(gDLTContext, DLT_LOG_ERROR, DLT_STRING("handleObjectPathMessageFallback => gChangeNotifyCallback is not set (possibly NULL)") );
+ }
result = DBUS_HANDLER_RESULT_HANDLED;
}
dbus_connection_flush(connection);
DLT_LOG(gDLTContext, DLT_LOG_ERROR, DLT_STRING("handleObjectPathMessageFallback -> not a signal:"), DLT_STRING(dbus_message_get_member(message)) );
}
}
-
return result;
}