2
* virt-host-validate-common.h: Sanity check helper APIs
4
* Copyright (C) 2012 Red Hat, Inc.
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public
8
* License as published by the Free Software Foundation; either
9
* version 2.1 of the License, or (at your option) any later version.
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with this library; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22
#ifndef __VIRT_HOST_VALIDATE_COMMON_H__
23
# define __VIRT_HOST_VALIDATE_COMMON_H__
25
# include "internal.h"
28
VIR_HOST_VALIDATE_FAIL,
29
VIR_HOST_VALIDATE_WARN,
30
VIR_HOST_VALIDATE_NOTE,
32
VIR_HOST_VALIDATE_LAST,
33
} virHostValidateLevel;
35
extern void virHostMsgSetQuiet(bool quietFlag);
37
extern void virHostMsgCheck(const char *prefix,
39
...) ATTRIBUTE_FMT_PRINTF(2, 3);
41
extern void virHostMsgPass(void);
42
extern void virHostMsgFail(virHostValidateLevel level,
45
extern int virHostValidateDevice(const char *hvname,
47
virHostValidateLevel level,
50
extern bool virHostValidateHasCPUFlag(const char *name);
52
extern int virHostValidateLinuxKernel(const char *hvname,
54
virHostValidateLevel level,
57
#endif /* __VIRT_HOST_VALIDATE_COMMON_H__ */