From 3869766df987fae741cecf6359a9802a26a6cc87 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Thu, 9 Nov 2006 15:32:44 +0000 Subject: [PATCH] * python/generator.py: changed the generator to generate a reference from Domain class instances to the Connect they were issued from should fix rhbz#204490 * docs//*: rebuilt Daniel --- ChangeLog | 7 ++ docs/APIfiles.html | 1 + docs/APIsymbols.html | 1 + docs/devhelp/libvirt-virterror.html | 3 +- docs/libvirt-api.xml | 4 +- docs/libvirt-refs.xml | 3 + po/en_GB.po | 172 ++++++++++++++-------------- po/libvirt.pot | 172 ++++++++++++++-------------- python/generator.py | 10 ++ 9 files changed, 203 insertions(+), 170 deletions(-) diff --git a/ChangeLog b/ChangeLog index a30745949..2ddeac639 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Thu Nov 9 15:39:19 CET 2006 Daniel Veillard + + * python/generator.py: changed the generator to generate a reference + from Domain class instances to the Connect they were issued from + should fix rhbz#204490 + * docs//*: rebuilt + Thu Nov 9 10:22:43 CET 2006 Daniel Veillard * tests/reconnect.c: fixed the reconnect test when running as non-root diff --git a/docs/APIfiles.html b/docs/APIfiles.html index 83edae9c3..1eead3da9 100644 --- a/docs/APIfiles.html +++ b/docs/APIfiles.html @@ -126,6 +126,7 @@ VIR_ERR_WARNING
VIR_ERR_WRITE_FAILED
VIR_ERR_XEN_CALL
+VIR_ERR_XML_DETAIL
VIR_ERR_XML_ERROR
VIR_FROM_CONF
VIR_FROM_DOM
diff --git a/docs/APIsymbols.html b/docs/APIsymbols.html index 4ff9205e7..ea9c24136 100644 --- a/docs/APIsymbols.html +++ b/docs/APIsymbols.html @@ -57,6 +57,7 @@ VIR_ERR_WARNING
VIR_ERR_WRITE_FAILED
VIR_ERR_XEN_CALL
+VIR_ERR_XML_DETAIL
VIR_ERR_XML_ERROR
VIR_FROM_CONF
VIR_FROM_DOM
diff --git a/docs/devhelp/libvirt-virterror.html b/docs/devhelp/libvirt-virterror.html index 78a96d8cf..6e290e287 100644 --- a/docs/devhelp/libvirt-virterror.html +++ b/docs/devhelp/libvirt-virterror.html @@ -136,7 +136,8 @@ void virConnResetLastError (VIR_ERR_READ_FAILED = 31 /* failed to read a conf file */ VIR_ERR_PARSE_FAILED = 32 /* failed to parse a conf file */ VIR_ERR_CONF_SYNTAX = 33 /* failed to parse the syntax of a conf file */ - VIR_ERR_WRITE_FAILED = 34 /* failed to write a conf file */ + VIR_ERR_WRITE_FAILED = 34 /* failed to write a conf file */ + VIR_ERR_XML_DETAIL = 35 /* detail of an XML error */ };

diff --git a/docs/libvirt-api.xml b/docs/libvirt-api.xml index 7c4aa3bd9..f88b00658 100644 --- a/docs/libvirt-api.xml +++ b/docs/libvirt-api.xml @@ -123,6 +123,7 @@ + @@ -259,8 +260,9 @@ - + + diff --git a/docs/libvirt-refs.xml b/docs/libvirt-refs.xml index 25a464453..b46d24e91 100644 --- a/docs/libvirt-refs.xml +++ b/docs/libvirt-refs.xml @@ -58,6 +58,7 @@ + @@ -217,6 +218,7 @@ + @@ -574,6 +576,7 @@ + diff --git a/po/en_GB.po b/po/en_GB.po index d59e4b382..17d8dcb5e 100644 --- a/po/en_GB.po +++ b/po/en_GB.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: libvirt\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2006-11-07 16:20+0100\n" +"POT-Creation-Date: 2006-11-09 14:26+0100\n" "PO-Revision-Date: 2006-09-20 10:20-0400\n" "Last-Translator: Daniel Berrange \n" "Language-Team: English \n" @@ -32,298 +32,302 @@ msgstr "" msgid "error" msgstr "" -#: src/virterror.c:328 +#: src/virterror.c:335 msgid "No error message provided" msgstr "" -#: src/virterror.c:382 +#: src/virterror.c:389 #, c-format msgid "internal error %s" msgstr "" -#: src/virterror.c:384 +#: src/virterror.c:391 msgid "internal error" msgstr "" -#: src/virterror.c:387 +#: src/virterror.c:394 msgid "out of memory" msgstr "" -#: src/virterror.c:391 +#: src/virterror.c:398 msgid "no support for hypervisor" msgstr "" -#: src/virterror.c:393 +#: src/virterror.c:400 #, c-format msgid "no support for hypervisor %s" msgstr "" -#: src/virterror.c:397 +#: src/virterror.c:404 msgid "could not connect to hypervisor" msgstr "" -#: src/virterror.c:399 +#: src/virterror.c:406 #, c-format msgid "could not connect to %s" msgstr "" -#: src/virterror.c:403 +#: src/virterror.c:410 msgid "invalid connection pointer in" msgstr "" -#: src/virterror.c:405 +#: src/virterror.c:412 #, c-format msgid "invalid connection pointer in %s" msgstr "" -#: src/virterror.c:409 +#: src/virterror.c:416 msgid "invalid domain pointer in" msgstr "" -#: src/virterror.c:411 +#: src/virterror.c:418 #, c-format msgid "invalid domain pointer in %s" msgstr "" -#: src/virterror.c:415 +#: src/virterror.c:422 msgid "invalid argument in" msgstr "" -#: src/virterror.c:417 +#: src/virterror.c:424 #, c-format msgid "invalid argument in %s" msgstr "" -#: src/virterror.c:421 +#: src/virterror.c:428 #, c-format msgid "operation failed: %s" msgstr "" -#: src/virterror.c:423 +#: src/virterror.c:430 msgid "operation failed" msgstr "" -#: src/virterror.c:427 +#: src/virterror.c:434 #, c-format msgid "GET operation failed: %s" msgstr "" -#: src/virterror.c:429 +#: src/virterror.c:436 msgid "GET operation failed" msgstr "" -#: src/virterror.c:433 +#: src/virterror.c:440 #, c-format msgid "POST operation failed: %s" msgstr "" -#: src/virterror.c:435 +#: src/virterror.c:442 msgid "POST operation failed" msgstr "" -#: src/virterror.c:438 +#: src/virterror.c:445 #, c-format msgid "got unknown HTTP error code %d" msgstr "" -#: src/virterror.c:442 +#: src/virterror.c:449 #, c-format msgid "unknown host %s" msgstr "" -#: src/virterror.c:444 +#: src/virterror.c:451 msgid "unknown host" msgstr "" -#: src/virterror.c:448 +#: src/virterror.c:455 #, c-format msgid "failed to serialize S-Expr: %s" msgstr "" -#: src/virterror.c:450 +#: src/virterror.c:457 msgid "failed to serialize S-Expr" msgstr "" -#: src/virterror.c:454 +#: src/virterror.c:461 msgid "could not use Xen hypervisor entry" msgstr "" -#: src/virterror.c:456 +#: src/virterror.c:463 #, c-format msgid "could not use Xen hypervisor entry %s" msgstr "" -#: src/virterror.c:460 +#: src/virterror.c:467 msgid "could not connect to Xen Store" msgstr "" -#: src/virterror.c:462 +#: src/virterror.c:469 #, c-format msgid "could not connect to Xen Store %s" msgstr "" -#: src/virterror.c:465 +#: src/virterror.c:472 #, c-format msgid "failed Xen syscall %s %d" msgstr "" -#: src/virterror.c:469 +#: src/virterror.c:476 msgid "unknown OS type" msgstr "" -#: src/virterror.c:471 +#: src/virterror.c:478 #, c-format msgid "unknown OS type %s" msgstr "" -#: src/virterror.c:474 +#: src/virterror.c:481 msgid "missing kernel information" msgstr "" -#: src/virterror.c:478 +#: src/virterror.c:485 msgid "missing root device information" msgstr "" -#: src/virterror.c:480 +#: src/virterror.c:487 #, c-format msgid "missing root device information in %s" msgstr "" -#: src/virterror.c:484 +#: src/virterror.c:491 msgid "missing source information for device" msgstr "" -#: src/virterror.c:486 +#: src/virterror.c:493 #, c-format msgid "missing source information for device %s" msgstr "" -#: src/virterror.c:490 +#: src/virterror.c:497 msgid "missing target information for device" msgstr "" -#: src/virterror.c:492 +#: src/virterror.c:499 #, c-format msgid "missing target information for device %s" msgstr "" -#: src/virterror.c:496 +#: src/virterror.c:503 msgid "missing domain name information" msgstr "" -#: src/virterror.c:498 +#: src/virterror.c:505 #, c-format msgid "missing domain name information in %s" msgstr "" -#: src/virterror.c:502 +#: src/virterror.c:509 msgid "missing operating system information" msgstr "" -#: src/virterror.c:504 +#: src/virterror.c:511 #, c-format msgid "missing operating system information for %s" msgstr "" -#: src/virterror.c:508 +#: src/virterror.c:515 msgid "missing devices information" msgstr "" -#: src/virterror.c:510 +#: src/virterror.c:517 #, c-format msgid "missing devices information for %s" msgstr "" -#: src/virterror.c:514 +#: src/virterror.c:521 msgid "too many drivers registered" msgstr "" -#: src/virterror.c:516 +#: src/virterror.c:523 #, c-format msgid "too many drivers registered in %s" msgstr "" -#: src/virterror.c:520 +#: src/virterror.c:527 msgid "library call failed, possibly not supported" msgstr "" -#: src/virterror.c:522 +#: src/virterror.c:529 #, c-format msgid "library call %s failed, possibly not supported" msgstr "" -#: src/virterror.c:526 +#: src/virterror.c:533 msgid "XML description not well formed or invalid" msgstr "" -#: src/virterror.c:528 +#: src/virterror.c:535 #, c-format msgid "XML description for %s is not well formed or invalid" msgstr "" -#: src/virterror.c:532 +#: src/virterror.c:539 msgid "this domain exists already" msgstr "" -#: src/virterror.c:534 +#: src/virterror.c:541 #, c-format msgid "domain %s exists already" msgstr "" -#: src/virterror.c:538 +#: src/virterror.c:545 msgid "operation forbidden for read only access" msgstr "" -#: src/virterror.c:540 +#: src/virterror.c:547 #, c-format msgid "operation %s forbidden for read only access" msgstr "" -#: src/virterror.c:544 +#: src/virterror.c:551 msgid "failed to open configuration file for reading" msgstr "" -#: src/virterror.c:546 +#: src/virterror.c:553 #, c-format msgid "failed to open %s for reading" msgstr "" -#: src/virterror.c:550 +#: src/virterror.c:557 msgid "failed to read configuration file" msgstr "" -#: src/virterror.c:552 +#: src/virterror.c:559 #, c-format msgid "failed to read configuration file %s" msgstr "" -#: src/virterror.c:556 +#: src/virterror.c:563 msgid "failed to parse configuration file" msgstr "" -#: src/virterror.c:558 +#: src/virterror.c:565 #, c-format msgid "failed to parse configuration file %s" msgstr "" -#: src/virterror.c:562 +#: src/virterror.c:569 msgid "configuration file syntax error" msgstr "" -#: src/virterror.c:564 +#: src/virterror.c:571 #, c-format msgid "configuration file syntax error: %s" msgstr "" -#: src/virterror.c:568 +#: src/virterror.c:575 msgid "failed to write configuration file" msgstr "" -#: src/virterror.c:570 +#: src/virterror.c:577 #, c-format msgid "failed to write configuration file: %s" msgstr "" +#: src/virterror.c:581 +msgid "parser error" +msgstr "" + #: src/xmlrpc.c:63 msgid "copying node content" msgstr "" @@ -369,8 +373,8 @@ msgid "allocate new context" msgstr "" #: src/hash.c:628 src/hash.c:634 src/test.c:725 src/test.c:750 src/test.c:773 -#: src/test.c:797 src/xend_internal.c:1912 src/xend_internal.c:2608 -#: src/xend_internal.c:2819 src/xs_internal.c:594 src/proxy_internal.c:791 +#: src/test.c:797 src/xend_internal.c:1920 src/xend_internal.c:2616 +#: src/xend_internal.c:2827 src/xs_internal.c:594 src/proxy_internal.c:791 #: src/proxy_internal.c:838 src/proxy_internal.c:889 msgid "allocating domain" msgstr "" @@ -491,7 +495,7 @@ msgstr "" msgid "growing buffer" msgstr "" -#: src/xml.c:116 src/xend_internal.c:1603 src/xend_internal.c:1622 +#: src/xml.c:116 src/xend_internal.c:1611 src/xend_internal.c:1630 msgid "allocate new buffer" msgstr "" @@ -507,65 +511,65 @@ msgstr "" msgid "failed to copy a string" msgstr "" -#: src/xend_internal.c:264 src/xend_internal.c:267 +#: src/xend_internal.c:265 src/xend_internal.c:268 msgid "failed to read from Xen Daemon" msgstr "" -#: src/xend_internal.c:1057 +#: src/xend_internal.c:1064 msgid "failed to urlencode the create S-Expr" msgstr "" -#: src/xend_internal.c:1098 +#: src/xend_internal.c:1105 msgid "domain information incomplete, missing domid" msgstr "" -#: src/xend_internal.c:1104 +#: src/xend_internal.c:1111 msgid "domain information incorrect domid not numeric" msgstr "" -#: src/xend_internal.c:1111 src/xend_internal.c:1160 +#: src/xend_internal.c:1118 src/xend_internal.c:1167 msgid "domain information incomplete, missing uuid" msgstr "" -#: src/xend_internal.c:1151 src/xend_internal.c:1492 +#: src/xend_internal.c:1158 src/xend_internal.c:1500 msgid "domain information incomplete, missing name" msgstr "" -#: src/xend_internal.c:1409 src/xend_internal.c:1434 +#: src/xend_internal.c:1417 src/xend_internal.c:1442 msgid "domain information incomplete, missing kernel" msgstr "" -#: src/xend_internal.c:1582 +#: src/xend_internal.c:1590 msgid "domain information incomplete, vbd has no src" msgstr "" -#: src/xend_internal.c:1588 +#: src/xend_internal.c:1596 msgid "domain information incomplete, vbd has no dev" msgstr "" -#: src/xend_internal.c:1596 +#: src/xend_internal.c:1604 msgid "cannot parse vbd filename, missing driver name" msgstr "" -#: src/xend_internal.c:1615 +#: src/xend_internal.c:1623 msgid "cannot parse vbd filename, missing driver type" msgstr "" -#: src/xend_internal.c:1923 +#: src/xend_internal.c:1931 msgid "failed to parse Xend domain information" msgstr "" -#: src/xend_internal.c:2883 +#: src/xend_internal.c:2892 #, c-format msgid "Failed to create domain %s\n" msgstr "" -#: src/xend_internal.c:2889 +#: src/xend_internal.c:2898 #, c-format msgid "Failed to get devices for domain %s\n" msgstr "" -#: src/xend_internal.c:2900 +#: src/xend_internal.c:2909 #, c-format msgid "Failed to resume new domain %s\n" msgstr "" diff --git a/po/libvirt.pot b/po/libvirt.pot index beb3f74de..e7c9ffc55 100644 --- a/po/libvirt.pot +++ b/po/libvirt.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2006-11-07 16:20+0100\n" +"POT-Creation-Date: 2006-11-09 14:26+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -32,298 +32,302 @@ msgstr "" msgid "error" msgstr "" -#: src/virterror.c:328 +#: src/virterror.c:335 msgid "No error message provided" msgstr "" -#: src/virterror.c:382 +#: src/virterror.c:389 #, c-format msgid "internal error %s" msgstr "" -#: src/virterror.c:384 +#: src/virterror.c:391 msgid "internal error" msgstr "" -#: src/virterror.c:387 +#: src/virterror.c:394 msgid "out of memory" msgstr "" -#: src/virterror.c:391 +#: src/virterror.c:398 msgid "no support for hypervisor" msgstr "" -#: src/virterror.c:393 +#: src/virterror.c:400 #, c-format msgid "no support for hypervisor %s" msgstr "" -#: src/virterror.c:397 +#: src/virterror.c:404 msgid "could not connect to hypervisor" msgstr "" -#: src/virterror.c:399 +#: src/virterror.c:406 #, c-format msgid "could not connect to %s" msgstr "" -#: src/virterror.c:403 +#: src/virterror.c:410 msgid "invalid connection pointer in" msgstr "" -#: src/virterror.c:405 +#: src/virterror.c:412 #, c-format msgid "invalid connection pointer in %s" msgstr "" -#: src/virterror.c:409 +#: src/virterror.c:416 msgid "invalid domain pointer in" msgstr "" -#: src/virterror.c:411 +#: src/virterror.c:418 #, c-format msgid "invalid domain pointer in %s" msgstr "" -#: src/virterror.c:415 +#: src/virterror.c:422 msgid "invalid argument in" msgstr "" -#: src/virterror.c:417 +#: src/virterror.c:424 #, c-format msgid "invalid argument in %s" msgstr "" -#: src/virterror.c:421 +#: src/virterror.c:428 #, c-format msgid "operation failed: %s" msgstr "" -#: src/virterror.c:423 +#: src/virterror.c:430 msgid "operation failed" msgstr "" -#: src/virterror.c:427 +#: src/virterror.c:434 #, c-format msgid "GET operation failed: %s" msgstr "" -#: src/virterror.c:429 +#: src/virterror.c:436 msgid "GET operation failed" msgstr "" -#: src/virterror.c:433 +#: src/virterror.c:440 #, c-format msgid "POST operation failed: %s" msgstr "" -#: src/virterror.c:435 +#: src/virterror.c:442 msgid "POST operation failed" msgstr "" -#: src/virterror.c:438 +#: src/virterror.c:445 #, c-format msgid "got unknown HTTP error code %d" msgstr "" -#: src/virterror.c:442 +#: src/virterror.c:449 #, c-format msgid "unknown host %s" msgstr "" -#: src/virterror.c:444 +#: src/virterror.c:451 msgid "unknown host" msgstr "" -#: src/virterror.c:448 +#: src/virterror.c:455 #, c-format msgid "failed to serialize S-Expr: %s" msgstr "" -#: src/virterror.c:450 +#: src/virterror.c:457 msgid "failed to serialize S-Expr" msgstr "" -#: src/virterror.c:454 +#: src/virterror.c:461 msgid "could not use Xen hypervisor entry" msgstr "" -#: src/virterror.c:456 +#: src/virterror.c:463 #, c-format msgid "could not use Xen hypervisor entry %s" msgstr "" -#: src/virterror.c:460 +#: src/virterror.c:467 msgid "could not connect to Xen Store" msgstr "" -#: src/virterror.c:462 +#: src/virterror.c:469 #, c-format msgid "could not connect to Xen Store %s" msgstr "" -#: src/virterror.c:465 +#: src/virterror.c:472 #, c-format msgid "failed Xen syscall %s %d" msgstr "" -#: src/virterror.c:469 +#: src/virterror.c:476 msgid "unknown OS type" msgstr "" -#: src/virterror.c:471 +#: src/virterror.c:478 #, c-format msgid "unknown OS type %s" msgstr "" -#: src/virterror.c:474 +#: src/virterror.c:481 msgid "missing kernel information" msgstr "" -#: src/virterror.c:478 +#: src/virterror.c:485 msgid "missing root device information" msgstr "" -#: src/virterror.c:480 +#: src/virterror.c:487 #, c-format msgid "missing root device information in %s" msgstr "" -#: src/virterror.c:484 +#: src/virterror.c:491 msgid "missing source information for device" msgstr "" -#: src/virterror.c:486 +#: src/virterror.c:493 #, c-format msgid "missing source information for device %s" msgstr "" -#: src/virterror.c:490 +#: src/virterror.c:497 msgid "missing target information for device" msgstr "" -#: src/virterror.c:492 +#: src/virterror.c:499 #, c-format msgid "missing target information for device %s" msgstr "" -#: src/virterror.c:496 +#: src/virterror.c:503 msgid "missing domain name information" msgstr "" -#: src/virterror.c:498 +#: src/virterror.c:505 #, c-format msgid "missing domain name information in %s" msgstr "" -#: src/virterror.c:502 +#: src/virterror.c:509 msgid "missing operating system information" msgstr "" -#: src/virterror.c:504 +#: src/virterror.c:511 #, c-format msgid "missing operating system information for %s" msgstr "" -#: src/virterror.c:508 +#: src/virterror.c:515 msgid "missing devices information" msgstr "" -#: src/virterror.c:510 +#: src/virterror.c:517 #, c-format msgid "missing devices information for %s" msgstr "" -#: src/virterror.c:514 +#: src/virterror.c:521 msgid "too many drivers registered" msgstr "" -#: src/virterror.c:516 +#: src/virterror.c:523 #, c-format msgid "too many drivers registered in %s" msgstr "" -#: src/virterror.c:520 +#: src/virterror.c:527 msgid "library call failed, possibly not supported" msgstr "" -#: src/virterror.c:522 +#: src/virterror.c:529 #, c-format msgid "library call %s failed, possibly not supported" msgstr "" -#: src/virterror.c:526 +#: src/virterror.c:533 msgid "XML description not well formed or invalid" msgstr "" -#: src/virterror.c:528 +#: src/virterror.c:535 #, c-format msgid "XML description for %s is not well formed or invalid" msgstr "" -#: src/virterror.c:532 +#: src/virterror.c:539 msgid "this domain exists already" msgstr "" -#: src/virterror.c:534 +#: src/virterror.c:541 #, c-format msgid "domain %s exists already" msgstr "" -#: src/virterror.c:538 +#: src/virterror.c:545 msgid "operation forbidden for read only access" msgstr "" -#: src/virterror.c:540 +#: src/virterror.c:547 #, c-format msgid "operation %s forbidden for read only access" msgstr "" -#: src/virterror.c:544 +#: src/virterror.c:551 msgid "failed to open configuration file for reading" msgstr "" -#: src/virterror.c:546 +#: src/virterror.c:553 #, c-format msgid "failed to open %s for reading" msgstr "" -#: src/virterror.c:550 +#: src/virterror.c:557 msgid "failed to read configuration file" msgstr "" -#: src/virterror.c:552 +#: src/virterror.c:559 #, c-format msgid "failed to read configuration file %s" msgstr "" -#: src/virterror.c:556 +#: src/virterror.c:563 msgid "failed to parse configuration file" msgstr "" -#: src/virterror.c:558 +#: src/virterror.c:565 #, c-format msgid "failed to parse configuration file %s" msgstr "" -#: src/virterror.c:562 +#: src/virterror.c:569 msgid "configuration file syntax error" msgstr "" -#: src/virterror.c:564 +#: src/virterror.c:571 #, c-format msgid "configuration file syntax error: %s" msgstr "" -#: src/virterror.c:568 +#: src/virterror.c:575 msgid "failed to write configuration file" msgstr "" -#: src/virterror.c:570 +#: src/virterror.c:577 #, c-format msgid "failed to write configuration file: %s" msgstr "" +#: src/virterror.c:581 +msgid "parser error" +msgstr "" + #: src/xmlrpc.c:63 msgid "copying node content" msgstr "" @@ -369,8 +373,8 @@ msgid "allocate new context" msgstr "" #: src/hash.c:628 src/hash.c:634 src/test.c:725 src/test.c:750 src/test.c:773 -#: src/test.c:797 src/xend_internal.c:1912 src/xend_internal.c:2608 -#: src/xend_internal.c:2819 src/xs_internal.c:594 src/proxy_internal.c:791 +#: src/test.c:797 src/xend_internal.c:1920 src/xend_internal.c:2616 +#: src/xend_internal.c:2827 src/xs_internal.c:594 src/proxy_internal.c:791 #: src/proxy_internal.c:838 src/proxy_internal.c:889 msgid "allocating domain" msgstr "" @@ -491,7 +495,7 @@ msgstr "" msgid "growing buffer" msgstr "" -#: src/xml.c:116 src/xend_internal.c:1603 src/xend_internal.c:1622 +#: src/xml.c:116 src/xend_internal.c:1611 src/xend_internal.c:1630 msgid "allocate new buffer" msgstr "" @@ -507,65 +511,65 @@ msgstr "" msgid "failed to copy a string" msgstr "" -#: src/xend_internal.c:264 src/xend_internal.c:267 +#: src/xend_internal.c:265 src/xend_internal.c:268 msgid "failed to read from Xen Daemon" msgstr "" -#: src/xend_internal.c:1057 +#: src/xend_internal.c:1064 msgid "failed to urlencode the create S-Expr" msgstr "" -#: src/xend_internal.c:1098 +#: src/xend_internal.c:1105 msgid "domain information incomplete, missing domid" msgstr "" -#: src/xend_internal.c:1104 +#: src/xend_internal.c:1111 msgid "domain information incorrect domid not numeric" msgstr "" -#: src/xend_internal.c:1111 src/xend_internal.c:1160 +#: src/xend_internal.c:1118 src/xend_internal.c:1167 msgid "domain information incomplete, missing uuid" msgstr "" -#: src/xend_internal.c:1151 src/xend_internal.c:1492 +#: src/xend_internal.c:1158 src/xend_internal.c:1500 msgid "domain information incomplete, missing name" msgstr "" -#: src/xend_internal.c:1409 src/xend_internal.c:1434 +#: src/xend_internal.c:1417 src/xend_internal.c:1442 msgid "domain information incomplete, missing kernel" msgstr "" -#: src/xend_internal.c:1582 +#: src/xend_internal.c:1590 msgid "domain information incomplete, vbd has no src" msgstr "" -#: src/xend_internal.c:1588 +#: src/xend_internal.c:1596 msgid "domain information incomplete, vbd has no dev" msgstr "" -#: src/xend_internal.c:1596 +#: src/xend_internal.c:1604 msgid "cannot parse vbd filename, missing driver name" msgstr "" -#: src/xend_internal.c:1615 +#: src/xend_internal.c:1623 msgid "cannot parse vbd filename, missing driver type" msgstr "" -#: src/xend_internal.c:1923 +#: src/xend_internal.c:1931 msgid "failed to parse Xend domain information" msgstr "" -#: src/xend_internal.c:2883 +#: src/xend_internal.c:2892 #, c-format msgid "Failed to create domain %s\n" msgstr "" -#: src/xend_internal.c:2889 +#: src/xend_internal.c:2898 #, c-format msgid "Failed to get devices for domain %s\n" msgstr "" -#: src/xend_internal.c:2900 +#: src/xend_internal.c:2909 #, c-format msgid "Failed to resume new domain %s\n" msgstr "" diff --git a/python/generator.py b/python/generator.py index 5aa262554..d921f9807 100755 --- a/python/generator.py +++ b/python/generator.py @@ -540,6 +540,10 @@ classes_destructors = { "virConnect": "virConnectClose", } +classes_references = { + "virDomain": "virConnect", +} + functions_noexcept = { } @@ -891,6 +895,12 @@ def buildWrappers(): classes.write(classes_type[ret[0]][1] % ("ret")); classes.write("\n"); + # + # hook up a reference if needed + # + if classes_references.has_key(classes_type[ret[0]][2]): + classes.write(" __tmp.ref = self\n"); + # # Sometime one need to keep references of the source # class in the returned class object. -- 2.39.5