<p>George Joseph <strong>uploaded patch set #4</strong> to this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/11155">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">sorcery.c: Sorcery enhancements for wizard management<br><br>Added ability to specifiy a wizard is read-only when applying<br>it to a specific object type. This allows you to specify<br>create, update and delete callbacks for the wizard but limit<br>which object types can use them.<br><br>Added the ability to allow an object type to have multiple<br>wizards of the same type. This is indicated when a wizard<br>is added to a specific object type.<br><br>Added 3 new sorcery wizard functions:<br><br>* ast_sorcery_object_type_insert_wizard which does the same thing<br> as the existing ast_sorcery_insert_wizard_mapping function but<br> accepts the new read-only and allot-duplicates flags and also<br> returns the ast_sorcery_wizard structure used and it's internal<br> data structure. This allows immediate use of the wizard's<br> callbacks without having to register a "wizard mapped" observer.<br><br>* ast_sorcery_object_type_apply_wizard which does the same<br> thing as the existing ast_sorcery_apply_wizard_mapping function<br> but has the added capabilities of<br> ast_sorcery_object_type_insert_wizard.<br><br>* ast_sorcery_object_type_remove_wizard which removes a wizard<br> matching both its name and its original argument string.<br><br>* The original logic in __ast_sorcery_insert_wizard_mapping was moved<br> to __ast_sorcery_object_type_insert_wizard and enhanced for the<br> new capabilities, then __ast_sorcery_insert_wizard_mapping was<br> refactored to just call __ast_sorcery_insert_wizard_mapping.<br><br>* Added a unit test to test_sorcery.c to test the read-only<br> capability.<br><br>Change-Id: I40f35840252e4313d99e11dbd80e270a3aa10605<br>---<br>M include/asterisk/sorcery.h<br>M main/sorcery.c<br>M tests/test_sorcery.c<br>3 files changed, 336 insertions(+), 29 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/55/11155/4</pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/11155">change 11155</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/11155"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-Change-Id: I40f35840252e4313d99e11dbd80e270a3aa10605 </div>
<div style="display:none"> Gerrit-Change-Number: 11155 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>