[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r32609 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r32609 - gnunet/src/util |
Date: |
Mon, 10 Mar 2014 14:51:09 +0100 |
Author: harsha
Date: 2014-03-10 14:51:09 +0100 (Mon, 10 Mar 2014)
New Revision: 32609
Modified:
gnunet/src/util/Makefile.am
gnunet/src/util/program.c
gnunet/src/util/service.c
gnunet/src/util/speedup.c
Log:
- Expose speedup routines as an internal header.
Modified: gnunet/src/util/Makefile.am
===================================================================
--- gnunet/src/util/Makefile.am 2014-03-10 11:55:14 UTC (rev 32608)
+++ gnunet/src/util/Makefile.am 2014-03-10 13:51:09 UTC (rev 32609)
@@ -118,7 +118,7 @@
signal.c \
strings.c \
time.c \
- speedup.c
+ speedup.c speedup.h
libgnunetutil_la_LIBADD = \
$(GCLIBADD) $(WINLIB) \
Modified: gnunet/src/util/program.c
===================================================================
--- gnunet/src/util/program.c 2014-03-10 11:55:14 UTC (rev 32608)
+++ gnunet/src/util/program.c 2014-03-10 13:51:09 UTC (rev 32609)
@@ -28,6 +28,7 @@
#include "gnunet_util_lib.h"
#include "gnunet_resolver_service.h"
#include "gnunet_constants.h"
+#include "speedup.h"
#include <gcrypt.h>
#define LOG(kind,...) GNUNET_log_from (kind, "util", __VA_ARGS__)
@@ -68,23 +69,6 @@
/**
- * Start task that may speed up our system clock artificially
- *
- * @param cfg configuration to use
- * @return #GNUNET_OK on success, #GNUNET_SYSERR if the speedup was not
configured
- */
-int
-GNUNET_SPEEDUP_start_ (const struct GNUNET_CONFIGURATION_Handle *cfg);
-
-
-/**
- * Stop tasks that modify clock behavior.
- */
-void
-GNUNET_SPEEDUP_stop_ (void);
-
-
-/**
* Initial task called by the scheduler for each
* program. Runs the program-specific main task.
*/
Modified: gnunet/src/util/service.c
===================================================================
--- gnunet/src/util/service.c 2014-03-10 11:55:14 UTC (rev 32608)
+++ gnunet/src/util/service.c 2014-03-10 13:51:09 UTC (rev 32609)
@@ -28,6 +28,7 @@
#include "gnunet_protocols.h"
#include "gnunet_constants.h"
#include "gnunet_resolver_service.h"
+#include "speedup.h"
#if HAVE_MALLINFO
#include <malloc.h>
@@ -45,22 +46,6 @@
/* ******************* access control ******************** */
/**
- * Start task that may speed up our system clock artificially
- *
- * @param cfg configuration to use
- * @return GNUNET_OK on success, GNUNET_SYSERR if the speedup was not
configured
- */
-int
-GNUNET_SPEEDUP_start_ (const struct GNUNET_CONFIGURATION_Handle *cfg);
-
-/**
- * Stop tasks that modify clock behavior.
- */
-void
-GNUNET_SPEEDUP_stop_ (void);
-
-
-/**
* Check if the given IP address is in the list of IP addresses.
*
* @param list a list of networks
Modified: gnunet/src/util/speedup.c
===================================================================
--- gnunet/src/util/speedup.c 2014-03-10 11:55:14 UTC (rev 32608)
+++ gnunet/src/util/speedup.c 2014-03-10 13:51:09 UTC (rev 32609)
@@ -25,6 +25,7 @@
*/
#include "platform.h"
#include "gnunet_util_lib.h"
+#include "speedup.h"
#define LOG(kind,...) GNUNET_log_from (kind, "util", __VA_ARGS__)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r32609 - gnunet/src/util,
gnunet <=