[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
op->o_private
- To: OpenLDAP Devel <openldap-devel@OpenLDAP.org>
- Subject: op->o_private
- From: Howard Chu <hyc@symas.com>
- Date: Thu, 13 Oct 2005 13:53:19 -0700
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20050925 SeaMonkey/1.1a
Just a minor issue, but I've been thinking op->o_private needs to be
managed explicitly so that multiple modules can hang data there without
interfering with each other. E.g.
typedef struct TaggedList {
struct TaggedList *tl_next;
void *tl_tag; /* A unique identifier */
char data[0];
} TaggedList;
Backends and overlays would union this with their own data and the push
items onto op->o_private as needed.
Currently overlays can fake this by pushing a slap_callback instead, so
I guess it's not an urgent need. Comments?
--
-- Howard Chu
Chief Architect, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc
OpenLDAP Core Team http://www.openldap.org/project/