diff options
author | Schanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de> | 2017-12-04 17:39:55 +0100 |
---|---|---|
committer | Schanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de> | 2017-12-04 17:39:55 +0100 |
commit | d4b252fd73bdda7be51a971ba06a650a1dceb45c (patch) | |
tree | 15026001f43b756e4a86d7ec80f62fc0d9756dea /doc/documentation/tutorial-examples/020.c | |
parent | 514dd6f53cb735d0e48f35ddf92eae469c0abc8a (diff) | |
parent | 24a0b84d503375bf66b5df932cd18631cc88cf8d (diff) |
Merge branch 'identity_abe' into identity_oidc
Diffstat (limited to 'doc/documentation/tutorial-examples/020.c')
-rw-r--r-- | doc/documentation/tutorial-examples/020.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/doc/documentation/tutorial-examples/020.c b/doc/documentation/tutorial-examples/020.c new file mode 100644 index 0000000000..596db30693 --- /dev/null +++ b/doc/documentation/tutorial-examples/020.c @@ -0,0 +1,25 @@ +static void +get_result_iterator (void *cls, struct GNUNET_TIME_Absolute expiration, + const struct GNUNET_HashCode *key, + const struct GNUNET_PeerIdentity *get_path, + unsigned int get_path_length, + const struct GNUNET_PeerIdentity *put_path, + unsigned int put_path_length, + enum GNUNET_BLOCK_Type type, size_t size, + const void *data) +{ + // Optionally: + GNUNET_DHT_get_stop (get_handle); +} + +get_handle = + GNUNET_DHT_get_start (dht_handle, + block_type, + &key, + replication, + GNUNET_DHT_RO_NONE, + NULL, + 0, + &get_result_iterator, + cls) + |