open-license-manager
2014-10-13 62258ba3b4737432a95c3af8d0e03ed3fb7953e7
src/library/os/os.h
@@ -2,7 +2,7 @@
 * os-dependent.hpp
 *
 *  Created on: Mar 29, 2014
 *      Author: devel
 *
 */
#ifndef OS_DEPENDENT_HPP_
@@ -14,14 +14,18 @@
#include "../base/base.h"
#include <stddef.h>
//definition of size_t
#include <stdlib.h>
#ifdef __unix__
#include <stdbool.h>
#endif
typedef enum {
   NONE, VMWARE
} VIRTUALIZATION;
typedef enum {
   ETHERNET, WIRELESS
   IFACE_TYPE_ETHERNET, IFACE_TYPE_WIRELESS
} IFACE_TYPE;
typedef struct {
@@ -44,6 +48,7 @@
      size_t * adapter_info_size);
FUNCTION_RETURN getDiskInfos(DiskInfo * diskInfos, size_t * disk_info_size);
FUNCTION_RETURN getUserHomePath(char[MAX_PATH]);
FUNCTION_RETURN getModuleName(char buffer[MAX_PATH]);
FUNCTION_RETURN getCpuId(unsigned char identifier[6]);
FUNCTION_RETURN getMachineName(unsigned char identifier[6]);
/**
@@ -68,6 +73,8 @@
VIRTUALIZATION getVirtualization();
void os_initialize();
FUNCTION_RETURN verifySignature(const char* stringToVerify, const char* signatureB64);
#ifdef __cplusplus
}
#endif