[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Datatype mapping for openldap
- To: "openldap-technical@openldap.org" <openldap-technical@openldap.org>
- Subject: Datatype mapping for openldap
- From: Sankar P <sankar.curiosity@gmail.com>
- Date: Wed, 21 May 2014 21:27:39 +0530
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Qe2s4utk8+xfpwQzoGUxmS21/k8PFP4GIRCaVU04Z3U=; b=RlMBgGZ0vXUAGN5KiknlKenxH14RMsTvbo88KUnOvNn8Sdia/LjJ/pzgyysuWQsNzu LUPkwG+zu3b+W51LlfnRWqGPg+4RN8OAt1+hHDfiaCG3mmUEzACmqbEQGCLoKl4S3zp0 hFbkwDcJjAhrpsEJF+piwMG8+NcDRg1k2XcV+CM/2GeypYUxU14o4cxJvvM4arRWIdtL j2trB3C8Pz2udHf6ro2h0QxBdzxoX7wdFc3VHQmXhm41moCdjViJaMme6VlgZWFkRR/c RaIYopeJIUuDJBPTrpMQ3ePFn1+1qqAmdc/Xnu37Jx3E3hkrIRhWDGlG7/HaLcSPg261 MP9w==
Hi,
I saw some example code on MSDN which I tried to compile against
openldap on Linux and got some errors.
The C code that I tried to compile was:
http://msdn.microsoft.com/en-us/library/aa367017(v=vs.85).aspx
The errors were related to the undefined nature of types such as:
DWORD, PCHAR, BOOL, TRUE, FALSE and functions such as _snprintf_s etc.
While I could define these types myself, I wanted to check if there
are any standard header files that do these type mappings already.
Doing a `rpm -ql openldap2-devel | grep h$ | xargs grep DWORD` did not
return anything and so I am feeling that no such standard type-mapping
already exists. But I wanted to confirm and to know what is the best
practice to follow here.
Thanks.
--
Sankar P
http://psankar.blogspot.com