Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > returning a structure using SWIG

Thread Tools

returning a structure using SWIG

Posts: n/a
I would like to build a module for the fuction : myReturn find(char ** p1,
int p2)

The problem is that I dont know how to specify the myReturn Type using swig.

myReturn is :

typedef struct{
char * name;
char * len[10];
time_t time;
} myReturn

How to specify a such type in the interface file ?

Thank you

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Returning an array inside a structure that was allocated in afunction ctj951 C++ 4 11-14-2008 01:04 PM
SWIG Passing Ruby structure arrays into C DLL John Reynolds Ruby 0 03-20-2008 06:54 PM
Returning a data structure Hank Stalica C++ 9 06-10-2007 04:47 PM
returning none when it should be returning a list? Python 11 05-02-2006 10:26 AM
SWIG for Python - returning 64 bit value Python 0 04-08-2005 04:02 AM