aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_dnsstub_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_dnsstub_lib.h')
-rw-r--r--src/include/gnunet_dnsstub_lib.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/include/gnunet_dnsstub_lib.h b/src/include/gnunet_dnsstub_lib.h
index 5d134e44a..ff59e1292 100644
--- a/src/include/gnunet_dnsstub_lib.h
+++ b/src/include/gnunet_dnsstub_lib.h
@@ -11,7 +11,7 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
@@ -52,7 +52,7 @@ struct GNUNET_DNSSTUB_RequestSocket;
52 * @return NULL on error 52 * @return NULL on error
53 */ 53 */
54struct GNUNET_DNSSTUB_Context * 54struct GNUNET_DNSSTUB_Context *
55GNUNET_DNSSTUB_start (unsigned int num_sockets); 55GNUNET_DNSSTUB_start(unsigned int num_sockets);
56 56
57 57
58/** 58/**
@@ -64,8 +64,8 @@ GNUNET_DNSSTUB_start (unsigned int num_sockets);
64 * @return #GNUNET_OK on success 64 * @return #GNUNET_OK on success
65 */ 65 */
66int 66int
67GNUNET_DNSSTUB_add_dns_ip (struct GNUNET_DNSSTUB_Context *ctx, 67GNUNET_DNSSTUB_add_dns_ip(struct GNUNET_DNSSTUB_Context *ctx,
68 const char *dns_ip); 68 const char *dns_ip);
69 69
70 70
71/** 71/**
@@ -77,8 +77,8 @@ GNUNET_DNSSTUB_add_dns_ip (struct GNUNET_DNSSTUB_Context *ctx,
77 * @return #GNUNET_OK on success 77 * @return #GNUNET_OK on success
78 */ 78 */
79int 79int
80GNUNET_DNSSTUB_add_dns_sa (struct GNUNET_DNSSTUB_Context *ctx, 80GNUNET_DNSSTUB_add_dns_sa(struct GNUNET_DNSSTUB_Context *ctx,
81 const struct sockaddr *sa); 81 const struct sockaddr *sa);
82 82
83 83
84/** 84/**
@@ -89,8 +89,8 @@ GNUNET_DNSSTUB_add_dns_sa (struct GNUNET_DNSSTUB_Context *ctx,
89 * @param retry_frequ how long to wait between retries 89 * @param retry_frequ how long to wait between retries
90 */ 90 */
91void 91void
92GNUNET_DNSSTUB_set_retry (struct GNUNET_DNSSTUB_Context *ctx, 92GNUNET_DNSSTUB_set_retry(struct GNUNET_DNSSTUB_Context *ctx,
93 struct GNUNET_TIME_Relative retry_freq); 93 struct GNUNET_TIME_Relative retry_freq);
94 94
95/** 95/**
96 * Cleanup DNSSTUB resolver. 96 * Cleanup DNSSTUB resolver.
@@ -98,7 +98,7 @@ GNUNET_DNSSTUB_set_retry (struct GNUNET_DNSSTUB_Context *ctx,
98 * @param ctx stub resolver to clean up 98 * @param ctx stub resolver to clean up
99 */ 99 */
100void 100void
101GNUNET_DNSSTUB_stop (struct GNUNET_DNSSTUB_Context *ctx); 101GNUNET_DNSSTUB_stop(struct GNUNET_DNSSTUB_Context *ctx);
102 102
103 103
104/** 104/**
@@ -128,11 +128,11 @@ typedef void
128 * @return socket used for the request, NULL on error 128 * @return socket used for the request, NULL on error
129 */ 129 */
130struct GNUNET_DNSSTUB_RequestSocket * 130struct GNUNET_DNSSTUB_RequestSocket *
131GNUNET_DNSSTUB_resolve (struct GNUNET_DNSSTUB_Context *ctx, 131GNUNET_DNSSTUB_resolve(struct GNUNET_DNSSTUB_Context *ctx,
132 const void *request, 132 const void *request,
133 size_t request_len, 133 size_t request_len,
134 GNUNET_DNSSTUB_ResultCallback rc, 134 GNUNET_DNSSTUB_ResultCallback rc,
135 void *rc_cls); 135 void *rc_cls);
136 136
137 137
138/** 138/**
@@ -141,7 +141,7 @@ GNUNET_DNSSTUB_resolve (struct GNUNET_DNSSTUB_Context *ctx,
141 * @param rs resolution to cancel 141 * @param rs resolution to cancel
142 */ 142 */
143void 143void
144GNUNET_DNSSTUB_resolve_cancel (struct GNUNET_DNSSTUB_RequestSocket *rs); 144GNUNET_DNSSTUB_resolve_cancel(struct GNUNET_DNSSTUB_RequestSocket *rs);
145 145
146 146
147#endif 147#endif