summaryrefslogtreecommitdiff
path: root/transport/base
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2017-01-17 12:58:02 -0800
committerYifan Hong <elsk@google.com>2017-01-17 12:58:02 -0800
commit1f6b31425030bf4d9527b833ac865e53b64172b5 (patch)
tree6fbc592a83fe5a2dc70ae59d53a7bff9fd4df860 /transport/base
parentb35aa248b85c2a22ce485ab2d322983c793dcc81 (diff)
downloadlibhidl-1f6b31425030bf4d9527b833ac865e53b64172b5.tar.gz
Reorder methods for IBase to conform to call enums.
In system/tools/hidl/Interface.cpp, interfaceDescriptor is right after interfaceChain. Test: mma Change-Id: I2954d55cb0fd02ea7d5acaf15301ae3318da3075
Diffstat (limited to 'transport/base')
-rw-r--r--transport/base/1.0/IBase.hal29
1 files changed, 15 insertions, 14 deletions
diff --git a/transport/base/1.0/IBase.hal b/transport/base/1.0/IBase.hal
index 26b67c6..e57759d 100644
--- a/transport/base/1.0/IBase.hal
+++ b/transport/base/1.0/IBase.hal
@@ -46,6 +46,21 @@ interface IBase {
interfaceChain() generates (vec<string> descriptors);
/*
+ * Provides run-time type information for this object.
+ * For example, for the following interface definition:
+ * package android.hardware.foo@1.0;
+ * interface IParent {};
+ * interface IChild extends IParent {};
+ * Calling interfaceDescriptor on an IChild object will yield
+ * "android.hardware.foo@1.0::IChild"
+ *
+ * @return descriptor a descriptor of the run-time type of the
+ * object (the first element of the vector returned by
+ * interfaceChain())
+ */
+ interfaceDescriptor() generates (string descriptor);
+
+ /*
* This method notifies the interface that one or more system properties
* have changed. The default implementation calls
* (C++) report_sysprop_change() in libcutils or
@@ -78,18 +93,4 @@ interface IBase {
*/
oneway setHALInstrumentation();
- /*
- * Provides run-time type information for this object.
- * For example, for the following interface definition:
- * package android.hardware.foo@1.0;
- * interface IParent {};
- * interface IChild extends IParent {};
- * Calling interfaceChain on an IChild object will yield
- * "android.hardware.foo@1.0::IChild"
- *
- * @return descriptor a descriptor of the run-time type of the
- * object (the first element of the vector returned by
- * interfaceChain())
- */
- interfaceDescriptor() generates (string descriptor);
};