1 Mar 2009 01:50
Re: [PATCH] Make struct tevent_req opaque 2
simo <idra <at> samba.org>
2009-03-01 00:50:45 GMT
2009-03-01 00:50:45 GMT
On Sat, 2009-02-28 at 16:01 -0500, simo wrote: > This patch makes struct tevent_req opaque to callers by moving it to > tevent_internal.h and add helpers functions to set async.fn, > async.private_data an private_status > > This allows the library developer to change or extend tevent_req later > without breaking API and ABI. > > I suggest the same change should be done to async_req. Updated patch. After some discussion with Volker, we decide to shorten the names of tevent_req_get_private_data() into _tevent_req_callback_data() and tevent_req_get_private_state() into _tevent_req_state() and created tevent_req_callback_data() and tevent_req_state() similar to tevent_req_create() so that we abort if types do not match. Simo. -- -- Simo Sorce Samba Team GPL Compliance Officer <simo <at> samba.org> Principal Software Engineer at Red Hat, Inc. <simo <at> redhat.com>
Not a problem. Looks like there are more problems like this. In a
> word, some variables are not initialized, but following code relies on
> the values to go to different code paths.. I'll get back to you when I
> work it out.
>
I'll fix it in a different patch/patches. This patch itself is Ok, I
think.
RSS Feed