cpu: add function to get the models for an arch

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
Giuseppe Scrivano
2013-09-23 11:45:59 +02:00
committed by Eric Blake
parent f90857b32a
commit 36cc09420a
3 changed files with 86 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
/*
* cpu.h: internal functions for CPU manipulation
*
* Copyright (C) 2009-2010 Red Hat, Inc.
* Copyright (C) 2009-2010, 2013 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -175,4 +175,7 @@ cpuModelIsAllowed(const char *model,
const char **models,
unsigned int nmodels);
extern int
cpuGetModels(const char *arch, char ***models);
#endif /* __VIR_CPU_H__ */