Commit graph

7 commits

Author SHA1 Message Date
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)