aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_testing_ng_lib.h
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2022-12-09 12:07:26 +0900
committerMartin Schanzenbach <schanzen@gnunet.org>2022-12-09 12:07:26 +0900
commit4f46e2f2e72a07871b14c0a9aed70438616c4dd5 (patch)
treef4b904d75ec9fc977aa662d6c8ed0a4d71a22097 /src/include/gnunet_testing_ng_lib.h
parent1b3f6f366fc62e5519bb73fefe8c21c2eed20edf (diff)
downloadgnunet-4f46e2f2e72a07871b14c0a9aed70438616c4dd5.tar.gz
gnunet-4f46e2f2e72a07871b14c0a9aed70438616c4dd5.zip
TESTING: Fix TESTING-NG API to follow naming conventions
Rename structs and functions to follow GNUnet naming conventions. Some structs may actually also be private, a review is necessary. The barrier API was modified in order to untangle Barriers and lists of Barriers. This is a rough draft, it needs fixes wrt memory leaks.
Diffstat (limited to 'src/include/gnunet_testing_ng_lib.h')
-rw-r--r--src/include/gnunet_testing_ng_lib.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/include/gnunet_testing_ng_lib.h b/src/include/gnunet_testing_ng_lib.h
index 0b4c05a59..d218a65db 100644
--- a/src/include/gnunet_testing_ng_lib.h
+++ b/src/include/gnunet_testing_ng_lib.h
@@ -29,7 +29,6 @@
29 29
30 30
31#include "gnunet_util_lib.h" 31#include "gnunet_util_lib.h"
32#include "gnunet_testing_plugin.h"
33#include "gnunet_testing_lib.h" 32#include "gnunet_testing_lib.h"
34 33
35/** 34/**
@@ -134,18 +133,6 @@ GNUNET_TESTING_command_new (void *cls,
134 */ 133 */
135struct GNUNET_TESTING_Command 134struct GNUNET_TESTING_Command
136{ 135{
137 // FIXME: This should not be here. Looking at the code commands are used
138 // in arrays. Not lists.
139 /**
140 * Pointer to the previous command in the DLL.
141 */
142 struct GNUNET_TESTING_Command *prev;
143
144 /**
145 * Pointer to the next command in the DLL.
146 */
147 struct GNUNET_TESTING_Command *next;
148
149 /** 136 /**
150 * Closure for all commands with command-specific context information. 137 * Closure for all commands with command-specific context information.
151 */ 138 */
@@ -466,7 +453,7 @@ GNUNET_TESTING_get_barrier (struct GNUNET_TESTING_Interpreter *is,
466 * @param barrier The barrier to add. 453 * @param barrier The barrier to add.
467 */ 454 */
468void 455void
469GNUNET_TESTING_barrier_add (struct GNUNET_TESTING_Interpreter *is, 456GNUNET_TESTING_interpreter_add_barrier (struct GNUNET_TESTING_Interpreter *is,
470 struct GNUNET_TESTING_Barrier *barrier); 457 struct GNUNET_TESTING_Barrier *barrier);
471 458
472 459