diff options
author | Konstantin Neumoin <kneumoin@virtuozzo.com> | 2016-11-03 20:05:51 +0300 |
---|---|---|
committer | Peter Krempa <pkrempa@redhat.com> | 2016-11-11 13:44:44 +0100 |
commit | a03d782b3e19cb9b4681783ec1f6c88615128627 (patch) | |
tree | b2afc851dba75bd729c0e5dacaec70cc31cf1473 /libvirt-utils.h | |
parent | 653ca92463788c0f1873f53b81c6d5f5a37784c1 (diff) | |
download | libvirt-python-a03d782b3e19cb9b4681783ec1f6c88615128627.tar.gz |
move cpumap conversion code to a common helper
All libvirt_virDomainPin* functions do the same thing for convert
pycpumap to cpumap, so this patch moves all common logic to new
helper - virPyCpumapConvert.
Signed-off-by: Konstantin Neumoin <kneumoin@virtuozzo.com>
Diffstat (limited to 'libvirt-utils.h')
-rw-r--r-- | libvirt-utils.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libvirt-utils.h b/libvirt-utils.h index f74654c..779fd56 100644 --- a/libvirt-utils.h +++ b/libvirt-utils.h @@ -349,4 +349,9 @@ int virPyDictToTypedParams(PyObject *dict, ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3); # endif /* LIBVIR_CHECK_VERSION(1, 1, 0) */ +int virPyCpumapConvert(int cpunum, + PyObject *pycpumap, + unsigned char **cpumapptr, + int *cpumaplen); + #endif /* __LIBVIRT_UTILS_H__ */ |