aboutsummaryrefslogtreecommitdiff
path: root/src/regex/regex_internal_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-06-26 17:21:22 +0000
committerChristian Grothoff <christian@grothoff.org>2013-06-26 17:21:22 +0000
commit3999807382f98843cdde19211fc94484d0793087 (patch)
treeeab97299e72edbfdd5d6f409db0729d9780d3e5e /src/regex/regex_internal_lib.h
parentabc1a0ea19b7dc199b83749d31e32622c7469ded (diff)
downloadgnunet-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.h12
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 */
151struct REGEX_INTERNAL_Search; 151struct 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 */
166struct REGEX_INTERNAL_Announcement * 167struct REGEX_INTERNAL_Announcement *
167REGEX_INTERNAL_announce (struct GNUNET_DHT_Handle *dht, 168REGEX_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.