GDB (API)
|
00001 /* Routines for handling XML generic OS data provided by target. 00002 00003 Copyright (C) 2008-2013 Free Software Foundation, Inc. 00004 00005 This file is part of GDB. 00006 00007 This program is free software; you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by 00009 the Free Software Foundation; either version 3 of the License, or 00010 (at your option) any later version. 00011 00012 This program is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 00019 00020 #ifndef OSDATA_H 00021 #define OSDATA_H 00022 00023 #include "vec.h" 00024 00025 typedef struct osdata_column 00026 { 00027 char *name; 00028 char *value; 00029 } osdata_column_s; 00030 DEF_VEC_O(osdata_column_s); 00031 00032 typedef struct osdata_item 00033 { 00034 VEC(osdata_column_s) *columns; 00035 } osdata_item_s; 00036 DEF_VEC_O(osdata_item_s); 00037 00038 struct osdata 00039 { 00040 char *type; 00041 00042 VEC(osdata_item_s) *items; 00043 }; 00044 typedef struct osdata *osdata_p; 00045 DEF_VEC_P(osdata_p); 00046 00047 struct osdata *osdata_parse (const char *xml); 00048 void osdata_free (struct osdata *); 00049 struct cleanup *make_cleanup_osdata_free (struct osdata *data); 00050 struct osdata *get_osdata (const char *type); 00051 const char *get_osdata_column (struct osdata_item *item, const char *name); 00052 void info_osdata_command (char *type, int from_tty); 00053 00054 #endif /* OSDATA_H */