mirror of
https://github.com/Kbz-8/Pulse.git
synced 2026-01-11 15:33:34 +00:00
starting merge
This commit is contained in:
@@ -157,6 +157,35 @@ typedef struct PulseComputePassHandler
|
||||
PulseThreadID PulseGetThreadID();
|
||||
void PulseSleep(int32_t ms);
|
||||
|
||||
#ifdef KANEL_CLI_PLAT_WINDOWS
|
||||
typedef const char* LPCSTR;
|
||||
typedef struct HINSTANCE__* HINSTANCE;
|
||||
typedef HINSTANCE HMODULE;
|
||||
#if defined(_MINWINDEF_)
|
||||
/* minwindef.h defines FARPROC, and attempting to redefine it may conflict with -Wstrict-prototypes */
|
||||
#elif defined(_WIN64)
|
||||
typedef __int64 (__stdcall* FARPROC)(void);
|
||||
#else
|
||||
typedef int (__stdcall* FARPROC)(void);
|
||||
#endif
|
||||
#else
|
||||
#include <dlfcn.h>
|
||||
#endif
|
||||
|
||||
#ifdef PULSE_PLAT_WINDOWS
|
||||
typedef HMODULE PulseLibModule;
|
||||
#else
|
||||
typedef void* PulseLibModule;
|
||||
#endif
|
||||
|
||||
typedef void(*PFN_PulseLibFunction)(void);
|
||||
|
||||
#define PULSE_NULL_LIB_MODULE PULSE_NULLPTR
|
||||
|
||||
PulseLibModule PulseLoadLibrary(const char* libpath); // Returns PULSE_NULL_LIB_MODULE in case of failure
|
||||
PFN_PulseLibFunction PulseLoadSymbolFromLibModule(PulseLibModule module, const char* symbol);
|
||||
void PulseUnloadLibrary(PulseLibModule module);
|
||||
|
||||
void PulseSetInternalError(PulseErrorType error);
|
||||
|
||||
void PulseLogBackend(PulseBackend backend, PulseDebugMessageSeverity type, const char* message, const char* file, const char* function, int line, ...);
|
||||
|
||||
Reference in New Issue
Block a user