[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Getting more meaningful error out of back-config

Ralf Haferkamp wrote:

>> What about passing a SlapReply *, or a specific type?
> I'd like to avoid defining an addtional type. But using SlapReply for my 
> purpose would certainly be possible I think. I'll take a look into this.

Passing a pointer to struct, rather that a char**, would save you from
reworking the whole API once more, in case you need to pass/want back
more elaborate data in the future.  Passing a SlapReply* could require
twice the effort as soon as your needs diverge from what's available in
SlapReply; this could be avoided by adding yet another structure to
SlapReply's union for internal purposes, if ever required.


Ing. Pierangelo Masarati
OpenLDAP Core Team

SysNet s.r.l.
via Dossi, 8 - 27100 Pavia - ITALIA
Office:  +39 02 23998309
Mobile:  +39 333 4963172
Email:   pierangelo.masarati@sys-net.it