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_FIELD_H 00020 #define __DXCUT_FIELD_H 00021 #include <dxcut/access_flags.h> 00022 #include <dxcut/annotation.h> 00023 #ifdef __cplusplus 00024 extern "C" { 00025 #endif 00026 00027 typedef struct { 00029 DexAccessFlags access_flags; 00030 00032 ref_str* type; 00033 00035 ref_str* name; 00036 00039 DexAnnotation* annotations; 00040 } DexField; 00041 00046 extern 00047 void dxc_free_field(DexField* field); 00048 00052 extern 00053 int dxc_is_sentinel_field(DexField* field); 00054 00058 extern 00059 void dxc_make_sentinel_field(DexField* field); 00060 00061 #ifdef __cplusplus 00062 } 00063 #endif 00064 #endif // __DXCUT_FIELD_H