]> rtime.felk.cvut.cz Git - frescor/fwp.git/blobdiff - fwp/lib/frsh_fwp/fwp_fra.c
Updated to rename of resource scheduler to allocator
[frescor/fwp.git] / fwp / lib / frsh_fwp / fwp_fra.c
similarity index 86%
rename from fwp/lib/frsh_fwp/fwp_frs.c
rename to fwp/lib/frsh_fwp/fwp_fra.c
index 274d2b42a7f0a044e09d0aad1d6899f8f8acb483..e1ec819c5ba9c3b04b4ea22c90f5d9160f71454d 100644 (file)
@@ -1,5 +1,5 @@
 #include <ul_log.h>
-#include <frs_generic.h>
+#include <fra_generic.h>
 #include <fwp.h>
 //#include <fwp_fna.h>
 #include <frsh_distributed.h>
@@ -8,8 +8,8 @@
 #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)
 {
@@ -64,7 +64,7 @@ int change_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,
@@ -73,8 +73,8 @@ static struct fres_scheduler fwp_scheduler = {
        .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);
 }