summaryrefslogtreecommitdiffhomepage
path: root/pkg/ilist/BUILD
diff options
context:
space:
mode:
authorAdin Scannell <ascannell@google.com>2018-09-04 09:18:00 -0700
committerShentubot <shentubot@google.com>2018-09-04 09:19:11 -0700
commitc09f9acd7c7a2e85472b1ee47bf26f7c89ded43e (patch)
tree27965206558459ba7505053cbfe9fd3d0e7167fb /pkg/ilist/BUILD
parent66c03b3dd79c45014da19f36973a85290e9a4458 (diff)
Distinguish Element and Linker for ilist.
Furthermore, allow for the specification of an ElementMapper. This allows a single "Element" type to exist on multiple inline lists, and work without having to embed the entry type. This is a requisite change for supporting a per-Inode list of Dirents. PiperOrigin-RevId: 211467497 Change-Id: If2768999b43e03fdaecf8ed15f435fe37518d163
Diffstat (limited to 'pkg/ilist/BUILD')
-rw-r--r--pkg/ilist/BUILD7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkg/ilist/BUILD b/pkg/ilist/BUILD
index b26a39132..1bd71b800 100644
--- a/pkg/ilist/BUILD
+++ b/pkg/ilist/BUILD
@@ -28,6 +28,7 @@ go_template_instance(
prefix = "direct",
template = ":generic_list",
types = {
+ "Element": "*direct",
"Linker": "*direct",
},
)
@@ -47,6 +48,10 @@ go_template(
srcs = [
"list.go",
],
- opt_types = ["Linker"],
+ opt_types = [
+ "Element",
+ "ElementMapper",
+ "Linker",
+ ],
visibility = ["//visibility:public"],
)