internal.h 516 B

123456789101112131415161718192021
  1. #ifndef _TOOLKIT_INTERNAL_H_
  2. #define _TOOLKIT_INTERNAL_H_
  3. #include "winapi.h"
  4. #include <stdint.h>
  5. int toolkit__convert_utf16_to_utf8(const WCHAR* utf16, int utf16len, char** utf8);
  6. int toolkit__convert_utf8_to_utf16(const char* utf8, int utf8len, WCHAR** utf16);
  7. void toolkit__once_init(void);
  8. uint64_t toolkit__hrtime(double scale);
  9. void toolkit_fatal_error(const int errorno, const char* syscall);
  10. /*
  11. * Winapi and ntapi utility functions
  12. */
  13. void toolkit_winapi_init(void);
  14. #endif /*_TOOLKIT_INTERNAL_H_*/