@@ -25,6 +25,14 @@
#include "libxlu_cfg_l.h"
#include "libxlu_cfg_i.h"
+typedef struct XLU_ConfigSetting { /* transparent */
+ struct XLU_ConfigSetting *next;
+ char *name;
+ XLU_ConfigValue *value;
+ enum XLU_Operation op;
+ int lineno;
+} XLU_ConfigSetting;
+
struct XLU_Config {
XLU_ConfigSetting *settings;
FILE *report;
@@ -155,7 +163,7 @@ void xlu__cfg_value_free(XLU_ConfigValue *value)
free(value);
}
-void xlu__cfg_set_free(XLU_ConfigSetting *set) {
+static void xlu__cfg_set_free(XLU_ConfigSetting *set) {
if (!set) return;
free(set->name);
xlu__cfg_value_free(set->value);
@@ -26,7 +26,6 @@ enum XLU_Operation {
XLU_OP_ADDITION,
};
-void xlu__cfg_set_free(XLU_ConfigSetting *set);
void xlu__cfg_set_store(CfgParseContext*, char *name,
enum XLU_Operation op,
XLU_ConfigValue *val, int lineno);
@@ -49,14 +49,6 @@ struct XLU_ConfigValue {
YYLTYPE loc;
};
-typedef struct XLU_ConfigSetting { /* transparent */
- struct XLU_ConfigSetting *next;
- char *name;
- XLU_ConfigValue *value;
- enum XLU_Operation op;
- int lineno;
-} XLU_ConfigSetting;
-
typedef struct {
XLU_Config *cfg;
int err, lexerrlineno, likely_python;
XLU_ConfigSetting is only used inside libxl_cfg.c, so no need for it in the internal header. Similarly, xlu__cfg_set_free() is no longer used outside libxl_cfg.c, so remove from header and redeclare static. Signed-off-by: Elliott Mitchell <ehem+xen@m5p.com> --- tools/libs/util/libxlu_cfg.c | 10 +++++++++- tools/libs/util/libxlu_cfg_i.h | 1 - tools/libs/util/libxlu_internal.h | 8 -------- 3 files changed, 9 insertions(+), 10 deletions(-)