GNUNET_DHT_disconnect(dht_handle);
}
+void
+on_namestore_record_put_result(void *cls,
+ int32_t success,
+ const char *emsg)
+{
+ if (GNUNET_NO == success)
+ {
+ GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "records already in namestore\n");
+ return;
+ }
+ else if (GNUNET_YES == success)
+ {
+ GNUNET_log(GNUNET_ERROR_TYPE_DEBUG,
+ "records successfully put in namestore\n");
+ return;
+ }
+
+ GNUNET_log(GNUNET_ERROR_TYPE_ERROR,
+ "Error putting records into namestore: %s\n", emsg);
+}
+
/**
* Function called when we get a result from the dht
* for our query
num_records,
rd,
signature,
- NULL, //cont
+ &on_namestore_record_put_result, //cont
NULL); //cls
if (query->answered)
num_records,
rd,
signature,
- NULL, //cont
+ &on_namestore_record_put_result, //cont
NULL); //cls
if (query->answered)