returning a structure using SWIG

Discussion in 'Python' started by kj.kjn, Jul 2, 2003.

  1. kj.kjn

    kj.kjn Guest

    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
    kj.kjn, Jul 2, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    554
  2. Replies:
    11
    Views:
    649
    Christos Georgiou
    May 2, 2006
  3. Hank Stalica

    Returning a data structure

    Hank Stalica, Jun 9, 2007, in forum: C++
    Replies:
    9
    Views:
    319
    Rolf Magnus
    Jun 10, 2007
  4. ctj951
    Replies:
    4
    Views:
    303
    Leandro Melo
    Nov 14, 2008
  5. John Reynolds
    Replies:
    0
    Views:
    155
    John Reynolds
    Mar 20, 2008
Loading...

Share This Page