[plt-scheme] Listing all exported symbols/structures of a module/extension
Hi,
I am trying to implement a very slim RPC. The code on the remote end was
generated through SWIG. Thus its loaded at startup with
(load-extension).
What I need is a way to get a list of all procedures that are exported
by the extension at hand. Also, a list of all the structures would be
nice too. Basically I want something cool like this:
(eval (get-remote-extension-stuff port))
(remote-proc1 (make-remote-struct1 'a 'b 'c))
Is something like that even possible??
Through SWIG, it would be pretty tough to define the rpc-handler list
that the XML-RPC module requires.
The local user knows the list of all the functions, but local scheme
instance does not.
Can someone give me a hand? If what I am trying to do is "Not A Good
Thing (tm)", how else would one accomplish what I need?
Thanks in advance for the help.
--Dima