summaryrefslogtreecommitdiff
path: root/transport/memory
diff options
context:
space:
mode:
authorHoward Chen <howardsoc@google.com>2017-12-02 15:21:19 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-12-02 15:21:19 +0000
commitbc06f24c16d8ba449a5427a5b8b7c6b95daae64a (patch)
treef8bf434f14aede695cac484e9cb698469888dfcf /transport/memory
parent75d6b0dd3b3897edc6b7300e55a4b37b588d1f57 (diff)
parent23e163b58080f43b7029d75afce1bb11086c4094 (diff)
downloadlibhidl-bc06f24c16d8ba449a5427a5b8b7c6b95daae64a.tar.gz
Merge "Add IMemoryToken and the HidlMemoryToken"
Diffstat (limited to 'transport/memory')
-rw-r--r--transport/memory/token/1.0/Android.bp18
-rw-r--r--transport/memory/token/1.0/IMemoryToken.hal27
2 files changed, 45 insertions, 0 deletions
diff --git a/transport/memory/token/1.0/Android.bp b/transport/memory/token/1.0/Android.bp
new file mode 100644
index 0000000..e6797d4
--- /dev/null
+++ b/transport/memory/token/1.0/Android.bp
@@ -0,0 +1,18 @@
+// This file is autogenerated by hidl-gen -Landroidbp.
+
+hidl_interface {
+ name: "android.hidl.memory.token@1.0",
+ root: "android.hidl",
+ vndk: {
+ enabled: true,
+ support_system_process: true,
+ },
+ srcs: [
+ "IMemoryToken.hal",
+ ],
+ interfaces: [
+ "android.hidl.base@1.0",
+ ],
+ gen_java: false,
+}
+
diff --git a/transport/memory/token/1.0/IMemoryToken.hal b/transport/memory/token/1.0/IMemoryToken.hal
new file mode 100644
index 0000000..6507cee
--- /dev/null
+++ b/transport/memory/token/1.0/IMemoryToken.hal
@@ -0,0 +1,27 @@
+/*
+ * Copyright (C) 2016 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.hidl.memory.token@1.0;
+
+/**
+ * Interface which composes shared memory
+ */
+interface IMemoryToken {
+ /**
+ * The returned instance of memory must always be a reference to the same memory.
+ * @return mem Memory referenced by this token.
+ */
+ get() generates (memory mem);
+};