Gabriele Contini
2020-04-25 d9f49d39ad5a50dc3e8810c78fe9b6bd89d1e274
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 * network.hpp
 *
 *  Created on: Feb 8, 2020
 *      Author: devel
 */
 
#ifndef SRC_LIBRARY_OS_NETWORK_HPP_
#define SRC_LIBRARY_OS_NETWORK_HPP_
#include <stdlib.h>
#include <vector>
 
#include "../base/base.h"
 
namespace license {
namespace os {
 
typedef enum { IFACE_TYPE_ETHERNET, IFACE_TYPE_WIRELESS } IFACE_TYPE;
 
typedef struct {
    int id;
    char description[1024];
    unsigned char mac_address[8];
    unsigned char ipv4_address[4];
    IFACE_TYPE type;
} OsAdapterInfo;
 
FUNCTION_RETURN getAdapterInfos(std::vector<OsAdapterInfo>& adapterInfos);
 
}  // namespace os
}  // namespace license
#endif /* SRC_LIBRARY_OS_NETWORK_HPP_ */