[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r24901 - gnunet/src/mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r24901 - gnunet/src/mesh |
Date: |
Sun, 11 Nov 2012 16:04:14 +0100 |
Author: szengel
Date: 2012-11-11 16:04:14 +0100 (Sun, 11 Nov 2012)
New Revision: 24901
Modified:
gnunet/src/mesh/gnunet-daemon-regexprofiler.c
gnunet/src/mesh/gnunet-service-mesh.c
Log:
doxygen
Modified: gnunet/src/mesh/gnunet-daemon-regexprofiler.c
===================================================================
--- gnunet/src/mesh/gnunet-daemon-regexprofiler.c 2012-11-11 14:23:35 UTC
(rev 24900)
+++ gnunet/src/mesh/gnunet-daemon-regexprofiler.c 2012-11-11 15:04:14 UTC
(rev 24901)
@@ -162,6 +162,7 @@
*
* @param filename filename of the file containing the regexes, one per line.
* @param rxes array with all regexes, needs to be freed.
+ * @return number of regular expressions read from filename and in rxes array.
*/
static unsigned int
load_regexes (const char *filename, char ***rxes)
@@ -270,7 +271,7 @@
if (GNUNET_OK !=
GNUNET_CONFIGURATION_get_value_string (cfg, "REGEXPROFILER",
"REGEX_PREFIX",
- ®ex_prefix))
+ ®ex_prefix))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
_
@@ -283,13 +284,13 @@
if (GNUNET_OK !=
GNUNET_CONFIGURATION_get_value_time (cfg, "REGEXPROFILER",
"ANNOUNCE_DELAY",
- &announce_delay))
+ &announce_delay))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
_
("%s service is lacking key configuration settings (%s).
Using default value: %s.\n"),
- "regexprofiler", "announce_delay",
- GNUNET_STRINGS_relative_time_to_string (announce_delay,
GNUNET_NO));
+ "regexprofiler", "announce_delay",
+ GNUNET_STRINGS_relative_time_to_string (announce_delay,
GNUNET_NO));
}
stats_handle = GNUNET_STATISTICS_create ("regexprofiler", cfg);
@@ -308,9 +309,9 @@
/* Read regexes from policy files */
if ((num_regexes = load_regexes (policy_filename, ®exes)) == 0)
{
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Policy file %s contains no policies. Exiting.\n",
- policy_filename);
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Policy file %s contains no policies. Exiting.\n",
+ policy_filename);
global_ret = GNUNET_SYSERR;
GNUNET_SCHEDULER_shutdown ();
return;
@@ -345,7 +346,7 @@
return (GNUNET_OK ==
GNUNET_PROGRAM_run (argc, argv, "regexprofiler",
gettext_noop
- ("Daemon to announce regular expressions for the
peer using mesh."),
+ ("Daemon to announce regular expressions for the
peer using mesh."),
options, &run, NULL)) ? global_ret : 1;
}
Modified: gnunet/src/mesh/gnunet-service-mesh.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh.c 2012-11-11 14:23:35 UTC (rev
24900)
+++ gnunet/src/mesh/gnunet-service-mesh.c 2012-11-11 15:04:14 UTC (rev
24901)
@@ -182,6 +182,9 @@
*/
char *regex;
+ /**
+ * Cached DFA for regular expression 'regex'.
+ */
struct GNUNET_REGEX_Automaton *dfa;
/**
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r24901 - gnunet/src/mesh,
gnunet <=