<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="font-family: 'Segoe UI',Frutiger,'Frutiger Linotype','Dejavu Sans','Helvetica Neue',Arial,sans-serif; font-size: 14px;">
<div class="hiri-body-wrapper" contenteditable="true">
<div>Christos,<br>
<br>
I have several C extensions i've written, and i give all of them an entry point with this prototype<br>
<br>
void install_scheme_objects(s7_scheme *s);<br>
<br>
then, I load those extensions with<br>
<br>
(load filename&nbsp;(sublet (curlet) 'init_func 'install_scheme_objects))<br>
<br>
the install_scheme_objects function usually sets up an envrionment and adds its functions there<br>
<br>
Hope this helps,<br>
Woody Douglass</div>
</div>
&nbsp;
<div class="hiri-extra" contenteditable="false">
<p>On 2020-10-21 20:08:55-04:00 cmdist-bounces@ccrma.Stanford.EDU wrote:</p>
<blockquote style="padding-left:10px; border-left:1px solid #ccc; margin:0">
<div>
<div dir="ltr">
<div>Hi all,</div>
<div></div>
<div>In my s7-imgui project I have bindings for some different libraries.</div>
<div>- to get an open/save dialog</div>
<div>- GUI functionality</div>
<div>- std &lt;regex&gt; (C&#43;&#43;11) operations</div>
<div></div>
<div>and so on. Soon I'd like to make each of these bindings a dynamic library where one could load like (load-extension ..) and get acces to these bindings.</div>
<div></div>
<div>I think it'd be good to decide on a suggested API for these. How one should provide an s7 environment via a C API.</div>
<div></div>
</div>
</div>
</blockquote>
</div>
</body>
</html>