~ubuntu-branches/ubuntu/utopic/xen/utopic

« back to all changes in this revision

Viewing changes to tools/libxl/libxlu_internal.h

  • Committer: Bazaar Package Importer
  • Author(s): Bastian Blank
  • Date: 2010-05-06 15:47:38 UTC
  • mto: (1.3.1) (15.1.1 sid) (4.1.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20100506154738-agoz0rlafrh1fnq7
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 */
 
15
 
 
16
#ifndef LIBXLU_INTERNAL_H
 
17
#define LIBXLU_INTERNAL_H
 
18
 
 
19
#include <stdio.h>
 
20
#include <errno.h>
 
21
#include <string.h>
 
22
#include <assert.h>
 
23
 
 
24
#define XLU_ConfigList XLU_ConfigSetting
 
25
 
 
26
#include "libxlutil.h"
 
27
 
 
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
};
 
35
 
 
36
struct XLU_Config {
 
37
    XLU_ConfigSetting *settings;
 
38
    FILE *report;
 
39
    char *filename;
 
40
};
 
41
 
 
42
typedef struct {
 
43
    XLU_Config *cfg;
 
44
    int err, lexerrlineno;
 
45
    void *scanner;
 
46
} CfgParseContext;
 
47
 
 
48
#endif /*LIBXLU_INTERNAL_H*/