Defines.h File Reference

defines hold function & macros for the parts of the library to work More...

#include <libos/DataType.h>
Include dependency graph for Defines.h:
This graph shows which files directly or indirectly include this file:

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
 

Detailed Description

defines hold function & macros for the parts of the library to work

Author
Luke Shore luket.nosp@m.hemo.nosp@m.dded@.nosp@m.gmai.nosp@m.l.com
Version
1.1
Date
05/12/2022

Macro Definition Documentation

◆ EXPORT_DLL

#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

◆ LOS_MAKE_ABI_VERSION

#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