<div dir="ltr"><div>::do_request() is a mechanism for cross-thread signalling. It should probably not be used explicitly in any control surface code. It allows one thread to arrange for another thread to do something (possibly to stop running, or execute some closure, or whatever ...)<br><br></div>There are no abstractions except actions that can be used for configurability at this time. What would be an example of the sort of thing you want to make configurable?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 29, 2017 at 7:55 AM, Johannes Mueller <span dir="ltr"><<a href="mailto:github@johannes-mueller.org" target="_blank">github@johannes-mueller.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I am working on a control surface to support the ShttlePRO v2 device [1] on<br>
Linux. The device is working well using the input event struct of linux/<br>
inputs.h.<br>
<br>
By now the handling of the events is hard coded and doing things that make<br>
sense to my work-flows. However I'd like to make it user configurable<br>
although I am not sure how to do it exactly (how to configure things that are<br>
not actions, for example).<br>
<br>
But to begin with I have a question regarding the ControlProtocol API: What's<br>
the deal with void AbstractUI<RequestObject>::do_<wbr>request(RequestObject*)? I<br>
had to implement it to make my class instantiatable, so I just copied the<br>
code from OSC::do_request() without actually knowing what it means. Can<br>
someone give me a hint, please?<br>
<br>
You can take a glimpse on the code on<br>
<a href="https://github.com/Ardour/ardour/compare/master...johannes-mueller:shuttlepro" rel="noreferrer" target="_blank">https://github.com/Ardour/<wbr>ardour/compare/master...<wbr>johannes-mueller:shuttlepro</a><br>
<br>
Any other hints welcome.<br>
<br>
Thanks<br>
<br>
Johannes<br>
<br>
_________<br>
[1]: <a href="http://www.contourdesign.com/UK/product/shuttlepro-v2/" rel="noreferrer" target="_blank">http://www.contourdesign.com/<wbr>UK/product/shuttlepro-v2/</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
<a href="https://github.com/johannes-mueller/" rel="noreferrer" target="_blank">https://github.com/johannes-<wbr>mueller/</a><br>
______________________________<wbr>_________________<br>
ardour-dev mailing list<br>
<a href="mailto:ardour-dev@lists.ardour.org">ardour-dev@lists.ardour.org</a><br>
<a href="http://lists.ardour.org/listinfo.cgi/ardour-dev-ardour.org" rel="noreferrer" target="_blank">http://lists.ardour.org/<wbr>listinfo.cgi/ardour-dev-<wbr>ardour.org</a><br>
</font></span></blockquote></div><br></div>