diff options
Diffstat (limited to 'src/transport/plugin_transport_bluetooth.c')
-rw-r--r-- | src/transport/plugin_transport_bluetooth.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_bluetooth.c b/src/transport/plugin_transport_bluetooth.c index ef8c6f1a2..36c5c8e2e 100644 --- a/src/transport/plugin_transport_bluetooth.c +++ b/src/transport/plugin_transport_bluetooth.c | |||
@@ -1859,6 +1859,28 @@ libgnunet_plugin_transport_bluetooth_init (void *cls) | |||
1859 | NULL, | 1859 | NULL, |
1860 | plugin); | 1860 | plugin); |
1861 | break; | 1861 | break; |
1862 | case 1: /* testmode, peer 1 */ | ||
1863 | plugin->helper_argv[0] = (char *) "gnunet-helper-transport-wlan-dummy"; | ||
1864 | plugin->helper_argv[1] = (char *) "1"; | ||
1865 | plugin->helper_argv[2] = NULL; | ||
1866 | plugin->suid_helper = GNUNET_HELPER_start (GNUNET_NO, | ||
1867 | "gnunet-helper-transport-wlan-dummy", | ||
1868 | plugin->helper_argv, | ||
1869 | &handle_helper_message, | ||
1870 | NULL, | ||
1871 | plugin); | ||
1872 | break; | ||
1873 | case 2: /* testmode, peer 2 */ | ||
1874 | plugin->helper_argv[0] = (char *) "gnunet-helper-transport-wlan-dummy"; | ||
1875 | plugin->helper_argv[1] = (char *) "2"; | ||
1876 | plugin->helper_argv[2] = NULL; | ||
1877 | plugin->suid_helper = GNUNET_HELPER_start (GNUNET_NO, | ||
1878 | "gnunet-helper-transport-wlan-dummy", | ||
1879 | plugin->helper_argv, | ||
1880 | &handle_helper_message, | ||
1881 | NULL, | ||
1882 | plugin); | ||
1883 | break; | ||
1862 | default: | 1884 | default: |
1863 | GNUNET_assert (0); | 1885 | GNUNET_assert (0); |
1864 | } | 1886 | } |