fcb_LIBS += frsh # For frsh_strerror
fcb_SERVER_IDL = fcb.idl
-lib_LIBRARIES += fcb_client
+shared_LIBRARIES += fcb_client
fcb_client_CLIENT_IDL = fcb.idl
include_GEN_HEADERS += fcb.h
#include "wifi_agent_idl.h"
#include "fwp_admctrl.h"
#include "wifi_agent.h"
+#include "fcb.h"
UL_LOG_CUST(ulogd_fwp_wifi_agent_server);
ul_log_domain_t ulogd_fwp_wifi_agent_server = {UL_LOGL_MSG, "fwp_wifi_agent_server"};
fwp_sta_t *sta;
fwp_sta_t *new_to_add;
+ forb_orb fcb_orb;
+ fres_contract_broker fcb;
+ //TODO: initialize restype & resid
+ //const frsh_resource_type_t restype;
+ //const frsh_resource_id_t resid;
+ //CORBA_Environment env;
+
+ fcb_orb = forb_init(NULL, NULL, NULL); /* FORB initialization */
+ fcb = forb_resolve_reference(fcb_orb, fres_contract_broker_reg_name);
+
/*fill the linked list here*/
ul_list_for_each(sta_list, &frm_fwp_state->sta_list, sta){
/*client was sending info before*/
pthread_mutex_lock( &frm_fwp_state->mutex );
sta->rate = rate;
pthread_mutex_unlock( &frm_fwp_state->mutex );
+ //TODO: check if it's working
+ //fres_contract_broker_redistribute_spare_capacity(fcb, restype, resid, &env);
return 0;
}
}