gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r20983 - gnunet/src/include


From: gnunet
Subject: [GNUnet-SVN] r20983 - gnunet/src/include
Date: Mon, 16 Apr 2012 12:51:59 +0200

Author: grothoff
Date: 2012-04-16 12:51:59 +0200 (Mon, 16 Apr 2012)
New Revision: 20983

Modified:
   gnunet/src/include/gnunet_regex_lib.h
Log:
-joint hdr hacking

Modified: gnunet/src/include/gnunet_regex_lib.h
===================================================================
--- gnunet/src/include/gnunet_regex_lib.h       2012-04-16 09:47:00 UTC (rev 
20982)
+++ gnunet/src/include/gnunet_regex_lib.h       2012-04-16 10:51:59 UTC (rev 
20983)
@@ -101,6 +101,7 @@
                    const char *string);
 
 
+
 /**
  * Get the starting state of the given automaton 'a'.
  *
@@ -111,7 +112,46 @@
 struct GNUNET_REGEX_State *
 GNUNET_REGEX_automaton_get_start (struct GNUNET_REGEX_Automaton *a);
 
+
 /**
+ * @return number of bits of 'input_string' that have been consumed
+ *         to construct the key
+ */
+unsigned int
+GNUNET_REGEX_get_first_key (const char *input_string,
+                           GNUNET_HashCode *key);
+
+
+
+/**
+ * @return GNUNET_OK if the proof is valid for the given key
+ */
+int
+GNUNET_REGEX_check_proof (const char *proof,
+                         const GNUNET_HashCode *key);
+
+
+struct GNUNET_REGEX_Edge
+{
+  const char *label;
+  GNUNET_HashCode destination;
+};
+
+
+typedef void (*GNUNET_REGEX_KeyIterator)(void *cls,
+                                        const GNUNET_HashCode *key,
+                                        const char *proof,
+                                        unsigned int num_edges,
+                                        const struct GNUNET_REGEX_Edge *edges);
+
+
+int
+GNUNET_REGEX_iterate_all_edges (struct GNUNET_REGEX_Automaton *a,
+                               GNUNET_REGEX_KeyIterator iterator,
+                               void *iterator_cls);
+
+
+/**
  * Get the next states, starting from states 's'.
  *
  * @param a automaton.
@@ -140,6 +180,9 @@
                                     struct GNUNET_REGEX_State **s,
                                     unsigned int count);
 
+
+
+
 #if 0                           /* keep Emacsens' auto-indent happy */
 {
 #endif




reply via email to

[Prev in Thread] Current Thread [Next in Thread]