From 484e8e28b97f46d02fc5c167d4d5eb66e7f382d9 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Fri, 2 Sep 2005 11:09:14 +0000 Subject: [PATCH] Fix the build without openldap headers. --- dlls/wldap32/misc.c | 12 ++++++++---- dlls/wldap32/winldap_private.h | 13 +++++++++---- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/dlls/wldap32/misc.c b/dlls/wldap32/misc.c index 044835aff4d..785887f5c69 100644 --- a/dlls/wldap32/misc.c +++ b/dlls/wldap32/misc.c @@ -125,7 +125,8 @@ ULONG WLDAP32_ldap_count_references( WLDAP32_LDAP *ld, WLDAP32_LDAPMessage *res return ret; } -PCHAR ldap_first_attributeA( WLDAP32_LDAP *ld, WLDAP32_LDAPMessage *entry, BerElement** ptr ) +PCHAR ldap_first_attributeA( WLDAP32_LDAP *ld, WLDAP32_LDAPMessage *entry, + WLDAP32_BerElement** ptr ) { PCHAR ret = NULL; #ifdef HAVE_LDAP @@ -143,7 +144,8 @@ PCHAR ldap_first_attributeA( WLDAP32_LDAP *ld, WLDAP32_LDAPMessage *entry, BerEl return ret; } -PWCHAR ldap_first_attributeW( WLDAP32_LDAP *ld, WLDAP32_LDAPMessage *entry, BerElement** ptr ) +PWCHAR ldap_first_attributeW( WLDAP32_LDAP *ld, WLDAP32_LDAPMessage *entry, + WLDAP32_BerElement** ptr ) { PWCHAR ret = NULL; #ifdef HAVE_LDAP @@ -211,7 +213,8 @@ ULONG WLDAP32_ldap_msgfree( WLDAP32_LDAPMessage *res ) return ret; } -PCHAR ldap_next_attributeA( WLDAP32_LDAP *ld, WLDAP32_LDAPMessage *entry, BerElement *ptr ) +PCHAR ldap_next_attributeA( WLDAP32_LDAP *ld, WLDAP32_LDAPMessage *entry, + WLDAP32_BerElement *ptr ) { PCHAR ret = NULL; #ifdef HAVE_LDAP @@ -229,7 +232,8 @@ PCHAR ldap_next_attributeA( WLDAP32_LDAP *ld, WLDAP32_LDAPMessage *entry, BerEle return ret; } -PWCHAR ldap_next_attributeW( WLDAP32_LDAP *ld, WLDAP32_LDAPMessage *entry, BerElement *ptr ) +PWCHAR ldap_next_attributeW( WLDAP32_LDAP *ld, WLDAP32_LDAPMessage *entry, + WLDAP32_BerElement *ptr ) { PWCHAR ret = NULL; #ifdef HAVE_LDAP diff --git a/dlls/wldap32/winldap_private.h b/dlls/wldap32/winldap_private.h index c9bd0c21a1a..c6ae029570f 100644 --- a/dlls/wldap32/winldap_private.h +++ b/dlls/wldap32/winldap_private.h @@ -43,6 +43,11 @@ typedef enum { WLDAP32_LDAP_REFERRAL_LIMIT_EXCEEDED = 0x61 } LDAP_RETCODE; +typedef struct berelement +{ + PCHAR opaque; +} WLDAP32_BerElement; + #define LDAP_OPT_THREAD_FN_PTRS 0x05 #define LDAP_OPT_REBIND_FN 0x06 #define LDAP_OPT_REBIND_ARG 0x07 @@ -286,8 +291,8 @@ ULONG ldap_extended_operation_sA(WLDAP32_LDAP*,PCHAR,struct WLDAP32_berval*,PLDA PCHAR*,struct WLDAP32_berval**); ULONG ldap_extended_operation_sW(WLDAP32_LDAP*,PWCHAR,struct WLDAP32_berval*,PLDAPControlW*, PLDAPControlW*, PWCHAR*,struct WLDAP32_berval**); -PCHAR ldap_first_attributeA(WLDAP32_LDAP*,WLDAP32_LDAPMessage*,BerElement**); -PWCHAR ldap_first_attributeW(WLDAP32_LDAP*,WLDAP32_LDAPMessage*,BerElement**); +PCHAR ldap_first_attributeA(WLDAP32_LDAP*,WLDAP32_LDAPMessage*,WLDAP32_BerElement**); +PWCHAR ldap_first_attributeW(WLDAP32_LDAP*,WLDAP32_LDAPMessage*,WLDAP32_BerElement**); WLDAP32_LDAPMessage *WLDAP32_ldap_first_entry(WLDAP32_LDAP*,WLDAP32_LDAPMessage*); WLDAP32_LDAPMessage *WLDAP32_ldap_first_reference(WLDAP32_LDAP*,WLDAP32_LDAPMessage*); PCHAR ldap_get_dnA(WLDAP32_LDAP*,WLDAP32_LDAPMessage*); @@ -319,8 +324,8 @@ ULONG ldap_modrdn2_sW(WLDAP32_LDAP*,PWCHAR,PWCHAR,INT); ULONG ldap_modrdn_sA(WLDAP32_LDAP*,PCHAR,PCHAR); ULONG ldap_modrdn_sW(WLDAP32_LDAP*,PWCHAR,PWCHAR); ULONG WLDAP32_ldap_msgfree(WLDAP32_LDAPMessage*); -PCHAR ldap_next_attributeA(WLDAP32_LDAP*,WLDAP32_LDAPMessage*,BerElement*); -PWCHAR ldap_next_attributeW(WLDAP32_LDAP*,WLDAP32_LDAPMessage*,BerElement*); +PCHAR ldap_next_attributeA(WLDAP32_LDAP*,WLDAP32_LDAPMessage*,WLDAP32_BerElement*); +PWCHAR ldap_next_attributeW(WLDAP32_LDAP*,WLDAP32_LDAPMessage*,WLDAP32_BerElement*); WLDAP32_LDAPMessage *WLDAP32_ldap_next_entry(WLDAP32_LDAP*,WLDAP32_LDAPMessage*); WLDAP32_LDAPMessage *WLDAP32_ldap_next_reference(WLDAP32_LDAP*,WLDAP32_LDAPMessage*); WLDAP32_LDAP *ldap_openA(PCHAR,ULONG);