[plt-scheme] Listing all exported symbols/structures of a module/extension

From: Dmitriy.Zavin at infineon.com (Dmitriy.Zavin at infineon.com)
Date: Thu Aug 26 21:40:58 EDT 2004

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


Posted on the users mailing list.