summaryrefslogtreecommitdiff
path: root/android/sdk.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2021-06-23 17:47:49 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2021-06-23 17:47:49 +0000
commit94b51488d9dcbb178847d18b46381c9073d3e7af (patch)
treed44fd0e3d6d54b7e104b6fcf574907b0dfa7a22f /android/sdk.go
parent91913e3e07cdd01d9e318d3cad5c6b06f241d5f6 (diff)
parent51227d875b1ae91cde5af5b5b463c93a56c79f94 (diff)
Merge "Output bootclasspath_fragment's fragments property to sdk snapshot"
Diffstat (limited to 'android/sdk.go')
-rw-r--r--android/sdk.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/android/sdk.go b/android/sdk.go
index 36c576d80..93beb6e21 100644
--- a/android/sdk.go
+++ b/android/sdk.go
@@ -300,6 +300,22 @@ type BpModule interface {
Name() string
}
+// BpPrintable is a marker interface that must be implemented by any struct that is added as a
+// property value.
+type BpPrintable interface {
+ bpPrintable()
+}
+
+// BpPrintableBase must be embedded within any struct that is added as a
+// property value.
+type BpPrintableBase struct {
+}
+
+func (b BpPrintableBase) bpPrintable() {
+}
+
+var _ BpPrintable = BpPrintableBase{}
+
// An individual member of the SDK, includes all of the variants that the SDK
// requires.
type SdkMember interface {