<div dir="ltr"><div>Oh, didn't know about the (load "libx.so" (inlet 'init_func ....))</div><div><br></div><div>My question's focus was the "How one should provide an s7 environment via a C API"</div><div>What I was meaning with this that it'd be nice to have some guidelines for people making bindings.</div><div>But since there's the init_func there's no need for that: one could call their entrypoint however they wish.</div><div><br></div><div>One minor request here: the possibility to have 'init_args apart from the 'init_func:</div><div>If init_args are provided the init_func should be called with s7_scheme* and s7_pointer arguments.</div><div>That could enable for example passing an environment where the bindings should be added, and so on.<br></div><div><br></div><div>Also some other points:</div><div>- WITH_C_LOADER doesn't work in Windows</div><div>- also doesn't work if compiling with mingw (should check for __MINGW32__ compiler flag)</div><div> stumbled on the problem that couldn't find <dlfcn.h> which is needed when WITH_C_LOADER (which is set to true #if WITH_GCC, which in turn checks for __GNUC__ .. which is set in mingw)</div><div><br></div><div>If windows is of no priority I could take a look into it myself at some point (not soon however, I'm in the process of moving)<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 22 Oct 2020 at 15:01, <<a href="mailto:bil@ccrma.stanford.edu">bil@ccrma.stanford.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">To expand slightly on Woody's response, what do you need<br>
from s7 beyond s7_load_with_environment and s7_autoload?<br>
<br>
</blockquote></div>