[QNN EP] Add LoggingManager::HasDefaultLogger() to provider bridge API (#23467)

### Description
Fixes QNN EP builds due to missing function in provider bridge API:
`logging::LoggingManager::HasDefaultLogger()`



### Motivation and Context
A [recent PR](https://github.com/microsoft/onnxruntime/pull/23120) made
QNN EP a shared library. A [different
PR](https://github.com/microsoft/onnxruntime/pull/23435) added use of a
new function to QNN EP that was not part of the provider bridge API. The
CI did not catch it because main was not merged into the first PR before
merging.
This commit is contained in:
Adrian Lizarraga 2025-01-22 21:26:24 -08:00 committed by GitHub
parent 3b4c7df4e9
commit 46dc0b5f21
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 0 deletions

View file

@ -286,6 +286,7 @@ struct ProviderHost {
// logging::LoggingManager
virtual const logging::Logger& logging__LoggingManager__DefaultLogger() = 0;
virtual bool logging__LoggingManager__HasDefaultLogger() = 0;
// logging::Capture
virtual std::unique_ptr<logging::Capture> logging__Capture__construct(const logging::Logger& logger,

View file

@ -32,6 +32,7 @@ struct Logger final {
struct LoggingManager final {
static const Logger& DefaultLogger() { return g_host->logging__LoggingManager__DefaultLogger(); }
static bool HasDefaultLogger() { return g_host->logging__LoggingManager__HasDefaultLogger(); }
PROVIDER_DISALLOW_ALL(LoggingManager)
};

View file

@ -397,6 +397,7 @@ struct ProviderHostImpl : ProviderHost {
// logging::LoggingManager (wrapped)
const logging::Logger& logging__LoggingManager__DefaultLogger() override { return logging::LoggingManager::DefaultLogger(); }
bool logging__LoggingManager__HasDefaultLogger() override { return logging::LoggingManager::HasDefaultLogger(); }
// logging::Capture (wrapped)
std::unique_ptr<logging::Capture> logging__Capture__construct(const logging::Logger& logger,