Added shared library support.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace ehs
|
||||
{
|
||||
class BaseMutex
|
||||
class EHS_LIB_IO BaseMutex
|
||||
{
|
||||
protected:
|
||||
bool initialized;
|
||||
|
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace ehs
|
||||
{
|
||||
class BaseOpen
|
||||
class EHS_LIB_IO BaseOpen
|
||||
{
|
||||
protected:
|
||||
Str_8 filePath;
|
||||
|
@@ -5,7 +5,7 @@
|
||||
|
||||
namespace ehs
|
||||
{
|
||||
class BaseSemaphore
|
||||
class EHS_LIB_IO BaseSemaphore
|
||||
{
|
||||
private:
|
||||
Str_8 name;
|
||||
|
@@ -5,7 +5,7 @@
|
||||
|
||||
namespace ehs
|
||||
{
|
||||
class BaseSystem
|
||||
class EHS_LIB_IO BaseSystem
|
||||
{
|
||||
public:
|
||||
static void OpenURI(const Str_8& uri);
|
||||
|
@@ -30,7 +30,7 @@ namespace ehs
|
||||
UInt_32 lowCount = 0;
|
||||
};
|
||||
|
||||
class CPU
|
||||
class EHS_LIB_IO CPU
|
||||
{
|
||||
private:
|
||||
#ifdef EHS_OS_LINUX
|
||||
|
@@ -5,7 +5,7 @@
|
||||
|
||||
namespace ehs
|
||||
{
|
||||
class FileSystem
|
||||
class EHS_LIB_IO FileSystem
|
||||
{
|
||||
public:
|
||||
static void SetWorkingDir(const Str_8& dir);
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
namespace ehs
|
||||
{
|
||||
class Mutex : public BaseMutex
|
||||
class EHS_LIB_IO Mutex : public BaseMutex
|
||||
{
|
||||
private:
|
||||
pthread_mutex_t hdl;
|
||||
|
@@ -5,7 +5,7 @@
|
||||
|
||||
namespace ehs
|
||||
{
|
||||
class Mutex : public BaseMutex
|
||||
class EHS_LIB_IO Mutex : public BaseMutex
|
||||
{
|
||||
private:
|
||||
HANDLE hdl;
|
||||
|
@@ -6,9 +6,9 @@
|
||||
#define EHS_FUNC __FUNCTION__
|
||||
#define EHS_LINE __LINE__
|
||||
|
||||
#if defined(EHS_EXPORT)
|
||||
#if defined(EHS_LIB_EXPORT)
|
||||
#define EHS_LIB_IO __declspec(dllexport)
|
||||
#elif defined(EHS_IMPORT)
|
||||
#elif defined(EHS_LIB_IMPORT)
|
||||
#define EHS_LIB_IO __declspec(dllimport)
|
||||
#else
|
||||
#define EHS_LIB_IO
|
||||
|
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace ehs
|
||||
{
|
||||
class Open : public BaseOpen
|
||||
class EHS_LIB_IO Open : public BaseOpen
|
||||
{
|
||||
private:
|
||||
void* hdl;
|
||||
|
@@ -1,16 +1,11 @@
|
||||
//
|
||||
// Created by karutoh on 11/14/23.
|
||||
//
|
||||
#pragma once
|
||||
|
||||
#ifndef OPEN_W32_H
|
||||
#define OPEN_W32_H
|
||||
#include "BaseOpen.h"
|
||||
|
||||
namespace ehs {
|
||||
namespace ehs
|
||||
{
|
||||
class EHS_LIB_IO Open : public BaseOpen
|
||||
{
|
||||
|
||||
class Open_W32 {
|
||||
|
||||
};
|
||||
|
||||
} // lwe
|
||||
|
||||
#endif //OPEN_W32_H
|
||||
};
|
||||
}
|
||||
|
@@ -8,7 +8,7 @@
|
||||
|
||||
namespace ehs
|
||||
{
|
||||
class Semaphore : public BaseSemaphore
|
||||
class EHS_LIB_IO Semaphore : public BaseSemaphore
|
||||
{
|
||||
private:
|
||||
sem_t hdl;
|
||||
|
@@ -6,7 +6,7 @@
|
||||
|
||||
namespace ehs
|
||||
{
|
||||
class Semaphore : public BaseSemaphore
|
||||
class EHS_LIB_IO Semaphore : public BaseSemaphore
|
||||
{
|
||||
private:
|
||||
HANDLE hdl;
|
||||
|
@@ -5,7 +5,7 @@
|
||||
|
||||
namespace ehs
|
||||
{
|
||||
class System : public BaseSystem
|
||||
class EHS_LIB_IO System : public BaseSystem
|
||||
{
|
||||
public:
|
||||
static void OpenURI(const Str_8& uri);
|
||||
|
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace ehs
|
||||
{
|
||||
class System : public BaseSystem
|
||||
class EHS_LIB_IO System : public BaseSystem
|
||||
{
|
||||
public:
|
||||
static void OpenURI(const Str_8& uri);
|
||||
|
@@ -20,7 +20,7 @@ namespace ehs
|
||||
typedef UInt_64 THandle;
|
||||
#endif
|
||||
|
||||
class Thread
|
||||
class EHS_LIB_IO Thread
|
||||
{
|
||||
private:
|
||||
static UInt_32 mainId;
|
||||
|
@@ -5,7 +5,7 @@
|
||||
|
||||
namespace ehs
|
||||
{
|
||||
class User
|
||||
class EHS_LIB_IO User
|
||||
{
|
||||
public:
|
||||
static void GetId(UInt_32* const real, UInt_32* const effective, UInt_32* const saved);
|
||||
|
Reference in New Issue
Block a user