00001 /* 00002 Copyright (C) 2010 Mark Gordon 00003 00004 This program is free software; you can redistribute it and/or modify it under 00005 the terms of the GNU General Public License as published by the Free Software 00006 Foundation; either version 2 of the License, or (at your option) any later 00007 version. 00008 00009 This program is distributed in the hope that it will be useful, but WITHOUT ANY 00010 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 00011 PARTICULAR PURPOSE. See the GNU General Public License for more details. 00012 00013 You should have received a copy of the GNU General Public License along with 00014 this program; if not, write to the Free Software Foundation, Inc., 59 Temple 00015 Place, Suite 330, Boston, MA 02111-1307 USA 00016 */ 00019 #ifndef __DXCUT_HANDLER_H 00020 #define __DXCUT_HANDLER_H 00021 #include <dxcut/dex.h> 00022 #ifdef __cplusplus 00023 extern "C" { 00024 #endif 00025 00026 typedef struct { 00029 ref_str* type; 00030 00032 dx_uint addr; 00033 } DexHandler; 00034 00039 extern 00040 void dxc_free_handler(DexHandler* handler); 00041 00045 extern 00046 int dxc_is_sentinel_handler(DexHandler* handler); 00047 00051 extern 00052 void dxc_make_sentinel_handler(DexHandler* handler); 00053 00054 #ifdef __cplusplus 00055 } 00056 #endif 00057 #endif // __DXCUT_HANDLER_H