resource: add mrp_resource_owner_recalc(zone) to resource manager interface
authorJanos Kovacs <jankovac503@gmail.com>
Sat, 15 Jun 2013 20:17:15 +0000 (23:17 +0300)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Mon, 8 Jul 2013 14:41:47 +0000 (17:41 +0300)
src/resource/config-lua.c
src/resource/manager-api.h
src/resource/resource-owner.c

index 42d7bc8..c269701 100644 (file)
@@ -1719,7 +1719,7 @@ static int method_recalc(lua_State *L)
                        "no such zone", zone_name);
         }
 
-        mrp_resource_owner_update_zone(zone->id, NULL, 0);
+        mrp_resource_owner_recalc(zone->id);
     }
 
     return 0;
index 6b60e93..246973a 100644 (file)
@@ -55,6 +55,7 @@ void mrp_lua_resclass_create_from_c(uint32_t id);
 
 const char *mrp_resource_get_application_class(mrp_resource_t *resource);
 
+void mrp_resource_owner_recalc(uint32_t zoneid);
 
 #endif  /* __MURPHY_RESOURCE_MANAGER_API_H__ */
 
index 8a22306..a02ecae 100644 (file)
@@ -154,6 +154,10 @@ int mrp_resource_owner_create_database_table(mrp_resource_def_t *rdef)
     return 0;
 }
 
+void mrp_resource_owner_recalc(uint32_t zoneid)
+{
+    mrp_resource_owner_update_zone(zoneid, NULL, 0);
+}
 
 void mrp_resource_owner_update_zone(uint32_t zoneid,
                                     mrp_resource_set_t *reqset,