1 #ifndef _FWP_CONTRACT_H
2 #define _FWP_CONTRACT_H
6 /**< Contract negotiation status */
7 enum fwp_contnegt_status {
8 FWP_CONTNEGT_ACCEPTED = 0,
9 FWP_CONTNEGT_REJECTED = 1,
10 FWP_CONTNEGT_RUNNING = 3, /**< for asynchronous negotiations*/
11 } fwp_contnegt_status_t;
13 /**< Contract Status */
16 FWP_CONT_REQUESTED = 1,
17 FWP_CONT_REJECTED = 2,
18 FWP_CONT_NEGOTIATED = 3,
20 } fwp_contract_status_t;
24 * It is an external representation of contract intented for application
30 int budget; /**< bytes per period */
31 int period_usec; /**< all time units are in microseconds */
34 int fwp_contract_negotiate(struct fwp_contract *contract, fwp_vres_d_t *vresdp);
36 #endif /*_FWP_CONTRACT_H */