Re: EventDialer cbdataReference abuse

From: Henrik Nordström <henrik@dont-contact.us>
Date: Sat, 23 Feb 2008 14:42:17 +0100

lör 2008-02-23 klockan 13:34 +0100 skrev Henrik Nordström:

> The idea with cbdata is that when you are given a cbdata enabled object
> use cbdataReference on it to get a reference safe to be saved between
> call events. Then use cbdataReferenceValid to verify it's validity if
> needed, cbdataReferenceDone() to get rid of the reference (also kills
> the pointer to avoid "reuse after free), or cbdataReferenceValidDone()
> to do both in one step suitable for calling a callback with the cbdata
> variable as argument, or other similar chain of events.

Oh, forgot to mention that it's on the long term roadmap to convert
cbdata into using proper C++ constructs. When that's done this kind of
abuse of the interface will no longer be possible.

Regards
Henrik

Received on Sat Feb 23 2008 - 06:46:01 MST

This archive was generated by hypermail pre-2.1.9 : Sat Mar 01 2008 - 12:00:09 MST