- fix compile
[oweals/gnunet.git] / src / testbed / gnunet-service-testbed_barriers.h
1 /*
2   This file is part of GNUnet.
3   (C) 2008--2013 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/gnunet-service-testbed_barriers.h
23  * @brief Interface for the barrier initialisation handler routine
24  * @author Sree Harsha Totakura <sreeharsha@totakura.in> 
25  */
26
27 #ifndef GNUNET_SERVER_TESTBED_BARRIERS_H_
28 #define GNUNET_SERVER_TESTBED_BARRIERS_H_
29
30 /**
31  * Message handler for GNUNET_MESSAGE_TYPE_TESTBED_BARRIER_INIT messages.  This
32  * message should always come from a parent controller or the testbed API if we
33  * are the root controller.
34  *
35  * This handler is queued in the main service and will handle the messages sent
36  * either from the testbed driver or from a high level controller
37  *
38  * @param cls NULL
39  * @param client identification of the client
40  * @param message the actual message
41  */
42 void
43 GST_handle_barrier_init (void *cls, struct GNUNET_SERVER_Client *client,
44                          const struct GNUNET_MessageHeader *message);
45
46
47 /**
48  * Message handler for GNUNET_MESSAGE_TYPE_TESTBED_BARRIER_CANCEL messages.  This
49  * message should always come from a parent controller or the testbed API if we
50  * are the root controller.
51  *
52  * This handler is queued in the main service and will handle the messages sent
53  * either from the testbed driver or from a high level controller
54  *
55  * @param cls NULL
56  * @param client identification of the client
57  * @param message the actual message
58  */
59 void
60 GST_handle_barrier_cancel (void *cls, struct GNUNET_SERVER_Client *client,
61                            const struct GNUNET_MessageHeader *message);
62
63 #endif  /* GNUNET_SERVER_TESTBED_BARRIERS_H_ */
64
65 /* end of gnunet-service-testbed_barriers.h */