~ubuntu-branches/ubuntu/quantal/kdepimlibs/quantal-proposed

« back to all changes in this revision

Viewing changes to kldap/w32-ldap-help.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-14 14:37:07 UTC
  • mto: This revision was merged to the branch mainline in revision 112.
  • Revision ID: package-import@ubuntu.com-20111214143707-m0qplh3hsd957ukv
Tags: upstream-4.7.90
ImportĀ upstreamĀ versionĀ 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//krazy:excludeall=style
1
2
/* w32-ldap-help.h - Map utf8 based API into a wchar_t API.
2
3
 
3
4
  Copyright (c) 2010 Andre Heinecke <aheinecke@intevation.de>
36
37
 * From the openldap manpage:
37
38
 * ber_len_t  is an unsigned integer of at least 32 bits used to represent
38
39
 * a length.  It is commonly equivalent to a size_t.   ber_slen_t  is  the
39
 
 *  signed variant to ber_len_t. 
 
40
 *  signed variant to ber_len_t.
40
41
 */
41
42
typedef ULONG ber_len_t;
42
43
 
44
45
#define timeval l_timeval
45
46
#endif
46
47
 
47
 
#ifdef _WIN32_WCE
 
48
#ifdef _WIN32_WCE //krazy:exclude=cpp allow as this is a non-Qt source file
48
49
#include "wce-ldap-help.h"
49
50
#endif
50
51
 
97
98
 
98
99
// Use the functions that are available on the platform
99
100
// or redirect to wrapper functions
100
 
#ifdef _WIN32_WCE
 
101
#ifdef _WIN32_WCE //krazy:exclude=cpp allow as this is a non-Qt source file
101
102
# define win_ldap_init(a,b)                      \
102
103
  my_win_ldap_initA ((a), (b))
103
104
# define win_ldap_simple_bind_s(a,b,c)           \
104
105
  my_win_ldap_simple_bind_sA ((a),(b),(c))
105
 
/* Contrary to documentation the sasl_bind functions 
 
106
/* Contrary to documentation the sasl_bind functions
106
107
 * are not availabe for wince
107
108
 
108
109
# define win_ldap_sasl_bind(a, b, c, d, e, f, g) \
139
140
#define win_ldap_rename_ext( a,  b,  c,  d,  e,  f,  g,  h  ) \
140
141
  ldap_rename_extA((a), (b), (c), (d), (e), (f), (g), ( ( ulong * ) h) )
141
142
#define win_ldap_delete_ext( a,  b,  c,  d,  e  ) \
142
 
  ldap_delete_extA((a), (b), (c), (d), ( ( ulong* ) e) )
 
143
  ldap_delete_extA((a), (b), (c), (d), ( ( ulong * ) e) )
143
144
#define win_ldap_modify_ext(  a,  b,  c,  d,  e,  f  ) \
144
145
  ldap_modify_extA( (a), (b), (c), (d), (e), ( ( ulong * ) f) )
145
146
#define win_ldap_modify_ext_s(  a,  b,  c,  d,  e ) \
146
 
  ldap_modify_ext_sA( (a), (b), (c), (d),  (e) )
 
147
  ldap_modify_ext_sA( (a), (b), (c), (d), (e) )
147
148
# define win_ldap_compare_ext(a, b, c, d, e, f, g) \
148
 
  my_win_ldap_compare_extA((a), (b), (c), NULL, (d), (e), (f), ( ( ulong* ) g))
 
149
  my_win_ldap_compare_extA((a), (b), (c), NULL, (d), (e), (f), ( ( ulong * ) g))
149
150
#define win_ldap_compare_ext_s(a, b, c, d, e, f) \
150
151
  my_win_ldap_compare_ext_sA( (a), (b), (c), NULL, (d), (e), (f) )
151
152
#define win_ldap_abandon_ext(a, b, c, d) \