summaryrefslogtreecommitdiff
path: root/src/include/gnunet_resolver_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_resolver_service.h')
-rw-r--r--src/include/gnunet_resolver_service.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/include/gnunet_resolver_service.h b/src/include/gnunet_resolver_service.h
index 1929feec6..1536a93ca 100644
--- a/src/include/gnunet_resolver_service.h
+++ b/src/include/gnunet_resolver_service.h
@@ -11,12 +11,12 @@
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
18 SPDX-License-Identifier: AGPL3.0-or-later 18 SPDX-License-Identifier: AGPL3.0-or-later
19*/ 19 */
20 20
21/** 21/**
22 * @author Christian Grothoff 22 * @author Christian Grothoff
@@ -70,14 +70,14 @@ struct GNUNET_RESOLVER_RequestHandle;
70 * @param cfg configuration to use 70 * @param cfg configuration to use
71 */ 71 */
72void 72void
73GNUNET_RESOLVER_connect (const struct GNUNET_CONFIGURATION_Handle *cfg); 73GNUNET_RESOLVER_connect(const struct GNUNET_CONFIGURATION_Handle *cfg);
74 74
75 75
76/** 76/**
77 * Destroy the connection to the resolver service. 77 * Destroy the connection to the resolver service.
78 */ 78 */
79void 79void
80GNUNET_RESOLVER_disconnect (void); 80GNUNET_RESOLVER_disconnect(void);
81 81
82 82
83/** 83/**
@@ -91,11 +91,11 @@ GNUNET_RESOLVER_disconnect (void);
91 * @return handle that can be used to cancel the request, NULL on error 91 * @return handle that can be used to cancel the request, NULL on error
92 */ 92 */
93struct GNUNET_RESOLVER_RequestHandle * 93struct GNUNET_RESOLVER_RequestHandle *
94GNUNET_RESOLVER_ip_get (const char *hostname, 94GNUNET_RESOLVER_ip_get(const char *hostname,
95 int af, 95 int af,
96 struct GNUNET_TIME_Relative timeout, 96 struct GNUNET_TIME_Relative timeout,
97 GNUNET_RESOLVER_AddressCallback callback, 97 GNUNET_RESOLVER_AddressCallback callback,
98 void *callback_cls); 98 void *callback_cls);
99 99
100 100
101/** 101/**
@@ -108,10 +108,10 @@ GNUNET_RESOLVER_ip_get (const char *hostname,
108 * @return handle that can be used to cancel the request, NULL on error 108 * @return handle that can be used to cancel the request, NULL on error
109 */ 109 */
110struct GNUNET_RESOLVER_RequestHandle * 110struct GNUNET_RESOLVER_RequestHandle *
111GNUNET_RESOLVER_hostname_resolve (int af, 111GNUNET_RESOLVER_hostname_resolve(int af,
112 struct GNUNET_TIME_Relative timeout, 112 struct GNUNET_TIME_Relative timeout,
113 GNUNET_RESOLVER_AddressCallback callback, 113 GNUNET_RESOLVER_AddressCallback callback,
114 void *cls); 114 void *cls);
115 115
116 116
117/** 117/**
@@ -131,7 +131,7 @@ typedef void
131 * @return local hostname, caller must free 131 * @return local hostname, caller must free
132 */ 132 */
133char * 133char *
134GNUNET_RESOLVER_local_fqdn_get (void); 134GNUNET_RESOLVER_local_fqdn_get(void);
135 135
136 136
137/** 137/**
@@ -146,12 +146,12 @@ GNUNET_RESOLVER_local_fqdn_get (void);
146 * @return handle that can be used to cancel the request, NULL on error 146 * @return handle that can be used to cancel the request, NULL on error
147 */ 147 */
148struct GNUNET_RESOLVER_RequestHandle * 148struct GNUNET_RESOLVER_RequestHandle *
149GNUNET_RESOLVER_hostname_get (const struct sockaddr *sa, 149GNUNET_RESOLVER_hostname_get(const struct sockaddr *sa,
150 socklen_t salen, 150 socklen_t salen,
151 int do_resolve, 151 int do_resolve,
152 struct GNUNET_TIME_Relative timeout, 152 struct GNUNET_TIME_Relative timeout,
153 GNUNET_RESOLVER_HostnameCallback callback, 153 GNUNET_RESOLVER_HostnameCallback callback,
154 void *cls); 154 void *cls);
155 155
156 156
157/** 157/**
@@ -163,7 +163,7 @@ GNUNET_RESOLVER_hostname_get (const struct sockaddr *sa,
163 * @param rh handle of request to cancel 163 * @param rh handle of request to cancel
164 */ 164 */
165void 165void
166GNUNET_RESOLVER_request_cancel (struct GNUNET_RESOLVER_RequestHandle *rh); 166GNUNET_RESOLVER_request_cancel(struct GNUNET_RESOLVER_RequestHandle *rh);
167 167
168 168
169#if 0 /* keep Emacsens' auto-indent happy */ 169#if 0 /* keep Emacsens' auto-indent happy */