ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

winber.h
Go to the documentation of this file.
00001 /*
00002   winber.h - Header file for the Windows LDAP Basic Encoding Rules API
00003 
00004   Written by Filip Navara <xnavara@volny.cz>
00005 
00006   References:
00007     The C LDAP Application Program Interface
00008     http://www.watersprings.org/pub/id/draft-ietf-ldapext-ldap-c-api-05.txt
00009 
00010     Lightweight Directory Access Protocol Reference
00011     http://msdn.microsoft.com/library/en-us/netdir/ldap/ldap_reference.asp
00012 
00013   This library is distributed in the hope that it will be useful,
00014   but WITHOUT ANY WARRANTY; without even the implied warranty of
00015   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00016 */
00017 
00018 #ifndef _WINBER_H
00019 #define _WINBER_H
00020 
00021 #ifdef __cplusplus
00022 extern "C" {
00023 #endif
00024 
00025 #ifndef WINBERAPI
00026 #define WINBERAPI DECLSPEC_IMPORT
00027 #endif
00028 
00029 typedef struct berelement BerElement;
00030 typedef ULONG ber_len_t;
00031 #include <pshpack4.h>
00032 typedef struct berval {
00033     ber_len_t bv_len;
00034     char *bv_val;
00035 } BerValue, LDAP_BERVAL, *PLDAP_BERVAL, BERVAL, *PBERVAL;
00036 #include <poppack.h>
00037 
00038 typedef ULONG ber_tag_t;
00039 typedef INT ber_int_t;
00040 typedef UINT ber_uint_t;
00041 typedef INT ber_slen_t;
00042 
00043 #define LBER_ERROR ((ber_tag_t)-1)
00044 #define LBER_DEFAULT ((ber_tag_t)-1)
00045 #define LBER_USE_DER 0x01
00046 
00047 WINBERAPI BerElement *ber_init(const BerValue*);
00048 WINBERAPI int ber_printf(BerElement*,const char*,...);
00049 WINBERAPI int ber_flatten(BerElement*,BerValue**);
00050 WINBERAPI ber_tag_t ber_scanf(BerElement*,const char*,...);
00051 WINBERAPI ber_tag_t ber_peek_tag(BerElement*,ber_len_t*);
00052 WINBERAPI ber_tag_t ber_skip_tag(BerElement*,ber_len_t*);
00053 WINBERAPI ber_tag_t ber_first_element(BerElement*,ber_len_t*,char**);
00054 WINBERAPI ber_tag_t ber_next_element(BerElement*,ber_len_t*,char*);
00055 WINBERAPI void ber_bvfree(BerValue*);
00056 WINBERAPI void ber_bvecfree(BerValue**);
00057 WINBERAPI void ber_free(BerElement*,int);
00058 WINBERAPI BerValue *ber_bvdup(BerValue*);
00059 WINBERAPI BerElement *ber_alloc_t(int);
00060 
00061 #ifdef __cplusplus
00062 }
00063 #endif
00064 #endif /* _WINBER_H */

Generated on Sun May 27 2012 04:32:35 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.