summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Deymo2016-09-30 21:00:40 -0500
committerConnor O'Brien2016-10-18 13:19:03 -0500
commit6a9e89a6e6fef968e1b2617397ec49d73ae30b81 (patch)
tree8cfe64c63d6f92e657e5723f6c5ade3eb885e36c /boot/1.0/types.hal
parent0560c4f73c43108e8cfd508138f166f69d49d1b5 (diff)
downloadplatform-hardware-interfaces-6a9e89a6e6fef968e1b2617397ec49d73ae30b81.tar.gz
platform-hardware-interfaces-6a9e89a6e6fef968e1b2617397ec49d73ae30b81.tar.xz
platform-hardware-interfaces-6a9e89a6e6fef968e1b2617397ec49d73ae30b81.zip
boot_control: Define the boot_control HIDL interface.
Bug: 31864052 Change-Id: I9222b140ff51c4d3846b86b03719e2c8e9b7fe47
Diffstat (limited to 'boot/1.0/types.hal')
-rw-r--r--boot/1.0/types.hal41
1 files changed, 41 insertions, 0 deletions
diff --git a/boot/1.0/types.hal b/boot/1.0/types.hal
new file mode 100644
index 00000000..87f61099
--- /dev/null
+++ b/boot/1.0/types.hal
@@ -0,0 +1,41 @@
1/*
2 * Copyright 2016 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package android.hardware.boot@1.0;
18
19/**
20 * A command result encapsulating whether the command succeeded and
21 * an error string.
22 */
23struct CommandResult {
24 bool success;
25 string errMsg;
26};
27
28/**
29 * An identifier for a slot number.
30 */
31typedef uint32_t Slot;
32
33/**
34 * A result encapsulating whether a function returned true, false or
35 * failed due to an invalid slot number
36 */
37enum BoolResult : int32_t {
38 FALSE = 0,
39 TRUE = 1,
40 INVALID_SLOT = -1
41};