From: Meng K. <men...@gm...> - 2007-09-05 09:16:05
|
Hi, I am trying to use swig to wrap a C library so that it can be used in the ruby language. The following is a function call that stumps me. int virConnectListDefinedDomains (virConnectPtr conn, const char **names, int maxnames); So far I have gathered that I need to write a typemap for this so it gives back an array of strings in ruby (for the "const char **names" argument). Does anyone have a similar typemap to share? Or is typemap the wrong way to go? cheers, mengkuan |