summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-07-23 21:26:18 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-07-23 21:26:18 +0100
commit941ec968b8a1d6f891d30631a8ddb1e23e427b99 (patch)
tree738bc815255cfa77ac443007761fe3ed5d870e84 /examples
parentbf00be0e17c03f46075b3276fade7bd23d380557 (diff)
downloadlibguestfs-941ec968b8a1d6f891d30631a8ddb1e23e427b99.tar.gz
libguestfs-941ec968b8a1d6f891d30631a8ddb1e23e427b99.tar.xz
libguestfs-941ec968b8a1d6f891d30631a8ddb1e23e427b99.zip
lib: Initialize libvirt and libxml2 once when the library loads.
Diffstat (limited to 'examples')
-rw-r--r--examples/copy_over.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/examples/copy_over.c b/examples/copy_over.c
index 45b8fa6d..ec026168 100644
--- a/examples/copy_over.c
+++ b/examples/copy_over.c
@@ -21,7 +21,6 @@
#include <pthread.h>
#include <guestfs.h>
-#include <libvirt/libvirt.h>
struct threaddata {
const char *src;
@@ -66,9 +65,6 @@ main (int argc, char *argv[])
struct timeval start_t, end_t;
int64_t ms;
- /* This is required when using libvirt from multiple threads. */
- virInitialize ();
-
if (argc != 5) {
usage ();
exit (EXIT_FAILURE);