Home | History | Annotate | Download | only in include
      1 /**
      2  * This file has no copyright assigned and is placed in the Public Domain.
      3  * This file is part of the mingw-w64 runtime package.
      4  * No warranty is given; refer to the file DISCLAIMER.PD within this package.
      5  */
      6 #ifndef _WINBER_DEFINED_
      7 #define _WINBER_DEFINED_
      8 
      9 #include "winldap.h"
     10 
     11 #ifdef __cplusplus
     12 extern "C" {
     13 #endif
     14 
     15 #ifndef WINBERAPI
     16 #define WINBERAPI DECLSPEC_IMPORT
     17 #endif
     18 
     19 #ifndef BERAPI
     20 #define BERAPI __cdecl
     21 #endif
     22 
     23 #define LBER_ERROR __MSABI_LONG(0xffffffff)
     24 #define LBER_DEFAULT __MSABI_LONG(0xffffffff)
     25 
     26   typedef unsigned int ber_tag_t;
     27   typedef int ber_int_t;
     28   typedef unsigned int ber_uint_t;
     29   typedef int ber_slen_t;
     30 
     31   WINBERAPI BerElement *BERAPI ber_init(BERVAL *pBerVal);
     32   WINBERAPI VOID BERAPI ber_free(BerElement *pBerElement,INT fbuf);
     33   WINBERAPI VOID BERAPI ber_bvfree(BERVAL *pBerVal);
     34   WINBERAPI VOID BERAPI ber_bvecfree(PBERVAL *pBerVal);
     35   WINBERAPI BERVAL *BERAPI ber_bvdup(BERVAL *pBerVal);
     36   WINBERAPI BerElement *BERAPI ber_alloc_t(INT options);
     37   WINBERAPI ULONG BERAPI ber_skip_tag(BerElement *pBerElement,ULONG *pLen);
     38   WINBERAPI ULONG BERAPI ber_peek_tag(BerElement *pBerElement,ULONG *pLen);
     39   WINBERAPI ULONG BERAPI ber_first_element(BerElement *pBerElement,ULONG *pLen,CHAR **ppOpaque);
     40   WINBERAPI ULONG BERAPI ber_next_element(BerElement *pBerElement,ULONG *pLen,CHAR *opaque);
     41   WINBERAPI INT BERAPI ber_flatten(BerElement *pBerElement,PBERVAL *pBerVal);
     42   WINBERAPI INT BERAPI ber_printf(BerElement *pBerElement,PCHAR fmt,...);
     43   WINBERAPI ULONG BERAPI ber_scanf(BerElement *pBerElement,PCHAR fmt,...);
     44 
     45 #ifdef __cplusplus
     46 }
     47 #endif
     48 #endif
     49