summaryrefslogtreecommitdiff
path: root/libvirt-utils.h
diff options
context:
space:
mode:
authorKonstantin Neumoin <kneumoin@virtuozzo.com>2016-11-03 20:05:51 +0300
committerPeter Krempa <pkrempa@redhat.com>2016-11-11 13:44:44 +0100
commita03d782b3e19cb9b4681783ec1f6c88615128627 (patch)
treeb2afc851dba75bd729c0e5dacaec70cc31cf1473 /libvirt-utils.h
parent653ca92463788c0f1873f53b81c6d5f5a37784c1 (diff)
downloadlibvirt-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.h5
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__ */