diff options
author | Dan Gudmundsson <[email protected]> | 2013-01-16 16:45:01 +0100 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2013-01-16 16:45:01 +0100 |
commit | 086e369ee6a480a9de64bfc9c51430622ef9b2b6 (patch) | |
tree | 073e2fc7466837523411542caf05595ff34c7e28 /lib/wx/api_gen/wx_gen_cpp.erl | |
parent | b1ed656aa179b0d4c8a385d9cde93d326d835302 (diff) | |
download | otp-086e369ee6a480a9de64bfc9c51430622ef9b2b6.tar.gz otp-086e369ee6a480a9de64bfc9c51430622ef9b2b6.tar.bz2 otp-086e369ee6a480a9de64bfc9c51430622ef9b2b6.zip |
wx: Remove deprecated driver_send_term usage
Diffstat (limited to 'lib/wx/api_gen/wx_gen_cpp.erl')
-rw-r--r-- | lib/wx/api_gen/wx_gen_cpp.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/wx/api_gen/wx_gen_cpp.erl b/lib/wx/api_gen/wx_gen_cpp.erl index 293c97507e..f00fc0c720 100644 --- a/lib/wx/api_gen/wx_gen_cpp.erl +++ b/lib/wx/api_gen/wx_gen_cpp.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2008-2012. All Rights Reserved. +%% Copyright Ericsson AB 2008-2013. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -1210,7 +1210,7 @@ encode_events(Evs) -> " WxeApp * app = (WxeApp *) wxTheApp;~n" " return app->getRef(ptr,memenv);~n" "}~n~n"), - w("bool sendevent(wxEvent *event, ErlDrvPort port)~n{~n" + w("bool sendevent(wxEvent *event, ErlDrvTermData port)~n{~n" " int send_res ;~n" " char * evClass = NULL;~n" " wxMBConvUTF32 UTFconverter;~n" @@ -1239,7 +1239,7 @@ encode_events(Evs) -> w(" rt.addTupleCount(3);~n"), w(" pre_callback();~n"), w(" send_res = rt.send();~n"), - w(" if(send_res) handle_event_callback(port, cb->listener);~n"), + w(" if(send_res) handle_event_callback(WXE_DRV_PORT_HANDLE, cb->listener);~n"), w(" app->clearPtr((void *) event);~n"), w(" } else {~n"), w(" send_res = rt.send();~n"), |