aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/c_src/wxe_driver.h
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2015-06-04 15:57:37 +0200
committerDan Gudmundsson <[email protected]>2015-06-05 08:24:06 +0200
commit38cb91a91ac2d8f3231761b98909ff89416a4942 (patch)
tree998895fdc91242be2cb9818f25c2b91c9023280f /lib/wx/c_src/wxe_driver.h
parent0b66c5c60f2f7103c1025f1dd16f88918be28f48 (diff)
downloadotp-38cb91a91ac2d8f3231761b98909ff89416a4942.tar.gz
otp-38cb91a91ac2d8f3231761b98909ff89416a4942.tar.bz2
otp-38cb91a91ac2d8f3231761b98909ff89416a4942.zip
wx: Optimize binary args
Diffstat (limited to 'lib/wx/c_src/wxe_driver.h')
-rw-r--r--lib/wx/c_src/wxe_driver.h7
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();