diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-11-05 18:21:50 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-11-05 18:21:50 +0000 |
commit | 75a33a1499cf60ea4364c9aa673816629a6c1413 (patch) | |
tree | 0620da4312bb04de4d7b65074fdd3b0c3dd6cc0e /src/include/gnunet_resolver_service.h | |
parent | 7217c601ad30760872823193d62307e7a335d226 (diff) | |
download | gnunet-75a33a1499cf60ea4364c9aa673816629a6c1413.tar.gz gnunet-75a33a1499cf60ea4364c9aa673816629a6c1413.zip |
big scheduler refactoring, expect some issues
Diffstat (limited to 'src/include/gnunet_resolver_service.h')
-rw-r--r-- | src/include/gnunet_resolver_service.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/include/gnunet_resolver_service.h b/src/include/gnunet_resolver_service.h index b55ca2f56..79f703553 100644 --- a/src/include/gnunet_resolver_service.h +++ b/src/include/gnunet_resolver_service.h | |||
@@ -62,7 +62,6 @@ struct GNUNET_RESOLVER_RequestHandle; | |||
62 | /** | 62 | /** |
63 | * Convert a string to one or more IP addresses. | 63 | * Convert a string to one or more IP addresses. |
64 | * | 64 | * |
65 | * @param sched scheduler to use | ||
66 | * @param cfg configuration to use | 65 | * @param cfg configuration to use |
67 | * @param hostname the hostname to resolve | 66 | * @param hostname the hostname to resolve |
68 | * @param domain AF_INET or AF_INET6; use AF_UNSPEC for "any" | 67 | * @param domain AF_INET or AF_INET6; use AF_UNSPEC for "any" |
@@ -72,8 +71,7 @@ struct GNUNET_RESOLVER_RequestHandle; | |||
72 | * @return handle that can be used to cancel the request, NULL on error | 71 | * @return handle that can be used to cancel the request, NULL on error |
73 | */ | 72 | */ |
74 | struct GNUNET_RESOLVER_RequestHandle * | 73 | struct GNUNET_RESOLVER_RequestHandle * |
75 | GNUNET_RESOLVER_ip_get (struct GNUNET_SCHEDULER_Handle *sched, | 74 | GNUNET_RESOLVER_ip_get (const struct GNUNET_CONFIGURATION_Handle *cfg, |
76 | const struct GNUNET_CONFIGURATION_Handle *cfg, | ||
77 | const char *hostname, | 75 | const char *hostname, |
78 | int domain, | 76 | int domain, |
79 | struct GNUNET_TIME_Relative timeout, | 77 | struct GNUNET_TIME_Relative timeout, |
@@ -84,7 +82,6 @@ GNUNET_RESOLVER_ip_get (struct GNUNET_SCHEDULER_Handle *sched, | |||
84 | /** | 82 | /** |
85 | * Resolve our hostname to an IP address. | 83 | * Resolve our hostname to an IP address. |
86 | * | 84 | * |
87 | * @param sched scheduler to use | ||
88 | * @param cfg configuration to use | 85 | * @param cfg configuration to use |
89 | * @param domain AF_INET or AF_INET6; use AF_UNSPEC for "any" | 86 | * @param domain AF_INET or AF_INET6; use AF_UNSPEC for "any" |
90 | * @param callback function to call with addresses | 87 | * @param callback function to call with addresses |
@@ -93,8 +90,7 @@ GNUNET_RESOLVER_ip_get (struct GNUNET_SCHEDULER_Handle *sched, | |||
93 | * @return handle that can be used to cancel the request, NULL on error | 90 | * @return handle that can be used to cancel the request, NULL on error |
94 | */ | 91 | */ |
95 | struct GNUNET_RESOLVER_RequestHandle * | 92 | struct GNUNET_RESOLVER_RequestHandle * |
96 | GNUNET_RESOLVER_hostname_resolve (struct GNUNET_SCHEDULER_Handle *sched, | 93 | GNUNET_RESOLVER_hostname_resolve (const struct GNUNET_CONFIGURATION_Handle *cfg, |
97 | const struct GNUNET_CONFIGURATION_Handle *cfg, | ||
98 | int domain, | 94 | int domain, |
99 | struct GNUNET_TIME_Relative timeout, | 95 | struct GNUNET_TIME_Relative timeout, |
100 | GNUNET_RESOLVER_AddressCallback callback, | 96 | GNUNET_RESOLVER_AddressCallback callback, |
@@ -123,7 +119,6 @@ GNUNET_RESOLVER_local_fqdn_get ( void ); | |||
123 | /** | 119 | /** |
124 | * Perform a reverse DNS lookup. | 120 | * Perform a reverse DNS lookup. |
125 | * | 121 | * |
126 | * @param sched scheduler to use | ||
127 | * @param cfg configuration to use | 122 | * @param cfg configuration to use |
128 | * @param sa host address | 123 | * @param sa host address |
129 | * @param salen length of host address | 124 | * @param salen length of host address |
@@ -134,8 +129,7 @@ GNUNET_RESOLVER_local_fqdn_get ( void ); | |||
134 | * @return handle that can be used to cancel the request, NULL on error | 129 | * @return handle that can be used to cancel the request, NULL on error |
135 | */ | 130 | */ |
136 | struct GNUNET_RESOLVER_RequestHandle * | 131 | struct GNUNET_RESOLVER_RequestHandle * |
137 | GNUNET_RESOLVER_hostname_get (struct GNUNET_SCHEDULER_Handle *sched, | 132 | GNUNET_RESOLVER_hostname_get (const struct GNUNET_CONFIGURATION_Handle *cfg, |
138 | const struct GNUNET_CONFIGURATION_Handle *cfg, | ||
139 | const struct sockaddr *sa, | 133 | const struct sockaddr *sa, |
140 | socklen_t salen, | 134 | socklen_t salen, |
141 | int do_resolve, | 135 | int do_resolve, |