libftdi-git Archives

Subject: A library to talk to FTDI chips branch, master, updated. v0.17-11-gcdf955a

From: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
To: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
Date: Fri, 16 Apr 2010 23:15:56 +0200 (CEST)
The branch, master has been updated
       via  cdf955a41be44ee8ec61b57ca5a4ed69527df8ea (commit)
      from  6b11b482449214d82584185c0b80daadac46c32b (commit)


- Log -----------------------------------------------------------------
commit cdf955a41be44ee8ec61b57ca5a4ed69527df8ea
Author: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
Date:   Fri Apr 16 23:16:06 2010 +0200

    Fix swig argument constraints. Thanks to Craig Hollabaugh for the hint.

-----------------------------------------------------------------------

Summary of changes:
 bindings/ftdi.i |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/bindings/ftdi.i b/bindings/ftdi.i
index ce24b58..9af6057 100644
--- a/bindings/ftdi.i
+++ b/bindings/ftdi.i
@@ -16,32 +16,37 @@ extern "C" {
 %apply char *OUTPUT { unsigned char *buf };
     int ftdi_read_data(struct ftdi_context *ftdi, unsigned char *buf, int 
size);
 %clear unsigned char *buf;
+
 %apply int *OUTPUT { unsigned int *chunksize };
     int ftdi_read_data_get_chunksize(struct ftdi_context *ftdi, unsigned int 
*chunksize);
     int ftdi_write_data_get_chunksize(struct ftdi_context *ftdi, unsigned int 
*chunksize);
 %clear unsigned int *chunksize;
+
     //int ftdi_write_data_async(struct ftdi_context *ftdi, unsigned char *buf, 
int size);
     //void ftdi_async_complete(struct ftdi_context *ftdi, int wait_for_more);
 %apply char *OUTPUT { unsigned char *pins };
     int ftdi_read_pins(struct ftdi_context *ftdi, unsigned char *pins);
 %clear unsigned char *pins;
+
 %apply char *OUTPUT { unsigned char *latency };
     int ftdi_get_latency_timer(struct ftdi_context *ftdi, unsigned char 
*latency);
-%clear unsigned char *status;
-%apply char *OUTPUT { unsigned char *latency };
+%clear unsigned char *latency;
+
+%apply char *OUTPUT { unsigned short *status };
     int ftdi_poll_modem_status(struct ftdi_context *ftdi, unsigned short 
*status);
-%clear unsigned char *status;
+%clear unsigned short *status;
+
 %apply char *OUTPUT { unsigned char *output };
     int  ftdi_eeprom_build(struct ftdi_eeprom *eeprom, unsigned char *output);
 %clear unsigned char *output;
+
 %apply char *OUTPUT { unsigned char *eeprom };
     int ftdi_read_eeprom(struct ftdi_context *ftdi, unsigned char *eeprom);
     int ftdi_write_eeprom(struct ftdi_context *ftdi, unsigned char *eeprom);
 %clear unsigned char *eeprom;
+
 %apply int *OUTPUT { unsigned int *chipid };
     int ftdi_read_chipid(struct ftdi_context *ftdi, unsigned int *chipid);
 %clear unsigned int *chipid;
 
 }
-
-


hooks/post-receive
-- 
A library to talk to FTDI chips

--
libftdi-git - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread
  • A library to talk to FTDI chips branch, master, updated. v0.17-11-gcdf955a, libftdi-git <=