diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-07-06 22:36:31 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-07-06 22:36:31 +0000 |
commit | c0fabee0444f53e5a938bae238b667062b15a07a (patch) | |
tree | b1a5a4ba41530fbc83c491889febf0336c8fb96e /src/testbed/testbed_api.h | |
parent | df67704ea60f22e705588dd2188c91e16ebc5633 (diff) | |
download | gnunet-c0fabee0444f53e5a938bae238b667062b15a07a.tar.gz gnunet-c0fabee0444f53e5a938bae238b667062b15a07a.zip |
function exports from testbed_api
Diffstat (limited to 'src/testbed/testbed_api.h')
-rw-r--r-- | src/testbed/testbed_api.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/testbed/testbed_api.h b/src/testbed/testbed_api.h new file mode 100644 index 000000000..aee284c40 --- /dev/null +++ b/src/testbed/testbed_api.h | |||
@@ -0,0 +1,54 @@ | |||
1 | /* | ||
2 | This file is part of GNUnet | ||
3 | (C) 2012 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 | /** | ||
22 | * @file testbed/testbed_api.h | ||
23 | * @brief Interface for functions internally exported from testbed_api.c | ||
24 | * @author Sree Harsha Totakura | ||
25 | */ | ||
26 | |||
27 | #ifndef TESTBED_API_H | ||
28 | #define TESTBED_API_H | ||
29 | |||
30 | /** | ||
31 | * Queues a message in send queue for sending to the service | ||
32 | * | ||
33 | * @param controller the handle to the controller | ||
34 | * @param msg the message to queue | ||
35 | */ | ||
36 | void | ||
37 | GNUNET_TESTBED_queue_message (struct GNUNET_TESTBED_Controller *controller, | ||
38 | struct GNUNET_MessageHeader *msg); | ||
39 | |||
40 | |||
41 | /** | ||
42 | * Compresses given configuration using zlib compress | ||
43 | * | ||
44 | * @param config the serialized configuration | ||
45 | * @param size the size of config | ||
46 | * @param xconfig will be set to the compressed configuration (memory is fresly | ||
47 | * allocated) | ||
48 | * @return the size of the xconfig | ||
49 | */ | ||
50 | size_t | ||
51 | GNUNET_TESTBED_compress_config (const char *config, size_t size, | ||
52 | char **xconfig); | ||
53 | |||
54 | #endif | ||