aboutsummaryrefslogtreecommitdiff
path: root/src/testing/gnunet-cmds-helper.c
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/testing/gnunet-cmds-helper.c
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/testing/gnunet-cmds-helper.c')
-rw-r--r--src/testing/gnunet-cmds-helper.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/testing/gnunet-cmds-helper.c b/src/testing/gnunet-cmds-helper.c
index f87a055c3..9c16038f0 100644
--- a/src/testing/gnunet-cmds-helper.c
+++ b/src/testing/gnunet-cmds-helper.c
@@ -40,7 +40,9 @@
40#include "gnunet_util_lib.h" 40#include "gnunet_util_lib.h"
41#include "gnunet_testing_lib.h" 41#include "gnunet_testing_lib.h"
42#include "gnunet_testing_ng_lib.h" 42#include "gnunet_testing_ng_lib.h"
43#include "gnunet_testing_plugin.h"
43#include "gnunet_testing_netjail_lib.h" 44#include "gnunet_testing_netjail_lib.h"
45#include "testing.h"
44#include "testing_cmds.h" 46#include "testing_cmds.h"
45#include "gnunet_testing_plugin.h" 47#include "gnunet_testing_plugin.h"
46#include "gnunet_testing_barrier.h" 48#include "gnunet_testing_barrier.h"
@@ -135,7 +137,7 @@ static struct GNUNET_OS_Process *cmd_binary_process;*/
135/** 137/**
136 * Plugin to dynamically load a test case. 138 * Plugin to dynamically load a test case.
137 */ 139 */
138struct Plugin *plugin; 140struct TestcasePlugin *plugin;
139 141
140/** 142/**
141 * Our message stream tokenizer 143 * Our message stream tokenizer
@@ -355,7 +357,7 @@ tokenizer_cb (void *cls, const struct GNUNET_MessageHeader *message)
355 357
356 binary = GNUNET_OS_get_libexec_binary_path ("gnunet-cmd"); 358 binary = GNUNET_OS_get_libexec_binary_path ("gnunet-cmd");
357 359
358 plugin = GNUNET_new (struct Plugin); 360 plugin = GNUNET_new (struct TestcasePlugin);
359 plugin->api = GNUNET_PLUGIN_load (plugin_name, 361 plugin->api = GNUNET_PLUGIN_load (plugin_name,
360 NULL); 362 NULL);
361 plugin->library_name = GNUNET_strdup (basename (plugin_name)); 363 plugin->library_name = GNUNET_strdup (basename (plugin_name));