-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instead of `pub use foo::*`, we should be explicitly define our public types. Signed-off-by: Gris Ge <[email protected]>
- Loading branch information
Showing
7 changed files
with
92 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
mod handle; | ||
pub use self::handle::*; | ||
|
||
mod add; | ||
pub use self::add::*; | ||
|
||
mod del; | ||
pub use self::del::*; | ||
|
||
mod get; | ||
pub use self::get::*; | ||
mod handle; | ||
|
||
pub use self::add::AddressAddRequest; | ||
pub use self::del::AddressDelRequest; | ||
pub use self::get::AddressGetRequest; | ||
pub use self::handle::AddressHandle; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,24 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
mod handle; | ||
pub use self::handle::*; | ||
|
||
mod add; | ||
pub use self::add::*; | ||
|
||
mod del; | ||
pub use self::del::*; | ||
|
||
mod get; | ||
pub use self::get::*; | ||
|
||
mod handle; | ||
mod property_add; | ||
mod property_del; | ||
mod set; | ||
pub use self::set::*; | ||
|
||
mod set_bond_port; | ||
pub use self::set_bond_port::*; | ||
|
||
mod property_add; | ||
pub use self::property_add::*; | ||
|
||
mod property_del; | ||
pub use self::property_del::*; | ||
pub use self::add::{ | ||
BondAddRequest, LinkAddRequest, QosMapping, VxlanAddRequest, | ||
}; | ||
pub use self::del::LinkDelRequest; | ||
pub use self::get::LinkGetRequest; | ||
pub use self::handle::LinkHandle; | ||
pub use self::property_add::LinkNewPropRequest; | ||
pub use self::property_del::LinkDelPropRequest; | ||
pub use self::set::LinkSetRequest; | ||
pub use self::set_bond_port::BondPortSetRequest; | ||
|
||
#[cfg(test)] | ||
mod test; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
mod handle; | ||
pub use self::handle::*; | ||
|
||
mod get; | ||
pub use self::get::*; | ||
|
||
mod add; | ||
pub use self::add::*; | ||
|
||
mod del; | ||
pub use self::del::*; | ||
mod get; | ||
mod handle; | ||
|
||
pub use self::add::NeighbourAddRequest; | ||
pub use self::del::NeighbourDelRequest; | ||
pub use self::get::NeighbourGetRequest; | ||
pub use self::handle::NeighbourHandle; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
mod handle; | ||
pub use self::handle::*; | ||
|
||
mod add; | ||
pub use self::add::*; | ||
|
||
mod builder; | ||
mod del; | ||
pub use self::del::*; | ||
|
||
mod get; | ||
pub use self::get::*; | ||
mod handle; | ||
|
||
mod builder; | ||
pub use self::add::RouteAddRequest; | ||
pub use self::builder::RouteMessageBuilder; | ||
pub use self::del::RouteDelRequest; | ||
pub use self::get::{IpVersion, RouteGetRequest}; | ||
pub use self::handle::RouteHandle; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
mod handle; | ||
pub use self::handle::*; | ||
|
||
mod add; | ||
pub use self::add::*; | ||
|
||
mod del; | ||
pub use self::del::*; | ||
|
||
mod get; | ||
pub use self::get::*; | ||
mod handle; | ||
|
||
pub use self::add::RuleAddRequest; | ||
pub use self::del::RuleDelRequest; | ||
pub use self::get::RuleGetRequest; | ||
pub use self::handle::RuleHandle; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
mod handle; | ||
pub use self::handle::*; | ||
|
||
mod get; | ||
pub use self::get::*; | ||
|
||
mod add_filter; | ||
mod add_qdisc; | ||
pub use self::add_qdisc::*; | ||
|
||
mod del_qdisc; | ||
pub use self::del_qdisc::*; | ||
|
||
mod add_filter; | ||
pub use self::add_filter::*; | ||
|
||
mod get; | ||
mod handle; | ||
#[cfg(test)] | ||
mod test; | ||
|
||
pub use self::add_filter::TrafficFilterNewRequest; | ||
pub use self::add_qdisc::QDiscNewRequest; | ||
pub use self::del_qdisc::QDiscDelRequest; | ||
pub use self::get::{ | ||
QDiscGetRequest, TrafficChainGetRequest, TrafficClassGetRequest, | ||
TrafficFilterGetRequest, | ||
}; | ||
pub use self::handle::{ | ||
QDiscHandle, TrafficChainHandle, TrafficClassHandle, TrafficFilterHandle, | ||
}; |