aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-01-22 20:02:48 +0000
committerChristian Grothoff <christian@grothoff.org>2012-01-22 20:02:48 +0000
commit0cc5c8b90d257f6d86fa2b339b74dd1702f2c960 (patch)
tree8b0f86d70dfc3a19643b06cdaf204c0b343755cb
parentb73be1f7e93acfaa45eca3af1c241cf31b356f36 (diff)
downloadgnunet-gtk-0cc5c8b90d257f6d86fa2b339b74dd1702f2c960.tar.gz
gnunet-gtk-0cc5c8b90d257f6d86fa2b339b74dd1702f2c960.zip
-updating C code for setup tool to reflect changes in glade file for new VPN/PT code
-rw-r--r--contrib/gnunet_setup_gtk_main_window.glade4
-rw-r--r--src/setup/gnunet-setup-options.c312
2 files changed, 132 insertions, 184 deletions
diff --git a/contrib/gnunet_setup_gtk_main_window.glade b/contrib/gnunet_setup_gtk_main_window.glade
index 08799979..d745e45f 100644
--- a/contrib/gnunet_setup_gtk_main_window.glade
+++ b/contrib/gnunet_setup_gtk_main_window.glade
@@ -3098,7 +3098,7 @@
3098 </packing> 3098 </packing>
3099 </child> 3099 </child>
3100 <child> 3100 <child>
3101 <object class="GtkCheckButton" id="GNUNET_setup_pt_dns_checkbutton1"> 3101 <object class="GtkCheckButton" id="GNUNET_setup_pt_dns_checkbutton">
3102 <property name="label" translatable="yes">Tunnel DNS Traffic</property> 3102 <property name="label" translatable="yes">Tunnel DNS Traffic</property>
3103 <property name="visible">True</property> 3103 <property name="visible">True</property>
3104 <property name="can_focus">True</property> 3104 <property name="can_focus">True</property>
@@ -3805,7 +3805,7 @@
3805 </object> 3805 </object>
3806 </child> 3806 </child>
3807 <child> 3807 <child>
3808 <object class="GtkTreeViewColumn" id="GNUNET_setup_gns_typ_treeviewcolumn"> 3808 <object class="GtkTreeViewColumn" id="GNUNET_setup_gns_type_treeviewcolumn">
3809 <property name="resizable">True</property> 3809 <property name="resizable">True</property>
3810 <property name="sizing">autosize</property> 3810 <property name="sizing">autosize</property>
3811 <property name="title">Type</property> 3811 <property name="title">Type</property>
diff --git a/src/setup/gnunet-setup-options.c b/src/setup/gnunet-setup-options.c
index 7cbe5eea..79b277f2 100644
--- a/src/setup/gnunet-setup-options.c
+++ b/src/setup/gnunet-setup-options.c
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet.
3 (C) 2010, 2011 Christian Grothoff (and other contributing authors) 3 (C) 2010, 2011, 2012 Christian Grothoff (and other contributing authors)
4 4
5 GNUnet is free software; you can redistribute it and/or modify 5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published 6 it under the terms of the GNU General Public License as published
@@ -1060,13 +1060,13 @@ save_vpn_dns_service_dnsname (GtkCellRendererText * renderer, gchar * path,
1060 * @return GNUNET_OK on success, GNUNET_SYSERR if there was a problem 1060 * @return GNUNET_OK on success, GNUNET_SYSERR if there was a problem
1061 */ 1061 */
1062static int 1062static int
1063vpn_dns_service_dnsname_install_edited_handler (const void *cls, 1063gns_name_install_edited_handler (const void *cls,
1064 const char *section, 1064 const char *section,
1065 const char *option, 1065 const char *option,
1066 GObject * widget, 1066 GObject * widget,
1067 struct 1067 struct
1068 GNUNET_CONFIGURATION_Handle 1068 GNUNET_CONFIGURATION_Handle
1069 *cfg) 1069 *cfg)
1070{ 1070{
1071 static int once; 1071 static int once;
1072 GtkCellRendererText *rt; 1072 GtkCellRendererText *rt;
@@ -1144,11 +1144,11 @@ save_vpn_dns_service_tcpudp (GtkCellRendererText * renderer, gchar * path,
1144 * @return GNUNET_OK on success, GNUNET_SYSERR if there was a problem 1144 * @return GNUNET_OK on success, GNUNET_SYSERR if there was a problem
1145 */ 1145 */
1146static int 1146static int
1147vpn_dns_service_tcpudp_install_edited_handler (const void *cls, 1147gns_type_install_edited_handler (const void *cls,
1148 const char *section, 1148 const char *section,
1149 const char *option, 1149 const char *option,
1150 GObject * widget, 1150 GObject * widget,
1151 struct 1151 struct
1152 GNUNET_CONFIGURATION_Handle *cfg) 1152 GNUNET_CONFIGURATION_Handle *cfg)
1153{ 1153{
1154 static int once; 1154 static int once;
@@ -1228,13 +1228,13 @@ save_vpn_dns_service_sourceport (GtkCellRendererText * renderer, gchar * path,
1228 * @return GNUNET_OK on success, GNUNET_SYSERR if there was a problem 1228 * @return GNUNET_OK on success, GNUNET_SYSERR if there was a problem
1229 */ 1229 */
1230static int 1230static int
1231vpn_dns_service_sourceport_install_edited_handler (const void *cls, 1231gns_ttl_install_edited_handler (const void *cls,
1232 const char *section, 1232 const char *section,
1233 const char *option, 1233 const char *option,
1234 GObject * widget, 1234 GObject * widget,
1235 struct 1235 struct
1236 GNUNET_CONFIGURATION_Handle 1236 GNUNET_CONFIGURATION_Handle
1237 *cfg) 1237 *cfg)
1238{ 1238{
1239 static int once; 1239 static int once;
1240 GtkCellRendererText *rt; 1240 GtkCellRendererText *rt;
@@ -1307,13 +1307,13 @@ save_vpn_dns_service_targethostname (GtkCellRendererText * renderer,
1307 * @return GNUNET_OK on success, GNUNET_SYSERR if there was a problem 1307 * @return GNUNET_OK on success, GNUNET_SYSERR if there was a problem
1308 */ 1308 */
1309static int 1309static int
1310vpn_dns_service_targethostname_install_edited_handler (const void *cls, 1310gns_value_install_edited_handler (const void *cls,
1311 const char *section, 1311 const char *section,
1312 const char *option, 1312 const char *option,
1313 GObject * widget, 1313 GObject * widget,
1314 struct 1314 struct
1315 GNUNET_CONFIGURATION_Handle 1315 GNUNET_CONFIGURATION_Handle
1316 *cfg) 1316 *cfg)
1317{ 1317{
1318 static int once; 1318 static int once;
1319 GtkCellRendererText *rt; 1319 GtkCellRendererText *rt;
@@ -1329,90 +1329,6 @@ vpn_dns_service_targethostname_install_edited_handler (const void *cls,
1329} 1329}
1330 1330
1331 1331
1332/**
1333 * The user has edited the DNS name of a service we're offering.
1334 * Update the GtkTreeModel (at the given path) and update the
1335 * respective service entry in the configuration file. Finally,
1336 * if the edited path is for a "fresh" entry, create another empty
1337 * one at the bottom. If the hostname was set to empty, remove
1338 * the entire entry from the configuration and the model.
1339 *
1340 * @param renderer GtkCellRendererText that changed
1341 * @param path GtkTreePath identifying where in the Model the change is
1342 * @param new_text the new text that was stored in the line
1343 * @param user_data NULL
1344 */
1345static void
1346save_vpn_dns_service_targetport (GtkCellRendererText * renderer, gchar * path,
1347 gchar * new_text, gpointer user_data)
1348{
1349 GtkTreeModel *tm;
1350 GtkListStore *ls;
1351 GtkTreeIter iter;
1352 int port;
1353
1354 port = atoi (new_text);
1355 if ((port < 1) || (port > UINT16_MAX))
1356 {
1357 /* invalid port, FIXME: warn */
1358 return;
1359 }
1360 tm = GTK_TREE_MODEL (GNUNET_SETUP_get_object ("vpn_dns_config_liststore"));
1361 if (NULL == tm)
1362 {
1363 GNUNET_break (0);
1364 return;
1365 }
1366 ls = GTK_LIST_STORE (tm);
1367 if (NULL == ls)
1368 {
1369 GNUNET_break (0);
1370 return;
1371 }
1372 if (TRUE != gtk_tree_model_get_iter_from_string (tm, &iter, path))
1373 {
1374 GNUNET_break (0);
1375 return;
1376 }
1377 /* update model */
1378 gtk_list_store_set (ls, &iter, 2, (guint) port, -1);
1379 /* update configuration */
1380 update_vpn_dns_configuration (tm);
1381}
1382
1383
1384/**
1385 * Initialize the GtkListModel with the VPN's DNS service specification.
1386 *
1387 * @param cls NULL
1388 * @param section section with the value (NULL)
1389 * @param option option name (NULL)
1390 * @param widget widget to initialize (the GtkTreeView)
1391 * @param cfg configuration handle
1392 * @return GNUNET_OK on success, GNUNET_SYSERR if there was a problem
1393 */
1394static int
1395vpn_dns_service_targetport_install_edited_handler (const void *cls,
1396 const char *section,
1397 const char *option,
1398 GObject * widget,
1399 struct
1400 GNUNET_CONFIGURATION_Handle
1401 *cfg)
1402{
1403 static int once;
1404 GtkCellRendererText *rt;
1405
1406 rt = GTK_CELL_RENDERER_TEXT (widget);
1407 if (NULL == rt)
1408 return GNUNET_SYSERR;
1409 if (0 != once++)
1410 return GNUNET_OK;
1411 g_signal_connect (rt, "edited", G_CALLBACK (&save_vpn_dns_service_targetport),
1412 NULL);
1413 return GNUNET_OK;
1414}
1415
1416 1332
1417/** 1333/**
1418 * Hide "min connected friends" option if in F2F-only mode. 1334 * Hide "min connected friends" option if in F2F-only mode.
@@ -1443,8 +1359,8 @@ static struct GNUNET_SETUP_VisibilitySpecification hide_hostlist_options[] = {
1443 * Hide "exit" options if VPN exit is not in use. 1359 * Hide "exit" options if VPN exit is not in use.
1444 */ 1360 */
1445static struct GNUNET_SETUP_VisibilitySpecification hide_exit_options[] = { 1361static struct GNUNET_SETUP_VisibilitySpecification hide_exit_options[] = {
1446 {"GNUNET_setup_vpn_exit_frame", "(^| )exit($| )", NULL}, 1362 {"GNUNET_setup_exit_label", "(^| )exit($| )", NULL},
1447 {"GNUNET_setup_vpn_service_configuration_frame", "(^| )exit($| )", NULL}, 1363 {"GNUNET_setup_exit_vbox", "(^| )exit($| )", NULL},
1448 {NULL, NULL, NULL} 1364 {NULL, NULL, NULL}
1449}; 1365};
1450 1366
@@ -1476,7 +1392,7 @@ static struct GNUNET_SETUP_VisibilitySpecification hide_fs_tab[] = {
1476 * Hide "vpn tab" if VPN not active. 1392 * Hide "vpn tab" if VPN not active.
1477 */ 1393 */
1478static struct GNUNET_SETUP_VisibilitySpecification hide_vpn_tab[] = { 1394static struct GNUNET_SETUP_VisibilitySpecification hide_vpn_tab[] = {
1479 {"GNUNET_setup_vpn_vbox", "(^| )vpn($| )", NULL}, 1395 {"GNUNET_setup_vpn_vbox", "(^| )pt($| )", NULL},
1480 {NULL, NULL, NULL} 1396 {NULL, NULL, NULL}
1481}; 1397};
1482 1398
@@ -1714,18 +1630,6 @@ const struct GNUNET_SETUP_OptionSpecification option_specifications[] = {
1714 hide_fs_tab}, 1630 hide_fs_tab},
1715 1631
1716 { 1632 {
1717 "GNUNET_setup_general_services_vpn_checkbutton",
1718 "toggled",
1719 "arm",
1720 "DEFAULTSERVICES",
1721 gettext_noop ("Should the VPN be started automatically on startup?"),
1722 "https://gnunet.org/configuration-vpn",
1723 &load_option_list,
1724 &save_option_list, "vpn",
1725 NULL, NULL,
1726 hide_vpn_tab},
1727
1728 {
1729 "GNUNET_setup_hostlist_client_enable_checkbutton", 1633 "GNUNET_setup_hostlist_client_enable_checkbutton",
1730 "toggled", 1634 "toggled",
1731 "hostlist", 1635 "hostlist",
@@ -2341,8 +2245,63 @@ const struct GNUNET_SETUP_OptionSpecification option_specifications[] = {
2341 NULL, NULL, 2245 NULL, NULL,
2342 NULL}, 2246 NULL},
2343 2247
2248 /* VPN/PT service */
2249
2250 {
2251 "GNUNET_setup_general_services_vpn_checkbutton",
2252 "toggled",
2253 "arm",
2254 "DEFAULTSERVICES",
2255 gettext_noop ("Should the VPN/PT be started automatically on startup?"),
2256 "https://gnunet.org/configuration-vpn",
2257 &load_option_list,
2258 &save_option_list, "pt",
2259 NULL, NULL,
2260 hide_vpn_tab},
2261
2262
2263 {
2264 "GNUNET_setup_pt_ipv4_checkbutton",
2265 "toggled",
2266 "pt",
2267 "TUNNEL_IPV4",
2268 gettext_noop
2269 ("Tunnel IPv4 traffic over GNUnet"),
2270 "https://gnunet.org/configuration-vpn",
2271 &load_yes_no,
2272 &save_yes_no, NULL,
2273 NULL, NULL,
2274 NULL },
2275
2276
2277 {
2278 "GNUNET_setup_pt_ipv6_checkbutton",
2279 "toggled",
2280 "pt",
2281 "TUNNEL_IPV6",
2282 gettext_noop
2283 ("Tunnel IPv6 traffic over GNUnet"),
2284 "https://gnunet.org/configuration-vpn",
2285 &load_yes_no,
2286 &save_yes_no, NULL,
2287 NULL, NULL,
2288 NULL },
2289
2290 {
2291 "GNUNET_setup_pt_dns_checkbutton",
2292 "toggled",
2293 "pt",
2294 "TUNNEL_DNS",
2295 gettext_noop
2296 ("Tunnel DNS traffic over GNUnet"),
2297 "https://gnunet.org/configuration-vpn",
2298 &load_yes_no,
2299 &save_yes_no, NULL,
2300 NULL, NULL,
2301 NULL },
2302
2344 { 2303 {
2345 "GNUNET_setup_vpn_master_interface_entry", 2304 "GNUNET_setup_vpn_interface_entry",
2346 "changed", 2305 "changed",
2347 "vpn", 2306 "vpn",
2348 "IFNAME", 2307 "IFNAME",
@@ -2354,7 +2313,7 @@ const struct GNUNET_SETUP_OptionSpecification option_specifications[] = {
2354 NULL}, 2313 NULL},
2355 2314
2356 { 2315 {
2357 "GNUNET_setup_vpn_master_interface_v4_ip_entry", 2316 "GNUNET_setup_vpn_interface_v4_ip_entry",
2358 "changed", 2317 "changed",
2359 "vpn", 2318 "vpn",
2360 "IPV4ADDR", 2319 "IPV4ADDR",
@@ -2366,7 +2325,7 @@ const struct GNUNET_SETUP_OptionSpecification option_specifications[] = {
2366 NULL}, 2325 NULL},
2367 2326
2368 { 2327 {
2369 "GNUNET_setup_vpn_master_interface_v4_mask_entry", 2328 "GNUNET_setup_vpn_interface_v4_mask_entry",
2370 "changed", 2329 "changed",
2371 "vpn", 2330 "vpn",
2372 "IPV4MASK", 2331 "IPV4MASK",
@@ -2378,7 +2337,7 @@ const struct GNUNET_SETUP_OptionSpecification option_specifications[] = {
2378 NULL}, 2337 NULL},
2379 2338
2380 { 2339 {
2381 "GNUNET_setup_vpn_master_interface_v6_ip_entry", 2340 "GNUNET_setup_vpn_interface_v6_ip_entry",
2382 "changed", 2341 "changed",
2383 "vpn", 2342 "vpn",
2384 "IPV6ADDR", 2343 "IPV6ADDR",
@@ -2390,7 +2349,7 @@ const struct GNUNET_SETUP_OptionSpecification option_specifications[] = {
2390 NULL}, 2349 NULL},
2391 2350
2392 { 2351 {
2393 "GNUNET_setup_vpn_master_interface_v6_mask_spinbutton", 2352 "GNUNET_setup_vpn_interface_v6_mask_spinbutton",
2394 "value-changed", 2353 "value-changed",
2395 "vpn", 2354 "vpn",
2396 "IPV6MASK", 2355 "IPV6MASK",
@@ -2401,21 +2360,11 @@ const struct GNUNET_SETUP_OptionSpecification option_specifications[] = {
2401 NULL, NULL, 2360 NULL, NULL,
2402 NULL}, 2361 NULL},
2403 2362
2404 { 2363
2405 "GNUNET_setup_vpn_master_vdns_server_entry", 2364 /* exit daemon */
2406 "changed",
2407 "vpn",
2408 "VIRTDNS",
2409 gettext_noop
2410 ("IP address of the virtual DNS server that resolves through GNUnet (use in resolve.conf if you want to resolve through some GNUnet DNS Exit)"),
2411 "https://gnunet.org/configuration-vpn",
2412 &load_text,
2413 &save_text, NULL,
2414 NULL, NULL,
2415 NULL},
2416 2365
2417 { 2366 {
2418 "GNUNET_setup_vpn_enable_vpn_exit_checkbutton", 2367 "GNUNET_setup_general_services_exit_checkbutton",
2419 "toggled", 2368 "toggled",
2420 "arm", 2369 "arm",
2421 "DEFAULTSERVICES", 2370 "DEFAULTSERVICES",
@@ -2428,7 +2377,20 @@ const struct GNUNET_SETUP_OptionSpecification option_specifications[] = {
2428 hide_exit_options}, 2377 hide_exit_options},
2429 2378
2430 { 2379 {
2431 "GNUNET_setup_vpn_enable_dns_exit_checkbutton", 2380 "GNUNET_setup_dns_resolver_ip_entry",
2381 "changed",
2382 "dns",
2383 "DNS_EXIT",
2384 gettext_noop
2385 ("IP address of the external DNS resolver to use (values from your resolve.conf are usually appropriate))"),
2386 "https://gnunet.org/configuration-exit",
2387 &load_text,
2388 &save_text, NULL,
2389 NULL, NULL,
2390 NULL},
2391
2392 {
2393 "GNUNET_setup_dns_enable_exit_checkbutton",
2432 "toggled", 2394 "toggled",
2433 "dns", 2395 "dns",
2434 "PROVIDE_EXIT", 2396 "PROVIDE_EXIT",
@@ -2441,7 +2403,7 @@ const struct GNUNET_SETUP_OptionSpecification option_specifications[] = {
2441 NULL}, 2403 NULL},
2442 2404
2443 { 2405 {
2444 "GNUNET_setup_vpn_exit_interface_name_entry", 2406 "GNUNET_setup_exit_interface_name_entry",
2445 "changed", 2407 "changed",
2446 "exit", 2408 "exit",
2447 "IFNAME", 2409 "IFNAME",
@@ -2454,11 +2416,11 @@ const struct GNUNET_SETUP_OptionSpecification option_specifications[] = {
2454 NULL}, 2416 NULL},
2455 2417
2456 { 2418 {
2457 "GNUNET_setup_vpn_exit_interface_v4_ip_entry", 2419 "GNUNET_setup_exit_interface_v4_ip_entry",
2458 "changed", 2420 "changed",
2459 "exit", 2421 "exit",
2460 "IPV4ADDR", 2422 "IPV4ADDR",
2461 gettext_noop ("IPv4 address to use for the VPN Exit interface"), 2423 gettext_noop ("IPv4 address to use for the Exit interface"),
2462 "https://gnunet.org/configuration-exit", 2424 "https://gnunet.org/configuration-exit",
2463 &load_text, 2425 &load_text,
2464 &save_text, NULL, 2426 &save_text, NULL,
@@ -2466,11 +2428,11 @@ const struct GNUNET_SETUP_OptionSpecification option_specifications[] = {
2466 NULL}, 2428 NULL},
2467 2429
2468 { 2430 {
2469 "GNUNET_setup_vpn_exit_interface_v4_mask_entry", 2431 "GNUNET_setup_exit_interface_v4_mask_entry",
2470 "changed", 2432 "changed",
2471 "exit", 2433 "exit",
2472 "IPV4MASK", 2434 "IPV4MASK",
2473 gettext_noop ("IPv4 network mask to use for the VPN Exit interface"), 2435 gettext_noop ("IPv4 network mask to use for the Exit interface"),
2474 "https://gnunet.org/configuration-exit", 2436 "https://gnunet.org/configuration-exit",
2475 &load_text, 2437 &load_text,
2476 &save_text, NULL, 2438 &save_text, NULL,
@@ -2478,11 +2440,11 @@ const struct GNUNET_SETUP_OptionSpecification option_specifications[] = {
2478 NULL}, 2440 NULL},
2479 2441
2480 { 2442 {
2481 "GNUNET_setup_vpn_exit_interface_v6_ip_entry", 2443 "GNUNET_setup_exit_interface_v6_ip_entry",
2482 "changed", 2444 "changed",
2483 "exit", 2445 "exit",
2484 "IPV6ADDR", 2446 "IPV6ADDR",
2485 gettext_noop ("IPv6 address to use for the VPN Exit interface"), 2447 gettext_noop ("IPv6 address to use for the Exit interface"),
2486 "https://gnunet.org/configuration-exit", 2448 "https://gnunet.org/configuration-exit",
2487 &load_text, 2449 &load_text,
2488 &save_text, NULL, 2450 &save_text, NULL,
@@ -2490,12 +2452,12 @@ const struct GNUNET_SETUP_OptionSpecification option_specifications[] = {
2490 NULL}, 2452 NULL},
2491 2453
2492 { 2454 {
2493 "GNUNET_setup_vpn_exit_interface_v6_mask_spinbutton", 2455 "GNUNET_setup_exit_interface_v6_mask_spinbutton",
2494 "value-changed", 2456 "value-changed",
2495 "exit", 2457 "exit",
2496 "IPV6MASK", 2458 "IPV6MASK",
2497 gettext_noop 2459 gettext_noop
2498 ("IPv6 network prefix length to use for the VPN Exit interface"), 2460 ("IPv6 network prefix length to use for the Exit interface"),
2499 "https://gnunet.org/configuration-exit", 2461 "https://gnunet.org/configuration-exit",
2500 &load_number, 2462 &load_number,
2501 &save_number, NULL, 2463 &save_number, NULL,
@@ -2504,10 +2466,10 @@ const struct GNUNET_SETUP_OptionSpecification option_specifications[] = {
2504 2466
2505 2467
2506 { 2468 {
2507 "GNUNET_setup_vpn_exit_enable_udp_checkbutton", 2469 "GNUNET_setup_exit_enable_ipv4_exit_checkbutton",
2508 "toggled", 2470 "toggled",
2509 "exit", 2471 "exit",
2510 "ENABLE_UDP", 2472 "EXIT_IPV4",
2511 gettext_noop 2473 gettext_noop
2512 ("Allow other users to use your Internet connection for UDP traffic (via the Exit interface)"), 2474 ("Allow other users to use your Internet connection for UDP traffic (via the Exit interface)"),
2513 "https://gnunet.org/configuration-exit", 2475 "https://gnunet.org/configuration-exit",
@@ -2517,10 +2479,10 @@ const struct GNUNET_SETUP_OptionSpecification option_specifications[] = {
2517 NULL}, 2479 NULL},
2518 2480
2519 { 2481 {
2520 "GNUNET_setup_vpn_exit_enable_tcp_checkbutton", 2482 "GNUNET_setup_exit_enable_ipv6_exit_checkbutton",
2521 "toggled", 2483 "toggled",
2522 "exit", 2484 "exit",
2523 "ENABLE_TCP", 2485 "EXIT_IPV6",
2524 gettext_noop 2486 gettext_noop
2525 ("Allow other users to use your Internet connection for TCP traffic (via the Exit interface)"), 2487 ("Allow other users to use your Internet connection for TCP traffic (via the Exit interface)"),
2526 "https://gnunet.org/configuration-exit", 2488 "https://gnunet.org/configuration-exit",
@@ -2532,12 +2494,12 @@ const struct GNUNET_SETUP_OptionSpecification option_specifications[] = {
2532 /* DNS treeview */ 2494 /* DNS treeview */
2533 2495
2534 { 2496 {
2535 "GNUNET_setup_vpn_dns_service_treeview", 2497 "GNUNET_setup_gns_treeview",
2536 NULL, 2498 NULL,
2537 NULL, 2499 NULL,
2538 NULL, 2500 NULL,
2539 gettext_noop 2501 gettext_noop
2540 ("Specification of .gnunet hostnames and services offered by this peer"), 2502 ("Specification of .gnunet TLD"),
2541 "https://gnunet.org/configuration-dns", 2503 "https://gnunet.org/configuration-dns",
2542 &load_vpn_dns_configuration, 2504 &load_vpn_dns_configuration,
2543 NULL, NULL, 2505 NULL, NULL,
@@ -2545,70 +2507,56 @@ const struct GNUNET_SETUP_OptionSpecification option_specifications[] = {
2545 NULL}, 2507 NULL},
2546 2508
2547 { 2509 {
2548 "GNUNET_setup_vpn_dns_service_dnsname_cellrenderertext", 2510 "GNUNET_setup_gns_name_cellrenderertext",
2549 "editing-started",
2550 NULL,
2551 NULL,
2552 NULL,
2553 "https://gnunet.org/configuration-dns",
2554 NULL,
2555 &vpn_dns_service_dnsname_install_edited_handler,
2556 NULL,
2557 NULL,
2558 NULL,
2559 NULL},
2560
2561 {
2562 "GNUNET_setup_vpn_dns_service_tcpudp_cellrenderertext",
2563 "editing-started", 2511 "editing-started",
2564 NULL, 2512 NULL,
2565 NULL, 2513 NULL,
2566 NULL, 2514 NULL,
2567 "https://gnunet.org/configuration-dns", 2515 "https://gnunet.org/configuration-dns",
2568 NULL, 2516 NULL,
2569 &vpn_dns_service_tcpudp_install_edited_handler, 2517 &gns_name_install_edited_handler,
2570 NULL, 2518 NULL,
2571 NULL, 2519 NULL,
2572 NULL, 2520 NULL,
2573 NULL}, 2521 NULL},
2574 2522
2575 { 2523 {
2576 "GNUNET_setup_vpn_dns_service_sourceport_cellrenderertext", 2524 "GNUNET_setup_gns_type_cellrenderertext",
2577 "editing-started", 2525 "editing-started",
2578 NULL, 2526 NULL,
2579 NULL, 2527 NULL,
2580 NULL, 2528 NULL,
2581 "https://gnunet.org/configuration-dns", 2529 "https://gnunet.org/configuration-dns",
2582 NULL, 2530 NULL,
2583 &vpn_dns_service_sourceport_install_edited_handler, 2531 &gns_type_install_edited_handler,
2584 NULL, 2532 NULL,
2585 NULL, 2533 NULL,
2586 NULL, 2534 NULL,
2587 NULL}, 2535 NULL},
2588 2536
2589 { 2537 {
2590 "GNUNET_setup_vpn_dns_service_targethostname_cellrenderertext", 2538 "GNUNET_setup_gns_ttl_cellrenderertext",
2591 "editing-started", 2539 "editing-started",
2592 NULL, 2540 NULL,
2593 NULL, 2541 NULL,
2594 NULL, 2542 NULL,
2595 "https://gnunet.org/configuration-dns", 2543 "https://gnunet.org/configuration-dns",
2596 NULL, 2544 NULL,
2597 &vpn_dns_service_targethostname_install_edited_handler, 2545 &gns_ttl_install_edited_handler,
2598 NULL, 2546 NULL,
2599 NULL, 2547 NULL,
2600 NULL, 2548 NULL,
2601 NULL}, 2549 NULL},
2602 2550
2603 { 2551 {
2604 "GNUNET_setup_vpn_dns_service_targetport_cellrenderertext", 2552 "GNUNET_setup_gns_value_cellrenderertext",
2605 "editing-started", 2553 "editing-started",
2606 NULL, 2554 NULL,
2607 NULL, 2555 NULL,
2608 NULL, 2556 NULL,
2609 "https://gnunet.org/configuration-dns", 2557 "https://gnunet.org/configuration-dns",
2610 NULL, 2558 NULL,
2611 &vpn_dns_service_targetport_install_edited_handler, 2559 &gns_value_install_edited_handler,
2612 NULL, 2560 NULL,
2613 NULL, 2561 NULL,
2614 NULL, 2562 NULL,