diff options
author | Dan Gudmundsson <[email protected]> | 2015-06-09 09:37:34 +0200 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2015-06-09 09:37:34 +0200 |
commit | bbd68fb2f45ec2089d6f1bbffd2601bf776aa267 (patch) | |
tree | 029c2c77b7d399e49e02b13a12f906c3d9606b7f /lib/wx/c_src/wxe_driver.h | |
parent | 798219edd8adf36dbcc02ce9c9de71685da85d64 (diff) | |
parent | 38cb91a91ac2d8f3231761b98909ff89416a4942 (diff) | |
download | otp-bbd68fb2f45ec2089d6f1bbffd2601bf776aa267.tar.gz otp-bbd68fb2f45ec2089d6f1bbffd2601bf776aa267.tar.bz2 otp-bbd68fb2f45ec2089d6f1bbffd2601bf776aa267.zip |
Merge branch 'dgud/wx/float-return'
* dgud/wx/float-return:
wx: Optimize binary args
wx: Driver lock cleanup
wx: Optimize event and return value construction
wx: Cleanup tests
wx: Fix bad float in return values
Diffstat (limited to 'lib/wx/c_src/wxe_driver.h')
-rw-r--r-- | lib/wx/c_src/wxe_driver.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/wx/c_src/wxe_driver.h b/lib/wx/c_src/wxe_driver.h index e35bbe2118..9682f33e95 100644 --- a/lib/wx/c_src/wxe_driver.h +++ b/lib/wx/c_src/wxe_driver.h @@ -37,12 +37,12 @@ typedef struct wxe_bin_ref { size_t size; ErlDrvBinary* bin; ErlDrvTermData from; - WXEBinRefptr next; } WXEBinRef; -typedef struct wxe_data_def { +typedef struct wxe_data_def { void * driver_data; WXEBinRef * bin; /* Argument binaries */ + Uint32 max_bins; ErlDrvPort port_handle; ErlDrvTermData port; int is_cbport; @@ -50,6 +50,9 @@ typedef struct wxe_data_def { } wxe_data; +/* Number of bins per port should be small */ +#define DEF_BINS 3 + void init_glexts(wxe_data*); int load_native_gui(); |