Commit graph

10 commits

Author SHA1 Message Date
Nathan Hourt
eb48480246 Do optional API args without hana
So sad... the hana version was way more expressive... But hey, I'm kinda
proud I actually got this working! :D
2019-05-13 17:11:43 -05:00
Nathan Hourt
24eff3ab6d Add API support for optional arguments
FC_API now supports optional arguments! Any trailing arguments of
an fc::optional type are now optional, and do not need to be
supplied. If omitted, they will be inferred to be null optionals.
2019-05-13 17:11:43 -05:00
Peter Conrad
579914c84d Removed unused stuff 2019-04-04 17:59:51 +02:00
theoreticalbts
5c1bb56177 Implement modular API support
- Create class `api_base` to be base class of `api<T>`, and `typedef shared_ptr<api_base> api_ptr`
- Create function `api_base::as<T>()` to allow simple downcast to `api<T>`
- Create class `any_api` to contain an API which has been returned from the remote end, but not yet cast with `as<T>`
- `to_generic()` override allowing remote API to return `api_ptr`, thus we need not know the type of the returned API at compile time
- Allow API's to be referenced by name, if we call with a string API name in the JSON the framework calls get_api_by_name on API 1 to determine the API ID
2016-04-04 00:50:56 -04:00
Daniel Larimer
1fb31737a7 RPC now supports remote callbacks
to_variant now skips null optional members on reflected objects.
2015-03-31 11:31:56 -04:00
Eric Frias
2977ca954f Workaround compile errors on MSVC 2015-03-17 16:24:39 -04:00
Nathan Hourt
3b6f2978b0 Cleanup API code 2015-03-11 11:15:11 -04:00
Daniel Larimer
171eb212cd refactor api_client and api_server into api_connection and add JSON impl 2015-03-11 10:49:30 -04:00
Daniel Larimer
fa352e14bd nested API calls fully abstracted 2015-03-10 18:52:27 -04:00
Daniel Larimer
ee9c2ac4ed api progess 2015-03-09 18:50:20 -04:00
Renamed from include/fc/ptr.hpp (Browse further)