2 * \file frsh_contract.h
6 #ifndef _FRSH_CONTRACT_H
7 #define _FRSH_CONTRACT_H
9 typedef struct frsh_contract {
14 typedef frsh_contract_t* frsh_contract_d_t;
16 typedef struct frsh_contract_ops {
17 frsh_contract_t* (*create)(frsh_resource_t* resource);
18 int (*reserve)(frsh_contract_t* contract);
19 int (*commit)(frsh_contract_t* contract);
20 /* just for compability, combination of previous */
21 int (*negotiate)(frsh_contract_t* contract);
24 #endif /* _FRSH_CONTRACT_H */