static GNUNET_SCHEDULER_TaskIdentifier shutdown_task;
+
static void
force_shutdown (void *cls,
const struct GNUNET_SCHEDULER_TaskContext *tc)
ok = 7;
}
+
static void
normal_shutdown (void *cls,
const struct GNUNET_SCHEDULER_TaskContext *tc)
GNUNET_STATISTICS_destroy (h2, GNUNET_NO);
}
+
static int
watch_1 (void *cls,
const char *subsystem,
uint64_t value,
int is_persistent)
{
- fprintf (stderr, "Value `%s' seen\n", name);
GNUNET_assert (value == 42);
GNUNET_assert (0 == strcmp (name, "test-1"));
ok &= ~1;
return GNUNET_OK;
}
+
static int
watch_2 (void *cls,
const char *subsystem,
uint64_t value,
int is_persistent)
{
- fprintf (stderr, "Value `%s' seen\n", name);
GNUNET_assert (value == 43);
GNUNET_assert (0 == strcmp (name, "test-2"));
ok &= ~2;
return GNUNET_OK;
}
+
static void
run (void *cls,
char *const *args,