diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-12-09 12:07:26 +0900 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-12-09 12:07:26 +0900 |
commit | 4f46e2f2e72a07871b14c0a9aed70438616c4dd5 (patch) | |
tree | f4b904d75ec9fc977aa662d6c8ed0a4d71a22097 /src/testing/testing_api_cmd_local_test_prepared.c | |
parent | 1b3f6f366fc62e5519bb73fefe8c21c2eed20edf (diff) | |
download | gnunet-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/testing_api_cmd_local_test_prepared.c')
-rw-r--r-- | src/testing/testing_api_cmd_local_test_prepared.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/testing/testing_api_cmd_local_test_prepared.c b/src/testing/testing_api_cmd_local_test_prepared.c index 3f976f554..2b1525077 100644 --- a/src/testing/testing_api_cmd_local_test_prepared.c +++ b/src/testing/testing_api_cmd_local_test_prepared.c | |||
@@ -26,6 +26,8 @@ | |||
26 | #include "platform.h" | 26 | #include "platform.h" |
27 | #include "gnunet_util_lib.h" | 27 | #include "gnunet_util_lib.h" |
28 | #include "gnunet_testing_ng_lib.h" | 28 | #include "gnunet_testing_ng_lib.h" |
29 | #include "gnunet_testing_plugin.h" | ||
30 | #include "gnunet_testing_barrier.h" | ||
29 | #include "gnunet_testing_netjail_lib.h" | 31 | #include "gnunet_testing_netjail_lib.h" |
30 | #include "testing_cmds.h" | 32 | #include "testing_cmds.h" |
31 | 33 | ||
@@ -78,7 +80,7 @@ static void | |||
78 | local_test_prepared_run (void *cls, | 80 | local_test_prepared_run (void *cls, |
79 | struct GNUNET_TESTING_Interpreter *is) | 81 | struct GNUNET_TESTING_Interpreter *is) |
80 | { | 82 | { |
81 | struct LocalPreparedState *lfs = cls; | 83 | struct GNUNET_TESTING_LocalPreparedState *lfs = cls; |
82 | 84 | ||
83 | struct GNUNET_TESTING_CommandLocalTestPrepared *reply; | 85 | struct GNUNET_TESTING_CommandLocalTestPrepared *reply; |
84 | size_t msg_length; | 86 | size_t msg_length; |
@@ -94,12 +96,12 @@ local_test_prepared_run (void *cls, | |||
94 | 96 | ||
95 | struct GNUNET_TESTING_Command | 97 | struct GNUNET_TESTING_Command |
96 | GNUNET_TESTING_cmd_local_test_prepared (const char *label, | 98 | GNUNET_TESTING_cmd_local_test_prepared (const char *label, |
97 | TESTING_CMD_HELPER_write_cb | 99 | GNUNET_TESTING_cmd_helper_write_cb |
98 | write_message) | 100 | write_message) |
99 | { | 101 | { |
100 | struct LocalPreparedState *lfs; | 102 | struct GNUNET_TESTING_LocalPreparedState *lfs; |
101 | 103 | ||
102 | lfs = GNUNET_new (struct LocalPreparedState); | 104 | lfs = GNUNET_new (struct GNUNET_TESTING_LocalPreparedState); |
103 | lfs->write_message = write_message; | 105 | lfs->write_message = write_message; |
104 | 106 | ||
105 | return GNUNET_TESTING_command_new (lfs, label, | 107 | return GNUNET_TESTING_command_new (lfs, label, |