2 * @file frescan_bwres_robjs.h
4 * @brief FRESCAN bandwith reservation layer: reply objects
6 * This module contains the definition of the data object and operations to
7 * create a pool of objects, obtain the id of an unused object, wait upon it,
8 * signal it, and finish using it.
14 * @author Daniel Sangorrin <daniel.sangorrin@unican.es>
18 * -----------------------------------------------------------------------
19 * Copyright (C) 2006 - 2008 FRESCOR consortium partners:
21 * Universidad de Cantabria, SPAIN
22 * University of York, UK
23 * Scuola Superiore Sant'Anna, ITALY
24 * Kaiserslautern University, GERMANY
25 * Univ. Politécnica Valencia, SPAIN
26 * Czech Technical University in Prague, CZECH REPUBLIC
28 * Thales Communication S.A. FRANCE
29 * Visual Tools S.A. SPAIN
30 * Rapita Systems Ltd UK
33 * See http://www.frescor.org for a link to partners' websites
35 * FRESCOR project (FP6/2005/IST/5-034026) is funded
36 * in part by the European Union Sixth Framework Programme
37 * The European Union is not liable of any use that may be
40 * This file is part of FRESCAN
42 * FRESCAN is free software; you can redistribute it and/or modify
43 * it under the terms of the GNU General Public License as published by
44 * the Free Software Foundation; either version 2, or (at your option)
47 * FRESCAN is distributed in the hope that it will be useful, but
48 * WITHOUT ANY WARRANTY; without even the implied warranty of
49 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
50 * General Public License for more details.
52 * You should have received a copy of the GNU General Public License
53 * distributed with FRESCAN; see file COPYING. If not, write to the
54 * Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
57 * As a special exception, including FRESCAN header files in a file,
58 * instantiating FRESCAN generics or templates, or linking other files
59 * with FRESCAN objects to produce an executable application, does not
60 * by itself cause the resulting executable application to be covered
61 * by the GNU General Public License. This exception does not
62 * however invalidate any other reasons why the executable file might be
63 * covered by the GNU Public License.
64 * -----------------------------------------------------------------------
68 #ifndef _FRESCAN_BWRES_ROBJS_H_
69 #define _FRESCAN_BWRES_ROBJS_H_
71 #include "frescan_types.h"
73 extern int frescan_bwres_robjs_init(int max_ceiling);
74 extern int frescan_bwres_robjs_alloc(frescan_bwres_robj_id_t *id, int ceiling);
75 extern int frescan_bwres_robjs_free(frescan_bwres_robj_id_t id);
76 extern int frescan_bwres_robjs_signal(frescan_bwres_robj_id_t id);
77 extern int frescan_bwres_robjs_wait(frescan_bwres_robj_id_t id);
78 extern int frescan_bwres_robjs_timedwait(frescan_bwres_robj_id_t id,
79 const struct timespec *abstime);
81 #endif // _FRESCAN_BWRES_ROBJS_H_