|
Re: Re: wrapper for Voicetronix telephony card: msg#00151programming.swig
Here is the area I am having trouble with. -------------------------------------------------------------------------------------------------------------------------------- /*-------------------------------------------------------------------------*\ GET DIGIT FUNCTIONS \*-------------------------------------------------------------------------*/ typedef struct { char *term_digits; // digits that may terminate collection unsigned short max_digits; // term. after this many digits collected unsigned long digit_time_out; // max total time for digit collect (ms) unsigned long inter_digit_time_out; // max time between digits (ms) } VPB_DIGITS; // terminate reason passed in data field of VPB_EVENT when // VPB_DIGIT event posted #define VPB_DIGIT_TERM 0 #define VPB_DIGIT_MAX 1 #define VPB_DIGIT_TIME_OUT 2 #define VPB_DIGIT_INTER_DIGIT_TIME_OUT 3 #define VPB_DIGIT_BUFFER_FULL 4 int WINAPI vpb_flush_digits(int handle); int WINAPI vpb_get_digits_async(int handle, VPB_DIGITS *digits, char *digbuf); int WINAPI vpb_get_digits_sync(int handle, VPB_DIGITS *digits, char *digbuf); int WINAPI get_digits_async(int handle, VPB_DIGITS *newdig, char *buf, unsigned short size); int WINAPI get_digits_record_async(int handle, VPB_DIGITS *newdig, char *buf); -------------------------------------------------------------------------------------------------------------------------------- I have included my .i file and the vpbapi.h file where the structure is defined. Ken Taaffe ARRIS, Certification (678)473-5123 "Hoepfinger, Franz-Xaver (FH Rosenheim)" <Franz-Xaver.Hoepfinger@xxxxxxxxxx> Sent by: swig-admin@xxxxxxxxxxxxxxx 01/17/2003 09:51 AM CET To: "'swig@xxxxxxxxxxxxxxx'" <swig@xxxxxxxxxxxxxxx> cc: bcc: Subject: [Swig] Re: wrapper for Voicetronix telephony card Has anyone used SWIG to wrap the library for the Voicetronix vpb4-pci telephony card. It has a C++ API that I am wrapping to use inside TCL scripts. I can get most of it to work, but I am having trouble with some structures ( especially for vpb_get_digits_sync() ). [Franz Hoepfinger] pls Post the Structures here. There _is_ an Problem in SWIG with anonymus Bit Fields. Thanks. _______________________________________________ Swig maillist - Swig@xxxxxxxxxxxxxxx http://mailman.cs.uchicago.edu/mailman/listinfo/swig
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Next SWIG release: 00151, art yerkes |
|---|---|
| Next by Date: | Re: Next SWIG release: 00151, Brett H. Williams |
| Previous by Thread: | Re: wrapper for Voicetronix telephony cardi: 00151, Hoepfinger, Franz-Xaver (FH Rosenheim) |
| Next by Thread: | New language module: CHICKEN Scheme: 00151, Jonah Beckford |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |