openethereum/parity
Niklas Adolfsson b4f8bba843 parity-clib: `async C bindings to RPC requests` + `subscribe/unsubscribe to websocket events` (#9920)
* feat(parity-clib asynchronous rpc queries)

* feat(seperate bindings for ws and rpc)

* Subscribing to websockets for the full-client works

* feat(c binding unsubscribe_from_websocket)

* fix(tests): tweak CMake build config

* Enforce C+11

* refactor(parity-cpp-example) : `cpp:ify`

* fix(typedefs) : revert typedefs parity-clib

* docs(nits)

* fix(simplify websocket_unsubscribe)

* refactor(cpp example) : more subscriptions

* fix(callback type) : address grumbles on callback

* Use it the example to avoid using global variables

* docs(nits) - don't mention `arc`

* fix(jni bindings): fix compile errors

* feat(java example and updated java bindings)

* fix(java example) : run both full and light client

* fix(Java shutdown) : unsubscribe to sessions

Forgot to pass the JNIEnv environment since it is an instance method

* feat(return valid JString)

* Remove Java dependency by constructing a valid Java String in the callback

* fix(logger) : remove `rpc` trace log

* fix(format)

* fix(parity-clib): remove needless callback `type`

* fix(parity-clib-examples) : update examples

* `cpp` example pass in a struct instead to determines `callback kind`
* `java` add a instance variable the class `Callback` to determine `callback kind`

* fix(review comments): docs and format

* Update parity-clib/src/java.rs

Co-Authored-By: niklasad1 <niklasadolfsson1@gmail.com>

* fix(bad merge + spelling)

* fix(move examples to parity-clib/examples)
2019-01-02 16:49:01 +01:00
..
cli light(on_demand): decrease default time window to 10 secs (#10016) 2018-12-05 19:17:26 +08:00
db Fix Bloom migration (#9992) 2018-11-30 12:08:20 +08:00
light_helpers Replace `tokio_core` with `tokio` (`ring` -> 0.13) (#9657) 2018-10-22 09:40:50 +02:00
account.rs Add type for passwords. (#8920) 2018-06-22 15:09:15 +02:00
blockchain.rs Expose config max-round-blocks-to-import (#9439) 2018-10-26 13:21:36 +02:00
cache.rs Update `license header` and `scripts` (#8666) 2018-06-04 10:19:50 +02:00
configuration.rs light client : failsafe crate (circuit breaker) (#9790) 2018-12-05 10:36:53 +01:00
deprecated.rs Remove node-health (#9119) 2018-07-18 16:27:29 +02:00
export_hardcoded_sync.rs Remove the dapps system (#9017) 2018-07-11 12:19:54 +02:00
helpers.rs Expose config max-round-blocks-to-import (#9439) 2018-10-26 13:21:36 +02:00
informant.rs Fix pubsub new_blocks notifications to include all blocks (#9987) 2018-12-19 09:24:14 +00:00
ipfs.rs Update `license header` and `scripts` (#8666) 2018-06-04 10:19:50 +02:00
lib.rs parity-clib: `async C bindings to RPC requests` + `subscribe/unsubscribe to websocket events` (#9920) 2019-01-02 16:49:01 +01:00
main.rs Allow setting the panic hook with parity-clib (#9292) 2018-08-10 11:06:30 +02:00
modules.rs Improve block and transaction propagation (#9954) 2018-11-28 11:30:05 +01:00
params.rs Support MIX. (#9767) 2018-11-01 11:06:53 +01:00
presale.rs Add type for passwords. (#8920) 2018-06-22 15:09:15 +02:00
rpc.rs Option to disable keep alive for JSON-RPC http transport (#9848) 2018-11-05 22:39:51 +08:00
rpc_apis.rs Add Error message when sync is still in progress. (#9475) 2018-11-27 02:58:27 +08:00
run.rs parity-clib: `async C bindings to RPC requests` + `subscribe/unsubscribe to websocket events` (#9920) 2019-01-02 16:49:01 +01:00
secretstore.rs Remove secret_store runtimes. (#9888) 2018-11-26 01:36:43 +08:00
signer.rs Remove UI related settings from CLI (#8783) 2018-06-06 10:05:52 +02:00
snapshot.rs Expose config max-round-blocks-to-import (#9439) 2018-10-26 13:21:36 +02:00
stratum.rs Update `license header` and `scripts` (#8666) 2018-06-04 10:19:50 +02:00
upgrade.rs Replace `std::env::home_dir()` with `home` crate impl. (#9293) 2018-08-21 15:30:24 +02:00
user_defaults.rs parity: fix UserDefaults json parser (#9189) 2018-07-23 13:57:50 +02:00
whisper.rs Update `license header` and `scripts` (#8666) 2018-06-04 10:19:50 +02:00