ua_util_internal.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this
  3. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  4. *
  5. * Copyright 2014-2017 (c) Fraunhofer IOSB (Author: Julius Pfrommer)
  6. * Copyright 2014, 2017 (c) Florian Palm
  7. * Copyright 2015 (c) LEvertz
  8. * Copyright 2015-2016 (c) Sten Grüner
  9. * Copyright 2015 (c) Chris Iatrou
  10. * Copyright 2015-2016 (c) Oleksiy Vasylyev
  11. * Copyright 2017 (c) Stefan Profanter, fortiss GmbH
  12. */
  13. #ifndef UA_UTIL_H_
  14. #define UA_UTIL_H_
  15. #define UA_INTERNAL
  16. #include <open62541/types.h>
  17. #include <open62541/util.h>
  18. _UA_BEGIN_DECLS
  19. /* Macro-Expand for MSVC workarounds */
  20. #define UA_MACRO_EXPAND(x) x
  21. /* Integer Shortnames
  22. * ------------------
  23. * These are not exposed on the public API, since many user-applications make
  24. * the same definitions in their headers. */
  25. typedef UA_Byte u8;
  26. typedef UA_SByte i8;
  27. typedef UA_UInt16 u16;
  28. typedef UA_Int16 i16;
  29. typedef UA_UInt32 u32;
  30. typedef UA_Int32 i32;
  31. typedef UA_UInt64 u64;
  32. typedef UA_Int64 i64;
  33. typedef UA_StatusCode status;
  34. /* Utility Functions
  35. * ----------------- */
  36. #ifdef UA_DEBUG_DUMP_PKGS
  37. void UA_EXPORT UA_dump_hex_pkg(UA_Byte* buffer, size_t bufferLen);
  38. #endif
  39. _UA_END_DECLS
  40. #endif /* UA_UTIL_H_ */