The cache creation callback function expects to receive a sorcery_details
structure and not just a standalone object.
Change-Id: Id2a9e5f271c466686e6d0def461fa50c8b2cae53
ao2_iterator_destroy(&i);
if (!cached && object) {
- ao2_callback(object_type->wizards, 0, sorcery_cache_create, object);
+ struct sorcery_details sdetails = {
+ .sorcery = sorcery,
+ .obj = object,
+ };
+
+ ao2_callback(object_type->wizards, 0, sorcery_cache_create, &sdetails);
}
return object;