aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/src/wxe.hrl
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2009-11-20 14:54:40 +0000
committerErlang/OTP <[email protected]>2009-11-20 14:54:40 +0000
commit84adefa331c4159d432d22840663c38f155cd4c1 (patch)
treebff9a9c66adda4df2106dfd0e5c053ab182a12bd /lib/wx/src/wxe.hrl
downloadotp-84adefa331c4159d432d22840663c38f155cd4c1.tar.gz
otp-84adefa331c4159d432d22840663c38f155cd4c1.tar.bz2
otp-84adefa331c4159d432d22840663c38f155cd4c1.zip
The R13B03 release.OTP_R13B03
Diffstat (limited to 'lib/wx/src/wxe.hrl')
-rw-r--r--lib/wx/src/wxe.hrl55
1 files changed, 55 insertions, 0 deletions
diff --git a/lib/wx/src/wxe.hrl b/lib/wx/src/wxe.hrl
new file mode 100644
index 0000000000..bb70a03bfe
--- /dev/null
+++ b/lib/wx/src/wxe.hrl
@@ -0,0 +1,55 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2008-2009. 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
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%%-------------------------------------------------------------------
+%%% File : wxe.hrl
+%%% Author : Dan Gudmundsson <[email protected]>
+%%% Description : Some internal macros and record definitions
+%%%
+%%% Created : 8 Feb 2007 by Dan Gudmundsson <[email protected]>
+%%%-------------------------------------------------------------------
+
+-record(wx_ref, {ref, type, state=[]}).
+
+-record(wx_env, {port, sv, debug=0}).
+
+-record(wx_mem, {bin, size}).
+
+-define(CLASS(Type,Class), ((Type) =:= Class) orelse (Type):parent_class(Class)).
+
+-define(CLASS_T(Type,Class),
+ try (((Type) =:= Class) orelse (Type):parent_class(Class)) catch _:_ -> false end).
+
+-define(UI, unsigned-native).
+-define(I, signed-native).
+-define(F, float-native).
+
+-define(WXE_IDENTIFIER, wx_env).
+-define(BATCH_BEGIN, 0).
+-define(BATCH_END, 1).
+%%-define(CREATE_PORT, 2). %% Not used in erlang
+%%-define(REMOVE_PORT, 3).
+-define(DESTROY_OBJECT, 4).
+-define(WXE_CB_RETURN, 5). %% Used for callback return buffer
+%%-define(WXE_SHUTDOWN, 6). %% Not used in erlang
+-define(WXE_REGISTER_OBJECT, 7). %% Used for object monitoring
+-define(WXE_CB_START, 8). %% Used for event-callback start
+-define(WXE_DEBUG_DRIVER, 9). %% Set debug
+%%-define(WXE_DEBUG_PING, 10). %% debug ping (when using debugger it's needed)
+-define(WXE_BIN_INCR, 5001). %% Binary refc incr
+-define(WXE_BIN_DECR, 5002). %% Binary refc decr
+-include("gen/wxe_funcs.hrl").