[asterisk-commits] sorcery: Fix cache creation callback. (asterisk[13])
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue May 26 13:11:09 CDT 2015
Mark Michelson has submitted this change and it was merged.
Change subject: sorcery: Fix cache creation callback.
......................................................................
sorcery: Fix cache creation callback.
The cache creation callback function expects to receive a sorcery_details
structure and not just a standalone object.
Change-Id: I3e4a5a137cb25292eb52d7a14cbb6daa09213450
---
M main/sorcery.c
1 file changed, 6 insertions(+), 1 deletion(-)
Approvals:
Mark Michelson: Looks good to me, approved; Verified
George Joseph: Looks good to me, but someone else must approve
diff --git a/main/sorcery.c b/main/sorcery.c
index af6de7e..8101af0 100644
--- a/main/sorcery.c
+++ b/main/sorcery.c
@@ -1822,7 +1822,12 @@
}
if (!cached && object) {
- AST_VECTOR_CALLBACK(&object_type->wizards, sorcery_cache_create, NULL, object, 0);
+ struct sorcery_details sdetails = {
+ .sorcery = sorcery,
+ .obj = object,
+ };
+
+ AST_VECTOR_CALLBACK(&object_type->wizards, sorcery_cache_create, NULL, &sdetails, 0);
}
AST_VECTOR_RW_UNLOCK(&object_type->wizards);
--
To view, visit https://gerrit.asterisk.org/533
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I3e4a5a137cb25292eb52d7a14cbb6daa09213450
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: George Joseph <george.joseph at fairview5.com>
Gerrit-Reviewer: Mark Michelson <mmichelson at digium.com>
More information about the asterisk-commits
mailing list