blob: 149cc4379cebc4ecc965f24f87ee5b200163ca8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#ifndef GETIF_INTERFACE_READER_H
#define GETIF_INTERFACE_READER_H
#include <string>
#include <vector>
#include <optional>
#include "interface.hpp"
#include "interface_read_error.hpp"
class interface_reader {
public:
interface_reader(std::vector<std::string> interfaces);
std::optional<interface_read_error> read_interfaces(void);
private:
std::vector<std::string> interface_names;
std::vector<interface> interfaces;
};
#endif // GETIF_INTERFACE_READER_H
|