Mercurial > hg > xemacs-beta
annotate modules/ldap/eldap.h @ 4874:4c3f5e1ecbeb
ChangeLog for previous patch: regenerate intl-auto-encap-win32.c
(fix build problems when building --with-msw=no on Cygwin)
-------------------- ChangeLog entries follow: --------------------
lib-src/ChangeLog addition:
2010-01-15 Ben Wing <ben@xemacs.org>
* make-mswin-unicode.pl:
Various fixes to get this to work when using the Cygwin header files
in /usr/include/w32api instead of the VC++ ones:
-- Use /usr/include/w32api as default; don't assume that a passed-in
directory always ends in .../include.
-- Add `const' to list of known type modifiers.
-- If function already seen, warn but don't generate twice.
-- Eliminate `extern' from return type modifiers.
-- Cosmetic: When eliminating APIENTRY, also eliminate following
whitespace.
src/ChangeLog addition:
2010-01-15 Ben Wing <ben@xemacs.org>
* intl-auto-encap-win32.c:
* intl-auto-encap-win32.c (qxeExtractAssociatedIcon):
* intl-auto-encap-win32.c (qxeShellExecuteEx):
* intl-auto-encap-win32.c (qxeSHFileOperation):
* intl-auto-encap-win32.c (qxeSHQueryRecycleBin):
* intl-auto-encap-win32.c (qxeSHEmptyRecycleBin):
* intl-auto-encap-win32.c (qxeWNetAddConnection):
* intl-auto-encap-win32.c (qxeWNetAddConnection2):
* intl-auto-encap-win32.c (qxeWNetAddConnection3):
* intl-auto-encap-win32.c (qxeWNetCancelConnection):
* intl-auto-encap-win32.c (qxeWNetCancelConnection2):
* intl-auto-encap-win32.c (qxeWNetGetConnection):
* intl-auto-encap-win32.c (qxeWNetUseConnection):
* intl-auto-encap-win32.c (qxeWNetConnectionDialog1):
* intl-auto-encap-win32.c (qxeWNetDisconnectDialog1):
* intl-auto-encap-win32.c (qxeWNetOpenEnum):
* intl-auto-encap-win32.c (qxeWNetEnumResource):
* intl-auto-encap-win32.c (qxeWNetGetUniversalName):
* intl-auto-encap-win32.c (qxeWNetGetUser):
* intl-auto-encap-win32.c (qxeWNetGetProviderName):
* intl-auto-encap-win32.c (qxeWNetGetNetworkInformation):
* intl-auto-encap-win32.c (qxeWNetGetLastError):
* intl-auto-encap-win32.c (qxeMultinetGetConnectionPerformance):
* intl-auto-encap-win32.c (qxeAppendMenu):
* intl-auto-encap-win32.c (qxeCopyAcceleratorTable):
* intl-auto-encap-win32.c (qxeDlgDirSelectComboBoxEx):
* intl-auto-encap-win32.c (qxeEnumDesktops):
* intl-auto-encap-win32.c (qxeEnumWindowStations):
* intl-auto-encap-win32.c (qxeGetClassInfo):
* intl-auto-encap-win32.c (qxeGetClassLong):
* intl-auto-encap-win32.c (qxeGetClassName):
* intl-auto-encap-win32.c (qxeGetKeyboardLayoutName):
* intl-auto-encap-win32.c (qxeGetWindowLong):
* intl-auto-encap-win32.c (qxeGetUserObjectInformation):
* intl-auto-encap-win32.c (qxeGetWindowTextLength):
* intl-auto-encap-win32.c (qxeGrayString):
* intl-auto-encap-win32.c (qxeInsertMenu):
* intl-auto-encap-win32.c (qxeSetProp):
* intl-auto-encap-win32.c (qxeEnumICMProfiles):
* intl-auto-encap-win32.c (qxeExtTextOut):
* intl-auto-encap-win32.c (qxeSetICMProfile):
* intl-auto-encap-win32.c (qxeTextOut):
* intl-auto-encap-win32.c (qxeSHGetPathFromIDList):
* intl-auto-encap-win32.c (qxeFindText):
* intl-auto-encap-win32.c (qxeReplaceText):
* intl-auto-encap-win32.c (qxeImmInstallIME):
* intl-auto-encap-win32.c (qxeImmGetDescription):
* intl-auto-encap-win32.c (qxeImmGetIMEFileName):
* intl-auto-encap-win32.c (qxeImmGetCompositionString):
* intl-auto-encap-win32.c (qxeImmGetCandidateListCount):
* intl-auto-encap-win32.c (qxeImmGetCandidateList):
* intl-auto-encap-win32.c (qxeImmGetGuideLine):
* intl-auto-encap-win32.c (qxeImmConfigureIME):
* intl-auto-encap-win32.c (qxeImmEscape):
* intl-auto-encap-win32.c (qxeImmGetConversionList):
* intl-auto-encap-win32.c (qxeImmRegisterWord):
* intl-auto-encap-win32.c (qxeImmUnregisterWord):
* intl-auto-encap-win32.c (qxeImmEnumRegisterWord):
* intl-auto-encap-win32.c (qxesndPlaySound):
* intl-auto-encap-win32.c (qxePlaySound):
* intl-auto-encap-win32.c (qxewaveOutGetErrorText):
* intl-auto-encap-win32.c (qxewaveInGetErrorText):
* intl-auto-encap-win32.c (qxemidiOutGetErrorText):
* intl-auto-encap-win32.c (qxemidiInGetErrorText):
* intl-auto-encap-win32.c (qxemmioStringToFOURCC):
* intl-auto-encap-win32.c (qxemmioInstallIOProc):
* intl-auto-encap-win32.c (qxemmioOpen):
* intl-auto-encap-win32.c (qxemmioRename):
* intl-auto-encap-win32.c (qxemciSendCommand):
* intl-auto-encap-win32.c (qxemciSendString):
* intl-auto-encap-win32.c (qxemciGetDeviceID):
* intl-auto-encap-win32.c (qxemciGetErrorString):
* intl-auto-encap-win32.h:
* intl-auto-encap-win32.h (qxemciGetErrorString):
Regenerate these files from Cygwin headers.
* intl-encap-win32.c:
Bracket more functions in HAVE_MS_WINDOWS, to fix build problems
when building --with-msw=no on Cygwin.
Fixes for Cygwin headers:
-- Comment out IME.H, non-existent in Cygwin.
-- Make MessageBoxIndirect a `no' (don't encapsulate but generate
error if used) because it has a structure parameter that needs
to be A/W split but is declared as FOO*, and our parser can't
split this.
author | Ben Wing <ben@xemacs.org> |
---|---|
date | Fri, 15 Jan 2010 05:12:07 -0600 |
parents | c56a675b3b05 |
children | e0db3c197671 |
rev | line source |
---|---|
265 | 1 /* Definitions for the LDAP client interface for XEmacs. |
2 Copyright (C) 1998 Free Software Foundation, Inc. | |
3 | |
4 This file is part of XEmacs. | |
5 | |
6 XEmacs is free software; you can redistribute it and/or modify it | |
7 under the terms of the GNU General Public License as published by the | |
8 Free Software Foundation; either version 2, or (at your option) any | |
9 later version. | |
10 | |
11 XEmacs is distributed in the hope that it will be useful, but WITHOUT | |
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
14 for more details. | |
15 | |
16 You should have received a copy of the GNU General Public License | |
17 along with XEmacs; see the file COPYING. If not, write to | |
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
19 Boston, MA 02111-1307, USA. */ | |
20 | |
996 | 21 #ifndef INCLUDED_eldap_h_ |
22 #define INCLUDED_eldap_h_ | |
23 | |
24 #include <lber.h> | |
4027 | 25 /* #### NEEDS REWRITE! |
26 Thanks to Mats Lidell <matsl@xemacs.org> for the report & patch: | |
27 <871wgnqunm.fsf@spencer.lidell.homelinux.net> | |
28 "See http://www.openldap.org/faq/data/cache/1278.html. | |
29 Temporary workaround would be use the deprecated interface. Long term | |
30 solution is a rewrite." */ | |
31 #define LDAP_DEPRECATED 1 | |
996 | 32 #include <ldap.h> |
33 | |
34 /* | |
35 * The following structure records pertinent information about a | |
36 * LDAP connection. | |
37 */ | |
265 | 38 |
996 | 39 struct Lisp_LDAP |
40 { | |
3024 | 41 struct LCRECORD_HEADER header; |
996 | 42 /* The LDAP connection handle used by the LDAP API */ |
43 LDAP *ld; | |
44 /* Name of the host we connected to */ | |
45 Lisp_Object host; | |
46 }; | |
47 typedef struct Lisp_LDAP Lisp_LDAP; | |
265 | 48 |
49 | |
996 | 50 DECLARE_LRECORD (ldap, Lisp_LDAP); |
51 #define XLDAP(x) XRECORD (x, ldap, Lisp_LDAP) | |
52 #define wrap_ldap(p) wrap_record (p, ldap) | |
53 #define LDAPP(x) RECORDP (x, ldap) | |
54 #define CHECK_LDAP(x) CHECK_RECORD (x, ldap) | |
55 #define CONCHECK_LDAP(x) CONCHECK_RECORD (x, ldap) | |
265 | 56 |
996 | 57 #define CHECK_LIVE_LDAP(ldap) do { \ |
58 CHECK_LDAP (ldap); \ | |
59 if (!XLDAP (ldap)->ld) \ | |
60 invalid_operation ("Attempting to access closed LDAP connection", \ | |
61 ldap); \ | |
62 } while (0) | |
265 | 63 |
64 | |
996 | 65 Lisp_Object Fldapp (Lisp_Object object); |
66 Lisp_Object Fldap_host (Lisp_Object ldap); | |
67 Lisp_Object Fldap_live_p (Lisp_Object ldap); | |
68 Lisp_Object Fldap_open (Lisp_Object host, | |
69 Lisp_Object ldap_plist); | |
70 Lisp_Object Fldap_close (Lisp_Object ldap); | |
71 Lisp_Object Fldap_search_basic (Lisp_Object ldap, | |
72 Lisp_Object filter, | |
73 Lisp_Object base, | |
74 Lisp_Object scope, | |
75 Lisp_Object attrs, | |
76 Lisp_Object attrsonly, | |
77 Lisp_Object withdn, | |
78 Lisp_Object verbose); | |
79 Lisp_Object Fldap_add (Lisp_Object ldap, | |
80 Lisp_Object dn, | |
81 Lisp_Object entry); | |
82 Lisp_Object Fldap_modify (Lisp_Object ldap, | |
83 Lisp_Object dn, | |
84 Lisp_Object entry); | |
85 Lisp_Object Fldap_delete (Lisp_Object ldap, | |
86 Lisp_Object dn); | |
265 | 87 |
996 | 88 #endif /* INCLUDED_eldap_h_ */ |