GDB (xrefs)
/tmp/gdb-7.10/gdb/osdata.h
Go to the documentation of this file.
1 /* Routines for handling XML generic OS data provided by target.
2 
3  Copyright (C) 2008-2015 Free Software Foundation, Inc.
4 
5  This file is part of GDB.
6 
7  This program is free software; you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation; either version 3 of the License, or
10  (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program. If not, see <http://www.gnu.org/licenses/>. */
19 
20 #ifndef OSDATA_H
21 #define OSDATA_H
22 
23 #include "vec.h"
24 
25 typedef struct osdata_column
26 {
27  char *name;
28  char *value;
31 
32 typedef struct osdata_item
33 {
34  VEC(osdata_column_s) *columns;
37 
38 struct osdata
39 {
40  char *type;
41 
42  VEC(osdata_item_s) *items;
43 };
44 typedef struct osdata *osdata_p;
45 DEF_VEC_P(osdata_p);
46 
47 struct osdata *osdata_parse (const char *xml);
48 void osdata_free (struct osdata *);
49 struct cleanup *make_cleanup_osdata_free (struct osdata *data);
50 struct osdata *get_osdata (const char *type);
51 const char *get_osdata_column (struct osdata_item *item, const char *name);
52 void info_osdata_command (char *type, int from_tty);
53 
54 #endif /* OSDATA_H */
struct osdata * get_osdata(const char *type)
Definition: osdata.c:244
struct osdata_column osdata_column_s
DEF_VEC_P(osdata_p)
char * value
Definition: osdata.h:28
void info_osdata_command(char *type, int from_tty)
Definition: osdata.c:289
const char *const name
Definition: aarch64-tdep.c:68
struct cleanup * make_cleanup_osdata_free(struct osdata *data)
Definition: osdata.c:238
DEF_VEC_O(osdata_column_s)
struct osdata * osdata_parse(const char *xml)
Definition: osdata.c:166
Definition: gdbtypes.h:749
struct osdata_item osdata_item_s
struct osdata * osdata_p
Definition: osdata.h:44
Definition: osdata.h:38
void osdata_free(struct osdata *)
Definition: osdata.c:208
char * name
Definition: osdata.h:27
VEC(osdata_item_s)*items
VEC(osdata_column_s)*columns
char * type
Definition: osdata.h:40
const char * get_osdata_column(struct osdata_item *item, const char *name)
Definition: osdata.c:273