open-license-manager
2014-07-28 8c14cb84c5f4a38dc7873d6a254bcb8c33f8a603
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
 * os-dependent.hpp
 *
 *  Created on: Mar 29, 2014
 *      Author: devel
 */
 
#ifndef OS_DEPENDENT_HPP_
#define OS_DEPENDENT_HPP_
 
#ifdef __cplusplus
extern "C" {
#endif
 
#include "../base/base.h"
#include <stddef.h>
#include <stdbool.h>
 
typedef enum {
    NONE, VMWARE
} VIRTUALIZATION;
 
typedef struct {
    int id;
    char description[1024];
    unsigned char mac_address[6];
    unsigned char ipv4_address[4];
} AdapterInfo;
 
typedef struct {
    int id;
    char device[255];
    unsigned char disk_sn[8];
    char label[255];
    bool preferred;
} DiskInfo;
 
FUNCTION_RETURN getAdapterInfos(AdapterInfo * adapterInfos,
        size_t * adapter_info_size);
FUNCTION_RETURN getDiskInfos(DiskInfo * diskInfos, size_t * disk_info_size);
FUNCTION_RETURN getUserHomePath(char[MAX_PATH]);
VIRTUALIZATION getVirtualization();
void os_initialize();
 
#ifdef __cplusplus
}
#endif
 
#endif /* OS_DEPENDENT_HPP_ */