Don't rely on ldap structure when headers are not available.
[wine] / dlls / wldap32 / ber.c
1 /*
2  * WLDAP32 - LDAP support for Wine
3  *
4  * Copyright 2005 Hans Leidekker
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20
21 #include "config.h"
22
23 #ifndef HAVE_LDAP
24
25 #include "windef.h"
26 #include "winldap.h"
27
28 #define LBER_ERROR (~0UL)
29
30 BerElement *ber_alloc_t( INT options )
31 {
32     return NULL;
33 }
34
35 BERVAL *ber_bvdup( BERVAL *berval )
36 {
37     return NULL;
38 }
39
40 void ber_bvecfree( PBERVAL *berval )
41 {
42 }
43
44 void ber_bvfree( BERVAL *berval )
45 {
46 }
47
48 ULONG ber_first_element( BerElement *berelement, ULONG *len, CHAR **opaque )
49 {
50     return LBER_ERROR;
51 }
52
53 INT ber_flatten( BerElement *berelement, PBERVAL *berval )
54 {
55     return LBER_ERROR;
56 }
57
58 void ber_free( BerElement *berelement, INT buf )
59 {
60 }
61
62 BerElement *ber_init( BERVAL *berval )
63 {
64     return NULL;
65 }
66
67 ULONG ber_next_element( BerElement *berelement, ULONG *len, CHAR *opaque )
68 {
69     return LBER_ERROR;
70 }
71
72 ULONG ber_peek_tag( BerElement *berelement, ULONG *len )
73 {
74     return LBER_ERROR;
75 }
76
77 INT ber_printf( BerElement *berelement, PCHAR fmt, ... )
78 {
79     return LBER_ERROR;
80 }
81
82 ULONG ber_skip_tag( BerElement *berelement, ULONG *len )
83 {
84     return LBER_ERROR;
85 }
86
87 INT ber_scanf( BerElement *berelement, PCHAR fmt, ... )
88 {
89     return LBER_ERROR;
90 }
91
92 #endif /* HAVE_LDAP */