The preferred way is the dynamic one, except possibly for basic core
Squid structures.
Have added documentation for CBDATA_TYPE and CBDATA_INIT_TYPE..
For a summary of what has changed, see:
/Henrik
Robert Collins wrote:
>
> Well,
> It wasn't quite enough: What I was looking for in terms of doco on the *new stuff* is something like the below (which I've
> puzzled out - I may have it wrong)
>
> ===
> To use cbdata now, one must
>
> initalise the cbdatatype by either
> *add a entry to the cbdata_type enum,
> *add a call to CREATE_CBDATA in cbdataInit
>
> or for dynamically registered types.
> * insert the macro CBDATA_TYPE(type) in a source file to register the type.
> * call CBDATA_INIT_TYPE(type) in a source file to initialise the type.
>
> >From then on , use CBDATA_ALLOC rather than MEM_ALLOC + cbDataAdd.
> ===
Received on Fri Jan 05 2001 - 17:43:53 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:10 MST