resource: generate missing create event when autoacquire is set
authorJanos Kovacs <jankovac503@gmail.com>
Mon, 30 Sep 2013 20:08:19 +0000 (23:08 +0300)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Thu, 8 Jan 2015 16:37:11 +0000 (18:37 +0200)
Change-Id: I390d49d9820a76a468d3287b9cf2d470f1336ae7

src/resource/application-class.c
src/resource/resource-set.c

index 52e8b35..23f1740 100644 (file)
@@ -290,8 +290,11 @@ int mrp_application_class_add_resource_set(const char *class_name,
     rset->class.ptr = class;
     rset->zone = mrp_zone_get_id(zone);
 
-    if (rset->state == mrp_resource_acquire)
+    if (rset->state == mrp_resource_acquire) {
+        mrp_resource_set_notify(rset, MRP_RESOURCE_EVENT_CREATED);
+
         mrp_resource_set_acquire(rset, reqid);
+    }
     else {
         rset->request.id = reqid;
 
index 689db4b..41d767c 100644 (file)
@@ -1,3 +1,4 @@
+
 /*
  * Copyright (c) 2012, Intel Corporation
  *