2 * @file frescan_bwres.h
4 * @brief FRESCAN bandwidth reservation layer
6 * This module contains function to negotiate contracts and get the
7 * corresponding frescan sporadic servers.
13 * @author Daniel Sangorrin <daniel.sangorrin@unican.es>
17 * -----------------------------------------------------------------------
18 * Copyright (C) 2006 - 2008 FRESCOR consortium partners:
20 * Universidad de Cantabria, SPAIN
21 * University of York, UK
22 * Scuola Superiore Sant'Anna, ITALY
23 * Kaiserslautern University, GERMANY
24 * Univ. Politécnica Valencia, SPAIN
25 * Czech Technical University in Prague, CZECH REPUBLIC
27 * Thales Communication S.A. FRANCE
28 * Visual Tools S.A. SPAIN
29 * Rapita Systems Ltd UK
32 * See http://www.frescor.org for a link to partners' websites
34 * FRESCOR project (FP6/2005/IST/5-034026) is funded
35 * in part by the European Union Sixth Framework Programme
36 * The European Union is not liable of any use that may be
39 * This file is part of FRESCAN
41 * FRESCAN is free software; you can redistribute it and/or modify
42 * it under the terms of the GNU General Public License as published by
43 * the Free Software Foundation; either version 2, or (at your option)
46 * FRESCAN is distributed in the hope that it will be useful, but
47 * WITHOUT ANY WARRANTY; without even the implied warranty of
48 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
49 * General Public License for more details.
51 * You should have received a copy of the GNU General Public License
52 * distributed with FRESCAN; see file COPYING. If not, write to the
53 * Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
56 * As a special exception, including FRESCAN header files in a file,
57 * instantiating FRESCAN generics or templates, or linking other files
58 * with FRESCAN objects to produce an executable application, does not
59 * by itself cause the resulting executable application to be covered
60 * by the GNU General Public License. This exception does not
61 * however invalidate any other reasons why the executable file might be
62 * covered by the GNU Public License.
63 * -----------------------------------------------------------------------
67 #ifndef _FRESCAN_BWRES_H_
68 #define _FRESCAN_BWRES_H_
70 #include "frescan_types.h"
72 extern int frescan_bwres_init(frescan_network_t net);
74 extern int frescan_bwres_group_change_mode_sync
75 (frescan_network_t net,
76 const frsh_contracts_group_t *contracts_to_neg,
77 const frsh_contracts_group_t *contracts_to_reneg,
78 const frescan_ss_group_t *ss_to_reneg,
79 const frescan_ss_group_t *ss_to_cancel,
80 frescan_ss_group_t *ss_new,
83 extern int frescan_bwres_negotiate(frescan_network_t net,
84 const frsh_contract_t *contract,
88 extern int frescan_bwres_renegotiate(frescan_network_t net,
89 const frsh_contract_t *contract,
93 extern int frescan_bwres_cancel(frescan_network_t net,
96 // TODO: add functions for reservation requests
98 #endif // _FRESCAN_BWRES_H_