[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r3718 - in GNUnet/src/applications: getoption topology_defa
From: |
grothoff |
Subject: |
[GNUnet-SVN] r3718 - in GNUnet/src/applications: getoption topology_default topology_f2f |
Date: |
Sun, 12 Nov 2006 00:23:24 -0800 (PST) |
Author: grothoff
Date: 2006-11-12 00:23:21 -0800 (Sun, 12 Nov 2006)
New Revision: 3718
Modified:
GNUnet/src/applications/getoption/getoption.c
GNUnet/src/applications/topology_default/topology.c
GNUnet/src/applications/topology_f2f/topology.c
Log:
topology about
Modified: GNUnet/src/applications/getoption/getoption.c
===================================================================
--- GNUnet/src/applications/getoption/getoption.c 2006-11-12 08:05:43 UTC
(rev 3717)
+++ GNUnet/src/applications/getoption/getoption.c 2006-11-12 08:23:21 UTC
(rev 3718)
@@ -46,6 +46,10 @@
req->section[CS_getoption_request_MESSAGE_OPT_LEN-1] = '\0';
req->option[CS_getoption_request_MESSAGE_OPT_LEN-1] = '\0';
val = NULL;
+ if (NO == GC_test_configuration_value(coreAPI->cfg,
+ req->section,
+ req->option))
+ return SYSERR; /* signal error: option not set /*
if ( (0 != GC_get_configuration_value_string(coreAPI->cfg,
req->section,
req->option,
Modified: GNUnet/src/applications/topology_default/topology.c
===================================================================
--- GNUnet/src/applications/topology_default/topology.c 2006-11-12 08:05:43 UTC
(rev 3717)
+++ GNUnet/src/applications/topology_default/topology.c 2006-11-12 08:23:21 UTC
(rev 3718)
@@ -426,6 +426,12 @@
myTopology = capi->requestService("topology");
GE_ASSERT(capi->ectx,
myTopology != NULL);
+ GE_ASSERT(capi->ectx,
+ 0 == GC_set_configuration_value_string(capi->cfg,
+ capi->ectx,
+ "ABOUT",
+ "topology",
+ gettext_noop("maintains
GNUnet default mesh topology")));
return OK;
}
Modified: GNUnet/src/applications/topology_f2f/topology.c
===================================================================
--- GNUnet/src/applications/topology_f2f/topology.c 2006-11-12 08:05:43 UTC
(rev 3717)
+++ GNUnet/src/applications/topology_f2f/topology.c 2006-11-12 08:23:21 UTC
(rev 3718)
@@ -475,6 +475,12 @@
myCapi = capi;
myTopology = capi->requestService("topology");
GE_ASSERT(ectx, myTopology != NULL);
+ GE_ASSERT(capi->ectx,
+ 0 == GC_set_configuration_value_string(capi->cfg,
+ capi->ectx,
+ "ABOUT",
+ "topology",
+ gettext_noop("maintains a
friend-to-friend restricted topology")));
return OK;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r3718 - in GNUnet/src/applications: getoption topology_default topology_f2f,
grothoff <=