2 * @file contract-idl.idl
3 * @author Michal Sojka <sojkam1@fel.cvut.cz>
4 * @date Sun Sep 7 17:24:37 2008
6 * @brief Definitions of data types and constants for FRESCOR contracts.
16 // TODO: Try to use native types
17 typedef timespec fosa_rel_time_t;
18 typedef timespec fosa_abs_time_t;
20 enum frsh_contract_type_t {
28 native contract_handle_t;
33 /// Contains parameters of contracts grouped by
34 /// modules. Any other module can add their own
38 /// IDs of all (even externally defined) parameters
44 fosa_rel_time_t budget;
45 fosa_rel_time_t period;
46 frsh_contract_type_t contract_type;
49 enum granularity_t { DISCRETE, CONTINUOUS };
50 struct spare_capacity {
51 fosa_rel_time_t stability_time;
52 granularity_t granularity;