From: Iker <ica...@pa...> - 2006-11-23 10:48:02
|
I have a problem parsing this struct from C to JAVA with Swig: ######################################################## typedef struct tcp_config { int nuNodes; struct FilterTreeNode nodes[10]; }tcp_cfg; ######################################################## (*FilterTreeNode is defined before) Whe I try to parse this struct, Swig creates a 'tcp_cfg' class that contains a get and set method for the variable 'nodes', but the get method doesn't return an array of FilterTreeNode, this method only returns a FilterTreeNode object. Whit the set method the behaviour is the same. I think I have to use the 'JAVA_ARRAYSOFCLASSES' in my interface file, but I'm not sure how it works. Thank you, Iker Canarias |