]> rtime.felk.cvut.cz Git - frescor/fna.git/blob - src_frescan/frescan_bwres.h
add the infraestructure for storing the negotiated contracts and performing the analy...
[frescor/fna.git] / src_frescan / frescan_bwres.h
1 /*!
2  * @file frescan_bwres.h
3  *
4  * @brief FRESCAN bandwidth reservation layer
5  *
6  * This module contains function to negotiate contracts and get the
7  * corresponding frescan sporadic servers.
8  *
9  * @version 0.01
10  *
11  * @date 1-Apr-2008
12  *
13  * @author Daniel Sangorrin <daniel.sangorrin@unican.es>
14  *
15  */
16
17 #ifndef _FRESCAN_BANDWIDTH_RESERVATION_H_
18 #define _FRESCAN_BANDWIDTH_RESERVATION_H_
19
20 #include "frescan.h"
21 #include "frescan_data.h"
22
23 extern int frescan_bwres_init(frescan_network_t net);
24
25 extern int frescan_bwres_negotiate(frescan_network_t net,
26                                    const frescan_contract_t *contract,
27                                    frescan_ss_t *id,
28                                    bool *accepted);
29
30 // TODO: add other functions: renegotiate, cancel...
31
32 #endif // _FRESCAN_BANDWIDTH_RESERVATION_H_