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_METHOD_H 00020 #define __DXCUT_METHOD_H 00021 #include <dxcut/access_flags.h> 00022 #include <dxcut/code.h> 00023 #include <dxcut/annotation.h> 00024 #ifdef __cplusplus 00025 extern "C" { 00026 #endif 00027 00028 typedef struct { 00030 DexAccessFlags access_flags; 00031 00033 ref_str* name; 00034 00037 ref_strstr* prototype; 00038 00041 DexCode* code_body; 00042 00045 DexAnnotation* annotations; 00046 00050 DexAnnotation** parameter_annotations; 00051 } DexMethod; 00052 00057 extern 00058 void dxc_free_method(DexMethod* method); 00059 00063 extern 00064 int dxc_is_sentinel_method(DexMethod* method); 00065 00069 extern 00070 void dxc_make_sentinel_method(DexMethod* method); 00071 00072 #ifdef __cplusplus 00073 } 00074 #endif 00075 #endif // __DXCUT_METHOD_H