<div dir="ltr"><div>This is great Philip! I'll try to get it working too. The VM I'm using is over 1 year old, but looking at the plugins that came with it I see they export a function moduleUnloaded and not a shutdownModule. I guess newer versions use shutdownModule, I'll try with the latest VM.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jun 7, 2020 at 6:20 PM Philip Bernhart via Cuis-dev <<a href="mailto:cuis-dev@lists.cuis.st">cuis-dev@lists.cuis.st</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">Hi,<br>
<br>
yesterday I looked at the sqNamedPrim.h in opensmalltalk-vm<br>
again. And tried to generate the interpreterProxy interface<br>
structure for my Cuis Slang project.<br>
<br>
Not the full one, which is depending on major and<br>
minor versions of the interpreterProxy in the VMMaker package,<br>
but the bare minimum which seems to be shared across the<br>
implementations.<br>
<br>
I wrote by hand a small "plugin" which basically just writes<br>
out a logfile which writes a string into it.<br>
<br>
For some reason the generated "plugin" is found by FFI and<br>
not by the <primitive: 'primFetchInt' module: 'TestPlugin'><br>
call.<br>
<br>
How to compile: gcc -fpic -shared test_plugin.c -o TestPlugin.so<br>
was written for a 64bit image on a 64bit machine (amd64, intel).<br>
<br>
Do you have any suggestions?<br>
<br>
<br>
Thanks for your time,<br>
Philip<br>
-- <br>
Cuis-dev mailing list<br>
<a href="mailto:Cuis-dev@lists.cuis.st" target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a href="https://lists.cuis.st/mailman/listinfo/cuis-dev" rel="noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
</blockquote></div>