increase blocking on suggest in addresses, checking in solver
[oweals/gnunet.git] / src / ats / test_ats_api_common.h
1 /*
2      This file is part of GNUnet.
3      (C) 2010,2011 Christian Grothoff (and other contributing authors)
4
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
7      by the Free Software Foundation; either version 3, or (at your
8      option) any later version.
9
10      GNUnet is distributed in the hope that it will be useful, but
11      WITHOUT ANY WARRANTY; without even the implied warranty of
12      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13      General Public License for more details.
14
15      You should have received a copy of the GNU General Public License
16      along with GNUnet; see the file COPYING.  If not, write to the
17      Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18      Boston, MA 02111-1307, USA.
19 */
20 /**
21  * @file ats/test_ats_api_common.h
22  * @brief shared definitions
23  * @author Christian Grothoff
24  * @author Matthias Wachs
25  */
26
27 #define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30)
28
29 #define PEERID "2AK99KD8RM9UA9LC3QKA0IQ5UBFC0FBB50EBGCFQT8448DGGACNAC4CJQDD1CPFS494O41U88DJD1FLIG8VA5CQR9IN4L96GP104MVO"
30
31 struct Test_Address
32 {
33   char *plugin;
34   size_t plugin_len;
35
36   void *addr;
37   size_t addr_len;
38
39   struct GNUNET_ATS_Information *ats;
40   int ats_count;
41
42   void *session;
43 };
44
45 struct PeerContext
46 {
47   struct GNUNET_PeerIdentity id;
48
49   struct Test_Address *addr;
50 };
51
52 /* end of file test_ats_api_common.h */