Add function to parse pi number from hostname
Change-Id: Ie3f01d98e368816a3e58abe3d7639d4243a44012
diff --git a/aos/network/team_number.h b/aos/network/team_number.h
index 618affb..91a61f9 100644
--- a/aos/network/team_number.h
+++ b/aos/network/team_number.h
@@ -24,10 +24,14 @@
// Guaranteed to be safe to call during static initialization time.
void OverrideTeamNumber(uint16_t team);
+// Returns the pi number for a pi formated hostname. pi-team#-pi# (pi-971-5)
+std::optional<uint16_t> ParsePiNumber(const std::string &hostname);
+
namespace team_number_internal {
std::optional<uint16_t> ParseRoborioTeamNumber(const std::string &hostname);
+// Returns the team number for a pi formated hostname. pi-team#-pi#
std::optional<uint16_t> ParsePiTeamNumber(const std::string &hostname);
} // namespace team_number_internal