aboutsummaryrefslogtreecommitdiff
path: root/citadel
diff options
context:
space:
mode:
Diffstat (limited to 'citadel')
-rw-r--r--citadel/citadeld/CitadeldProxyClient.cpp4
-rw-r--r--citadel/citadeld/include/nos/CitadeldProxyClient.h6
2 files changed, 9 insertions, 1 deletions
diff --git a/citadel/citadeld/CitadeldProxyClient.cpp b/citadel/citadeld/CitadeldProxyClient.cpp
index a5d0378..6196d36 100644
--- a/citadel/citadeld/CitadeldProxyClient.cpp
+++ b/citadel/citadeld/CitadeldProxyClient.cpp
@@ -72,4 +72,8 @@ uint32_t CitadeldProxyClient::CallApp(uint32_t appId, uint16_t arg,
return APP_ERROR_IO;
}
+ICitadeld& CitadeldProxyClient::Citadeld() {
+ return *_citadeld.get();
+}
+
} // namespace nos
diff --git a/citadel/citadeld/include/nos/CitadeldProxyClient.h b/citadel/citadeld/include/nos/CitadeldProxyClient.h
index 623de9d..0bcd583 100644
--- a/citadel/citadeld/include/nos/CitadeldProxyClient.h
+++ b/citadel/citadeld/include/nos/CitadeldProxyClient.h
@@ -26,12 +26,14 @@
namespace nos {
+using ::android::hardware::citadel::ICitadeld;
+
/**
* Implementation of NuggetClient to proxy calls via the citadeld synchronizing
* daemon which coordinates communication between the HALs and Citadel.
*/
class CitadeldProxyClient : public NuggetClientInterface {
- ::android::sp<::android::hardware::citadel::ICitadeld> _citadeld;
+ ::android::sp<ICitadeld> _citadeld;
public:
CitadeldProxyClient() = default;
@@ -43,6 +45,8 @@ public:
uint32_t CallApp(uint32_t appId, uint16_t arg,
const std::vector<uint8_t>& request,
std::vector<uint8_t>* response) override;
+
+ ICitadeld& Citadeld();
};
} // namespace nos