Files
xen/tools/libxl/libxlu_disk_i.h
T
Ian Jackson 8fc051a10f libxl: move a lot more includes into libxl_internal.h
Move a lot of
  #include <stdfoo.h>
from individual files into libxl_internal.h.  This helps avoid
portability mistakes where necessary system headers are omitted from
individual files, and is also of course a convenience when developing.

Also add
  #include "libxl_osdeps.h" /* must come before any other headers */
to the top of most libxl*.c files, so that anyone who adds any headers
before libxl_internal.h will put the in the right place.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
2012-01-13 16:54:19 +00:00

32 lines
580 B
C

#ifndef LIBXLU_DISK_I_H
#define LIBXLU_DISK_I_H
#include "libxl_osdeps.h" /* must come before any other headers */
#include "libxlu_internal.h"
typedef struct {
XLU_Config *cfg;
int err;
void *scanner;
YY_BUFFER_STATE buf;
libxl_device_disk *disk;
int access_set, had_depr_prefix;
const char *spec;
} DiskParseContext;
void xlu__disk_err(DiskParseContext *dpc, const char *erroneous,
const char *message);
#endif /*LIBXLU_DISK_I_H*/
/*
* Local variables:
* mode: C
* c-basic-offset: 4
* indent-tabs-mode: nil
* End:
*/