#include "fwp_vres.h"
#include "ul_list.h"
+#include "ul_gavl.h"
#include "ul_gavlcust.h"
#include <string.h>
*/
typedef
struct fwp_contract_data {
- fwp_entity_id_t id;
+ fwp_contract_id_t id;
/**< contract specified by user */
fwp_contract_t contract;
/**< parameters from contract negotiated for vres */
/**< the address of agent from that the contract comes */
/*fwp_transaction_id_t trans_id;*/
/* pointer to fwp_vres or fwp_participant */
- void *priv;
+ /*void *priv; */
+ fwp_vres_d_t vresd;
fwp_contract_status_t status;
ul_list_node_t list_node;
gavl_node_t *contract_tree;
} fwp_contract_table_t;
+
void fwp_contract_table_init(fwp_contract_table_t *tbl);
int fwp_contract_table_insert(fwp_contract_table_t *tbl,
fwp_contract_data_t *contdata);