X-Git-Url: https://rtime.felk.cvut.cz/gitweb/frescor/fna.git/blobdiff_plain/5c8e141653df488eaefd495f239a9aef51c9e0a7..e1cc80051455d1a561c136c8b04abc86c3d67d9a:/src_frescan/frescan_bwres.h diff --git a/src_frescan/frescan_bwres.h b/src_frescan/frescan_bwres.h index af476d6..dc87d4d 100644 --- a/src_frescan/frescan_bwres.h +++ b/src_frescan/frescan_bwres.h @@ -12,6 +12,56 @@ * * @author Daniel Sangorrin * + * @license + * + * ----------------------------------------------------------------------- + * Copyright (C) 2006 - 2008 FRESCOR consortium partners: + * + * Universidad de Cantabria, SPAIN + * University of York, UK + * Scuola Superiore Sant'Anna, ITALY + * Kaiserslautern University, GERMANY + * Univ. Politécnica Valencia, SPAIN + * Czech Technical University in Prague, CZECH REPUBLIC + * ENEA SWEDEN + * Thales Communication S.A. FRANCE + * Visual Tools S.A. SPAIN + * Rapita Systems Ltd UK + * Evidence ITALY + * + * See http://www.frescor.org for a link to partners' websites + * + * FRESCOR project (FP6/2005/IST/5-034026) is funded + * in part by the European Union Sixth Framework Programme + * The European Union is not liable of any use that may be + * made of this code. + * + * This file is part of FRESCAN + * + * FRESCAN is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * FRESCAN is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * distributed with FRESCAN; see file COPYING. If not, write to the + * Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + * + * As a special exception, including FRESCAN header files in a file, + * instantiating FRESCAN generics or templates, or linking other files + * with FRESCAN objects to produce an executable application, does not + * by itself cause the resulting executable application to be covered + * by the GNU General Public License. This exception does not + * however invalidate any other reasons why the executable file might be + * covered by the GNU Public License. + * ----------------------------------------------------------------------- + * */ #ifndef _FRESCAN_BANDWIDTH_RESERVATION_H_ @@ -23,10 +73,18 @@ extern int frescan_bwres_init(frescan_network_t net); extern int frescan_bwres_negotiate(frescan_network_t net, - const frescan_contract_t *contract, - frescan_ss_t *id, + const frsh_contract_t *contract, + frescan_ss_t *ss, bool *accepted); -// TODO: add other functions: renegotiate, cancel... +extern int frescan_bwres_renegotiate(frescan_network_t net, + const frsh_contract_t *contract, + frescan_ss_t ss, + bool *accepted); + +extern int frescan_bwres_cancel(frescan_network_t net, + frescan_ss_t ss); + +// TODO: add other functions: renegotiate_async #endif // _FRESCAN_BANDWIDTH_RESERVATION_H_