#ifndef _FRSH_CONTRACT_H
#define _FRSH_CONTRACT_H
+typedef struct frsh_contract {
+ frsh_budget_t budget;
+ frsh_period_t period;
+}
+typedef frsh_contract_t* frsh_contract_d_t;
+
+typedef struct frsh_contract_ops {
+ frsh_contract_t* (*create)(frsh_resource_t* resource);
+ int (*reserve)(frsh_contract_t* contract);
+ int (*commit)(frsh_contract_t* contract);
+ /* just for compability, combination of previous */
+ int (*negotiate)(frsh_contract_t* contract);
+}
#endif /* _FRSH_CONTRACT_H */