[Xorp-hackers] [greearb/xorp.ct] 089f2a: Added helper classes for async responses.
noreply at github.com
noreply at github.com
Wed Jul 6 14:28:00 PDT 2011
Branch: refs/heads/master
Home: https://github.com/greearb/xorp.ct
Commit: 089f2abe50b09a4a0351a65e6ccd59e1570a6a94
https://github.com/greearb/xorp.ct/commit/089f2abe50b09a4a0351a65e6ccd59e1570a6a94
Author: Steven Simpson <ss at comp.lancs.ac.uk>
Date: 2011-07-06 (Wed, 06 Jul 2011)
Changed paths:
M xorp/xrl/scripts/tgt-gen
Log Message:
-----------
Added helper classes for async responses.
* 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>
More information about the Xorp-hackers
mailing list