diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-06-20 08:32:50 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-06-20 08:32:50 +0000 |
commit | 21a2b4f95b4488645ba5a6254fcb8919c4915f73 (patch) | |
tree | 00c92cb7103cc14fba7e63e8dee99fe711856863 /src/regex/gnunet-service-regex.c | |
parent | 5533b105943b4f6dd688c1758350cd83ebeab3b9 (diff) | |
download | gnunet-21a2b4f95b4488645ba5a6254fcb8919c4915f73.tar.gz gnunet-21a2b4f95b4488645ba5a6254fcb8919c4915f73.zip |
continuing refactoring of regex library structure, disambiguating symbol names between old regex library which is now internal and the public API; moving IP-to-regex conversion functions to tun library, as only vpn is using those to begin with
Diffstat (limited to 'src/regex/gnunet-service-regex.c')
-rw-r--r-- | src/regex/gnunet-service-regex.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/regex/gnunet-service-regex.c b/src/regex/gnunet-service-regex.c index 28f3a20b8..f0a39a361 100644 --- a/src/regex/gnunet-service-regex.c +++ b/src/regex/gnunet-service-regex.c | |||
@@ -26,7 +26,7 @@ | |||
26 | */ | 26 | */ |
27 | #include "platform.h" | 27 | #include "platform.h" |
28 | #include "gnunet_util_lib.h" | 28 | #include "gnunet_util_lib.h" |
29 | #include "gnunet_regex_lib.h" | 29 | #include "regex_internal_lib.h" |
30 | #include "regex_ipc.h" | 30 | #include "regex_ipc.h" |
31 | 31 | ||
32 | 32 | ||
@@ -54,12 +54,12 @@ struct ClientEntry | |||
54 | /** | 54 | /** |
55 | * Search handle (if this client is searching). | 55 | * Search handle (if this client is searching). |
56 | */ | 56 | */ |
57 | struct GNUNET_REGEX_search_handle *sh; | 57 | struct REGEX_ITERNAL_Search *sh; |
58 | 58 | ||
59 | /** | 59 | /** |
60 | * Announcement handle (if this client is announcing). | 60 | * Announcement handle (if this client is announcing). |
61 | */ | 61 | */ |
62 | struct GNUNET_REGEX_announce_handle *ah; | 62 | struct REGEX_ITERNAL_Announcement *ah; |
63 | 63 | ||
64 | /** | 64 | /** |
65 | * Refresh frequency for announcements. | 65 | * Refresh frequency for announcements. |
@@ -143,12 +143,12 @@ handle_client_disconnect (void *cls, struct GNUNET_SERVER_Client *client) | |||
143 | } | 143 | } |
144 | if (NULL != ce->ah) | 144 | if (NULL != ce->ah) |
145 | { | 145 | { |
146 | GNUNET_REGEX_announce_cancel (ce->ah); | 146 | REGEX_ITERNAL_announce_cancel (ce->ah); |
147 | ce->ah = NULL; | 147 | ce->ah = NULL; |
148 | } | 148 | } |
149 | if (NULL != ce->sh) | 149 | if (NULL != ce->sh) |
150 | { | 150 | { |
151 | GNUNET_REGEX_search_cancel (ce->sh); | 151 | REGEX_ITERNAL_search_cancel (ce->sh); |
152 | ce->sh = NULL; | 152 | ce->sh = NULL; |
153 | } | 153 | } |
154 | GNUNET_CONTAINER_DLL_remove (client_head, client_tail, ce); | 154 | GNUNET_CONTAINER_DLL_remove (client_head, client_tail, ce); |
@@ -171,7 +171,7 @@ reannounce (void *cls, | |||
171 | { | 171 | { |
172 | struct ClientEntry *ce = cls; | 172 | struct ClientEntry *ce = cls; |
173 | 173 | ||
174 | GNUNET_REGEX_reannounce (ce->ah); | 174 | REGEX_ITERNAL_reannounce (ce->ah); |
175 | ce->refresh_task = GNUNET_SCHEDULER_add_delayed (ce->frequency, | 175 | ce->refresh_task = GNUNET_SCHEDULER_add_delayed (ce->frequency, |
176 | &reannounce, | 176 | &reannounce, |
177 | ce); | 177 | ce); |
@@ -207,7 +207,7 @@ handle_announce (void *cls, | |||
207 | } | 207 | } |
208 | ce = GNUNET_new (struct ClientEntry); | 208 | ce = GNUNET_new (struct ClientEntry); |
209 | ce->client = client; | 209 | ce->client = client; |
210 | ce->ah = GNUNET_REGEX_announce (dht, | 210 | ce->ah = REGEX_ITERNAL_announce (dht, |
211 | &am->pid, | 211 | &am->pid, |
212 | regex, | 212 | regex, |
213 | ntohs (am->compression), | 213 | ntohs (am->compression), |
@@ -311,7 +311,7 @@ handle_search (void *cls, | |||
311 | } | 311 | } |
312 | ce = GNUNET_new (struct ClientEntry); | 312 | ce = GNUNET_new (struct ClientEntry); |
313 | ce->client = client; | 313 | ce->client = client; |
314 | ce->sh = GNUNET_REGEX_search (dht, | 314 | ce->sh = REGEX_ITERNAL_search (dht, |
315 | string, | 315 | string, |
316 | &handle_search_result, | 316 | &handle_search_result, |
317 | ce, | 317 | ce, |