1 /*
2  * This file is auto-generated.  DO NOT MODIFY.
3  * Using: out/host/linux-x86/bin/aidl --lang=ndk -Weverything -Wno-missing-permission-annotation -t --min_sdk_version 30 --ninja -d out/soong/.intermediates/external/ot-br-posix/src/android/aidl/ot-daemon-aidl-ndk-source/gen/staging/com/android/server/thread/openthread/INsdPublisher.cpp.d -h out/soong/.intermediates/external/ot-br-posix/src/android/aidl/ot-daemon-aidl-ndk-source/gen/include/staging -o out/soong/.intermediates/external/ot-br-posix/src/android/aidl/ot-daemon-aidl-ndk-source/gen/staging -Nexternal/ot-br-posix/src/android/aidl -Npackages/modules/Connectivity/thread/framework/java external/ot-br-posix/src/android/aidl/com/android/server/thread/openthread/INsdPublisher.aidl
4  *
5  * DO NOT CHECK THIS FILE INTO A CODE TREE (e.g. git, etc..).
6  * ALWAYS GENERATE THIS FILE FROM UPDATED AIDL COMPILER
7  * AS A BUILD INTERMEDIATE ONLY. THIS IS NOT SOURCE CODE.
8  */
9 #pragma once
10 
11 #include <cstdint>
12 #include <memory>
13 #include <optional>
14 #include <string>
15 #include <vector>
16 #include <android/binder_interface_utils.h>
17 #include <aidl/com/android/server/thread/openthread/DnsTxtAttribute.h>
18 #include <aidl/com/android/server/thread/openthread/INsdDiscoverServiceCallback.h>
19 #include <aidl/com/android/server/thread/openthread/INsdResolveHostCallback.h>
20 #include <aidl/com/android/server/thread/openthread/INsdResolveServiceCallback.h>
21 #include <aidl/com/android/server/thread/openthread/INsdStatusReceiver.h>
22 #ifdef BINDER_STABILITY_SUPPORT
23 #include <android/binder_stability.h>
24 #endif  // BINDER_STABILITY_SUPPORT
25 
26 namespace aidl::com::android::server::thread::openthread {
27 class DnsTxtAttribute;
28 class INsdDiscoverServiceCallback;
29 class INsdResolveHostCallback;
30 class INsdResolveServiceCallback;
31 class INsdStatusReceiver;
32 }  // namespace aidl::com::android::server::thread::openthread
33 namespace aidl {
34 namespace com {
35 namespace android {
36 namespace server {
37 namespace thread {
38 namespace openthread {
39 class INsdPublisherDelegator;
40 
41 class INsdPublisher : public ::ndk::ICInterface {
42 public:
43   typedef INsdPublisherDelegator DefaultDelegator;
44   static const char* descriptor;
45   INsdPublisher();
46   virtual ~INsdPublisher();
47 
48   static constexpr uint32_t TRANSACTION_registerService = FIRST_CALL_TRANSACTION + 0;
49   static constexpr uint32_t TRANSACTION_registerHost = FIRST_CALL_TRANSACTION + 1;
50   static constexpr uint32_t TRANSACTION_unregister = FIRST_CALL_TRANSACTION + 2;
51   static constexpr uint32_t TRANSACTION_reset = FIRST_CALL_TRANSACTION + 3;
52   static constexpr uint32_t TRANSACTION_discoverService = FIRST_CALL_TRANSACTION + 4;
53   static constexpr uint32_t TRANSACTION_stopServiceDiscovery = FIRST_CALL_TRANSACTION + 5;
54   static constexpr uint32_t TRANSACTION_resolveService = FIRST_CALL_TRANSACTION + 6;
55   static constexpr uint32_t TRANSACTION_stopServiceResolution = FIRST_CALL_TRANSACTION + 7;
56   static constexpr uint32_t TRANSACTION_resolveHost = FIRST_CALL_TRANSACTION + 8;
57   static constexpr uint32_t TRANSACTION_stopHostResolution = FIRST_CALL_TRANSACTION + 9;
58 
59   static std::shared_ptr<INsdPublisher> fromBinder(const ::ndk::SpAIBinder& binder);
60   static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<INsdPublisher>& instance);
61   static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<INsdPublisher>* instance);
62   static bool setDefaultImpl(const std::shared_ptr<INsdPublisher>& impl);
63   static const std::shared_ptr<INsdPublisher>& getDefaultImpl();
64   virtual ::ndk::ScopedAStatus registerService(const std::optional<std::string>& in_hostname, const std::string& in_name, const std::string& in_type, const std::vector<std::string>& in_subtypeList, int32_t in_port, const std::vector<::aidl::com::android::server::thread::openthread::DnsTxtAttribute>& in_txt, const std::shared_ptr<::aidl::com::android::server::thread::openthread::INsdStatusReceiver>& in_receiver, int32_t in_listenerId) = 0;
65   virtual ::ndk::ScopedAStatus registerHost(const std::string& in_name, const std::vector<std::string>& in_addresses, const std::shared_ptr<::aidl::com::android::server::thread::openthread::INsdStatusReceiver>& in_receiver, int32_t in_listenerId) = 0;
66   virtual ::ndk::ScopedAStatus unregister(const std::shared_ptr<::aidl::com::android::server::thread::openthread::INsdStatusReceiver>& in_receiver, int32_t in_listenerId) = 0;
67   virtual ::ndk::ScopedAStatus reset() = 0;
68   virtual ::ndk::ScopedAStatus discoverService(const std::string& in_type, const std::shared_ptr<::aidl::com::android::server::thread::openthread::INsdDiscoverServiceCallback>& in_callback, int32_t in_listenerId) = 0;
69   virtual ::ndk::ScopedAStatus stopServiceDiscovery(int32_t in_listenerId) = 0;
70   virtual ::ndk::ScopedAStatus resolveService(const std::string& in_name, const std::string& in_type, const std::shared_ptr<::aidl::com::android::server::thread::openthread::INsdResolveServiceCallback>& in_callback, int32_t in_listenerId) = 0;
71   virtual ::ndk::ScopedAStatus stopServiceResolution(int32_t in_listenerId) = 0;
72   virtual ::ndk::ScopedAStatus resolveHost(const std::string& in_name, const std::shared_ptr<::aidl::com::android::server::thread::openthread::INsdResolveHostCallback>& in_callback, int32_t in_listenerId) = 0;
73   virtual ::ndk::ScopedAStatus stopHostResolution(int32_t in_listenerId) = 0;
74 private:
75   static std::shared_ptr<INsdPublisher> default_impl;
76 };
77 class INsdPublisherDefault : public INsdPublisher {
78 public:
79   ::ndk::ScopedAStatus registerService(const std::optional<std::string>& in_hostname, const std::string& in_name, const std::string& in_type, const std::vector<std::string>& in_subtypeList, int32_t in_port, const std::vector<::aidl::com::android::server::thread::openthread::DnsTxtAttribute>& in_txt, const std::shared_ptr<::aidl::com::android::server::thread::openthread::INsdStatusReceiver>& in_receiver, int32_t in_listenerId) override;
80   ::ndk::ScopedAStatus registerHost(const std::string& in_name, const std::vector<std::string>& in_addresses, const std::shared_ptr<::aidl::com::android::server::thread::openthread::INsdStatusReceiver>& in_receiver, int32_t in_listenerId) override;
81   ::ndk::ScopedAStatus unregister(const std::shared_ptr<::aidl::com::android::server::thread::openthread::INsdStatusReceiver>& in_receiver, int32_t in_listenerId) override;
82   ::ndk::ScopedAStatus reset() override;
83   ::ndk::ScopedAStatus discoverService(const std::string& in_type, const std::shared_ptr<::aidl::com::android::server::thread::openthread::INsdDiscoverServiceCallback>& in_callback, int32_t in_listenerId) override;
84   ::ndk::ScopedAStatus stopServiceDiscovery(int32_t in_listenerId) override;
85   ::ndk::ScopedAStatus resolveService(const std::string& in_name, const std::string& in_type, const std::shared_ptr<::aidl::com::android::server::thread::openthread::INsdResolveServiceCallback>& in_callback, int32_t in_listenerId) override;
86   ::ndk::ScopedAStatus stopServiceResolution(int32_t in_listenerId) override;
87   ::ndk::ScopedAStatus resolveHost(const std::string& in_name, const std::shared_ptr<::aidl::com::android::server::thread::openthread::INsdResolveHostCallback>& in_callback, int32_t in_listenerId) override;
88   ::ndk::ScopedAStatus stopHostResolution(int32_t in_listenerId) override;
89   ::ndk::SpAIBinder asBinder() override;
90   bool isRemote() override;
91 };
92 }  // namespace openthread
93 }  // namespace thread
94 }  // namespace server
95 }  // namespace android
96 }  // namespace com
97 }  // namespace aidl
98