aboutsummaryrefslogtreecommitdiff
path: root/src/ats/test_ats2_lib.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-02-10 23:02:06 +0100
committerChristian Grothoff <christian@grothoff.org>2019-02-10 23:02:06 +0100
commit88ae0b0fd1508bb729592ef203b2e7e88980631c (patch)
tree2b5fa7456ff824667b370d94cb05e86c943a8995 /src/ats/test_ats2_lib.c
parent7844da7bd860f5b55fe87083a7aa037b95df9ee7 (diff)
downloadgnunet-88ae0b0fd1508bb729592ef203b2e7e88980631c.tar.gz
gnunet-88ae0b0fd1508bb729592ef203b2e7e88980631c.zip
add some logging
Diffstat (limited to 'src/ats/test_ats2_lib.c')
-rw-r--r--src/ats/test_ats2_lib.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/ats/test_ats2_lib.c b/src/ats/test_ats2_lib.c
index 990eb0670..5c51e5322 100644
--- a/src/ats/test_ats2_lib.c
+++ b/src/ats/test_ats2_lib.c
@@ -11,7 +11,7 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/ 17*/
@@ -31,13 +31,11 @@
31 */ 31 */
32static int ret; 32static int ret;
33 33
34
35/** 34/**
36 * @brief The time available until the test shuts down 35 * @brief The time available until the test shuts down
37 */ 36 */
38static struct GNUNET_TIME_Relative timeout; 37static struct GNUNET_TIME_Relative timeout;
39 38
40
41/** 39/**
42 * @brief ATS Application Handle 40 * @brief ATS Application Handle
43 * 41 *
@@ -64,6 +62,7 @@ static struct GNUNET_PeerIdentity other_peer;
64 */ 62 */
65static struct GNUNET_ATS_SessionRecord *sr; 63static struct GNUNET_ATS_SessionRecord *sr;
66 64
65
67/** 66/**
68 * @brief Called whenever allocation changed 67 * @brief Called whenever allocation changed
69 * 68 *
@@ -74,7 +73,7 @@ static struct GNUNET_ATS_SessionRecord *sr;
74 * @param bandwidth_out 73 * @param bandwidth_out
75 * @param bandwidth_in 74 * @param bandwidth_in
76 * 75 *
77 * @return 76 * @return
78 */ 77 */
79static void 78static void
80allocation_cb (void *cls, 79allocation_cb (void *cls,
@@ -116,9 +115,9 @@ init_both (const struct GNUNET_CONFIGURATION_Handle *cfg)
116 ah = GNUNET_ATS_application_init (cfg); 115 ah = GNUNET_ATS_application_init (cfg);
117 GNUNET_assert (NULL != ah); 116 GNUNET_assert (NULL != ah);
118 th = GNUNET_ATS_transport_init (cfg, 117 th = GNUNET_ATS_transport_init (cfg,
119 allocation_cb, 118 &allocation_cb,
120 NULL, 119 NULL,
121 suggestion_cb, 120 &suggestion_cb,
122 NULL); 121 NULL);
123 GNUNET_assert (NULL != ah); 122 GNUNET_assert (NULL != ah);
124} 123}
@@ -227,7 +226,7 @@ run (void *cls,
227 * @param argc 226 * @param argc
228 * @param argv[] 227 * @param argv[]
229 * 228 *
230 * @return 229 * @return
231 */ 230 */
232int 231int
233main (int argc, 232main (int argc,