[Xorp-hackers] [PATCH] Added helper classes for async responses.

Ben Greear greearb at candelatech.com
Wed Jul 6 14:27:57 PDT 2011


On 06/07/2011 02:16 AM, ss at comp.lancs.ac.uk wrote:
> From: Steven Simpson<ss at comp.lancs.ac.uk>
>
> * Renamed generated callback function type *CB to *RF (for Response
>    Function).
>
> * tgt-gen creates *CB class (constructed from *RF) which offers
>    respond(out-args) and fail(error) methods mapping onto *RF calls,
>    and retains ->dispatch method for compatibility.  The name *CB
>    continues to be used in method signatures (like each async_*
>    function), so the new *CB class replaces the old *CB typedef.
>
> * tgt-gen also generates *Rsp class as argument-holding version of
>    *CB.  Not used in any generated signatures, but available to user.
>
> Signed-off-by: Steven Simpson<ss at comp.lancs.ac.uk>

Thanks for the patch.  I have pushed this upstream.

Ben

-- 
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc  http://www.candelatech.com



More information about the Xorp-hackers mailing list