shared_LIBRARIES = frsh_fwp
CFLAGS += -D_FWP_INTERNALS_
-frsh_fwp_SOURCES += fwp_fna.c fwp_frs.c fwp_block.c
+frsh_fwp_SOURCES += fwp_fna.c fwp_fra.c fwp_block.c
include_HEADERS= fwp_res.h fwp_fna.h
frsh_fwp_CLIENT_IDL += fwp_idl.idl
include_GEN_HEADERS= fwp_idl.h
-lib_LOADLIBES+= fna frs
+lib_LOADLIBES+= fna fra
if ((rv = fwp_init()))
return rv;
- return frs_fwp_init(frsh_forb_global.orb, frsh_forb_global.fcb,
- &frsh_forb_global.sch_executor);
+ return fra_fwp_init(frsh_forb_global.orb, frsh_forb_global.fcb,
+ &frsh_forb_global.alloc_executor);
}
int fwp_fna_network_budget_to_bytes(const frsh_resource_id_t resource_id,
#include <ul_log.h>
-#include <frs_generic.h>
+#include <fra_generic.h>
#include <fwp.h>
//#include <fwp_fna.h>
#include <frsh_distributed.h>
#include <stdio.h>
-UL_LOG_CUST(ulogd_frs_fwp);
-ul_log_domain_t ulogd_frs_fwp = {UL_LOGL_MSG, "frs_fwp"};
+UL_LOG_CUST(ulogd_fra_fwp);
+ul_log_domain_t ulogd_fra_fwp = {UL_LOGL_MSG, "fra_fwp"};
static int create_vres(fres_vres_t *vres, void *priv)
{
return 0;
}
-static struct fres_scheduler fwp_scheduler = {
+static struct fres_allocator fwp_allocator = {
.res_type = FRSH_RT_NETWORK,
.res_id = FRSH_NETPF_FWP,
.create_vres = create_vres,
.priv = NULL
};
-int frs_fwp_init(forb_orb orb, fres_contract_broker fcb, forb_executor_t *executor)
+int fra_fwp_init(forb_orb orb, fres_contract_broker fcb, forb_executor_t *executor)
{
fres_block_register_fwp();
- return frs_register(orb, fcb, executor, &fwp_scheduler);
+ return fra_register(orb, fcb, executor, &fwp_allocator);
}
#include <frsh_distributed.h>
#include "fwp_idl.h"
-int frs_fwp_init(forb_orb orb, fres_contract_broker fcb, forb_executor_t *executor);
+int fra_fwp_init(forb_orb orb, fres_contract_broker fcb, forb_executor_t *executor);
int fres_block_register_fwp();
#endif /* FWP_RES_H */