There is a utility named gtk-server (http://www.gtk-server.org) wich
offers a stream-oriented interface to the GTK library. The stream
interface is easily implemented in GNU smalltalk, but there is also a
shared library version which provide a simple function
('char* gtk(char*)').
Interesting.
Do i miss something when the C function descriptor is build ?
You don't need building a C function descriptor. It is just an internal
detail.
Invoke "DLD addLibrary: 'libgtk-server.so'" just once, outside GtkServer
completely. Then, implement #call: like this:
call: aString [
<cCall: 'gtk' returning: #string args: #(#string)>
]
The pragma <cCall:...> will be compiled to the invocation of #callInto:
for the CFunctionDescriptor.
Also, the first time you call it, it will automatically invoke
#defineExternFunc: and call the gtk function.
Paolo
_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk