diff options
Diffstat (limited to 'libwifi_system/include/wifi_system/interface_tool.h')
-rw-r--r-- | libwifi_system/include/wifi_system/interface_tool.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libwifi_system/include/wifi_system/interface_tool.h b/libwifi_system/include/wifi_system/interface_tool.h index 2e58379a1..aabdd9a52 100644 --- a/libwifi_system/include/wifi_system/interface_tool.h +++ b/libwifi_system/include/wifi_system/interface_tool.h @@ -25,6 +25,10 @@ class InterfaceTool { InterfaceTool() = default; virtual ~InterfaceTool() = default; + // Get the interface state of |if_name|. + // Returns true iff the interface is up. + virtual bool GetUpState(const char* if_name); + // Set the interface named by |if_name| up or down. // Returns true on success, false otherwise. virtual bool SetUpState(const char* if_name, bool request_up); |