mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40: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>
54 lines
1.7 KiB
C
54 lines
1.7 KiB
C
/*
|
|
* libxlu_cfg_i.h - xl configuration file parsing: parser-internal declarations
|
|
*
|
|
* Copyright (C) 2010 Citrix Ltd.
|
|
* Author Ian Jackson <ian.jackson@eu.citrix.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU Lesser General Public License as published
|
|
* by the Free Software Foundation; version 2.1 only. with the special
|
|
* exception on linking described in file LICENSE.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Lesser General Public License for more details.
|
|
*/
|
|
|
|
#ifndef LIBXLU_CFG_I_H
|
|
#define LIBXLU_CFG_I_H
|
|
|
|
#include "libxl_osdeps.h" /* must come before any other headers */
|
|
#include "libxlu_internal.h"
|
|
#include "libxlu_cfg_y.h"
|
|
|
|
void xlu__cfg_set_free(XLU_ConfigSetting *set);
|
|
XLU_ConfigSetting *xlu__cfg_set_mk(CfgParseContext*, int alloc, char *atom);
|
|
void xlu__cfg_set_add(CfgParseContext*, XLU_ConfigSetting *set, char *atom);
|
|
void xlu__cfg_set_store(CfgParseContext*, char *name,
|
|
XLU_ConfigSetting *set, int lineno);
|
|
|
|
char *xlu__cfgl_strdup(CfgParseContext*, const char *src);
|
|
char *xlu__cfgl_dequote(CfgParseContext*, const char *src);
|
|
|
|
void xlu__cfg_yyerror(YYLTYPE *locp, CfgParseContext*, char const *msg);
|
|
void xlu__cfgl_lexicalerror(CfgParseContext*, char const *msg);
|
|
|
|
void xlu__cfgl_likely_python(CfgParseContext *ctx);
|
|
|
|
|
|
|
|
/* Why oh why does bison not declare this in its autogenerated .h ? */
|
|
int xlu__cfg_yyparse(CfgParseContext *ctx);
|
|
|
|
|
|
#endif /*LIBXLU_CFG_I_H*/
|
|
|
|
/*
|
|
* Local variables:
|
|
* mode: C
|
|
* c-basic-offset: 4
|
|
* indent-tabs-mode: nil
|
|
* End:
|
|
*/
|