summaryrefslogtreecommitdiff
path: root/common/netd/binder/android/net/mdns/aidl
diff options
context:
space:
mode:
Diffstat (limited to 'common/netd/binder/android/net/mdns/aidl')
-rw-r--r--common/netd/binder/android/net/mdns/aidl/DiscoveryInfo.aidl79
-rw-r--r--common/netd/binder/android/net/mdns/aidl/GetAddressInfo.aidl69
-rw-r--r--common/netd/binder/android/net/mdns/aidl/IMDns.aidl127
-rw-r--r--common/netd/binder/android/net/mdns/aidl/IMDnsEventListener.aidl66
-rw-r--r--common/netd/binder/android/net/mdns/aidl/RegistrationInfo.aidl78
-rw-r--r--common/netd/binder/android/net/mdns/aidl/ResolutionInfo.aidl92
6 files changed, 0 insertions, 511 deletions
diff --git a/common/netd/binder/android/net/mdns/aidl/DiscoveryInfo.aidl b/common/netd/binder/android/net/mdns/aidl/DiscoveryInfo.aidl
deleted file mode 100644
index f8273828..00000000
--- a/common/netd/binder/android/net/mdns/aidl/DiscoveryInfo.aidl
+++ /dev/null
@@ -1,79 +0,0 @@
-/*
- * Copyright (C) 2022 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package android.net.mdns.aidl;
-
-/**
- * Discovery service information.
- * This information combine all arguments that used by both request and callback.
- * Arguments are used by request:
- * - id
- * - registrationType
- * - interfaceIdx
- *
- * Arguments are used by callback:
- * - id
- * - serviceName
- * - registrationType
- * - domainName
- * - interfaceIdx
- * - netId
- * - result
- *
- * {@hide}
- */
-@JavaOnlyImmutable
-@JavaDerive(equals=true, toString=true)
-parcelable DiscoveryInfo {
- /**
- * The operation ID.
- * Must be unique among all operations (registration/discovery/resolution/getting address) and
- * can't be reused.
- * To stop a operation, it needs to use corresponding operation id.
- */
- int id;
-
- /**
- * The discovery result.
- */
- int result;
-
- /**
- * The discovered service name.
- */
- @utf8InCpp String serviceName;
-
- /**
- * The service type being discovered for followed by the protocol, separated by a dot
- * (e.g. "_ftp._tcp"). The transport protocol must be "_tcp" or "_udp".
- */
- @utf8InCpp String registrationType;
-
- /**
- * The domain of the discovered service instance.
- */
- @utf8InCpp String domainName;
-
- /**
- * The interface index on which to discover services. 0 indicates "all interfaces".
- */
- int interfaceIdx;
-
- /**
- * The net id on which the service is advertised.
- */
- int netId;
-}
diff --git a/common/netd/binder/android/net/mdns/aidl/GetAddressInfo.aidl b/common/netd/binder/android/net/mdns/aidl/GetAddressInfo.aidl
deleted file mode 100644
index d53174a4..00000000
--- a/common/netd/binder/android/net/mdns/aidl/GetAddressInfo.aidl
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * Copyright (C) 2022 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package android.net.mdns.aidl;
-
-/**
- * Get service address information.
- * This information combine all arguments that used by both request and callback.
- * Arguments are used by request:
- * - id
- * - hostname
- * - interfaceIdx
- *
- * Arguments are used by callback:
- * - id
- * - hostname
- * - interfaceIdx
- * - netId
- * - address
- * - result
- *
- * {@hide}
- */
-@JavaOnlyImmutable
-@JavaDerive(equals=true, toString=true)
-parcelable GetAddressInfo {
- /**
- * The operation ID.
- */
- int id;
-
- /**
- * The getting address result.
- */
- int result;
-
- /**
- * The fully qualified domain name of the host to be queried for.
- */
- @utf8InCpp String hostname;
-
- /**
- * The service address info, it's IPv4 or IPv6 addres.
- */
- @utf8InCpp String address;
-
- /**
- * The interface index on which to issue the query. 0 indicates "all interfaces".
- */
- int interfaceIdx;
-
- /**
- * The net id to which the answers pertain.
- */
- int netId;
-}
diff --git a/common/netd/binder/android/net/mdns/aidl/IMDns.aidl b/common/netd/binder/android/net/mdns/aidl/IMDns.aidl
deleted file mode 100644
index 255d70ff..00000000
--- a/common/netd/binder/android/net/mdns/aidl/IMDns.aidl
+++ /dev/null
@@ -1,127 +0,0 @@
-/*
- * Copyright (C) 2022 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package android.net.mdns.aidl;
-
-import android.net.mdns.aidl.DiscoveryInfo;
-import android.net.mdns.aidl.GetAddressInfo;
-import android.net.mdns.aidl.IMDnsEventListener;
-import android.net.mdns.aidl.RegistrationInfo;
-import android.net.mdns.aidl.ResolutionInfo;
-
-/** {@hide} */
-interface IMDns {
- /**
- * Start the MDNSResponder daemon.
- *
- * @throws ServiceSpecificException with unix errno EALREADY if daemon is already running.
- */
- void startDaemon();
-
- /**
- * Stop the MDNSResponder daemon.
- *
- * @throws ServiceSpecificException with unix errno EBUSY if daemon is still in use.
- */
- void stopDaemon();
-
- /**
- * Start registering a service.
- * This operation will send a service registration request to MDNSResponder. Register a listener
- * via IMDns#registerEventListener to get the registration result SERVICE_REGISTERED/
- * SERVICE_REGISTRATION_FAILED from callback IMDnsEventListener#onServiceRegistrationStatus.
- *
- * @param info The service information to register.
- *
- * @throws ServiceSpecificException with one of the following error values:
- * - Unix errno EBUSY if request id is already in use.
- * - kDNSServiceErr_* list in dns_sd.h if registration fail.
- */
- void registerService(in RegistrationInfo info);
-
- /**
- * Start discovering services.
- * This operation will send a request to MDNSResponder to discover services. Register a listener
- * via IMDns#registerEventListener to get the discovery result SERVICE_FOUND/SERVICE_LOST/
- * SERVICE_DISCOVERY_FAILED from callback IMDnsEventListener#onServiceDiscoveryStatus.
- *
- * @param info The service to discover.
- *
- * @throws ServiceSpecificException with one of the following error values:
- * - Unix errno EBUSY if request id is already in use.
- * - kDNSServiceErr_* list in dns_sd.h if discovery fail.
- */
- void discover(in DiscoveryInfo info);
-
- /**
- * Start resolving the target service.
- * This operation will send a request to MDNSResponder to resolve the target service. Register a
- * listener via IMDns#registerEventListener to get the resolution result SERVICE_RESOLVED/
- * SERVICE_RESOLUTION_FAILED from callback IMDnsEventListener#onServiceResolutionStatus.
- *
- * @param info The service to resolve.
- *
- * @throws ServiceSpecificException with one of the following error values:
- * - Unix errno EBUSY if request id is already in use.
- * - kDNSServiceErr_* list in dns_sd.h if resolution fail.
- */
- void resolve(in ResolutionInfo info);
-
- /**
- * Start getting the target service address.
- * This operation will send a request to MDNSResponder to get the target service address.
- * Register a listener via IMDns#registerEventListener to get the query result
- * SERVICE_GET_ADDR_SUCCESS/SERVICE_GET_ADDR_FAILED from callback
- * IMDnsEventListener#onGettingServiceAddressStatus.
- *
- * @param info the getting service address information.
- *
- * @throws ServiceSpecificException with one of the following error values:
- * - Unix errno EBUSY if request id is already in use.
- * - kDNSServiceErr_* list in dns_sd.h if getting address fail.
- */
- void getServiceAddress(in GetAddressInfo info);
-
- /**
- * Stop a operation which's requested before.
- *
- * @param id the operation id to be stopped.
- *
- * @throws ServiceSpecificException with unix errno ESRCH if request id is not in use.
- */
- void stopOperation(int id);
-
- /**
- * Register an event listener.
- *
- * @param listener The listener to be registered.
- *
- * @throws ServiceSpecificException with one of the following error values:
- * - Unix errno EINVAL if listener is null.
- * - Unix errno EEXIST if register duplicated listener.
- */
- void registerEventListener(in IMDnsEventListener listener);
-
- /**
- * Unregister an event listener.
- *
- * @param listener The listener to be unregistered.
- *
- * @throws ServiceSpecificException with unix errno EINVAL if listener is null.
- */
- void unregisterEventListener(in IMDnsEventListener listener);
-}
-
diff --git a/common/netd/binder/android/net/mdns/aidl/IMDnsEventListener.aidl b/common/netd/binder/android/net/mdns/aidl/IMDnsEventListener.aidl
deleted file mode 100644
index a202a261..00000000
--- a/common/netd/binder/android/net/mdns/aidl/IMDnsEventListener.aidl
+++ /dev/null
@@ -1,66 +0,0 @@
-/**
- * Copyright (c) 2022, The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package android.net.mdns.aidl;
-
-import android.net.mdns.aidl.DiscoveryInfo;
-import android.net.mdns.aidl.GetAddressInfo;
-import android.net.mdns.aidl.RegistrationInfo;
-import android.net.mdns.aidl.ResolutionInfo;
-
-/**
- * MDNS events which are reported by the MDNSResponder.
- * This one-way interface defines the asynchronous notifications sent by mdns service to any process
- * that registered itself via IMDns.registerEventListener.
- *
- * {@hide}
- */
-oneway interface IMDnsEventListener {
- /**
- * Types for MDNS operation result.
- * These are in sync with frameworks/libs/net/common/netd/libnetdutils/include/netdutils/\
- * ResponseCode.h
- */
- const int SERVICE_DISCOVERY_FAILED = 602;
- const int SERVICE_FOUND = 603;
- const int SERVICE_LOST = 604;
- const int SERVICE_REGISTRATION_FAILED = 605;
- const int SERVICE_REGISTERED = 606;
- const int SERVICE_RESOLUTION_FAILED = 607;
- const int SERVICE_RESOLVED = 608;
- const int SERVICE_GET_ADDR_FAILED = 611;
- const int SERVICE_GET_ADDR_SUCCESS = 612;
-
- /**
- * Notify service registration status.
- */
- void onServiceRegistrationStatus(in RegistrationInfo status);
-
- /**
- * Notify service discovery status.
- */
- void onServiceDiscoveryStatus(in DiscoveryInfo status);
-
- /**
- * Notify service resolution status.
- */
- void onServiceResolutionStatus(in ResolutionInfo status);
-
- /**
- * Notify getting service address status.
- */
- void onGettingServiceAddressStatus(in GetAddressInfo status);
-}
diff --git a/common/netd/binder/android/net/mdns/aidl/RegistrationInfo.aidl b/common/netd/binder/android/net/mdns/aidl/RegistrationInfo.aidl
deleted file mode 100644
index 54835594..00000000
--- a/common/netd/binder/android/net/mdns/aidl/RegistrationInfo.aidl
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
- * Copyright (C) 2022 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package android.net.mdns.aidl;
-
-/**
- * Registration service information.
- * This information combine all arguments that used by both request and callback.
- * Arguments are used by request:
- * - id
- * - serviceName
- * - registrationType
- * - port
- * - txtRecord
- * - interfaceIdx
- *
- * Arguments are used by callback:
- * - id
- * - serviceName
- * - registrationType
- * - result
- *
- * {@hide}
- */
-@JavaOnlyImmutable
-@JavaDerive(equals=true, toString=true)
-parcelable RegistrationInfo {
- /**
- * The operation ID.
- */
- int id;
-
- /**
- * The registration result.
- */
- int result;
-
- /**
- * The service name to be registered.
- */
- @utf8InCpp String serviceName;
-
- /**
- * The service type followed by the protocol, separated by a dot (e.g. "_ftp._tcp"). The service
- * type must be an underscore, followed by 1-15 characters, which may be letters, digits, or
- * hyphens. The transport protocol must be "_tcp" or "_udp". New service types should be
- * registered at <http://www.dns-sd.org/ServiceTypes.html>.
- */
- @utf8InCpp String registrationType;
-
- /**
- * The port on which the service accepts connections.
- */
- int port;
-
- /**
- * The txt record.
- */
- byte[] txtRecord;
-
- /**
- * The interface index on which to register the service. 0 indicates "all interfaces".
- */
- int interfaceIdx;
-}
diff --git a/common/netd/binder/android/net/mdns/aidl/ResolutionInfo.aidl b/common/netd/binder/android/net/mdns/aidl/ResolutionInfo.aidl
deleted file mode 100644
index 26e0cee7..00000000
--- a/common/netd/binder/android/net/mdns/aidl/ResolutionInfo.aidl
+++ /dev/null
@@ -1,92 +0,0 @@
-/*
- * Copyright (C) 2022 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package android.net.mdns.aidl;
-
-/**
- * Resolution service information.
- * This information combine all arguments that used by both request and callback.
- * Arguments are used by request:
- * - id
- * - serviceName
- * - registrationType
- * - domain
- * - interfaceIdx
- *
- * Arguments are used by callback:
- * - id
- * - port
- * - serviceFullName
- * - hostname
- * - txtRecord
- * - interfaceIdx
- * - result
- *
- * {@hide}
- */
-@JavaOnlyImmutable
-@JavaDerive(equals=true, toString=true)
-parcelable ResolutionInfo {
- /**
- * The operation ID.
- */
- int id;
-
- /**
- * The resolution result.
- */
- int result;
-
- /**
- * The service name to be resolved.
- */
- @utf8InCpp String serviceName;
-
- /**
- * The service type to be resolved.
- */
- @utf8InCpp String registrationType;
-
- /**
- * The service domain to be resolved.
- */
- @utf8InCpp String domain;
-
- /**
- * The resolved full service domain name, in the form <servicename>.<protocol>.<domain>.
- */
- @utf8InCpp String serviceFullName;
-
- /**
- * The target hostname of the machine providing the service.
- */
- @utf8InCpp String hostname;
-
- /**
- * The port on which connections are accepted for this service.
- */
- int port;
-
- /**
- * The service's txt record.
- */
- byte[] txtRecord;
-
- /**
- * The interface index on which to resolve the service. 0 indicates "all interfaces".
- */
- int interfaceIdx;
-}