summaryrefslogtreecommitdiffstats
path: root/src/interface.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/interface.hpp')
-rw-r--r--src/interface.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/interface.hpp b/src/interface.hpp
index 76a86d2..f8dd545 100644
--- a/src/interface.hpp
+++ b/src/interface.hpp
@@ -2,14 +2,15 @@
#define GETIF_INTERFACE_H
#include <string>
+#include <optional>
class interface {
public:
- interface(std::string name, std::string addr);
+ interface(std::string name, std::optional<std::string> addr);
private:
std::string name;
- std::string addr;
+ std::optional<std::string> addr;
};
#endif // GETIF_INTERFACE_H