gdb/osdata.h - gdb

Global variables defined

Data types defined

Macros defined

Source code

  1. /* Routines for handling XML generic OS data provided by target.

  2.    Copyright (C) 2008-2015 Free Software Foundation, Inc.

  3.    This file is part of GDB.

  4.    This program is free software; you can redistribute it and/or modify
  5.    it under the terms of the GNU General Public License as published by
  6.    the Free Software Foundation; either version 3 of the License, or
  7.    (at your option) any later version.

  8.    This program is distributed in the hope that it will be useful,
  9.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11.    GNU General Public License for more details.

  12.    You should have received a copy of the GNU General Public License
  13.    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */

  14. #ifndef OSDATA_H
  15. #define OSDATA_H

  16. #include "vec.h"

  17. typedef struct osdata_column
  18. {
  19.   char *name;
  20.   char *value;
  21. } osdata_column_s;
  22. DEF_VEC_O(osdata_column_s);

  23. typedef struct osdata_item
  24. {
  25.   VEC(osdata_column_s) *columns;
  26. } osdata_item_s;
  27. DEF_VEC_O(osdata_item_s);

  28. struct osdata
  29. {
  30.   char *type;

  31.   VEC(osdata_item_s) *items;
  32. };
  33. typedef struct osdata *osdata_p;
  34. DEF_VEC_P(osdata_p);

  35. struct osdata *osdata_parse (const char *xml);
  36. void osdata_free (struct osdata *);
  37. struct cleanup *make_cleanup_osdata_free (struct osdata *data);
  38. struct osdata *get_osdata (const char *type);
  39. const char *get_osdata_column (struct osdata_item *item, const char *name);
  40. void info_osdata_command (char *type, int from_tty);

  41. #endif /* OSDATA_H */