aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authort3sserakt <t3ss@posteo.de>2024-05-19 15:03:38 +0200
committert3sserakt <t3ss@posteo.de>2024-05-19 15:03:56 +0200
commitbe2932ccf22793e0743da148e7143cef5cbcf919 (patch)
treec057b4c99b72aa0742c6be6ef3cb100391745eb6
parent6a8338f779889960ddbd62040b35397376d72ac1 (diff)
downloadgnunet-be2932ccf22793e0743da148e7143cef5cbcf919.tar.gz
gnunet-be2932ccf22793e0743da148e7143cef5cbcf919.zip
Testing: Method to get the default plugin.
-rw-r--r--src/lib/testing/netjail.c9
-rw-r--r--src/lib/testing/netjail.h9
2 files changed, 18 insertions, 0 deletions
diff --git a/src/lib/testing/netjail.c b/src/lib/testing/netjail.c
index 35391f92e..c00a4d683 100644
--- a/src/lib/testing/netjail.c
+++ b/src/lib/testing/netjail.c
@@ -811,6 +811,15 @@ parse_ac (struct GNUNET_TESTING_NetjailNode *p_node, const char *token)
811} 811}
812 812
813 813
814char *
815GNUNET_TESTING_get_plugin_from_topo (
816 struct GNUNET_TESTING_NetjailTopology *njt,
817 const char *my_node_id)
818{
819 return njt->plugin;
820}
821
822
814/** 823/**
815 * Parse the topology data. 824 * Parse the topology data.
816 * 825 *
diff --git a/src/lib/testing/netjail.h b/src/lib/testing/netjail.h
index 36c286f13..7306f0728 100644
--- a/src/lib/testing/netjail.h
+++ b/src/lib/testing/netjail.h
@@ -321,6 +321,15 @@ GNUNET_TESTING_get_address (
321 321
322 322
323/** 323/**
324 * Get the global plugin name form the topology file
325 */
326char *
327GNUNET_TESTING_get_plugin_from_topo (
328 struct GNUNET_TESTING_NetjailTopology *njt,
329 const char *my_node_id);
330
331
332/**
324 * Deallocate memory of the struct GNUNET_TESTING_NetjailTopology. 333 * Deallocate memory of the struct GNUNET_TESTING_NetjailTopology.
325 * 334 *
326 * @param[in] topology The GNUNET_TESTING_NetjailTopology to be deallocated. 335 * @param[in] topology The GNUNET_TESTING_NetjailTopology to be deallocated.