debuggers.hg

view tools/libxl/libxlu_internal.h @ 21067:b4a1832a916f

Update Xen version to 4.0.0-rc6
author Keir Fraser <keir.fraser@citrix.com>
date Tue Mar 09 18:18:05 2010 +0000 (2010-03-09)
parents 71af69a9d393
children cb94dbe20f97
line source
1 /*
2 * Copyright (C) 2010 Citrix Ltd.
3 * Author Ian Jackson <ian.jackson@eu.citrix.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License as published
7 * by the Free Software Foundation; version 2.1 only. with the special
8 * exception on linking described in file LICENSE.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
14 */
16 #ifndef LIBXLU_INTERNAL_H
17 #define LIBXLU_INTERNAL_H
19 #include <stdio.h>
20 #include <errno.h>
21 #include <string.h>
22 #include <assert.h>
24 #define XLU_ConfigList XLU_ConfigSetting
26 #include "libxlutil.h"
28 struct XLU_ConfigSetting { /* transparent */
29 struct XLU_ConfigSetting *next;
30 char *name;
31 int nvalues, avalues; /* lists have avalues>1 */
32 char **values;
33 int lineno;
34 };
36 struct XLU_Config {
37 XLU_ConfigSetting *settings;
38 FILE *report;
39 char *filename;
40 };
42 typedef struct {
43 XLU_Config *cfg;
44 int err, lexerrlineno;
45 void *scanner;
46 } CfgParseContext;
48 #endif /*LIBXLU_INTERNAL_H*/