mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
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>
32 lines
580 B
C
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:
|
|
*/
|