Skip to content

Commit 379e00a

Browse files
verios-googlecopybara-github
authored andcommitted
Expose GetIncomingTableReferences in references.h
PiperOrigin-RevId: 826117153
1 parent 2905164 commit 379e00a

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

p4_pdpi/references.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,8 @@ OutgoingConcreteTableReferences(const IrTableReference& reference_info,
524524
return result;
525525
}
526526

527+
// Returns incoming table references from `info` that are associated with
528+
// `entity`. Returns error if `entity` is unsupported or unknown.
527529
absl::StatusOr<google::protobuf::RepeatedPtrField<IrTableReference>>
528530
GetIncomingTableReferences(const IrP4Info& info, const p4::v1::Entity& entity) {
529531
if (entity.has_table_entry()) {

p4_pdpi/references.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,6 @@ UnsatisfiedOutgoingReferences(const std::vector<::p4::v1::Entity>& pi_entities,
121121
absl::StatusOr<google::protobuf::RepeatedPtrField<IrTableReference>>
122122
GetOutgoingTableReferences(const IrP4Info& info, const p4::v1::Entity& entity);
123123

124-
// Returns incoming table references from `info` that are associated with
125-
// `entity`. Returns error if `entity` is unsupported or unknown.
126-
absl::StatusOr<google::protobuf::RepeatedPtrField<IrTableReference>>
127-
GetIncomingTableReferences(const IrP4Info& info, const p4::v1::Entity& entity);
128-
129124
// Reference Field operators.
130125
bool operator==(const ConcreteFieldReference& lhs,
131126
const ConcreteFieldReference& rhs);

0 commit comments

Comments
 (0)