diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-06-26 17:21:22 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-06-26 17:21:22 +0000 |
commit | 3999807382f98843cdde19211fc94484d0793087 (patch) | |
tree | eab97299e72edbfdd5d6f409db0729d9780d3e5e /src/regex/regex_internal_lib.h | |
parent | abc1a0ea19b7dc199b83749d31e32622c7469ded (diff) | |
download | gnunet-3999807382f98843cdde19211fc94484d0793087.tar.gz gnunet-3999807382f98843cdde19211fc94484d0793087.zip |
-introducing signing of regex accept states, removing PID from regex API
Diffstat (limited to 'src/regex/regex_internal_lib.h')
-rw-r--r-- | src/regex/regex_internal_lib.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/regex/regex_internal_lib.h b/src/regex/regex_internal_lib.h index 3d4a1b65c..391a33fd2 100644 --- a/src/regex/regex_internal_lib.h +++ b/src/regex/regex_internal_lib.h | |||
@@ -150,12 +150,13 @@ struct REGEX_INTERNAL_Announcement; | |||
150 | */ | 150 | */ |
151 | struct REGEX_INTERNAL_Search; | 151 | struct REGEX_INTERNAL_Search; |
152 | 152 | ||
153 | |||
153 | /** | 154 | /** |
154 | * Announce a regular expression: put all states of the automaton in the DHT. | 155 | * Announce a regular expression: put all states of the automaton in the DHT. |
155 | * Does not free resources, must call REGEX_INTERNAL_announce_cancel for that. | 156 | * Does not free resources, must call REGEX_INTERNAL_announce_cancel for that. |
156 | * | 157 | * |
157 | * @param dht An existing and valid DHT service handle. CANNOT be NULL. | 158 | * @param dht An existing and valid DHT service handle. CANNOT be NULL. |
158 | * @param id ID to announce as provider of regex. Own ID in most cases. | 159 | * @param priv our private key, must remain valid until the announcement is cancelled |
159 | * @param regex Regular expression to announce. | 160 | * @param regex Regular expression to announce. |
160 | * @param compression How many characters per edge can we squeeze? | 161 | * @param compression How many characters per edge can we squeeze? |
161 | * @param stats Optional statistics handle to report usage. Can be NULL. | 162 | * @param stats Optional statistics handle to report usage. Can be NULL. |
@@ -165,10 +166,11 @@ struct REGEX_INTERNAL_Search; | |||
165 | */ | 166 | */ |
166 | struct REGEX_INTERNAL_Announcement * | 167 | struct REGEX_INTERNAL_Announcement * |
167 | REGEX_INTERNAL_announce (struct GNUNET_DHT_Handle *dht, | 168 | REGEX_INTERNAL_announce (struct GNUNET_DHT_Handle *dht, |
168 | const struct GNUNET_PeerIdentity *id, | 169 | const struct GNUNET_CRYPTO_EccPrivateKey *priv, |
169 | const char *regex, | 170 | const char *regex, |
170 | uint16_t compression, | 171 | uint16_t compression, |
171 | struct GNUNET_STATISTICS_Handle *stats); | 172 | struct GNUNET_STATISTICS_Handle *stats); |
173 | |||
172 | 174 | ||
173 | /** | 175 | /** |
174 | * Announce again a regular expression previously announced. | 176 | * Announce again a regular expression previously announced. |