summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2019-10-24 05:57:41 +0000
committerotto <otto@openbsd.org>2019-10-24 05:57:41 +0000
commitaf4d66b37c7394d6b39d0566d15c37785a0448b1 (patch)
tree438bb3654dfafebc14d1d5d174d9227cbf635222 /include
parentMake log tick interval independent of hz and reduce the frequency (diff)
downloadwireguard-openbsd-af4d66b37c7394d6b39d0566d15c37785a0448b1.tar.xz
wireguard-openbsd-af4d66b37c7394d6b39d0566d15c37785a0448b1.zip
Allow the caller of asr functions to create and use a specific context.
Diff from eric@ and florian@, commiting on their behalf since they are absent and we want to ride the minor shlib bump.
Diffstat (limited to 'include')
-rw-r--r--include/asr.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asr.h b/include/asr.h
index 0ceb0f5a604..0e38d550706 100644
--- a/include/asr.h
+++ b/include/asr.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: asr.h,v 1.1 2014/03/26 18:13:15 eric Exp $ */
+/* $OpenBSD: asr.h,v 1.2 2019/10/24 05:57:41 otto Exp $ */
/*
* Copyright (c) 2012-2014 Eric Faurot <eric@openbsd.org>
*
@@ -58,6 +58,8 @@ struct asr_result {
/* Forward declaration. The API uses opaque pointers as query handles. */
struct asr_query;
+void *asr_resolver_from_string(const char *);
+void asr_resolver_free(void *);
int asr_run(struct asr_query *, struct asr_result *);
int asr_run_sync(struct asr_query *, struct asr_result *);
void asr_abort(struct asr_query *);