[PATCH] Make struct tevent_req opaque 3

simo idra at samba.org
Mon Mar 2 18:17:39 GMT 2009


On Mon, 2009-03-02 at 08:34 +0100, Stefan (metze) Metzmacher wrote:
> simo schrieb:
> > On Sun, 2009-03-01 at 13:31 +0100, Volker Lendecke wrote:
> >> On Sat, Feb 28, 2009 at 07:50:45PM -0500, simo wrote:
> >>> 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()
> >> Hmmm. Another look revealed that we have an "enum
> >> tevent_req_state" and now also a macro tevent_req_state.
> >> Probably it would be better to rename the macro
> >> tevent_req_state to tevent_req_get_state to avoid confusion,
> >> and despite the fact it's 4 chars longer :-)
> > 
> > Ok given that private_state is not really a state but data, and we
> > already have an enum called tevent_req_state we discussed on IRC to use
> > tevent_req_data and change the variable in tevent_req from
> > 'private_state' to 'data'.
> > Attached a patch that implements this.
> 
> Looks good to me.
> 
> But we need a function to set the private_print function.

Ok pushed with added a function to set the print_fn

Simo.

-- 
Simo Sorce
Samba Team GPL Compliance Officer <simo at samba.org>
Principal Software Engineer at Red Hat, Inc. <simo at redhat.com>



More information about the samba-technical mailing list