summaryrefslogtreecommitdiffstats
path: root/src/async.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-05-27 05:48:51 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-05-27 05:48:51 +0200
commite03ec948967225c8162ffecf37b59bbfc338a83a (patch)
tree6c53c822063d32edb1f387fbf8879155626aafd8 /src/async.h
parent9b5e5f7883ef59201d17343680d109c1f9d5ae9b (diff)
downloadfastd-e03ec948967225c8162ffecf37b59bbfc338a83a.tar
fastd-e03ec948967225c8162ffecf37b59bbfc338a83a.zip
Lots and lots of documentation
Diffstat (limited to 'src/async.h')
-rw-r--r--src/async.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/async.h b/src/async.h
index fd6ebd5..ee81b73 100644
--- a/src/async.h
+++ b/src/async.h
@@ -23,6 +23,12 @@
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/**
+ \file async.h
+
+ Asynchronous notifications
+*/
+
#pragma once
@@ -30,12 +36,14 @@
#include "peer.h"
+/** A type of asynchronous notification */
typedef enum fastd_async_type {
- ASYNC_TYPE_RESOLVE_RETURN,
- ASYNC_TYPE_VERIFY_RETURN,
+ ASYNC_TYPE_RESOLVE_RETURN, /**< A DNS resolver response */
+ ASYNC_TYPE_VERIFY_RETURN, /**< A on-verify return */
} fastd_async_type_t;
+/** A DNS resolver response */
typedef struct fastd_async_resolve_return {
uint64_t peer_id;
size_t remote;
@@ -44,6 +52,7 @@ typedef struct fastd_async_resolve_return {
fastd_peer_address_t addr[];
} fastd_async_resolve_return_t;
+/** A on-verify response */
typedef struct fastd_async_verify_return {
bool ok;