winber.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /**
  2. * This file is part of the mingw-w64 runtime package.
  3. * No warranty is given; refer to the file DISCLAIMER within this package.
  4. */
  5. #ifndef _WINBER_DEFINED_
  6. #define _WINBER_DEFINED_
  7. #include <winapifamily.h>
  8. #if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. #ifndef _WINBER_
  13. #define WINBERAPI DECLSPEC_IMPORT
  14. #else
  15. #define WINBERAPI
  16. #endif
  17. #ifndef BERAPI
  18. #define BERAPI __cdecl
  19. #endif
  20. #define LBER_ERROR __MSABI_LONG(0xffffffff)
  21. #define LBER_DEFAULT __MSABI_LONG(0xffffffff)
  22. typedef unsigned int ber_tag_t;
  23. typedef int ber_int_t;
  24. typedef unsigned int ber_uint_t;
  25. typedef unsigned int ber_len_t;
  26. typedef int ber_slen_t;
  27. WINBERAPI BerElement *BERAPI ber_init (BERVAL *pBerVal);
  28. WINBERAPI VOID BERAPI ber_free (BerElement *pBerElement, INT fbuf);
  29. WINBERAPI VOID BERAPI ber_bvfree (BERVAL *pBerVal);
  30. WINBERAPI VOID BERAPI ber_bvecfree (PBERVAL *pBerVal);
  31. WINBERAPI BERVAL *BERAPI ber_bvdup (BERVAL *pBerVal);
  32. WINBERAPI BerElement *BERAPI ber_alloc_t (INT options);
  33. WINBERAPI ULONG BERAPI ber_skip_tag (BerElement *pBerElement, ULONG *pLen);
  34. WINBERAPI ULONG BERAPI ber_peek_tag (BerElement *pBerElement, ULONG *pLen);
  35. WINBERAPI ULONG BERAPI ber_first_element (BerElement *pBerElement, ULONG *pLen, CHAR **ppOpaque);
  36. WINBERAPI ULONG BERAPI ber_next_element (BerElement *pBerElement, ULONG *pLen, CHAR *opaque);
  37. WINBERAPI INT BERAPI ber_flatten (BerElement *pBerElement, PBERVAL *pBerVal);
  38. WINBERAPI INT BERAPI ber_printf (BerElement *pBerElement, PSTR fmt,...);
  39. WINBERAPI ULONG BERAPI ber_scanf (BerElement *pBerElement, PSTR fmt,...);
  40. #ifdef __cplusplus
  41. }
  42. #endif
  43. #endif
  44. #endif