gnunet-ext

Template for writing GNUnet extensions
Log | Files | Refs | README | LICENSE

commit 6ba62d11c72bd9ca900d6d817e90df6672836bd5
parent 2c92b6e01e520db3dea98b503a59cc821778731b
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon,  9 Jul 2012 19:07:42 +0000

-update to new API

Diffstat:
Msrc/ext/test_ext_api.c | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/ext/test_ext_api.c b/src/ext/test_ext_api.c @@ -26,26 +26,29 @@ #include "gnunet_ext_service.h" +static int ok = 1; + + static void run (void *cls, char *const *args, const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *cfg) { + ok = 0; } static int check () { - int ok = 1; char *const argv[] = { "test-ext-api", NULL }; struct GNUNET_GETOPT_CommandLineOption options[] = { GNUNET_GETOPT_OPTION_END }; struct GNUNET_OS_Process *proc; - proc = GNUNET_OS_start_process (GNUNET_NO, NULL, NULL, + proc = GNUNET_OS_start_process (GNUNET_NO, GNUNET_OS_INHERIT_STD_ALL, NULL, NULL, "gnunet-service-ext", "gnunet-service-ext", NULL);