defines hold function & macros for the parts of the library to work More...
#include <libos/DataType.h>

Go to the source code of this file.
Macros | |
| #define | EXPORT_DLL |
| on windows some extra syntax is required for the dll to work properly so that is dose not affect the platforms we check More... | |
| #define | EXPORT_CPP_DLL |
| MSVC to gen dll .lib bindings. | |
| #define | _in_ |
| in macromatic suger to make headers easier to read | |
| #define | _out_ |
| out macromatic suger to make headers easier to read | |
| #define | LOS_MAKE_ABI_VERSION(variant, major, minor, patch) ((((uint32_t)(variant)) << 29U) | (((uint32_t)(major)) << 22U) | (((uint32_t)(minor)) << 12U) | ((uint32_t)(patch))) |
| a quick dirty macro to make lib versions like vulkan More... | |
| #define | LOS_ABI_VERSION_1_1 LOS_MAKE_ABI_VERSION(0, 1, 1, 0) |
| defines that this header set is designed for v1.1 at a minimumum for checks | |
Functions | |
| EXPORT_DLL void | libOSInit () |
| due to some of the platforms that libOS abstracts on some platforms some !!!IMPORTANT!!! platform specific initialization code for the library it work | |
| EXPORT_DLL void | libOSCleanUp () |
| due to some of the platforms that libOS abstracts on some platforms some !!!IMPORTANT!!! platform specific clean up code for the library it do close the app safely | |
| EXPORT_DLL uint32_t | libOSABIVersion () |
| due to some functions may not be avaliable between version this is used tp check at runtime | |
| EXPORT_DLL void | losUnicodeToBytes (_in_ const wchar_t *src, _out_ char **dest) |
| converts Unicode String to an byte array | |
| EXPORT_DLL void | losBytesToUnicode (_in_ const char *src, _out_ wchar_t **dest) |
| converts an byte array to Unicode String | |
defines hold function & macros for the parts of the library to work
| #define EXPORT_DLL |
on windows some extra syntax is required for the dll to work properly so that is dose not affect the platforms we check
makes sure c++ dose not mangle names
| #define LOS_MAKE_ABI_VERSION | ( | variant, | |
| major, | |||
| minor, | |||
| patch | |||
| ) | ((((uint32_t)(variant)) << 29U) | (((uint32_t)(major)) << 22U) | (((uint32_t)(minor)) << 12U) | ((uint32_t)(patch))) |
a quick dirty macro to make lib versions like vulkan
Importation of libraries