libvirt-glib-1.0.0/0000775000000000000000000000000013007136424011047 500000000000000libvirt-glib-1.0.0/Makefile.am0000664000000000000000000000272413004340477013032 00000000000000 SUBDIRS = libvirt-glib libvirt-gconfig libvirt-gobject vapi examples docs po tests ACLOCAL_AMFLAGS = -I m4 pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libvirt-glib-1.0.pc libvirt-gconfig-1.0.pc libvirt-gobject-1.0.pc EXTRA_DIST = $(PACKAGE).spec \ $(PACKAGE).spec.in \ mingw-$(PACKAGE).spec.in \ $(pkgconfig_DATA:%.pc=%.pc.in) \ GNUmakefile \ maint.mk \ cfg.mk \ AUTHORS.in \ build-aux/check-symfile.pl \ build-aux/check-symsorting.pl \ tap-driver.sh \ tap-test \ $(NULL) DISTCLEAN_FILES = $(PACKAGE).spec $(pkgconfig_DATA) DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc=yes --enable-introspection=yes dist-hook: gen-ChangeLog gen-AUTHORS # Generate the ChangeLog file (with all entries since the switch to git) # and insert it into the directory we're about to use to create a tarball. .PHONY: gen-ChangeLog gen-AUTHORS gen-ChangeLog: if test -d .git || test -d ../.git; then \ $(top_srcdir)/build-aux/gitlog-to-changelog \ > $(distdir)/cl-t; \ rm -f $(distdir)/ChangeLog; \ mv $(distdir)/cl-t $(distdir)/ChangeLog; \ fi gen-AUTHORS: $(AM_V_GEN)if test -d $(srcdir)/.git; then \ out="`cd $(srcdir) && git log --pretty=format:'%aN <%aE>' | sort -u`" && \ perl -p -e "s/#authorslist#// and print '$$out'" \ < $(srcdir)/AUTHORS.in > $(distdir)/AUTHORS-tmp && \ mv -f $(distdir)/AUTHORS-tmp $(distdir)/AUTHORS ; \ fi libvirt-glib-1.0.0/COPYING0000664000000000000000000006364213004340477012037 00000000000000 GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. [This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.] Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below. When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things. To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it. For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights. We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library. To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs. When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library. We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances. For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system. Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library. The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. GNU LESSER GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you". A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) The modified work must itself be a software library. b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. 6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License. 11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Libraries If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a library for tweaking knobs) written by James Random Hacker. , 1 April 1990 Ty Coon, President of Vice That's all there is to it! libvirt-glib-1.0.0/po/0000775000000000000000000000000013007136424011465 500000000000000libvirt-glib-1.0.0/po/ia.po0000664000000000000000000000772613004340477012354 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Interlingua (http://www.transifex.com/projects/p/libvirt-glib/" "language/ia/)\n" "Language: ia\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/Makefile.in.in0000644000000000000000000001575612477174752014113 00000000000000# Makefile for program source directory in GNU NLS utilities package. # Copyright (C) 1995, 1996, 1997 by Ulrich Drepper # Copyright (C) 2004-2008 Rodney Dawes # # This file may be copied and used freely without restrictions. It may # be used in projects which are not available under a GNU Public License, # but which still want to provide support for the GNU gettext functionality. # # - Modified by Owen Taylor to use GETTEXT_PACKAGE # instead of PACKAGE and to look for po2tbl in ./ not in intl/ # # - Modified by jacob berkman to install # Makefile.in.in and po2tbl.sed.in for use with glib-gettextize # # - Modified by Rodney Dawes for use with intltool # # We have the following line for use by intltoolize: # INTLTOOL_MAKEFILE GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ PACKAGE = @PACKAGE@ VERSION = @VERSION@ SHELL = @SHELL@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ top_builddir = @top_builddir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ datadir = @datadir@ datarootdir = @datarootdir@ libdir = @libdir@ localedir = @localedir@ subdir = po install_sh = @install_sh@ # Automake >= 1.8 provides @mkdir_p@. # Until it can be supposed, use the safe fallback: mkdir_p = $(install_sh) -d INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ GMSGFMT = @GMSGFMT@ MSGFMT = @MSGFMT@ XGETTEXT = @XGETTEXT@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ MSGMERGE = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist GENPOT = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot ALL_LINGUAS = @ALL_LINGUAS@ PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; else echo "$(ALL_LINGUAS)"; fi) USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep \^$$lang$$ $(srcdir)/LINGUAS 2>/dev/null`" -o -n "`echo $$ALINGUAS|tr ' ' '\n'|grep \^$$lang$$`"; then printf "$$lang "; fi; done; fi) USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)" -o -n "$(LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else if test -n "$(PO_LINGUAS)"; then LLINGUAS="$(PO_LINGUAS)"; else LLINGUAS="$(ALL_LINGUAS)"; fi; fi; for lang in $$LLINGUAS; do printf "$$lang "; done) POFILES=$(shell LINGUAS="$(PO_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done) DISTFILES = Makefile.in.in POTFILES.in $(POFILES) EXTRA_DISTFILES = ChangeLog POTFILES.skip Makevars LINGUAS POTFILES = \ # This comment gets stripped out CATALOGS=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.gmo "; done) .SUFFIXES: .SUFFIXES: .po .pox .gmo .mo .msg .cat AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ INTLTOOL_V_MSGFMT = $(INTLTOOL__v_MSGFMT_$(V)) INTLTOOL__v_MSGFMT_= $(INTLTOOL__v_MSGFMT_$(AM_DEFAULT_VERBOSITY)) INTLTOOL__v_MSGFMT_0 = @echo " MSGFMT" $@; .po.pox: $(MAKE) $(GETTEXT_PACKAGE).pot $(MSGMERGE) $* $(GETTEXT_PACKAGE).pot -o $*.pox .po.mo: $(INTLTOOL_V_MSGFMT)$(MSGFMT) -o $@ $< .po.gmo: $(INTLTOOL_V_MSGFMT)file=`echo $* | sed 's,.*/,,'`.gmo \ && rm -f $$file && $(GMSGFMT) -o $$file $< .po.cat: sed -f ../intl/po2msg.sed < $< > $*.msg \ && rm -f $@ && gencat $@ $*.msg all: all-@USE_NLS@ all-yes: $(CATALOGS) all-no: $(GETTEXT_PACKAGE).pot: $(POTFILES) $(GENPOT) install: install-data install-data: install-data-@USE_NLS@ install-data-no: all install-data-yes: all linguas="$(USE_LINGUAS)"; \ for lang in $$linguas; do \ dir=$(DESTDIR)$(localedir)/$$lang/LC_MESSAGES; \ $(mkdir_p) $$dir; \ if test -r $$lang.gmo; then \ $(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \ echo "installing $$lang.gmo as $$dir/$(GETTEXT_PACKAGE).mo"; \ else \ $(INSTALL_DATA) $(srcdir)/$$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \ echo "installing $(srcdir)/$$lang.gmo as" \ "$$dir/$(GETTEXT_PACKAGE).mo"; \ fi; \ if test -r $$lang.gmo.m; then \ $(INSTALL_DATA) $$lang.gmo.m $$dir/$(GETTEXT_PACKAGE).mo.m; \ echo "installing $$lang.gmo.m as $$dir/$(GETTEXT_PACKAGE).mo.m"; \ else \ if test -r $(srcdir)/$$lang.gmo.m ; then \ $(INSTALL_DATA) $(srcdir)/$$lang.gmo.m \ $$dir/$(GETTEXT_PACKAGE).mo.m; \ echo "installing $(srcdir)/$$lang.gmo.m as" \ "$$dir/$(GETTEXT_PACKAGE).mo.m"; \ else \ true; \ fi; \ fi; \ done # Empty stubs to satisfy archaic automake needs dvi info ctags tags CTAGS TAGS ID: # Define this as empty until I found a useful application. install-exec installcheck: uninstall: linguas="$(USE_LINGUAS)"; \ for lang in $$linguas; do \ rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \ rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \ done check: all $(GETTEXT_PACKAGE).pot rm -f missing notexist srcdir=$(srcdir) $(INTLTOOL_UPDATE) -m if [ -r missing -o -r notexist ]; then \ exit 1; \ fi mostlyclean: rm -f *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp rm -f .intltool-merge-cache clean: mostlyclean distclean: clean rm -f Makefile Makefile.in POTFILES stamp-it rm -f *.mo *.msg *.cat *.cat.m *.gmo maintainer-clean: distclean @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." rm -f Makefile.in.in distdir = ../$(PACKAGE)-$(VERSION)/$(subdir) dist distdir: $(DISTFILES) dists="$(DISTFILES)"; \ extra_dists="$(EXTRA_DISTFILES)"; \ for file in $$extra_dists; do \ test -f $(srcdir)/$$file && dists="$$dists $(srcdir)/$$file"; \ done; \ for file in $$dists; do \ test -f $$file || file="$(srcdir)/$$file"; \ ln $$file $(distdir) 2> /dev/null \ || cp -p $$file $(distdir); \ done update-po: Makefile $(MAKE) $(GETTEXT_PACKAGE).pot tmpdir=`pwd`; \ linguas="$(USE_LINGUAS)"; \ for lang in $$linguas; do \ echo "$$lang:"; \ result="`$(MSGMERGE) -o $$tmpdir/$$lang.new.po $$lang`"; \ if $$result; then \ if cmp $(srcdir)/$$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ :; \ else \ echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ exit 1; \ fi; \ fi; \ else \ echo "msgmerge for $$lang.gmo failed!"; \ rm -f $$tmpdir/$$lang.new.po; \ fi; \ done Makefile POTFILES: stamp-it @if test ! -f $@; then \ rm -f stamp-it; \ $(MAKE) stamp-it; \ fi stamp-it: Makefile.in.in $(top_builddir)/config.status POTFILES.in cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/Makefile.in CONFIG_HEADERS= CONFIG_LINKS= \ $(SHELL) ./config.status # Tell versions [3.59,3.63) of GNU make not to export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libvirt-glib-1.0.0/po/nb.po0000664000000000000000000000773413004340477012361 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Norwegian BokmÃ¥l (http://www.transifex.com/projects/p/libvirt-" "glib/language/nb/)\n" "Language: nb\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/tg.po0000664000000000000000000000772013004340477012367 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Tajik (http://www.transifex.com/projects/p/libvirt-glib/" "language/tg/)\n" "Language: tg\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/ast.po0000664000000000000000000000772513004340477012551 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Asturian (http://www.transifex.com/projects/p/libvirt-glib/" "language/ast/)\n" "Language: ast\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/tr.po0000664000000000000000000000772113004340477012403 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Turkish (http://www.transifex.com/projects/p/libvirt-glib/" "language/tr/)\n" "Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/it.po0000664000000000000000000000772213004340477012373 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Italian (http://www.transifex.com/projects/p/libvirt-glib/" "language/it/)\n" "Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/bal.po0000664000000000000000000000772413004340477012517 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Balochi (http://www.transifex.com/projects/p/libvirt-glib/" "language/bal/)\n" "Language: bal\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/ur.po0000664000000000000000000000771713004340477012411 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Urdu (http://www.transifex.com/projects/p/libvirt-glib/" "language/ur/)\n" "Language: ur\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/kk.po0000664000000000000000000000771213004340477012363 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Kazakh (http://www.transifex.com/projects/p/libvirt-glib/" "language/kk/)\n" "Language: kk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/he.po0000664000000000000000000000772113004340477012352 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Hebrew (http://www.transifex.com/projects/p/libvirt-glib/" "language/he/)\n" "Language: he\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/bo.po0000664000000000000000000000771313004340477012357 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Tibetan (http://www.transifex.com/projects/p/libvirt-glib/" "language/bo/)\n" "Language: bo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/POTFILES.in0000664000000000000000000000025113004340477013162 00000000000000libvirt-gconfig/libvirt-gconfig-helpers.c libvirt-gconfig/libvirt-gconfig-object.c libvirt-gobject/libvirt-gobject-connection.c libvirt-gobject/libvirt-gobject-stream.c libvirt-glib-1.0.0/po/sr@latin.po0000664000000000000000000001006313004340477013523 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Serbian (Latin) (http://www.transifex.com/projects/p/libvirt-" "glib/language/sr@latin/)\n" "Language: sr@latin\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/sk.po0000664000000000000000000000775413004340477012401 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Slovak (http://www.transifex.com/projects/p/libvirt-glib/" "language/sk/)\n" "Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/ky.po0000664000000000000000000000771213004340477012401 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Kirgyz (http://www.transifex.com/projects/p/libvirt-glib/" "language/ky/)\n" "Language: ky\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/yo.po0000664000000000000000000000753413004340477012407 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: libvirt-glib\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: Yoruba\n" "Language: yo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" "X-Generator: Zanata 3.6.2\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/mn.po0000664000000000000000000000772413004340477012373 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Mongolian (http://www.transifex.com/projects/p/libvirt-glib/" "language/mn/)\n" "Language: mn\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/hi.po0000664000000000000000000001432013004340477012347 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Mohan Prakash , 2014 # Rajesh Ranjan , 2014 msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2014-01-14 05:04-0500\n" "Last-Translator: Rajesh Ranjan \n" "Language-Team: Hindi (http://www.transifex.com/projects/p/libvirt-glib/" "language/hi/)\n" "Language: hi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "विशà¥à¤²à¥‡à¤·à¤£ करने के लिठकोई XML दसà¥à¤¤à¤¾à¤µà¥‡à¤œà¤¼ उपलà¥à¤¬à¤§ नहीं " #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "विनà¥à¤¯à¤¾à¤¸ के विशà¥à¤²à¥‡à¤·à¤£ कर पाने में असमरà¥à¤¥" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "XML data का कोई '%s' नोड नहीं है" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "इस XML दसà¥à¤¤à¤¾à¤µà¥‡à¤œà¤¼ के साथ कोई कॉनà¥à¤«à¤¼à¤¿à¤‚ग ऑबà¥à¤œà¥‡à¤•à¥à¤Ÿ नहीं है" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "%s के लिठRNG विशà¥à¤²à¥‡à¤·à¤• का निरà¥à¤®à¤¾à¤£ करने में असमरà¥à¤¥" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "RNG %s को विशà¥à¤²à¥‡à¤·à¤£ करने में असमरà¥à¤¥" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "RNG अभिपà¥à¤°à¤®à¤¾à¤£à¤¿à¤¤ सनà¥à¤¦à¤°à¥à¤­ %s का निरà¥à¤®à¤¾à¤£ करने में असमरà¥à¤¥" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "डॉक को अभिपà¥à¤°à¤®à¤¾à¤£à¤¿à¤¤ करने में असमरà¥à¤¥" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "कनेकà¥à¤¶à¤¨ %s पहले से ही खà¥à¤²à¤¾ है" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "%s को खोल पाने में असमरà¥à¤¥ " #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "URI कनेकà¥à¤¶à¤¨ पà¥à¤°à¤¾à¤ªà¥à¤¤ करने में असमरà¥à¤¥ " #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "कनेकà¥à¤¶à¤¨ खà¥à¤²à¤¾ नहीं है" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "कनेकà¥à¤¶à¤¨ को खोला नहीं गया है" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "हाइपरविज़र का नाम पà¥à¤°à¤¾à¤ªà¥à¤¤ करने में असमरà¥à¤¥" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "हाइपरविज़र का सनà¥à¤¸à¤•रण पà¥à¤°à¤¾à¤ªà¥à¤¤ करने मे असमरà¥à¤¥" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "डोमेन का निरà¥à¤®à¤¾à¤£ कर पाने में असफल" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "संगà¥à¤°à¤¹à¤£ पूल का निरà¥à¤®à¤¾à¤£ करने में असफल" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "नोड की जानकारी पà¥à¤°à¤¾à¤ªà¥à¤¤ करने में असमरà¥à¤¥" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "सकà¥à¤·à¤®à¤¤à¤¾ पà¥à¤°à¤¾à¤ªà¥à¤¤ करने में असमरà¥à¤¥" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "डोमेन पà¥à¤¨: सà¥à¤¥à¤¾à¤ªà¤¿à¤¤ करने में असमरà¥à¤¥" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "virStreamRecv का कॉल रोक देता" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "%s में virStreamRecv तà¥à¤°à¥à¤Ÿà¤¿ पाया" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "RecvAll के कारà¥à¤¯à¤¾à¤¨à¥à¤µà¤¯à¤¨ में असमरà¥à¤¥" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "virStreamSend का कॉल रोक देता" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "SendAll के कारà¥à¤¯à¤¾à¤¨à¥à¤µà¤¯à¤¨ में असमरà¥à¤¥" libvirt-glib-1.0.0/po/ko.po0000664000000000000000000000771213004340477012367 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Korean (http://www.transifex.com/projects/p/libvirt-glib/" "language/ko/)\n" "Language: ko\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/da.po0000664000000000000000000000772113004340477012342 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Danish (http://www.transifex.com/projects/p/libvirt-glib/" "language/da/)\n" "Language: da\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/kw.po0000664000000000000000000000760313004340477012376 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: libvirt-glib\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: Cornish\n" "Language: kw\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=4; plural= (n==1) ? 0 : (n==2) ? 1 : (n == 3) ? 2 : " "3\n" "X-Generator: Zanata 3.6.2\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/km.po0000664000000000000000000000771113004340477012364 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Khmer (http://www.transifex.com/projects/p/libvirt-glib/" "language/km/)\n" "Language: km\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/nn.po0000664000000000000000000000773413004340477012375 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Norwegian Nynorsk (http://www.transifex.com/projects/p/" "libvirt-glib/language/nn/)\n" "Language: nn\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/ja.po0000664000000000000000000001225013004340477012341 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Hajime Taira , 2013 # Tomoyuki KATO , 2013 msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-11-20 06:38-0500\n" "Last-Translator: Hajime Taira \n" "Language-Team: Japanese (http://www.transifex.com/projects/p/libvirt-glib/" "language/ja/)\n" "Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "構文解æžã™ã‚‹ XML ドキュメントãŒã‚りã¾ã›ã‚“" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "設定を構文解æžã§ãã¾ã›ã‚“" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "XML データ㫠'%s' ノードãŒã‚りã¾ã›ã‚“" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "ã“ã®è¨­å®šã‚ªãƒ–ジェクトã¨é–¢é€£ä»˜ã‘られ㟠XML ドキュメントãŒã‚りã¾ã›ã‚“" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "%s ã® RNG パーサーを作æˆã§ãã¾ã›ã‚“" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "RNG %s を構文解æžã§ãã¾ã›ã‚“" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "RNG 検証コンテキスト %s を作æˆã§ãã¾ã›ã‚“" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "ドキュメントを検証ã§ãã¾ã›ã‚“" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "ã™ã§ã«æŽ¥ç¶š %s ãŒé–‹ã‹ã‚Œã¦ã„ã¾ã™" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "%s ã‚’é–‹ã‘ã¾ã›ã‚“" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "接続 URI ã‚’å–å¾—ã§ãã¾ã›ã‚“" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "接続ã•れã¦ã„ã¾ã›ã‚“" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "接続ã•れã¦ã„ã¾ã›ã‚“" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "ãƒã‚¤ãƒ‘ーãƒã‚¤ã‚¶ãƒ¼ã®åå‰ã‚’å–å¾—ã§ãã¾ã›ã‚“" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "ãƒã‚¤ãƒ‘ーãƒã‚¤ã‚¶ãƒ¼ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã‚’å–å¾—ã§ãã¾ã›ã‚“" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "ドメインã®ä½œæˆã«å¤±æ•—ã—ã¾ã—ãŸ" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "ストレージプールã®ä½œæˆã«å¤±æ•—ã—ã¾ã—ãŸ" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "ノード情報をå–å¾—ã§ãã¾ã›ã‚“" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "ケイパビリティをå–å¾—ã§ãã¾ã›ã‚“" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "ドメインを復元ã§ãã¾ã›ã‚“" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "virStreamRecv ã®å‘¼ã³å‡ºã—ãŒãƒ–ロックã•れã¾ã™" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "%s ã«ãŠã„㦠virStreamRecv エラーãŒç™ºç”Ÿã—ã¾ã—ãŸ" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "RecvAll を実行ã§ãã¾ã›ã‚“" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "virStreamSend ã®å‘¼ã³å‡ºã—ãŒãƒ–ロックã•れã¾ã™" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "SendAll を実行ã§ãã¾ã›ã‚“" libvirt-glib-1.0.0/po/zh_TW.po0000664000000000000000000000773213004340477013013 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Chinese (Taiwan) (http://www.transifex.com/projects/p/libvirt-" "glib/language/zh_TW/)\n" "Language: zh-TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/kw_GB.po0000664000000000000000000000762713004340477012754 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: libvirt-glib\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: Cornish (United Kingdom)\n" "Language: kw-GB\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=4; plural= (n==1) ? 0 : (n==2) ? 1 : (n == 3) ? 2 : " "3\n" "X-Generator: Zanata 3.6.2\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/zh_CN.po0000664000000000000000000000773113004340477012760 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Chinese (China) (http://www.transifex.com/projects/p/libvirt-" "glib/language/zh_CN/)\n" "Language: zh-CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/de.po0000664000000000000000000000772113004340477012346 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: German (http://www.transifex.com/projects/p/libvirt-glib/" "language/de/)\n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/tw.po0000664000000000000000000000752213004340477012407 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: libvirt-glib\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: Twi\n" "Language: tw\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0\n" "X-Generator: Zanata 3.6.2\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/si.po0000664000000000000000000000772213004340477012372 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Sinhala (http://www.transifex.com/projects/p/libvirt-glib/" "language/si/)\n" "Language: si\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/ms.po0000664000000000000000000000771113004340477012374 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Malay (http://www.transifex.com/projects/p/libvirt-glib/" "language/ms/)\n" "Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/gu.po0000664000000000000000000000772313004340477012373 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Gujarati (http://www.transifex.com/projects/p/libvirt-glib/" "language/gu/)\n" "Language: gu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/brx.po0000664000000000000000000000772113004340477012551 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Bodo (http://www.transifex.com/projects/p/libvirt-glib/" "language/brx/)\n" "Language: brx\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/id.po0000664000000000000000000000771613004340477012356 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Indonesian (http://www.transifex.com/projects/p/libvirt-glib/" "language/id/)\n" "Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/af.po0000664000000000000000000000772413004340477012347 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Afrikaans (http://www.transifex.com/projects/p/libvirt-glib/" "language/af/)\n" "Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/kn.po0000664000000000000000000000771313004340477012367 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Kannada (http://www.transifex.com/projects/p/libvirt-glib/" "language/kn/)\n" "Language: kn\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/nso.po0000664000000000000000000000773213004340477012557 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Northern Sotho (http://www.transifex.com/projects/p/libvirt-" "glib/language/nso/)\n" "Language: nso\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/am.po0000664000000000000000000000772113004340477012353 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Amharic (http://www.transifex.com/projects/p/libvirt-glib/" "language/am/)\n" "Language: am\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/eo.po0000664000000000000000000000772413004340477012364 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Esperanto (http://www.transifex.com/projects/p/libvirt-glib/" "language/eo/)\n" "Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/de_CH.po0000664000000000000000000000774513004340477012726 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: German (Switzerland) (http://www.transifex.com/projects/p/" "libvirt-glib/language/de_CH/)\n" "Language: de-CH\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/ta.po0000664000000000000000000000772013004340477012361 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Tamil (http://www.transifex.com/projects/p/libvirt-glib/" "language/ta/)\n" "Language: ta\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/ru.po0000664000000000000000000001013313004340477012373 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Alexander Savchenko, 2014 msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2014-07-15 05:11-0400\n" "Last-Translator: Alexander Savchenko\n" "Language-Team: Russian (http://www.transifex.com/projects/p/libvirt-glib/" "language/ru/)\n" "Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "Ðевозможно открыть %s" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/pt.po0000664000000000000000000000772513004340477012405 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Portuguese (http://www.transifex.com/projects/p/libvirt-glib/" "language/pt/)\n" "Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/sq.po0000664000000000000000000000772313004340477012403 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Albanian (http://www.transifex.com/projects/p/libvirt-glib/" "language/sq/)\n" "Language: sq\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/nl.po0000664000000000000000000000772013004340477012366 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Dutch (http://www.transifex.com/projects/p/libvirt-glib/" "language/nl/)\n" "Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/hu.po0000664000000000000000000000772413004340477012375 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Hungarian (http://www.transifex.com/projects/p/libvirt-glib/" "language/hu/)\n" "Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/is.po0000664000000000000000000000772413004340477012374 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Icelandic (http://www.transifex.com/projects/p/libvirt-glib/" "language/is/)\n" "Language: is\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/mai.po0000664000000000000000000000772513004340477012530 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Maithili (http://www.transifex.com/projects/p/libvirt-glib/" "language/mai/)\n" "Language: mai\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/ml.po0000664000000000000000000000772413004340477012371 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Malayalam (http://www.transifex.com/projects/p/libvirt-glib/" "language/ml/)\n" "Language: ml\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/br.po0000664000000000000000000000772013004340477012360 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Breton (http://www.transifex.com/projects/p/libvirt-glib/" "language/br/)\n" "Language: br\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/kw@uccor.po0000664000000000000000000000763713004340477013541 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: libvirt-glib\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: Cornish (Unified Orthography)\n" "Language: kw@uccor\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=4; plural= (n==1) ? 0 : (n==2) ? 1 : (n == 3) ? 2 : " "3\n" "X-Generator: Zanata 3.6.2\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/fr.po0000664000000000000000000001167213004340477012365 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Jérôme Fenal , 2013 msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-11-20 06:38-0500\n" "Last-Translator: Jérôme Fenal \n" "Language-Team: French (http://www.transifex.com/projects/p/libvirt-glib/" "language/fr/)\n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "Aucun document XML à analyser" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "Impossible d'analyser la configuration" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "Les données XML n'ont pas de nÅ“ud « %s »" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "Aucun document XML associé avec cet objet de configuration" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "Impossible de créer l'analyseur RNG pour %s" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "Impossible d'analyser le RNG %s" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "Impossible de créer un contexte de validation RNG %s" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "Impossible de valider le document" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "La connexion %s est déjà ouverte" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "Impossible d'ouvrir %s" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "Impossible d'obtenir l'URI de connexion" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "La connexion n'est pas ouverte" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "La connexion n'est pas ouverte" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "Impossible d'obtenir le nom de l'hyperviseur" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "Impossible d'obtenir la version de l'hyperviseur" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "Échec de la création du domaine" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "Échec de la création du pool de stockage" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "Impossible d'obtenir les informations sur le nÅ“ud" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "Impossible d'obtenir les capacités" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "Impossible de restaurer le domaine" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "L'appel à virStreamRecv serait bloquant" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "Erreur virStreamRecv survenue dans %s" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "Impossible d'exécuter RecvAll" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "L'appel à virStreamSend serait bloquant" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "Impossible d'exécuter SendAll" libvirt-glib-1.0.0/po/en_GB.po0000664000000000000000000001134413004340477012724 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Robert Readman , 2013 msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-11-20 06:38-0500\n" "Last-Translator: Robert Readman \n" "Language-Team: English (United Kingdom) (http://www.transifex.com/projects/p/" "libvirt-glib/language/en_GB/)\n" "Language: en-GB\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "No XML document to parse" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "Unable to parse configuration" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "XML data has no '%s' node" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "No XML document associated with this config object" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "Unable to create RNG parser for %s" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "Unable to parse RNG %s" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "Unable to create RNG validation context %s" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "Unable to validate doc" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "Connection %s is already open" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "Unable to open %s" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "Unable to get connection URI" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "Connection is not open" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "Connection is not opened" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "Unable to get hypervisor name" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "Unable to get hypervisor version" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "Failed to create domain" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "Failed to create storage pool" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "Unable to get node info" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "Unable to get capabilities" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "Unable to restore domain" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "virStreamRecv call would block" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "Got virStreamRecv error in %s" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "Unable to perform RecvAll" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "virStreamSend call would block" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "Unable to perform SendAll" libvirt-glib-1.0.0/po/th.po0000664000000000000000000000771013004340477012367 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Thai (http://www.transifex.com/projects/p/libvirt-glib/" "language/th/)\n" "Language: th\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/pa.po0000664000000000000000000000773413004340477012362 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Panjabi (Punjabi) (http://www.transifex.com/projects/p/" "libvirt-glib/language/pa/)\n" "Language: pa\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/wba.po0000664000000000000000000000752313004340477012527 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: libvirt-glib\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: wba\n" "Language: wba\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0\n" "X-Generator: Zanata 3.6.2\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/bs.po0000664000000000000000000001003713004340477012354 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Bosnian (http://www.transifex.com/projects/p/libvirt-glib/" "language/bs/)\n" "Language: bs\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/fi.po0000664000000000000000000000772213004340477012355 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Finnish (http://www.transifex.com/projects/p/libvirt-glib/" "language/fi/)\n" "Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/vi.po0000664000000000000000000000771613004340477012400 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Vietnamese (http://www.transifex.com/projects/p/libvirt-glib/" "language/vi/)\n" "Language: vi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/ilo.po0000664000000000000000000000772213004340477012542 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Iloko (http://www.transifex.com/projects/p/libvirt-glib/" "language/ilo/)\n" "Language: ilo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/eu.po0000664000000000000000000000772113004340477012367 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Basque (http://www.transifex.com/projects/p/libvirt-glib/" "language/eu/)\n" "Language: eu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/te.po0000664000000000000000000000772113004340477012366 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Telugu (http://www.transifex.com/projects/p/libvirt-glib/" "language/te/)\n" "Language: te\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/lv.po0000664000000000000000000000777013004340477012403 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Latvian (http://www.transifex.com/projects/p/libvirt-glib/" "language/lv/)\n" "Language: lv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " "2);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/gl.po0000664000000000000000000000772313004340477012362 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Galician (http://www.transifex.com/projects/p/libvirt-glib/" "language/gl/)\n" "Language: gl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/sr.po0000664000000000000000000001003713004340477012374 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Serbian (http://www.transifex.com/projects/p/libvirt-glib/" "language/sr/)\n" "Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/pl.po0000664000000000000000000001217713004340477012372 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Daniel , 2011 # Mateusz Marzantowicz , 2013 # Mateusz Marzantowicz , 2012 # Piotr DrÄ…g , 2015. #zanata msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2015-08-28 10:52-0400\n" "Last-Translator: Piotr DrÄ…g \n" "Language-Team: Polish (http://www.transifex.com/projects/p/libvirt-glib/" "language/pl/)\n" "Language: pl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " "|| n%100>=20) ? 1 : 2);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "Brak dokumentu XML do przetworzenia" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "Nie można przetworzyć konfiguracji" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "Dane XML nie posiadajÄ… wÄ™zÅ‚a „%sâ€" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "Brak dokumentu XML powiÄ…zanego z tym obiektem konfiguracji" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "Nie można utworzyć parsera RNG dla %s" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "Nie można przetworzyć RNG %s" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "Nie można utworzyć kontekst sprawdzania RNG %s" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "Nie można sprawdzić dokumentu" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "Połączenie %s jest już otwarte" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "Nie można otworzyć %s" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "Nie można uzyskać adresu URI połączenia" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "Połączenie nie jest otwarte" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "Połączenie nie jest otwarte" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "Nie można uzyskać nazwy nadzorcy" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "Nie można uzyskać wersji nadzorcy" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "Utworzenie domeny siÄ™ nie powiodÅ‚o" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "Utworzenie puli pamiÄ™ci masowej siÄ™ nie powiodÅ‚o" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "Nie można uzyskać informacji o węźle" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "Nie można uzyskać możliwoÅ›ci" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "Nie można przywrócić domeny" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "WywoÅ‚anie virStreamRecv spowodowaÅ‚oby zablokowanie" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "WystÄ…piÅ‚ błąd virStreamRecv w %s" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "Nie można wykonać RecvAll" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "WywoÅ‚anie virStreamSend spowodowaÅ‚oby zablokowanie" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "Nie można wykonać SendAll" libvirt-glib-1.0.0/po/ne.po0000664000000000000000000000772113004340477012360 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Nepali (http://www.transifex.com/projects/p/libvirt-glib/" "language/ne/)\n" "Language: ne\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/mr.po0000664000000000000000000000772213004340477012375 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Marathi (http://www.transifex.com/projects/p/libvirt-glib/" "language/mr/)\n" "Language: mr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/bn.po0000664000000000000000000000772213004340477012356 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Bengali (http://www.transifex.com/projects/p/libvirt-glib/" "language/bn/)\n" "Language: bn\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/lt.po0000664000000000000000000001002713004340477012366 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Lithuanian (http://www.transifex.com/projects/p/libvirt-glib/" "language/lt/)\n" "Language: lt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n" "%100<10 || n%100>=20) ? 1 : 2);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/kw@kkcor.po0000664000000000000000000000763613004340477013536 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: libvirt-glib\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: Cornish (Common Orthography)\n" "Language: kw@kkcor\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=4; plural= (n==1) ? 0 : (n==2) ? 1 : (n == 3) ? 2 : " "3\n" "X-Generator: Zanata 3.6.2\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/uk.po0000664000000000000000000001303013004340477012363 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Yuri Chornoivan , 2013 msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-11-20 06:38-0500\n" "Last-Translator: Yuri Chornoivan \n" "Language-Team: Ukrainian (http://www.transifex.com/projects/p/libvirt-glib/" "language/uk/)\n" "Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "Ðемає документа XML Ð´Ð»Ñ Ð¾Ð±Ñ€Ð¾Ð±ÐºÐ¸" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "Ðе вдалоÑÑ Ð¾Ð±Ñ€Ð¾Ð±Ð¸Ñ‚Ð¸ налаштуваннÑ" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "У даних XML немає вузла «%s»" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "З цим об’єктом Ð½Ð°Ð»Ð°ÑˆÑ‚ÑƒÐ²Ð°Ð½Ð½Ñ Ð½Ðµ пов’Ñзано жодного документа XML" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "Ðе вдалоÑÑ Ñтворити обробник RNG Ð´Ð»Ñ %s" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "Ðе вдалоÑÑ Ð¾Ð±Ñ€Ð¾Ð±Ð¸Ñ‚Ð¸ RNG, %s" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "Ðе вдалоÑÑ Ñтворити контекÑÑ‚ перевірки RNG, %s" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "Ðе вдалоÑÑ Ð¿ÐµÑ€ÐµÐ²Ñ–Ñ€Ð¸Ñ‚Ð¸ документи" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "Ð—â€™Ñ”Ð´Ð½Ð°Ð½Ð½Ñ %s вже відкрито" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "Ðе вдалоÑÑ Ð²Ñ–Ð´ÐºÑ€Ð¸Ñ‚Ð¸ %s" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "Ðе вдалоÑÑ Ð¾Ñ‚Ñ€Ð¸Ð¼Ð°Ñ‚Ð¸ адреÑу з’єднаннÑ" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "З'Ñ”Ð´Ð½Ð°Ð½Ð½Ñ Ð½Ðµ відкрито" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "Ð—â€™Ñ”Ð´Ð½Ð°Ð½Ð½Ñ Ð½Ðµ відкрито" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "Ðе вдалоÑÑ Ð¾Ñ‚Ñ€Ð¸Ð¼Ð°Ñ‚Ð¸ назву гіпервізора" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "Ðе вдалоÑÑ Ð¾Ñ‚Ñ€Ð¸Ð¼Ð°Ñ‚Ð¸ верÑÑ–ÑŽ гіпервізора" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "Ðе вдалоÑÑ Ñтворити домен" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "Ðе вдалоÑÑ Ñтворити резервне Ñховище" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "Ðе вдалоÑÑ Ð¾Ñ‚Ñ€Ð¸Ð¼Ð°Ñ‚Ð¸ дані щодо вузла" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "Ðе вдалоÑÑ Ð¾Ñ‚Ñ€Ð¸Ð¼Ð°Ñ‚Ð¸ ÑпиÑок можливоÑтей" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "Ðе вдалоÑÑ Ð²Ñ–Ð´Ð½Ð¾Ð²Ð¸Ñ‚Ð¸ домен" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "Виклик virStreamRecv заблокуєтьÑÑ" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "Отримано Ð¿Ð¾Ð²Ñ–Ð´Ð¾Ð¼Ð»ÐµÐ½Ð½Ñ Ð¿Ñ€Ð¾ помилку virStreamRecv у %s" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "Ðе вдалоÑÑ Ð²Ð¸ÐºÐ¾Ð½Ð°Ñ‚Ð¸ RecvAll" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "Виклик virStreamSend заблокуєтьÑÑ" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "Ðе вдалоÑÑ Ð²Ð¸ÐºÐ¾Ð½Ð°Ñ‚Ð¸ SendAll" libvirt-glib-1.0.0/po/zu.po0000664000000000000000000000771713004340477012421 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Zulu (http://www.transifex.com/projects/p/libvirt-glib/" "language/zu/)\n" "Language: zu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/ka.po0000664000000000000000000000771413004340477012353 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Georgian (http://www.transifex.com/projects/p/libvirt-glib/" "language/ka/)\n" "Language: ka\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/LINGUAS0000664000000000000000000000052013004340477012431 00000000000000af am anp ar as ast bal be bg bn_IN bn bo br brx bs ca cs cy da de_CH de el en_GB eo es et eu fa fi fr gl gu he hi hr hu ia id ilo is it ja ka kk km kn ko kw_GB kw@kkcor kw kw@uccor ky lt lv mai mk ml mn mr ms nb nds ne nl nn nso or pa pl pt_BR pt ro ru si sk sl sq sr@latin sr sv ta te tg th tr tw uk ur vi wba yo zh_CN zh_HK zh_TW zu libvirt-glib-1.0.0/po/anp.po0000664000000000000000000000753513004340477012537 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: libvirt-glib\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: Angika\n" "Language: anp\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" "X-Generator: Zanata 3.6.2\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/bg.po0000664000000000000000000000772413004340477012351 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Bulgarian (http://www.transifex.com/projects/p/libvirt-glib/" "language/bg/)\n" "Language: bg\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/as.po0000664000000000000000000000772313004340477012363 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Assamese (http://www.transifex.com/projects/p/libvirt-glib/" "language/as/)\n" "Language: as\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/bn_IN.po0000664000000000000000000000774013004340477012744 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Bengali (India) (http://www.transifex.com/projects/p/libvirt-" "glib/language/bn_IN/)\n" "Language: bn-IN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/be.po0000664000000000000000000001004213004340477012332 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Belarusian (http://www.transifex.com/projects/p/libvirt-glib/" "language/be/)\n" "Language: be\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/et.po0000664000000000000000000000772313004340477012370 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Estonian (http://www.transifex.com/projects/p/libvirt-glib/" "language/et/)\n" "Language: et\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/hr.po0000664000000000000000000001003613004340477012360 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Croatian (http://www.transifex.com/projects/p/libvirt-glib/" "language/hr/)\n" "Language: hr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/ar.po0000664000000000000000000001004713004340477012353 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Arabic (http://www.transifex.com/projects/p/libvirt-glib/" "language/ar/)\n" "Language: ar\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/zh_HK.po0000664000000000000000000000773513004340477012766 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Chinese (Hong Kong) (http://www.transifex.com/projects/p/" "libvirt-glib/language/zh_HK/)\n" "Language: zh-HK\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/or.po0000664000000000000000000000772013004340477012375 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Oriya (http://www.transifex.com/projects/p/libvirt-glib/" "language/or/)\n" "Language: or\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/nds.po0000664000000000000000000000772713004340477012550 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Low German (http://www.transifex.com/projects/p/libvirt-glib/" "language/nds/)\n" "Language: nds\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/ro.po0000664000000000000000000000777713004340477012411 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Romanian (http://www.transifex.com/projects/p/libvirt-glib/" "language/ro/)\n" "Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?" "2:1));\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/el.po0000664000000000000000000000772013004340477012355 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Greek (http://www.transifex.com/projects/p/libvirt-glib/" "language/el/)\n" "Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/ca.po0000664000000000000000000001177513004340477012345 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Robert Antoni Buj Gelonch , 2015. #zanata msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2015-05-09 02:03-0400\n" "Last-Translator: Robert Antoni Buj Gelonch \n" "Language-Team: Catalan (http://www.transifex.com/projects/p/libvirt-glib/" "language/ca/)\n" "Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "Cap document XML per analitzar sintàcticament" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "No es pot analitzar sintàcticament" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "Les dades del XML no tenen cap node «%s»" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" "Cap document XML que estigui associat amb aquest objecte de configuració" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "No es pot crear l'analitzador sintàctic RNG per %s" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "No es pot analitzar sintàcticament el RNG %s" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "No es pot crear la validació del context del RNG %s" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "No es pot validar el document" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "La connexió %s ja està oberta" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "No es pot obrir %s" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "No es pot obtenir la URI de la connexió" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "La connexió no és oberta" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "La connexió no està oberta" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "No es pot obtenir el nom de l'hipervisor" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "No es pot obtenir la versió de l'hipervisor" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "La creació del domini ha fallat" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "La creació de la reserva de l'emmagatzematge ha fallat" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "No es pot obtenir la informació del node" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "No es poden obtenir les capacitats" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "No es pot restaurar el domini" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "La crida a virStreamRecv podria bloquejar" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "Es va obtenir un error en virStreamRecv a %s" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "No es pot realitzar RecvAll" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "La crida a virStreamSend podria bloquejar" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "No es pot realitzar SendAll" libvirt-glib-1.0.0/po/sv.po0000664000000000000000000000772213004340477012407 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Swedish (http://www.transifex.com/projects/p/libvirt-glib/" "language/sv/)\n" "Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/es.po0000664000000000000000000001160513004340477012361 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Adolfo Jayme Barrientos , 2013 msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-11-20 06:38-0500\n" "Last-Translator: Adolfo Jayme Barrientos \n" "Language-Team: Spanish (http://www.transifex.com/projects/p/libvirt-glib/" "language/es/)\n" "Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "No hay ningún document XML que analizar" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "No se pudo analizar la configuración" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "Los datos XML no tienen un nodo «%s»" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" "No hay ningún documento XML asociado con este objeto de la configuración" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "No se pudo crear el analizador RNG para %s" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "No se pudo analizar el RNG %s" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "No se pudo crear el contexto de validación de RNG %s" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "No se pudo validar el documento" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "La conexión %s ya está abierta" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "No se puede abrir %s" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "No se puede obtener el URI de la conexión" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "La conexión no está abierta" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "La conexión no está abierta" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "No se puede obtener el nombre del hipervisor" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "No se puede obtener la versión del hipervisor" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "Falló al crear el dominio" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "Falló al crear el grupo de almacenamiento" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "No se puede obtener la información del nodo" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "No se pudieron obtener las capacidades" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "No se puede restaurar el dominio" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "Se obtivo el error virStreamRecv en %s" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "No se puede realizar RecvAll" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "No se puede realizar SendAll" libvirt-glib-1.0.0/po/mk.po0000664000000000000000000000776313004340477012373 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Macedonian (http://www.transifex.com/projects/p/libvirt-glib/" "language/mk/)\n" "Language: mk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n % 10 == 1 && n % 100 != 11) ? 0 : 1;\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/cy.po0000664000000000000000000001000013004340477012351 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Welsh (http://www.transifex.com/projects/p/libvirt-glib/" "language/cy/)\n" "Language: cy\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=4; plural=(n==1) ? 0 : (n==2) ? 1 : (n != 8 && n != " "11) ? 2 : 3;\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/fa.po0000664000000000000000000000771313004340477012345 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Persian (http://www.transifex.com/projects/p/libvirt-glib/" "language/fa/)\n" "Language: fa\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/sl.po0000664000000000000000000001001313004340477012360 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Slovenian (http://www.transifex.com/projects/p/libvirt-glib/" "language/sl/)\n" "Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n" "%100==4 ? 2 : 3);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/po/pt_BR.po0000664000000000000000000001175613004340477012767 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Fábio Olivé Leite , 2013 msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2014-07-03 01:19-0400\n" "Last-Translator: Daniel Lara \n" "Language-Team: Portuguese (Brazil) (http://www.transifex.com/projects/p/" "libvirt-glib/language/pt_BR/)\n" "Language: pt-BR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "Nenhum documento XML para analisar" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "Não foi possível ler a configuração" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "Dados XML não possuem um nó '%s'" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "Nenhum documento XML associado a este objeto de configuração" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "Não foi possível criar um analisador RNG para %s" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "Não foi possível analisar o RNG %s" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "Não foi possível criar o contexto de validação RNG %s" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "Não foi possível validar o documento" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "Conexão %s já está aberta" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "Não foi possível abrir %s" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "Não foi possível encontrar a URI da conexão" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "A conexão não está aberta" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "A conexão não está aberta" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "Não foi possível encontrar o nome do hypervisor" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "Não foi possível encontrar a versão do hypervisor" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "Falha na criação do domínio" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "Falha na criação do storage pool" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "Não foi possível buscar informações do nó" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "Não foi possível buscar as capacidades" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "Não foi possível restaurar o domínio" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "A chamada a virStreamRecv bloquearia" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "Erro virStreamRecv em %s" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "Não foi possível realizar um RecvAll" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "A chamada a virStreamSend bloquearia" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "Não foi possível realizar um SendAll" libvirt-glib-1.0.0/po/cs.po0000664000000000000000000000775313004340477012370 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-12-16 16:51+0000\n" "PO-Revision-Date: 2013-04-08 07:29-0400\n" "Last-Translator: FULL NAME \n" "Language-Team: Czech (http://www.transifex.com/projects/p/libvirt-glib/" "language/cs/)\n" "Language: cs\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" "X-Generator: Zanata 3.7.3\n" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:141 msgid "No XML document to parse" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:149 msgid "Unable to parse configuration" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-helpers.c:157 #, c-format msgid "XML data has no '%s' node" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:208 msgid "No XML document associated with this config object" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:217 #, c-format msgid "Unable to create RNG parser for %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:227 #, c-format msgid "Unable to parse RNG %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:239 #, c-format msgid "Unable to create RNG validation context %s" msgstr "" #: ../libvirt-gconfig/libvirt-gconfig-object.c:249 msgid "Unable to validate doc" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:440 #, c-format msgid "Connection %s is already open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:455 #, c-format msgid "Unable to open %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:466 msgid "Unable to get connection URI" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:726 #: ../libvirt-gobject/libvirt-gobject-connection.c:809 #: ../libvirt-gobject/libvirt-gobject-connection.c:1496 #: ../libvirt-gobject/libvirt-gobject-connection.c:1748 msgid "Connection is not open" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:739 msgid "Failed to fetch list of domains" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:825 msgid "Failed to fetch list of pools" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1026 #: ../libvirt-gobject/libvirt-gobject-connection.c:1065 msgid "Connection is not opened" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1033 msgid "Unable to get hypervisor name" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1071 msgid "Unable to get hypervisor version" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1386 #: ../libvirt-gobject/libvirt-gobject-connection.c:1441 msgid "Failed to create domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1512 msgid "Failed to fetch list of interfaces" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:1764 msgid "Failed to fetch list of networks" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2005 msgid "Failed to create storage pool" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2048 msgid "Unable to get node info" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2088 msgid "Unable to get capabilities" msgstr "" #: ../libvirt-gobject/libvirt-gobject-connection.c:2212 msgid "Unable to restore domain" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:349 msgid "virStreamRecv call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:352 #: ../libvirt-gobject/libvirt-gobject-stream.c:468 #, c-format msgid "Got virStreamRecv error in %s" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:417 msgid "Unable to perform RecvAll" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:465 msgid "virStreamSend call would block" msgstr "" #: ../libvirt-gobject/libvirt-gobject-stream.c:533 msgid "Unable to perform SendAll" msgstr "" libvirt-glib-1.0.0/gtk-doc.make0000664000000000000000000001726713004340477013175 00000000000000# -*- mode: makefile -*- #################################### # Everything below here is generic # #################################### if GTK_DOC_USE_LIBTOOL GTKDOC_CC = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(INCLUDES) $(GTKDOC_DEPS_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) GTKDOC_LD = $(LIBTOOL) --tag=CC --mode=link $(CC) $(GTKDOC_DEPS_LIBS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) GTKDOC_RUN = $(LIBTOOL) --mode=execute else GTKDOC_CC = $(CC) $(INCLUDES) $(GTKDOC_DEPS_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) GTKDOC_LD = $(CC) $(GTKDOC_DEPS_LIBS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) GTKDOC_RUN = endif # We set GPATH here; this gives us semantics for GNU make # which are more like other make's VPATH, when it comes to # whether a source that is a target of one rule is then # searched for in VPATH/GPATH. # GPATH = $(srcdir) TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE) SETUP_FILES = \ $(content_files) \ $(DOC_MAIN_SGML_FILE) \ $(DOC_MODULE)-sections.txt \ $(DOC_MODULE)-overrides.txt EXTRA_DIST = \ $(HTML_IMAGES) \ $(SETUP_FILES) DOC_STAMPS=setup-build.stamp scan-build.stamp sgml-build.stamp \ html-build.stamp pdf-build.stamp \ sgml.stamp html.stamp pdf.stamp SCANOBJ_FILES = \ $(DOC_MODULE).args \ $(DOC_MODULE).hierarchy \ $(DOC_MODULE).interfaces \ $(DOC_MODULE).prerequisites \ $(DOC_MODULE).signals REPORT_FILES = \ $(DOC_MODULE)-undocumented.txt \ $(DOC_MODULE)-undeclared.txt \ $(DOC_MODULE)-unused.txt CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) $(DOC_STAMPS) if ENABLE_GTK_DOC if GTK_DOC_BUILD_HTML HTML_BUILD_STAMP=html-build.stamp else HTML_BUILD_STAMP= endif if GTK_DOC_BUILD_PDF PDF_BUILD_STAMP=pdf-build.stamp else PDF_BUILD_STAMP= endif all-local: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP) else all-local: endif docs: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP) $(REPORT_FILES): sgml-build.stamp #### setup #### setup-build.stamp: -@if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \ echo ' DOC Preparing build'; \ files=`echo $(SETUP_FILES) $(expand_content_files) $(DOC_MODULE).types`; \ if test "x$$files" != "x" ; then \ for file in $$files ; do \ test -f $(abs_srcdir)/$$file && \ cp -pu $(abs_srcdir)/$$file $(abs_builddir)/ || true; \ done; \ fi; \ fi @touch setup-build.stamp #### scan #### scan-build.stamp: $(HFILE_GLOB) $(CFILE_GLOB) @echo ' DOC Scanning header files' @_source_dir='' ; \ for i in $(DOC_SOURCE_DIR) ; do \ _source_dir="$${_source_dir} --source-dir=$$i" ; \ done ; \ gtkdoc-scan --module=$(DOC_MODULE) --ignore-headers="$(IGNORE_HFILES)" $${_source_dir} $(SCAN_OPTIONS) $(EXTRA_HFILES) @if grep -l '^..*$$' $(DOC_MODULE).types > /dev/null 2>&1 ; then \ echo " DOC Introspecting gobjects"; \ scanobj_options=""; \ gtkdoc-scangobj 2>&1 --help | grep >/dev/null "\-\-verbose"; \ if test "$(?)" = "0"; then \ if test "x$(V)" = "x1"; then \ scanobj_options="--verbose"; \ fi; \ fi; \ CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" RUN="$(GTKDOC_RUN)" CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS)" LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)" \ gtkdoc-scangobj $(SCANGOBJ_OPTIONS) $$scanobj_options --module=$(DOC_MODULE); \ else \ for i in $(SCANOBJ_FILES) ; do \ test -f $$i || touch $$i ; \ done \ fi @touch scan-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt: scan-build.stamp @true #### xml #### sgml-build.stamp: setup-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt $(expand_content_files) @echo ' DOC Building XML' @_source_dir='' ; \ for i in $(DOC_SOURCE_DIR) ; do \ _source_dir="$${_source_dir} --source-dir=$$i" ; \ done ; \ gtkdoc-mkdb --module=$(DOC_MODULE) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $${_source_dir} $(MKDB_OPTIONS) @touch sgml-build.stamp sgml.stamp: sgml-build.stamp @true #### html #### html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) @echo ' DOC Building HTML' @rm -rf html @mkdir html @mkhtml_options=""; \ gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-verbose"; \ if test "$(?)" = "0"; then \ if test "x$(V)" = "x1"; then \ mkhtml_options="$$mkhtml_options --verbose"; \ fi; \ fi; \ gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-path"; \ if test "$(?)" = "0"; then \ mkhtml_options="$$mkhtml_options --path=\"$(abs_srcdir)\""; \ fi; \ cd html && gtkdoc-mkhtml $$mkhtml_options $(MKHTML_OPTIONS) $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE) -@test "x$(HTML_IMAGES)" = "x" || \ for file in $(HTML_IMAGES) ; do \ if test -f $(abs_srcdir)/$$file ; then \ cp $(abs_srcdir)/$$file $(abs_builddir)/html; \ fi; \ if test -f $(abs_builddir)/$$file ; then \ cp $(abs_builddir)/$$file $(abs_builddir)/html; \ fi; \ done; @echo ' DOC Fixing cross-references' @gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS) @touch html-build.stamp #### pdf #### pdf-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) @echo ' DOC Building PDF' @rm -f $(DOC_MODULE).pdf @mkpdf_options=""; \ gtkdoc-mkpdf 2>&1 --help | grep >/dev/null "\-\-verbose"; \ if test "$(?)" = "0"; then \ if test "x$(V)" = "x1"; then \ mkpdf_options="$$mkpdf_options --verbose"; \ fi; \ fi; \ if test "x$(HTML_IMAGES)" != "x"; then \ for img in $(HTML_IMAGES); do \ part=`dirname $$img`; \ echo $$mkpdf_options | grep >/dev/null "\-\-imgdir=$$part "; \ if test $$? != 0; then \ mkpdf_options="$$mkpdf_options --imgdir=$$part"; \ fi; \ done; \ fi; \ gtkdoc-mkpdf --path="$(abs_srcdir)" $$mkpdf_options $(DOC_MODULE) $(DOC_MAIN_SGML_FILE) $(MKPDF_OPTIONS) @touch pdf-build.stamp ############## clean-local: @rm -f *~ *.bak @rm -rf .libs distclean-local: @rm -rf xml html $(REPORT_FILES) $(DOC_MODULE).pdf \ $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt @if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \ rm -f $(SETUP_FILES) $(expand_content_files) $(DOC_MODULE).types; \ fi maintainer-clean-local: clean @rm -rf xml html install-data-local: @installfiles=`echo $(builddir)/html/*`; \ if test "$$installfiles" = '$(builddir)/html/*'; \ then echo 1>&2 'Nothing to install' ; \ else \ if test -n "$(DOC_MODULE_VERSION)"; then \ installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \ else \ installdir="$(DESTDIR)$(TARGET_DIR)"; \ fi; \ $(mkinstalldirs) $${installdir} ; \ for i in $$installfiles; do \ echo ' $(INSTALL_DATA) '$$i ; \ $(INSTALL_DATA) $$i $${installdir}; \ done; \ if test -n "$(DOC_MODULE_VERSION)"; then \ mv -f $${installdir}/$(DOC_MODULE).devhelp2 \ $${installdir}/$(DOC_MODULE)-$(DOC_MODULE_VERSION).devhelp2; \ fi; \ $(GTKDOC_REBASE) --relative --dest-dir=$(DESTDIR) --html-dir=$${installdir}; \ fi uninstall-local: @if test -n "$(DOC_MODULE_VERSION)"; then \ installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \ else \ installdir="$(DESTDIR)$(TARGET_DIR)"; \ fi; \ rm -rf $${installdir} # # Require gtk-doc when making dist # if ENABLE_GTK_DOC dist-check-gtkdoc: else dist-check-gtkdoc: @echo "*** gtk-doc must be installed and enabled in order to make dist" @false endif dist-hook: dist-check-gtkdoc dist-hook-local @mkdir $(distdir)/html @cp ./html/* $(distdir)/html @-cp ./$(DOC_MODULE).pdf $(distdir)/ @-cp ./$(DOC_MODULE).types $(distdir)/ @-cp ./$(DOC_MODULE)-sections.txt $(distdir)/ @cd $(distdir) && rm -f $(DISTCLEANFILES) @$(GTKDOC_REBASE) --online --relative --html-dir=$(distdir)/html .PHONY : dist-hook-local docs libvirt-glib-1.0.0/AUTHORS0000664000000000000000000000224713007136424012044 00000000000000 libvirt-glib Authors ==================== The primary maintainers of libvirt-glib are: Christophe Fergeau Daniel P. Berrange Marc-André Lureau Zeeshan Ali (Khattak) Patches have been received from: Alexander Larsson Christophe Fergeau Claudio Bley Cédric Bosdonnat Daniel P. Berrange Guido Günther Ian Main Jovanka Gulicoska Marc-André Lureau Martin Kletzander Michael Catanzaro Michal Privoznik Nirbheek Chauhan Pavel Hrdina Richa Sehgal Stefano Facchini T A Mahadevan Timm Bäder Timo Juhani Lindfors Zeeshan Ali (Khattak) Zeeshan Ali ... send patches to get your name added ... libvirt-glib-1.0.0/tests/0000775000000000000000000000000013007136424012211 500000000000000libvirt-glib-1.0.0/tests/Makefile.am0000664000000000000000000000070513004340477014171 00000000000000if ENABLE_TESTS include $(top_srcdir)/build-aux/glib-tap.mk AM_CFLAGS = \ $(COVERAGE_CFLAGS) \ -I$(top_srcdir) \ $(GOBJECT2_CFLAGS) \ $(LIBVIRT_CFLAGS) \ $(LIBXML2_CFLAGS) \ $(WARN_CFLAGS) LDADD = \ $(top_builddir)/libvirt-gconfig/libvirt-gconfig-1.0.la \ $(top_builddir)/libvirt-glib/libvirt-glib-1.0.la \ $(LIBVIRT_LIBS) \ $(GLIB2_LIBS) \ $(GOBJECT2_LIBS) test_programs = test-gconfig test-events EXTRA_DIST += \ xml \ $(NULL) endif libvirt-glib-1.0.0/tests/test-events.c0000664000000000000000000001123713004340477014564 00000000000000/* * test-events.c: unit tests for libvirt/glib mainloop integration * * Copyright (C) 2014 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #include #include #include #include #include #include static GMainLoop *main_loop; static int watch_fd; static int watch_id; static int timeout_id; static void watch_destroyed(void *opaque) { gint *watch = opaque; g_assert_cmpint(*watch, >=, 0); g_assert_cmpint(*watch, ==, watch_id); g_message("destroyed watch %d", *watch); *watch = -1; } static gboolean check_destroyed(gpointer user_data) { gint *id = user_data; g_assert_cmpint(*id, ==, -1); return G_SOURCE_REMOVE; } static void watch_cb(int watch, int fd, int events, void *opaque G_GNUC_UNUSED) { g_assert_cmpint(watch_id, !=, -1); g_assert_cmpint(watch, ==, watch_id); g_assert_cmpint(fd, ==, watch_fd); g_message("got event(s) %x on fd %d (watch %d)", events, fd, watch); } static gboolean idle_quit_cb(gpointer user_data G_GNUC_UNUSED) { g_main_loop_quit(main_loop); return G_SOURCE_REMOVE; } static gboolean test_watch(gpointer user_data G_GNUC_UNUSED) { int removal_status; watch_id = virEventAddHandle(watch_fd, VIR_EVENT_HANDLE_READABLE | VIR_EVENT_HANDLE_WRITABLE, watch_cb, &watch_id, watch_destroyed); virEventUpdateHandle(watch_id, 0); removal_status = virEventRemoveHandle(watch_id); g_assert_cmpint(removal_status, ==, 0); virEventUpdateHandle(watch_id, VIR_EVENT_HANDLE_READABLE); removal_status = virEventRemoveHandle(watch_id); g_assert_cmpint(removal_status, ==, -1); g_idle_add_full(G_PRIORITY_LOW, check_destroyed, &watch_id, NULL); g_idle_add_full(G_PRIORITY_LOW, idle_quit_cb, main_loop, NULL); return G_SOURCE_REMOVE; } static void test_remove_disabled_watch(void) { main_loop = g_main_loop_new(NULL, FALSE); watch_fd = open("/bin/true", O_RDONLY); g_idle_add(test_watch, NULL); g_main_loop_run(main_loop); g_main_loop_unref(main_loop); close(watch_fd); watch_fd = -1; g_assert_cmpint(watch_id, ==, -1); } static void timeout_destroyed(void *opaque) { gint *timeout = opaque; g_assert_cmpint(*timeout, !=, -1); g_assert_cmpint(*timeout, ==, timeout_id); g_message("destroyed timeout %d", *timeout); *timeout = -1; } static void timeout_cb(int timer, void *opaque G_GNUC_UNUSED) { g_assert_cmpint(timeout_id, !=, -1); g_assert_cmpint(timer, ==, timeout_id); g_message("timer %d fired", timer); } static gboolean test_timeout(gpointer user_data G_GNUC_UNUSED) { int removal_status; timeout_id = virEventAddTimeout(10000, timeout_cb, &timeout_id, timeout_destroyed); virEventUpdateTimeout(timeout_id, -1); removal_status = virEventRemoveTimeout(timeout_id); g_assert_cmpint(removal_status, ==, 0); virEventUpdateTimeout(timeout_id, 20000); removal_status = virEventRemoveTimeout(timeout_id); g_assert_cmpint(removal_status, ==, -1); g_idle_add_full(G_PRIORITY_LOW, check_destroyed, &timeout_id, NULL); g_idle_add_full(G_PRIORITY_LOW, (GSourceFunc)g_main_loop_quit, main_loop, NULL); return G_SOURCE_REMOVE; } static void test_remove_disabled_timeout(void) { main_loop = g_main_loop_new(NULL, FALSE); g_idle_add(test_timeout, NULL); g_main_loop_run(main_loop); g_main_loop_unref(main_loop); g_assert_cmpint(timeout_id, ==, -1); } int main(int argc, char **argv) { gvir_init(&argc, &argv); g_test_init(&argc, &argv, NULL); gvir_event_register(); g_test_add_func("/libvirt-glib/remove-disabled-watch", test_remove_disabled_watch); g_test_add_func("/libvirt-glib/remove-disabled-timeout", test_remove_disabled_timeout); return g_test_run(); } libvirt-glib-1.0.0/tests/test-gconfig.c0000664000000000000000000010343613007065555014703 00000000000000/* * test-gconfig.c: unit tests for libvirt-gconfig * * Copyright (C) 2014 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #include #include #define g_assert_cmpstr_free1(str1, op, str2) G_STMT_START { \ char *alloced_str = (str1); \ g_assert_cmpstr(alloced_str, op, (str2)); \ g_free(alloced_str); \ } G_STMT_END static char * load_xml(const char *reference_file) { const char *reference_path; GError *error = NULL; char *reference_xml; reference_path = g_test_get_filename(G_TEST_DIST, "xml", reference_file, NULL); g_file_get_contents(reference_path, &reference_xml, NULL, &error); g_assert_no_error(error); /* I could not generate text files without a trailing \n with vim or * gedit, workaround this issue by removing trailing whitespace from * the reference file */ g_strchomp(reference_xml); return reference_xml; } static void check_xml(GVirConfigDomain *domain, const char *reference_file) { char *reference_xml; char *xml; reference_xml = load_xml(reference_file); xml = gvir_config_object_to_xml(GVIR_CONFIG_OBJECT(domain)); g_assert_cmpstr(xml, ==, reference_xml); g_free(xml); g_free(reference_xml); } static GList *get_devices_by_type(GVirConfigDomain *domain, GType type) { GList *devices; GList *it; GList *matches = NULL; devices = gvir_config_domain_get_devices(domain); for (it = devices; it != NULL; it = it->next) { if (g_type_is_a(G_OBJECT_TYPE(it->data), type)) { matches = g_list_prepend(matches, g_object_ref(G_OBJECT(it->data))); } } g_list_free_full(devices, g_object_unref); return g_list_reverse(matches); } static void test_domain(void) { GVirConfigDomain *domain; const char *features[] = { "foo", "bar", "baz", NULL }; GStrv feat; unsigned int i; domain = gvir_config_domain_new(); g_assert(domain != NULL); gvir_config_domain_set_virt_type(domain, GVIR_CONFIG_DOMAIN_VIRT_KVM); g_assert_cmpint(gvir_config_domain_get_virt_type(domain), ==, GVIR_CONFIG_DOMAIN_VIRT_KVM); gvir_config_domain_set_name(domain, "foo"); g_assert_cmpstr(gvir_config_domain_get_name(domain), ==, "foo"); gvir_config_domain_set_memory(domain, 1234); g_assert_cmpint(gvir_config_domain_get_memory(domain), ==, 1234); gvir_config_domain_set_vcpus(domain, 3); g_assert_cmpint(gvir_config_domain_get_vcpus(domain), ==, 3); gvir_config_domain_set_features(domain, (const GStrv)features); feat = gvir_config_domain_get_features(domain); for (i = 0; features[i] != NULL; i++) { g_assert(feat[i] != NULL); g_assert_cmpstr(feat[i], ==, features[i]); } g_strfreev(feat); gvir_config_domain_set_lifecycle(domain, GVIR_CONFIG_DOMAIN_LIFECYCLE_ON_POWEROFF, GVIR_CONFIG_DOMAIN_LIFECYCLE_RESTART); gvir_config_domain_set_custom_xml(domain, "", "ns", "http://foo", NULL); gvir_config_domain_set_custom_xml(domain, "", "nsbar", "http://bar", NULL); gvir_config_domain_set_custom_xml(domain, "", "ns", "http://bar", NULL); gvir_config_domain_set_custom_xml(domain, "", "ns", "http://foo", NULL); g_assert_cmpstr_free1(gvir_config_domain_get_custom_xml(domain, "http://foo"), ==, ""); g_assert_cmpstr_free1(gvir_config_domain_get_custom_xml(domain, "http://bar"), ==, ""); check_xml(domain, "gconfig-domain.xml"); g_object_unref(G_OBJECT(domain)); } static void test_domain_clock(void) { GVirConfigDomain *domain; GVirConfigDomainClock *klock; GVirConfigDomainTimerPit *pit; GVirConfigDomainTimerRtc *rtc; GVirConfigDomainTimerHpet *hpet; domain = gvir_config_domain_new(); klock = gvir_config_domain_clock_new(); gvir_config_domain_clock_set_offset(klock, GVIR_CONFIG_DOMAIN_CLOCK_TIMEZONE); gvir_config_domain_clock_set_timezone(klock, "CEST"); g_assert_cmpint(gvir_config_domain_clock_get_offset(klock), ==, GVIR_CONFIG_DOMAIN_CLOCK_TIMEZONE); g_assert_cmpstr(gvir_config_domain_clock_get_timezone(klock), ==, "CEST"); pit = gvir_config_domain_timer_pit_new(); gvir_config_domain_timer_set_tick_policy(GVIR_CONFIG_DOMAIN_TIMER(pit), GVIR_CONFIG_DOMAIN_TIMER_TICK_POLICY_DELAY); gvir_config_domain_clock_add_timer(klock, GVIR_CONFIG_DOMAIN_TIMER(pit)); g_assert_cmpint(gvir_config_domain_timer_get_tick_policy(GVIR_CONFIG_DOMAIN_TIMER(pit)), ==, GVIR_CONFIG_DOMAIN_TIMER_TICK_POLICY_DELAY); g_assert(gvir_config_domain_timer_get_present(GVIR_CONFIG_DOMAIN_TIMER(pit)) != FALSE); g_object_unref(G_OBJECT(pit)); rtc = gvir_config_domain_timer_rtc_new(); gvir_config_domain_timer_set_tick_policy(GVIR_CONFIG_DOMAIN_TIMER(rtc), GVIR_CONFIG_DOMAIN_TIMER_TICK_POLICY_CATCHUP); gvir_config_domain_clock_add_timer(klock, GVIR_CONFIG_DOMAIN_TIMER(rtc)); g_assert_cmpint(gvir_config_domain_timer_get_tick_policy(GVIR_CONFIG_DOMAIN_TIMER(rtc)), ==, GVIR_CONFIG_DOMAIN_TIMER_TICK_POLICY_CATCHUP); g_assert(gvir_config_domain_timer_get_present(GVIR_CONFIG_DOMAIN_TIMER(rtc)) != FALSE); g_object_unref(G_OBJECT(rtc)); hpet = gvir_config_domain_timer_hpet_new(); gvir_config_domain_timer_set_present(GVIR_CONFIG_DOMAIN_TIMER(hpet), FALSE); gvir_config_domain_clock_add_timer(klock, GVIR_CONFIG_DOMAIN_TIMER(hpet)); g_assert(gvir_config_domain_timer_get_present(GVIR_CONFIG_DOMAIN_TIMER(hpet)) == FALSE); g_object_unref(G_OBJECT(hpet)); gvir_config_domain_set_clock(domain, klock); g_object_unref(G_OBJECT(klock)); klock = gvir_config_domain_get_clock(domain); g_assert(klock != NULL); g_assert_cmpint(gvir_config_domain_clock_get_offset(klock), ==, GVIR_CONFIG_DOMAIN_CLOCK_TIMEZONE); g_assert_cmpstr(gvir_config_domain_clock_get_timezone(klock), ==, "CEST"); g_object_unref(G_OBJECT(klock)); /* FIXME: gvir_config_domain_clock_get_timers() */ check_xml(domain, "gconfig-domain-clock.xml"); gvir_config_domain_set_clock(domain, NULL); klock = gvir_config_domain_get_clock(domain); g_assert(klock == NULL); g_object_unref(G_OBJECT(domain)); } static void domain_os_check_boot_devices(GVirConfigDomainOs *os) { GList *devices = NULL; GList *it; devices = gvir_config_domain_os_get_boot_devices(os); it = devices; g_assert_cmpint(GPOINTER_TO_INT(it->data), ==, GVIR_CONFIG_DOMAIN_OS_BOOT_DEVICE_CDROM); it = it->next; g_assert_cmpint(GPOINTER_TO_INT(it->data), ==, GVIR_CONFIG_DOMAIN_OS_BOOT_DEVICE_NETWORK); g_assert(it->next == NULL); g_list_free(devices); } static void test_domain_os(void) { GVirConfigDomain *domain; GVirConfigDomainOs *os; GList *devices = NULL; domain = gvir_config_domain_new(); os = gvir_config_domain_os_new(); gvir_config_domain_os_set_os_type(os, GVIR_CONFIG_DOMAIN_OS_TYPE_HVM); gvir_config_domain_os_set_arch(os, "x86_64"); g_assert_cmpint(gvir_config_domain_os_get_os_type(os), ==, GVIR_CONFIG_DOMAIN_OS_TYPE_HVM); g_assert_cmpstr(gvir_config_domain_os_get_arch(os), ==, "x86_64"); devices = g_list_append(devices, GINT_TO_POINTER(GVIR_CONFIG_DOMAIN_OS_BOOT_DEVICE_CDROM)); devices = g_list_append(devices, GINT_TO_POINTER(GVIR_CONFIG_DOMAIN_OS_BOOT_DEVICE_NETWORK)); gvir_config_domain_os_set_boot_devices(os, devices); g_list_free(devices); devices = NULL; domain_os_check_boot_devices(os); gvir_config_domain_set_os(domain, os); g_object_unref(G_OBJECT(os)); os = gvir_config_domain_get_os(domain); g_assert(os != NULL); g_assert_cmpstr(gvir_config_domain_os_get_arch(os), ==, "x86_64"); g_assert_cmpint(gvir_config_domain_os_get_os_type(os), ==, GVIR_CONFIG_DOMAIN_OS_TYPE_HVM); domain_os_check_boot_devices(os); g_object_unref(G_OBJECT(os)); check_xml(domain, "gconfig-domain-os.xml"); gvir_config_domain_set_os(domain, NULL); os = gvir_config_domain_get_os(domain); g_assert(os == NULL); g_object_unref(G_OBJECT(domain)); } static void test_domain_cpu(void) { GVirConfigDomain *domain; /* cpu node */ GVirConfigDomainCpu *cpu; domain = gvir_config_domain_new(); cpu = gvir_config_domain_cpu_new(); gvir_config_domain_set_vcpus(domain, 3); /* cpu/feature nodes */ GVirConfigDomainCpuFeature *feature; GList *cpu_features = NULL; gvir_config_domain_cpu_set_match_policy(cpu, GVIR_CONFIG_DOMAIN_CPU_MATCH_POLICY_STRICT); gvir_config_domain_cpu_set_mode(cpu, GVIR_CONFIG_DOMAIN_CPU_MODE_HOST_PASSTHROUGH); feature = gvir_config_domain_cpu_feature_new(); gvir_config_capabilities_cpu_feature_set_name(GVIR_CONFIG_CAPABILITIES_CPU_FEATURE(feature), "foo"); gvir_config_domain_cpu_feature_set_policy(feature, GVIR_CONFIG_DOMAIN_CPU_FEATURE_POLICY_REQUIRE); gvir_config_capabilities_cpu_add_feature(GVIR_CONFIG_CAPABILITIES_CPU(cpu), GVIR_CONFIG_CAPABILITIES_CPU_FEATURE(feature)); g_object_unref(feature); /* cpu/topology nodes */ GVirConfigCapabilitiesCpuTopology *topology; topology = gvir_config_capabilities_cpu_topology_new(); gvir_config_capabilities_cpu_topology_set_cores(topology, 1); gvir_config_capabilities_cpu_topology_set_sockets(topology, 2); gvir_config_capabilities_cpu_topology_set_threads(topology, 3); gvir_config_capabilities_cpu_set_topology(GVIR_CONFIG_CAPABILITIES_CPU(cpu), topology); g_object_unref(topology); gvir_config_domain_set_cpu(domain, cpu); g_object_unref(cpu); cpu = gvir_config_domain_get_cpu(domain); g_assert(cpu != NULL); g_assert(GVIR_CONFIG_IS_CAPABILITIES_CPU(cpu)); g_assert_cmpint(gvir_config_domain_cpu_get_match_policy(cpu), ==, GVIR_CONFIG_DOMAIN_CPU_MATCH_POLICY_STRICT); g_assert_cmpint(gvir_config_domain_cpu_get_mode(cpu), ==, GVIR_CONFIG_DOMAIN_CPU_MODE_HOST_PASSTHROUGH); cpu_features = gvir_config_capabilities_cpu_get_features(GVIR_CONFIG_CAPABILITIES_CPU(cpu)); g_assert_cmpint(g_list_length(cpu_features), ==, 1); g_assert(GVIR_CONFIG_IS_DOMAIN_CPU_FEATURE(cpu_features->data)); feature = GVIR_CONFIG_DOMAIN_CPU_FEATURE(cpu_features->data); g_assert_cmpstr(gvir_config_capabilities_cpu_feature_get_name(GVIR_CONFIG_CAPABILITIES_CPU_FEATURE(feature)), ==, "foo"); g_assert_cmpint(gvir_config_domain_cpu_feature_get_policy(feature), ==, GVIR_CONFIG_DOMAIN_CPU_FEATURE_POLICY_REQUIRE); g_list_free_full(cpu_features, g_object_unref); topology = gvir_config_capabilities_cpu_get_topology(GVIR_CONFIG_CAPABILITIES_CPU(cpu)); g_assert(topology != NULL); g_assert_cmpint(gvir_config_capabilities_cpu_topology_get_cores(topology), ==, 1); g_assert_cmpint(gvir_config_capabilities_cpu_topology_get_sockets(topology), ==, 2); g_assert_cmpint(gvir_config_capabilities_cpu_topology_get_threads(topology), ==, 3); g_object_unref(topology); g_object_unref(cpu); check_xml(domain, "gconfig-domain-cpu.xml"); cpu = gvir_config_domain_get_cpu(domain); gvir_config_capabilities_cpu_set_topology(GVIR_CONFIG_CAPABILITIES_CPU(cpu), NULL); topology = gvir_config_capabilities_cpu_get_topology(GVIR_CONFIG_CAPABILITIES_CPU(cpu)); g_assert(topology == NULL); g_object_unref(G_OBJECT(cpu)); gvir_config_domain_set_cpu(domain, NULL); cpu = gvir_config_domain_get_cpu(domain); g_assert(cpu == NULL); g_object_unref(G_OBJECT(domain)); } static void test_domain_device_disk(void) { GVirConfigDomain *domain; GVirConfigDomainDisk *disk; GVirConfigDomainDiskDriver *driver; GList *disks; domain = gvir_config_domain_new(); driver = gvir_config_domain_disk_driver_new(); gvir_config_domain_disk_driver_set_name(driver, "foo"); gvir_config_domain_disk_driver_set_format(driver, GVIR_CONFIG_DOMAIN_DISK_FORMAT_BOCHS); gvir_config_domain_disk_driver_set_name(driver, "qemu"); gvir_config_domain_disk_driver_set_cache(driver, GVIR_CONFIG_DOMAIN_DISK_CACHE_NONE); gvir_config_domain_disk_driver_set_format(driver, GVIR_CONFIG_DOMAIN_DISK_FORMAT_QCOW2); gvir_config_domain_disk_driver_set_copy_on_read(driver, TRUE); disk = gvir_config_domain_disk_new(); gvir_config_domain_disk_set_type(disk, GVIR_CONFIG_DOMAIN_DISK_FILE); gvir_config_domain_disk_set_guest_device_type(disk, GVIR_CONFIG_DOMAIN_DISK_GUEST_DEVICE_DISK); gvir_config_domain_disk_set_source(disk, "/tmp/foo/bar"); gvir_config_domain_disk_set_startup_policy (disk, GVIR_CONFIG_DOMAIN_DISK_STARTUP_POLICY_REQUISITE); gvir_config_domain_disk_set_target_bus(disk, GVIR_CONFIG_DOMAIN_DISK_BUS_IDE); gvir_config_domain_disk_set_target_dev(disk, "hda"); gvir_config_domain_disk_set_driver(disk, driver); g_object_unref(G_OBJECT(driver)); gvir_config_domain_add_device(domain, GVIR_CONFIG_DOMAIN_DEVICE(disk)); g_object_unref(disk); check_xml(domain, "gconfig-domain-device-disk.xml"); disks = get_devices_by_type(domain, GVIR_CONFIG_TYPE_DOMAIN_DISK); g_assert_cmpint(g_list_length(disks), ==, 1); g_assert(GVIR_CONFIG_IS_DOMAIN_DISK(disks->data)); disk = GVIR_CONFIG_DOMAIN_DISK(disks->data); g_assert_cmpint(gvir_config_domain_disk_get_disk_type(disk), ==, GVIR_CONFIG_DOMAIN_DISK_FILE); g_assert_cmpint(gvir_config_domain_disk_get_guest_device_type(disk), ==, GVIR_CONFIG_DOMAIN_DISK_GUEST_DEVICE_DISK); g_assert_cmpint(gvir_config_domain_disk_get_startup_policy (disk), ==, GVIR_CONFIG_DOMAIN_DISK_STARTUP_POLICY_REQUISITE); g_assert_cmpstr(gvir_config_domain_disk_get_source(disk), ==, "/tmp/foo/bar"); driver = gvir_config_domain_disk_get_driver(disk); g_assert(driver != NULL); g_assert_cmpint(gvir_config_domain_disk_driver_get_cache(driver), ==, GVIR_CONFIG_DOMAIN_DISK_CACHE_NONE); g_assert_cmpstr(gvir_config_domain_disk_driver_get_name(driver), ==, "qemu"); g_assert_cmpint(gvir_config_domain_disk_driver_get_format(driver), ==, GVIR_CONFIG_DOMAIN_DISK_FORMAT_QCOW2); g_assert(gvir_config_domain_disk_driver_get_copy_on_read(driver)); g_assert_cmpint(gvir_config_domain_disk_get_target_bus(disk), ==, GVIR_CONFIG_DOMAIN_DISK_BUS_IDE); g_assert_cmpstr(gvir_config_domain_disk_get_target_dev(disk), ==, "hda"); g_object_unref(G_OBJECT(driver)); gvir_config_domain_disk_set_driver(disk, NULL); driver = gvir_config_domain_disk_get_driver(disk); g_assert(driver == NULL); g_list_free_full(disks, g_object_unref); g_object_unref(G_OBJECT(domain)); } static void test_domain_device_filesystem(void) { GVirConfigDomain *domain; GVirConfigDomainFilesys *fs; domain = gvir_config_domain_new(); fs = gvir_config_domain_filesys_new(); gvir_config_domain_filesys_set_type(fs, GVIR_CONFIG_DOMAIN_FILESYS_FILE); gvir_config_domain_filesys_set_access_type(fs, GVIR_CONFIG_DOMAIN_FILESYS_ACCESS_MAPPED); gvir_config_domain_filesys_set_driver_type(fs, GVIR_CONFIG_DOMAIN_FILESYS_DRIVER_NBD); gvir_config_domain_filesys_set_driver_format(fs, GVIR_CONFIG_DOMAIN_DISK_FORMAT_QCOW2); gvir_config_domain_filesys_set_source(fs, "/path/to/source"); gvir_config_domain_filesys_set_target(fs, "/path/to/target1"); gvir_config_domain_filesys_set_readonly(fs, TRUE); gvir_config_domain_add_device(domain, GVIR_CONFIG_DOMAIN_DEVICE(fs)); g_object_unref(fs); /* Add a RAM fs */ fs = gvir_config_domain_filesys_new(); gvir_config_domain_filesys_set_type(fs, GVIR_CONFIG_DOMAIN_FILESYS_RAM); gvir_config_domain_filesys_set_access_type(fs, GVIR_CONFIG_DOMAIN_FILESYS_ACCESS_PASSTHROUGH); gvir_config_domain_filesys_set_driver_type(fs, GVIR_CONFIG_DOMAIN_FILESYS_DRIVER_PATH); gvir_config_domain_filesys_set_ram_usage(fs, 1234); gvir_config_domain_filesys_set_target(fs, "/path/to/target2"); gvir_config_domain_add_device(domain, GVIR_CONFIG_DOMAIN_DEVICE(fs)); g_object_unref(fs); check_xml(domain, "gconfig-domain-device-filesys.xml"); g_object_unref(G_OBJECT(domain)); } static void test_domain_device_network(void) { GVirConfigDomain *domain; GVirConfigDomainInterface *interface; domain = gvir_config_domain_new(); interface = GVIR_CONFIG_DOMAIN_INTERFACE(gvir_config_domain_interface_network_new()); gvir_config_domain_interface_network_set_source(GVIR_CONFIG_DOMAIN_INTERFACE_NETWORK(interface), "default"); gvir_config_domain_add_device(domain, GVIR_CONFIG_DOMAIN_DEVICE(interface)); g_object_unref(G_OBJECT(interface)); interface = GVIR_CONFIG_DOMAIN_INTERFACE(gvir_config_domain_interface_user_new()); gvir_config_domain_interface_set_ifname(interface, "eth0"); gvir_config_domain_interface_set_link_state(interface, GVIR_CONFIG_DOMAIN_INTERFACE_LINK_STATE_UP); gvir_config_domain_interface_set_mac(interface, "00:11:22:33:44:55"); gvir_config_domain_interface_set_model(interface, "foo"); gvir_config_domain_add_device(domain, GVIR_CONFIG_DOMAIN_DEVICE(interface)); g_object_unref(G_OBJECT(interface)); check_xml(domain, "gconfig-domain-device-network.xml"); g_object_unref(G_OBJECT(domain)); } static void test_domain_device_input(void) { GVirConfigDomain *domain; GVirConfigDomainInput *input; GList *inputs; domain = gvir_config_domain_new(); input = gvir_config_domain_input_new(); gvir_config_domain_input_set_device_type(input, GVIR_CONFIG_DOMAIN_INPUT_DEVICE_TABLET); gvir_config_domain_input_set_bus(input, GVIR_CONFIG_DOMAIN_INPUT_BUS_USB); gvir_config_domain_add_device(domain, GVIR_CONFIG_DOMAIN_DEVICE(input)); g_object_unref(G_OBJECT(input)); check_xml(domain, "gconfig-domain-device-input.xml"); inputs = get_devices_by_type(domain, GVIR_CONFIG_TYPE_DOMAIN_INPUT); g_assert_cmpint(g_list_length(inputs), ==, 1); g_assert(GVIR_CONFIG_IS_DOMAIN_INPUT(inputs->data)); input = GVIR_CONFIG_DOMAIN_INPUT(inputs->data); g_assert_cmpint(gvir_config_domain_input_get_device_type(input), ==, GVIR_CONFIG_DOMAIN_INPUT_DEVICE_TABLET); g_assert_cmpint(gvir_config_domain_input_get_bus(input), ==, GVIR_CONFIG_DOMAIN_INPUT_BUS_USB); g_list_free_full(inputs, g_object_unref); g_object_unref(G_OBJECT(domain)); } static void test_domain_device_graphics(void) { GVirConfigDomain *domain; GVirConfigDomainGraphicsSpice *graphics; domain = gvir_config_domain_new(); graphics = gvir_config_domain_graphics_spice_new(); gvir_config_domain_graphics_spice_set_port(graphics, 1234); g_assert_cmpint(gvir_config_domain_graphics_spice_get_port(graphics), ==, 1234); /* SPICE image compression configuration */ gvir_config_domain_graphics_spice_set_image_compression (graphics, GVIR_CONFIG_DOMAIN_GRAPHICS_SPICE_IMAGE_COMPRESSION_AUTO_LZ); g_assert_cmpint(gvir_config_domain_graphics_spice_get_image_compression(graphics), ==, GVIR_CONFIG_DOMAIN_GRAPHICS_SPICE_IMAGE_COMPRESSION_AUTO_LZ); gvir_config_domain_add_device(domain, GVIR_CONFIG_DOMAIN_DEVICE(graphics)); g_object_unref(G_OBJECT(graphics)); check_xml(domain, "gconfig-domain-device-graphics.xml"); g_object_unref(G_OBJECT(domain)); } static void test_domain_device_video(void) { GVirConfigDomain *domain; domain = gvir_config_domain_new(); /* video node */ GVirConfigDomainVideo *video; video = gvir_config_domain_video_new(); gvir_config_domain_video_set_model(video, GVIR_CONFIG_DOMAIN_VIDEO_MODEL_QXL); gvir_config_domain_video_set_heads(video, 4); gvir_config_domain_video_set_vram(video, 256*1024); gvir_config_domain_add_device(domain, GVIR_CONFIG_DOMAIN_DEVICE(video)); g_object_unref(G_OBJECT(video)); check_xml(domain, "gconfig-domain-device-video.xml"); g_object_unref(G_OBJECT(domain)); } static void test_domain_device_sound(void) { GVirConfigDomain *domain; domain = gvir_config_domain_new(); /* sound node */ GVirConfigDomainSound *sound; sound = gvir_config_domain_sound_new(); gvir_config_domain_sound_set_model(sound, GVIR_CONFIG_DOMAIN_SOUND_MODEL_ES1370); gvir_config_domain_add_device(domain, GVIR_CONFIG_DOMAIN_DEVICE(sound)); g_object_unref(G_OBJECT(sound)); check_xml(domain, "gconfig-domain-device-sound.xml"); g_object_unref(G_OBJECT(domain)); } static void test_domain_device_console(void) { GVirConfigDomain *domain; domain = gvir_config_domain_new(); /* console node */ GVirConfigDomainConsole *console; GVirConfigDomainChardevSourcePty *pty; console = gvir_config_domain_console_new(); pty = gvir_config_domain_chardev_source_pty_new(); gvir_config_domain_chardev_set_source(GVIR_CONFIG_DOMAIN_CHARDEV(console), GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE(pty)); g_object_unref(G_OBJECT(pty)); gvir_config_domain_add_device(domain, GVIR_CONFIG_DOMAIN_DEVICE(console)); g_object_unref(G_OBJECT(console)); check_xml(domain, "gconfig-domain-device-console.xml"); g_object_unref(G_OBJECT(domain)); } static void test_domain_device_channel(void) { GVirConfigDomain *domain; domain = gvir_config_domain_new(); /* spice agent channel */ GVirConfigDomainChannel *channel; GVirConfigDomainChardevSourceSpiceVmc *spicevmc; GVirConfigDomainChardevSourceSpicePort *spiceport; GVirConfigDomainChardevSourceUnix *unix_source; channel = gvir_config_domain_channel_new(); gvir_config_domain_channel_set_target_type(channel, GVIR_CONFIG_DOMAIN_CHANNEL_TARGET_VIRTIO); spicevmc = gvir_config_domain_chardev_source_spicevmc_new(); gvir_config_domain_chardev_set_source(GVIR_CONFIG_DOMAIN_CHARDEV(channel), GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE(spicevmc)); g_object_unref(G_OBJECT(spicevmc)); gvir_config_domain_add_device(domain, GVIR_CONFIG_DOMAIN_DEVICE(channel)); g_object_unref(G_OBJECT(channel)); channel = gvir_config_domain_channel_new(); gvir_config_domain_channel_set_target_type(channel, GVIR_CONFIG_DOMAIN_CHANNEL_TARGET_VIRTIO); gvir_config_domain_channel_set_target_name(channel, "org.spice-space.webdav.0"); spiceport = gvir_config_domain_chardev_source_spiceport_new(); gvir_config_domain_chardev_source_spiceport_set_channel(spiceport, "org.spice-space.webdav.0"); gvir_config_domain_chardev_set_source(GVIR_CONFIG_DOMAIN_CHARDEV(channel), GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE(spiceport)); g_object_unref(G_OBJECT(spiceport)); gvir_config_domain_add_device(domain, GVIR_CONFIG_DOMAIN_DEVICE(channel)); g_object_unref(G_OBJECT(channel)); channel = gvir_config_domain_channel_new(); gvir_config_domain_channel_set_target_type(channel, GVIR_CONFIG_DOMAIN_CHANNEL_TARGET_VIRTIO); gvir_config_domain_channel_set_target_name(channel, "org.qemu.guest_agent.0"); unix_source = gvir_config_domain_chardev_source_unix_new(); gvir_config_domain_chardev_set_source(GVIR_CONFIG_DOMAIN_CHARDEV(channel), GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE(unix_source)); g_object_unref(G_OBJECT(unix_source)); gvir_config_domain_add_device(domain, GVIR_CONFIG_DOMAIN_DEVICE(channel)); g_object_unref(G_OBJECT(channel)); check_xml(domain, "gconfig-domain-device-channel.xml"); g_object_unref(G_OBJECT(domain)); } static GVirConfigDomainControllerUsb * domain_device_usb_redir_create_usb_controller(GVirConfigDomainControllerUsbModel model, guint indx, GVirConfigDomainControllerUsb *master, guint start_port, guint domain, guint bus, guint slot, guint function, gboolean multifunction) { GVirConfigDomainControllerUsb *controller; GVirConfigDomainAddressPci *address; controller = gvir_config_domain_controller_usb_new(); gvir_config_domain_controller_usb_set_model(controller, model); gvir_config_domain_controller_set_index(GVIR_CONFIG_DOMAIN_CONTROLLER(controller), indx); if (master) gvir_config_domain_controller_usb_set_master(controller, master, start_port); address = gvir_config_domain_address_pci_new(); gvir_config_domain_address_pci_set_domain(address, domain); gvir_config_domain_address_pci_set_bus(address, bus); gvir_config_domain_address_pci_set_slot(address, slot); gvir_config_domain_address_pci_set_function(address, function); if (multifunction) gvir_config_domain_address_pci_set_multifunction(address, multifunction); gvir_config_domain_controller_set_address(GVIR_CONFIG_DOMAIN_CONTROLLER(controller), GVIR_CONFIG_DOMAIN_ADDRESS(address)); g_object_unref(G_OBJECT(address)); return controller; } static GVirConfigDomainRedirdev * domain_device_usb_redir_create_redirdev(guint bus, guint port) { GVirConfigDomainRedirdev *redirdev; GVirConfigDomainAddressUsb *address; GVirConfigDomainChardevSourceSpiceVmc *spicevmc; gchar *port_str; redirdev = gvir_config_domain_redirdev_new(); gvir_config_domain_redirdev_set_bus(redirdev, GVIR_CONFIG_DOMAIN_REDIRDEV_BUS_USB); spicevmc = gvir_config_domain_chardev_source_spicevmc_new(); gvir_config_domain_chardev_set_source(GVIR_CONFIG_DOMAIN_CHARDEV(redirdev), GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE(spicevmc)); g_object_unref(G_OBJECT(spicevmc)); address = gvir_config_domain_address_usb_new(); gvir_config_domain_address_usb_set_bus(address, bus); port_str = g_strdup_printf("%d", port); gvir_config_domain_address_usb_set_port(address, port_str); g_free(port_str); gvir_config_domain_redirdev_set_address(redirdev, GVIR_CONFIG_DOMAIN_ADDRESS(address)); g_object_unref(G_OBJECT(address)); return redirdev; } static void test_domain_device_usb_redir(void) { GVirConfigDomain *domain; domain = gvir_config_domain_new(); /* spice usb redirection */ GVirConfigDomainControllerUsb *ehci; GVirConfigDomainControllerUsb *uhci1; GVirConfigDomainControllerUsb *uhci2; GVirConfigDomainControllerUsb *uhci3; GVirConfigDomainRedirdev *redirdev; ehci = domain_device_usb_redir_create_usb_controller(GVIR_CONFIG_DOMAIN_CONTROLLER_USB_MODEL_ICH9_EHCI1, 1, NULL, 0, 0, 0, 8, 7, FALSE); gvir_config_domain_add_device(domain, GVIR_CONFIG_DOMAIN_DEVICE(ehci)); uhci1 = domain_device_usb_redir_create_usb_controller(GVIR_CONFIG_DOMAIN_CONTROLLER_USB_MODEL_ICH9_UHCI1, 7, ehci, 0, 0, 0, 8, 0, TRUE); gvir_config_domain_add_device(domain, GVIR_CONFIG_DOMAIN_DEVICE(uhci1)); uhci2 = domain_device_usb_redir_create_usb_controller(GVIR_CONFIG_DOMAIN_CONTROLLER_USB_MODEL_ICH9_UHCI2, 7, ehci, 2, 0, 0, 8, 1, FALSE); gvir_config_domain_add_device(domain, GVIR_CONFIG_DOMAIN_DEVICE(uhci2)); uhci3 = domain_device_usb_redir_create_usb_controller(GVIR_CONFIG_DOMAIN_CONTROLLER_USB_MODEL_ICH9_UHCI3, 7, ehci, 4, 0, 0, 8, 2, FALSE); g_assert_cmpint(gvir_config_domain_controller_get_index(GVIR_CONFIG_DOMAIN_CONTROLLER(uhci1)), ==, 1); gvir_config_domain_add_device(domain, GVIR_CONFIG_DOMAIN_DEVICE(uhci3)); g_object_unref(G_OBJECT(uhci1)); g_object_unref(G_OBJECT(uhci2)); g_object_unref(G_OBJECT(uhci3)); g_object_unref(G_OBJECT(ehci)); /* three redirdev channels allows to redirect a maximum of 3 USB * devices at a time. The address which create_redirdev assigns to the * redirdev object is optional */ redirdev = domain_device_usb_redir_create_redirdev(0, 3); gvir_config_domain_add_device(domain, GVIR_CONFIG_DOMAIN_DEVICE(redirdev)); g_object_unref(G_OBJECT(redirdev)); redirdev = domain_device_usb_redir_create_redirdev(0, 4); gvir_config_domain_add_device(domain, GVIR_CONFIG_DOMAIN_DEVICE(redirdev)); g_object_unref(G_OBJECT(redirdev)); redirdev = domain_device_usb_redir_create_redirdev(0, 5); gvir_config_domain_add_device(domain, GVIR_CONFIG_DOMAIN_DEVICE(redirdev)); g_object_unref(G_OBJECT(redirdev)); check_xml(domain, "gconfig-domain-device-usbredir.xml"); g_object_unref(G_OBJECT(domain)); } static void test_domain_device_pci_hostdev(void) { GVirConfigDomain *domain; GVirConfigDomainAddressPci *address; GVirConfigDomainHostdevPci *hostdev; domain = gvir_config_domain_new(); hostdev = gvir_config_domain_hostdev_pci_new(); gvir_config_domain_hostdev_set_boot_order(GVIR_CONFIG_DOMAIN_HOSTDEV(hostdev), 1); g_assert_cmpint(gvir_config_domain_hostdev_get_boot_order(GVIR_CONFIG_DOMAIN_HOSTDEV(hostdev)), ==, 1); gvir_config_domain_hostdev_pci_set_managed(hostdev, TRUE); g_assert(gvir_config_domain_hostdev_pci_get_managed(hostdev) == TRUE); gvir_config_domain_hostdev_pci_set_rom_bar(hostdev, TRUE); gvir_config_domain_hostdev_pci_set_rom_file(hostdev, "/etc/fake/boot.bin"); g_assert_cmpstr(gvir_config_domain_hostdev_pci_get_rom_file(hostdev), ==, "/etc/fake/boot.bin"); g_assert(gvir_config_domain_hostdev_pci_get_rom_bar(hostdev)); address = gvir_config_domain_address_pci_new(); gvir_config_domain_address_pci_set_domain(address, 1); gvir_config_domain_address_pci_set_bus(address, 2); gvir_config_domain_address_pci_set_slot(address, 3); gvir_config_domain_address_pci_set_function(address, 4); gvir_config_domain_hostdev_pci_set_address(hostdev, address); g_object_unref(G_OBJECT(address)); address = gvir_config_domain_hostdev_pci_get_address(hostdev); g_assert(address != NULL); g_assert_cmpint(gvir_config_domain_address_pci_get_domain(address), ==, 1); g_assert_cmpint(gvir_config_domain_address_pci_get_bus(address), ==, 2); g_assert_cmpint(gvir_config_domain_address_pci_get_slot(address), ==, 3); g_assert_cmpint(gvir_config_domain_address_pci_get_function(address), ==, 4); g_object_unref(G_OBJECT(address)); gvir_config_domain_add_device(domain, GVIR_CONFIG_DOMAIN_DEVICE (hostdev)); g_object_unref(G_OBJECT(hostdev)); check_xml(domain, "gconfig-domain-device-pci-hostdev.xml"); g_object_unref(G_OBJECT(domain)); } static void test_domain_device_unknown(void) { GVirConfigDomain *domain; GList *devices; GError *error = NULL; char *xml; xml = load_xml("gconfig-domain-device-unknown.xml"); domain = gvir_config_domain_new_from_xml(xml, &error); g_assert_no_error(error); devices = gvir_config_domain_get_devices(domain); g_assert_nonnull(devices); gvir_config_domain_set_devices(domain, devices); check_xml(domain, "gconfig-domain-device-unknown.xml"); g_list_free_full(devices, g_object_unref); g_object_unref(G_OBJECT(domain)); g_free(xml); } int main(int argc, char **argv) { gvir_config_init(&argc, &argv); g_test_init(&argc, &argv, NULL); g_test_add_func("/libvirt-gconfig/domain", test_domain); g_test_add_func("/libvirt-gconfig/domain-clock", test_domain_clock); g_test_add_func("/libvirt-gconfig/domain-os", test_domain_os); g_test_add_func("/libvirt-gconfig/domain-cpu", test_domain_cpu); g_test_add_func("/libvirt-gconfig/domain-device-disk", test_domain_device_disk); g_test_add_func("/libvirt-gconfig/domain-device-filesystem", test_domain_device_filesystem); g_test_add_func("/libvirt-gconfig/domain-device-network", test_domain_device_network); g_test_add_func("/libvirt-gconfig/domain-device-input", test_domain_device_input); g_test_add_func("/libvirt-gconfig/domain-device-graphics", test_domain_device_graphics); g_test_add_func("/libvirt-gconfig/domain-device-video", test_domain_device_video); g_test_add_func("/libvirt-gconfig/domain-device-sound", test_domain_device_sound); g_test_add_func("/libvirt-gconfig/domain-device-console", test_domain_device_console); g_test_add_func("/libvirt-gconfig/domain-device-channel", test_domain_device_channel); g_test_add_func("/libvirt-gconfig/domain-device-usb-redir", test_domain_device_usb_redir); g_test_add_func("/libvirt-gconfig/domain-device-pci-hostdev", test_domain_device_pci_hostdev); g_test_add_func("/libvirt-gconfig/domain-device-unknown", test_domain_device_unknown); return g_test_run(); } libvirt-glib-1.0.0/tests/Makefile.in0000664000000000000000000014752313007136324014211 00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # GLIB - Library of useful C routines VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @ENABLE_TESTS_TRUE@TESTS = $(am__EXEEXT_1) @ENABLE_TESTS_TRUE@installed_test_PROGRAMS = $(am__EXEEXT_4) @ENABLE_TESTS_TRUE@noinst_PROGRAMS = $(am__EXEEXT_5) @ENABLE_TESTS_TRUE@check_PROGRAMS = $(am__EXEEXT_3) @ENABLE_ALWAYS_BUILD_TESTS_TRUE@@ENABLE_TESTS_TRUE@am__append_1 = $(all_test_ltlibs) @ENABLE_ALWAYS_BUILD_TESTS_TRUE@@ENABLE_TESTS_TRUE@am__append_2 = $(all_test_programs) @ENABLE_ALWAYS_BUILD_TESTS_TRUE@@ENABLE_TESTS_TRUE@am__append_3 = $(all_test_scripts) @ENABLE_ALWAYS_BUILD_TESTS_TRUE@@ENABLE_TESTS_TRUE@am__append_4 = $(all_test_data) @ENABLE_ALWAYS_BUILD_TESTS_FALSE@@ENABLE_TESTS_TRUE@am__append_5 = $(all_test_ltlibs) @ENABLE_ALWAYS_BUILD_TESTS_FALSE@@ENABLE_TESTS_TRUE@am__append_6 = $(all_test_programs) @ENABLE_ALWAYS_BUILD_TESTS_FALSE@@ENABLE_TESTS_TRUE@am__append_7 = $(all_test_scripts) @ENABLE_ALWAYS_BUILD_TESTS_FALSE@@ENABLE_TESTS_TRUE@am__append_8 = $(all_test_data) @ENABLE_INSTALLED_TESTS_TRUE@@ENABLE_TESTS_TRUE@am__append_9 = $(test_programs) $(installed_test_programs) \ @ENABLE_INSTALLED_TESTS_TRUE@@ENABLE_TESTS_TRUE@ $(test_extra_programs) $(installed_test_extra_programs) @ENABLE_INSTALLED_TESTS_TRUE@@ENABLE_TESTS_TRUE@am__append_10 = $(test_scripts) \ @ENABLE_INSTALLED_TESTS_TRUE@@ENABLE_TESTS_TRUE@ $(installed_test_scripts) \ @ENABLE_INSTALLED_TESTS_TRUE@@ENABLE_TESTS_TRUE@ $(test_extra_scripts) \ @ENABLE_INSTALLED_TESTS_TRUE@@ENABLE_TESTS_TRUE@ $(test_installed_extra_scripts) \ @ENABLE_INSTALLED_TESTS_TRUE@@ENABLE_TESTS_TRUE@ $(dist_test_scripts) \ @ENABLE_INSTALLED_TESTS_TRUE@@ENABLE_TESTS_TRUE@ $(dist_test_extra_scripts) \ @ENABLE_INSTALLED_TESTS_TRUE@@ENABLE_TESTS_TRUE@ $(dist_installed_test_scripts) \ @ENABLE_INSTALLED_TESTS_TRUE@@ENABLE_TESTS_TRUE@ $(dist_installed_test_extra_scripts) @ENABLE_INSTALLED_TESTS_TRUE@@ENABLE_TESTS_TRUE@am__append_11 = \ @ENABLE_INSTALLED_TESTS_TRUE@@ENABLE_TESTS_TRUE@ $(test_data) \ @ENABLE_INSTALLED_TESTS_TRUE@@ENABLE_TESTS_TRUE@ $(installed_test_data) \ @ENABLE_INSTALLED_TESTS_TRUE@@ENABLE_TESTS_TRUE@ $(dist_test_data) \ @ENABLE_INSTALLED_TESTS_TRUE@@ENABLE_TESTS_TRUE@ $(dist_installed_test_data) @ENABLE_INSTALLED_TESTS_TRUE@@ENABLE_TESTS_TRUE@am__append_12 = $(test_ltlibraries) $(installed_test_ltlibraries) @ENABLE_INSTALLED_TESTS_TRUE@@ENABLE_TESTS_TRUE@am__append_13 = $(installed_test_meta_DATA) subdir = tests ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/glibtests.m4 \ $(top_srcdir)/m4/intltool.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/manywarnings.m4 \ $(top_srcdir)/m4/virt-compile-warnings.m4 \ $(top_srcdir)/m4/virt-gettext.m4 $(top_srcdir)/m4/warnings.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(installed_testdir)" \ "$(DESTDIR)$(installed_testdir)" \ "$(DESTDIR)$(installed_testdir)" \ "$(DESTDIR)$(installed_test_metadir)" \ "$(DESTDIR)$(installed_testdir)" LTLIBRARIES = $(installed_test_LTLIBRARIES) $(noinst_LTLIBRARIES) @ENABLE_TESTS_TRUE@am__EXEEXT_1 = test-gconfig$(EXEEXT) \ @ENABLE_TESTS_TRUE@ test-events$(EXEEXT) @ENABLE_TESTS_TRUE@am__EXEEXT_2 = $(am__EXEEXT_1) @ENABLE_ALWAYS_BUILD_TESTS_FALSE@@ENABLE_TESTS_TRUE@am__EXEEXT_3 = $(am__EXEEXT_2) @ENABLE_INSTALLED_TESTS_TRUE@@ENABLE_TESTS_TRUE@am__EXEEXT_4 = $(am__EXEEXT_1) @ENABLE_ALWAYS_BUILD_TESTS_TRUE@@ENABLE_TESTS_TRUE@am__EXEEXT_5 = $(am__EXEEXT_2) PROGRAMS = $(installed_test_PROGRAMS) $(noinst_PROGRAMS) test_events_SOURCES = test-events.c test_events_OBJECTS = test-events.$(OBJEXT) test_events_LDADD = $(LDADD) am__DEPENDENCIES_1 = @ENABLE_TESTS_TRUE@test_events_DEPENDENCIES = $(top_builddir)/libvirt-gconfig/libvirt-gconfig-1.0.la \ @ENABLE_TESTS_TRUE@ $(top_builddir)/libvirt-glib/libvirt-glib-1.0.la \ @ENABLE_TESTS_TRUE@ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ @ENABLE_TESTS_TRUE@ $(am__DEPENDENCIES_1) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = test_gconfig_SOURCES = test-gconfig.c test_gconfig_OBJECTS = test-gconfig.$(OBJEXT) test_gconfig_LDADD = $(LDADD) @ENABLE_TESTS_TRUE@test_gconfig_DEPENDENCIES = $(top_builddir)/libvirt-gconfig/libvirt-gconfig-1.0.la \ @ENABLE_TESTS_TRUE@ $(top_builddir)/libvirt-glib/libvirt-glib-1.0.la \ @ENABLE_TESTS_TRUE@ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ @ENABLE_TESTS_TRUE@ $(am__DEPENDENCIES_1) SCRIPTS = $(installed_test_SCRIPTS) $(noinst_SCRIPTS) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = test-events.c test-gconfig.c DIST_SOURCES = test-events.c test-gconfig.c am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac DATA = $(installed_test_meta_DATA) $(nobase_installed_test_DATA) \ $(noinst_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__tty_colors_dummy = \ mgn= red= grn= lgn= blu= brg= std=; \ am__color_tests=no am__tty_colors = { \ $(am__tty_colors_dummy); \ if test "X$(AM_COLOR_TESTS)" = Xno; then \ am__color_tests=no; \ elif test "X$(AM_COLOR_TESTS)" = Xalways; then \ am__color_tests=yes; \ elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \ am__color_tests=yes; \ fi; \ if test $$am__color_tests = yes; then \ red=''; \ grn=''; \ lgn=''; \ blu=''; \ mgn=''; \ brg=''; \ std=''; \ fi; \ } am__recheck_rx = ^[ ]*:recheck:[ ]* am__global_test_result_rx = ^[ ]*:global-test-result:[ ]* am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]* # A command that, given a newline-separated list of test names on the # standard input, print the name of the tests that are to be re-run # upon "make recheck". am__list_recheck_tests = $(AWK) '{ \ recheck = 1; \ while ((rc = (getline line < ($$0 ".trs"))) != 0) \ { \ if (rc < 0) \ { \ if ((getline line2 < ($$0 ".log")) < 0) \ recheck = 0; \ break; \ } \ else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \ { \ recheck = 0; \ break; \ } \ else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \ { \ break; \ } \ }; \ if (recheck) \ print $$0; \ close ($$0 ".trs"); \ close ($$0 ".log"); \ }' # A command that, given a newline-separated list of test names on the # standard input, create the global log from their .trs and .log files. am__create_global_log = $(AWK) ' \ function fatal(msg) \ { \ print "fatal: making $@: " msg | "cat >&2"; \ exit 1; \ } \ function rst_section(header) \ { \ print header; \ len = length(header); \ for (i = 1; i <= len; i = i + 1) \ printf "="; \ printf "\n\n"; \ } \ { \ copy_in_global_log = 1; \ global_test_result = "RUN"; \ while ((rc = (getline line < ($$0 ".trs"))) != 0) \ { \ if (rc < 0) \ fatal("failed to read from " $$0 ".trs"); \ if (line ~ /$(am__global_test_result_rx)/) \ { \ sub("$(am__global_test_result_rx)", "", line); \ sub("[ ]*$$", "", line); \ global_test_result = line; \ } \ else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \ copy_in_global_log = 0; \ }; \ if (copy_in_global_log) \ { \ rst_section(global_test_result ": " $$0); \ while ((rc = (getline line < ($$0 ".log"))) != 0) \ { \ if (rc < 0) \ fatal("failed to read from " $$0 ".log"); \ print line; \ }; \ printf "\n"; \ }; \ close ($$0 ".trs"); \ close ($$0 ".log"); \ }' # Restructured Text title. am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; } # Solaris 10 'make', and several other traditional 'make' implementations, # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it # by disabling -e (using the XSI extension "set +e") if it's set. am__sh_e_setup = case $$- in *e*) set +e;; esac # Default flags passed to test drivers. am__common_driver_flags = \ --color-tests "$$am__color_tests" \ --enable-hard-errors "$$am__enable_hard_errors" \ --expect-failure "$$am__expect_failure" # To be inserted before the command running the test. Creates the # directory for the log if needed. Stores in $dir the directory # containing $f, in $tst the test, in $log the log. Executes the # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and # passes TESTS_ENVIRONMENT. Set up options for the wrapper that # will run the test scripts (or their associated LOG_COMPILER, if # thy have one). am__check_pre = \ $(am__sh_e_setup); \ $(am__vpath_adj_setup) $(am__vpath_adj) \ $(am__tty_colors); \ srcdir=$(srcdir); export srcdir; \ case "$@" in \ */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \ *) am__odir=.;; \ esac; \ test "x$$am__odir" = x"." || test -d "$$am__odir" \ || $(MKDIR_P) "$$am__odir" || exit $$?; \ if test -f "./$$f"; then dir=./; \ elif test -f "$$f"; then dir=; \ else dir="$(srcdir)/"; fi; \ tst=$$dir$$f; log='$@'; \ if test -n '$(DISABLE_HARD_ERRORS)'; then \ am__enable_hard_errors=no; \ else \ am__enable_hard_errors=yes; \ fi; \ case " $(XFAIL_TESTS) " in \ *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \ am__expect_failure=yes;; \ *) \ am__expect_failure=no;; \ esac; \ $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT) # A shell command to get the names of the tests scripts with any registered # extension removed (i.e., equivalently, the names of the test logs, with # the '.log' extension removed). The result is saved in the shell variable # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly, # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)", # since that might cause problem with VPATH rewrites for suffix-less tests. # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'. am__set_TESTS_bases = \ bases='$(TEST_LOGS)'; \ bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ bases=`echo $$bases` RECHECK_LOGS = $(TEST_LOGS) AM_RECURSIVE_TARGETS = check recheck TEST_SUITE_LOG = test-suite.log TEST_EXTENSIONS = @EXEEXT@ .test LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS) am__set_b = \ case '$@' in \ */*) \ case '$*' in \ */*) b='$*';; \ *) b=`echo '$@' | sed 's/\.log$$//'`; \ esac;; \ *) \ b='$*';; \ esac am__test_logs1 = $(TESTS:=.log) am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log) TEST_LOGS = $(am__test_logs2:.test.log=.log) TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/build-aux/test-driver TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \ $(TEST_LOG_FLAGS) am__DIST_COMMON = $(srcdir)/Makefile.in \ $(top_srcdir)/build-aux/depcomp \ $(top_srcdir)/build-aux/glib-tap.mk \ $(top_srcdir)/build-aux/test-driver DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ COVERAGE_CFLAGS = @COVERAGE_CFLAGS@ COVERAGE_LDFLAGS = @COVERAGE_LDFLAGS@ COV_FLAGS = @COV_FLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ CYGWIN_EXTRA_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@ CYGWIN_EXTRA_LIBADD = @CYGWIN_EXTRA_LIBADD@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GIO2_CFLAGS = @GIO2_CFLAGS@ GIO2_LIBS = @GIO2_LIBS@ GLIB2_CFLAGS = @GLIB2_CFLAGS@ GLIB2_LIBS = @GLIB2_LIBS@ GLIB2_REQUIRED = @GLIB2_REQUIRED@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GOBJECT2_CFLAGS = @GOBJECT2_CFLAGS@ GOBJECT2_LIBS = @GOBJECT2_LIBS@ GREP = @GREP@ GTHREAD2_CFLAGS = @GTHREAD2_CFLAGS@ GTHREAD2_LIBS = @GTHREAD2_LIBS@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBVIRT_CFLAGS = @LIBVIRT_CFLAGS@ LIBVIRT_GLIB_MAJOR_VERSION = @LIBVIRT_GLIB_MAJOR_VERSION@ LIBVIRT_GLIB_MICRO_VERSION = @LIBVIRT_GLIB_MICRO_VERSION@ LIBVIRT_GLIB_MINOR_VERSION = @LIBVIRT_GLIB_MINOR_VERSION@ LIBVIRT_GLIB_VERSION = @LIBVIRT_GLIB_VERSION@ LIBVIRT_GLIB_VERSION_INFO = @LIBVIRT_GLIB_VERSION_INFO@ LIBVIRT_GLIB_VERSION_NUMBER = @LIBVIRT_GLIB_VERSION_NUMBER@ LIBVIRT_LIBS = @LIBVIRT_LIBS@ LIBVIRT_REQUIRED = @LIBVIRT_REQUIRED@ LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ LIBXML2_LIBS = @LIBXML2_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MINGW_EXTRA_LDFLAGS = @MINGW_EXTRA_LDFLAGS@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VAPIGEN = @VAPIGEN@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ installed_test_metadir = @installed_test_metadir@ installed_testdir = @installed_testdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ @ENABLE_TESTS_TRUE@TESTS_ENVIRONMENT = \ @ENABLE_TESTS_TRUE@ G_TEST_SRCDIR="$(abs_srcdir)" \ @ENABLE_TESTS_TRUE@ G_TEST_BUILDDIR="$(abs_builddir)" \ @ENABLE_TESTS_TRUE@ G_DEBUG=gc-friendly \ @ENABLE_TESTS_TRUE@ MALLOC_CHECK_=2 \ @ENABLE_TESTS_TRUE@ MALLOC_PERTURB_=$$(($${RANDOM:-256} % 256)) @ENABLE_TESTS_TRUE@LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/tap-driver.sh @ENABLE_TESTS_TRUE@LOG_COMPILER = $(top_srcdir)/tap-test @ENABLE_TESTS_TRUE@NULL = # initialize variables for unconditional += appending @ENABLE_TESTS_TRUE@BUILT_SOURCES = @ENABLE_TESTS_TRUE@BUILT_EXTRA_DIST = @ENABLE_TESTS_TRUE@CLEANFILES = *.log *.trs $(am__append_13) @ENABLE_TESTS_TRUE@DISTCLEANFILES = @ENABLE_TESTS_TRUE@MAINTAINERCLEANFILES = @ENABLE_TESTS_TRUE@EXTRA_DIST = $(all_dist_test_scripts) \ @ENABLE_TESTS_TRUE@ $(all_dist_test_data) xml $(NULL) @ENABLE_TESTS_TRUE@installed_test_LTLIBRARIES = $(am__append_12) @ENABLE_TESTS_TRUE@installed_test_SCRIPTS = $(am__append_10) @ENABLE_TESTS_TRUE@nobase_installed_test_DATA = $(am__append_11) @ENABLE_TESTS_TRUE@noinst_LTLIBRARIES = $(am__append_1) @ENABLE_TESTS_TRUE@noinst_SCRIPTS = $(am__append_3) @ENABLE_TESTS_TRUE@noinst_DATA = $(am__append_4) @ENABLE_TESTS_TRUE@check_LTLIBRARIES = $(am__append_5) @ENABLE_TESTS_TRUE@check_SCRIPTS = $(am__append_7) @ENABLE_TESTS_TRUE@check_DATA = $(am__append_8) # Note: build even the installed-only targets during 'make check' to ensure that they still work. # We need to do a bit of trickery here and manage disting via EXTRA_DIST instead of using dist_ prefixes to # prevent automake from mistreating gmake functions like $(wildcard ...) and $(addprefix ...) as if they were # filenames, including removing duplicate instances of the opening part before the space, eg. '$(addprefix'. @ENABLE_TESTS_TRUE@all_test_programs = $(test_programs) $(uninstalled_test_programs) $(installed_test_programs) \ @ENABLE_TESTS_TRUE@ $(test_extra_programs) $(uninstalled_test_extra_programs) $(installed_test_extra_programs) @ENABLE_TESTS_TRUE@all_test_scripts = $(test_scripts) \ @ENABLE_TESTS_TRUE@ $(uninstalled_test_scripts) \ @ENABLE_TESTS_TRUE@ $(installed_test_scripts) \ @ENABLE_TESTS_TRUE@ $(test_extra_scripts) \ @ENABLE_TESTS_TRUE@ $(uninstalled_test_extra_scripts) \ @ENABLE_TESTS_TRUE@ $(installed_test_extra_scripts) \ @ENABLE_TESTS_TRUE@ $(all_dist_test_scripts) @ENABLE_TESTS_TRUE@all_dist_test_scripts = $(dist_test_scripts) $(dist_uninstalled_test_scripts) $(dist_installed_test_scripts) \ @ENABLE_TESTS_TRUE@ $(dist_test_extra_scripts) $(dist_uninstalled_test_extra_scripts) $(dist_installed_test_extra_scripts) @ENABLE_TESTS_TRUE@all_test_data = $(test_data) \ @ENABLE_TESTS_TRUE@ $(uninstalled_test_data) \ @ENABLE_TESTS_TRUE@ $(installed_test_data) \ @ENABLE_TESTS_TRUE@ $(all_dist_test_data) @ENABLE_TESTS_TRUE@all_dist_test_data = $(dist_test_data) $(dist_uninstalled_test_data) $(dist_installed_test_data) @ENABLE_TESTS_TRUE@all_test_ltlibs = $(test_ltlibraries) $(uninstalled_test_ltlibraries) $(installed_test_ltlibraries) @ENABLE_INSTALLED_TESTS_TRUE@@ENABLE_TESTS_TRUE@installed_testcases = $(test_programs) $(installed_test_programs) \ @ENABLE_INSTALLED_TESTS_TRUE@@ENABLE_TESTS_TRUE@ $(test_scripts) $(installed_test_scripts) \ @ENABLE_INSTALLED_TESTS_TRUE@@ENABLE_TESTS_TRUE@ $(dist_test_scripts) $(dist_installed_test_scripts) @ENABLE_INSTALLED_TESTS_TRUE@@ENABLE_TESTS_TRUE@installed_test_meta_DATA = $(installed_testcases:=.test) @ENABLE_TESTS_TRUE@AM_CFLAGS = \ @ENABLE_TESTS_TRUE@ $(COVERAGE_CFLAGS) \ @ENABLE_TESTS_TRUE@ -I$(top_srcdir) \ @ENABLE_TESTS_TRUE@ $(GOBJECT2_CFLAGS) \ @ENABLE_TESTS_TRUE@ $(LIBVIRT_CFLAGS) \ @ENABLE_TESTS_TRUE@ $(LIBXML2_CFLAGS) \ @ENABLE_TESTS_TRUE@ $(WARN_CFLAGS) @ENABLE_TESTS_TRUE@LDADD = \ @ENABLE_TESTS_TRUE@ $(top_builddir)/libvirt-gconfig/libvirt-gconfig-1.0.la \ @ENABLE_TESTS_TRUE@ $(top_builddir)/libvirt-glib/libvirt-glib-1.0.la \ @ENABLE_TESTS_TRUE@ $(LIBVIRT_LIBS) \ @ENABLE_TESTS_TRUE@ $(GLIB2_LIBS) \ @ENABLE_TESTS_TRUE@ $(GOBJECT2_LIBS) @ENABLE_TESTS_TRUE@test_programs = test-gconfig test-events all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: .SUFFIXES: .c .lo .log .o .obj .test .test$(EXEEXT) .trs $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/build-aux/glib-tap.mk $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu tests/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_srcdir)/build-aux/glib-tap.mk $(am__empty): $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-checkLTLIBRARIES: -test -z "$(check_LTLIBRARIES)" || rm -f $(check_LTLIBRARIES) @list='$(check_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } install-installed_testLTLIBRARIES: $(installed_test_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(installed_test_LTLIBRARIES)'; test -n "$(installed_testdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(MKDIR_P) '$(DESTDIR)$(installed_testdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(installed_testdir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(installed_testdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(installed_testdir)"; \ } uninstall-installed_testLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(installed_test_LTLIBRARIES)'; test -n "$(installed_testdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(installed_testdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(installed_testdir)/$$f"; \ done clean-installed_testLTLIBRARIES: -test -z "$(installed_test_LTLIBRARIES)" || rm -f $(installed_test_LTLIBRARIES) @list='$(installed_test_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } clean-checkPROGRAMS: @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list install-installed_testPROGRAMS: $(installed_test_PROGRAMS) @$(NORMAL_INSTALL) @list='$(installed_test_PROGRAMS)'; test -n "$(installed_testdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(installed_testdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(installed_testdir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ || test -f $$p1 \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(installed_testdir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(installed_testdir)$$dir" || exit $$?; \ } \ ; done uninstall-installed_testPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(installed_test_PROGRAMS)'; test -n "$(installed_testdir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' \ `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(installed_testdir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(installed_testdir)" && rm -f $$files clean-installed_testPROGRAMS: @list='$(installed_test_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list test-events$(EXEEXT): $(test_events_OBJECTS) $(test_events_DEPENDENCIES) $(EXTRA_test_events_DEPENDENCIES) @rm -f test-events$(EXEEXT) $(AM_V_CCLD)$(LINK) $(test_events_OBJECTS) $(test_events_LDADD) $(LIBS) test-gconfig$(EXEEXT): $(test_gconfig_OBJECTS) $(test_gconfig_DEPENDENCIES) $(EXTRA_test_gconfig_DEPENDENCIES) @rm -f test-gconfig$(EXEEXT) $(AM_V_CCLD)$(LINK) $(test_gconfig_OBJECTS) $(test_gconfig_LDADD) $(LIBS) install-installed_testSCRIPTS: $(installed_test_SCRIPTS) @$(NORMAL_INSTALL) @list='$(installed_test_SCRIPTS)'; test -n "$(installed_testdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(installed_testdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(installed_testdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(installed_testdir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(installed_testdir)$$dir" || exit $$?; \ } \ ; done uninstall-installed_testSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(installed_test_SCRIPTS)'; test -n "$(installed_testdir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ dir='$(DESTDIR)$(installed_testdir)'; $(am__uninstall_files_from_dir) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-events.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-gconfig.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-installed_test_metaDATA: $(installed_test_meta_DATA) @$(NORMAL_INSTALL) @list='$(installed_test_meta_DATA)'; test -n "$(installed_test_metadir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(installed_test_metadir)'"; \ $(MKDIR_P) "$(DESTDIR)$(installed_test_metadir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(installed_test_metadir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(installed_test_metadir)" || exit $$?; \ done uninstall-installed_test_metaDATA: @$(NORMAL_UNINSTALL) @list='$(installed_test_meta_DATA)'; test -n "$(installed_test_metadir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(installed_test_metadir)'; $(am__uninstall_files_from_dir) install-nobase_installed_testDATA: $(nobase_installed_test_DATA) @$(NORMAL_INSTALL) @list='$(nobase_installed_test_DATA)'; test -n "$(installed_testdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(installed_testdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(installed_testdir)" || exit 1; \ fi; \ $(am__nobase_list) | while read dir files; do \ xfiles=; for file in $$files; do \ if test -f "$$file"; then xfiles="$$xfiles $$file"; \ else xfiles="$$xfiles $(srcdir)/$$file"; fi; done; \ test -z "$$xfiles" || { \ test "x$$dir" = x. || { \ echo " $(MKDIR_P) '$(DESTDIR)$(installed_testdir)/$$dir'"; \ $(MKDIR_P) "$(DESTDIR)$(installed_testdir)/$$dir"; }; \ echo " $(INSTALL_DATA) $$xfiles '$(DESTDIR)$(installed_testdir)/$$dir'"; \ $(INSTALL_DATA) $$xfiles "$(DESTDIR)$(installed_testdir)/$$dir" || exit $$?; }; \ done uninstall-nobase_installed_testDATA: @$(NORMAL_UNINSTALL) @list='$(nobase_installed_test_DATA)'; test -n "$(installed_testdir)" || list=; \ $(am__nobase_strip_setup); files=`$(am__nobase_strip)`; \ dir='$(DESTDIR)$(installed_testdir)'; $(am__uninstall_files_from_dir) ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags # Recover from deleted '.trs' file; this should ensure that # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells # to avoid problems with "make -n". .log.trs: rm -f $< $@ $(MAKE) $(AM_MAKEFLAGS) $< # Leading 'am--fnord' is there to ensure the list of targets does not # expand to empty, as could happen e.g. with make check TESTS=''. am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck) am--force-recheck: @: $(TEST_SUITE_LOG): $(TEST_LOGS) @$(am__set_TESTS_bases); \ am__f_ok () { test -f "$$1" && test -r "$$1"; }; \ redo_bases=`for i in $$bases; do \ am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \ done`; \ if test -n "$$redo_bases"; then \ redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \ redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \ if $(am__make_dryrun); then :; else \ rm -f $$redo_logs && rm -f $$redo_results || exit 1; \ fi; \ fi; \ if test -n "$$am__remaking_logs"; then \ echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \ "recursion detected" >&2; \ elif test -n "$$redo_logs"; then \ am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \ fi; \ if $(am__make_dryrun); then :; else \ st=0; \ errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \ for i in $$redo_bases; do \ test -f $$i.trs && test -r $$i.trs \ || { echo "$$errmsg $$i.trs" >&2; st=1; }; \ test -f $$i.log && test -r $$i.log \ || { echo "$$errmsg $$i.log" >&2; st=1; }; \ done; \ test $$st -eq 0 || exit 1; \ fi @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \ ws='[ ]'; \ results=`for b in $$bases; do echo $$b.trs; done`; \ test -n "$$results" || results=/dev/null; \ all=` grep "^$$ws*:test-result:" $$results | wc -l`; \ pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \ fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \ skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \ xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \ xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \ error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \ if test `expr $$fail + $$xpass + $$error` -eq 0; then \ success=true; \ else \ success=false; \ fi; \ br='==================='; br=$$br$$br$$br$$br; \ result_count () \ { \ if test x"$$1" = x"--maybe-color"; then \ maybe_colorize=yes; \ elif test x"$$1" = x"--no-color"; then \ maybe_colorize=no; \ else \ echo "$@: invalid 'result_count' usage" >&2; exit 4; \ fi; \ shift; \ desc=$$1 count=$$2; \ if test $$maybe_colorize = yes && test $$count -gt 0; then \ color_start=$$3 color_end=$$std; \ else \ color_start= color_end=; \ fi; \ echo "$${color_start}# $$desc $$count$${color_end}"; \ }; \ create_testsuite_report () \ { \ result_count $$1 "TOTAL:" $$all "$$brg"; \ result_count $$1 "PASS: " $$pass "$$grn"; \ result_count $$1 "SKIP: " $$skip "$$blu"; \ result_count $$1 "XFAIL:" $$xfail "$$lgn"; \ result_count $$1 "FAIL: " $$fail "$$red"; \ result_count $$1 "XPASS:" $$xpass "$$red"; \ result_count $$1 "ERROR:" $$error "$$mgn"; \ }; \ { \ echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \ $(am__rst_title); \ create_testsuite_report --no-color; \ echo; \ echo ".. contents:: :depth: 2"; \ echo; \ for b in $$bases; do echo $$b; done \ | $(am__create_global_log); \ } >$(TEST_SUITE_LOG).tmp || exit 1; \ mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \ if $$success; then \ col="$$grn"; \ else \ col="$$red"; \ test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ fi; \ echo "$${col}$$br$${std}"; \ echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ echo "$${col}$$br$${std}"; \ create_testsuite_report --maybe-color; \ echo "$$col$$br$$std"; \ if $$success; then :; else \ echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \ if test -n "$(PACKAGE_BUGREPORT)"; then \ echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \ fi; \ echo "$$col$$br$$std"; \ fi; \ $$success || exit 1 check-TESTS: @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) @set +e; $(am__set_TESTS_bases); \ log_list=`for i in $$bases; do echo $$i.log; done`; \ trs_list=`for i in $$bases; do echo $$i.trs; done`; \ log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \ $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \ exit $$?; recheck: all $(check_LTLIBRARIES) $(check_PROGRAMS) $(check_SCRIPTS) $(check_DATA) @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) @set +e; $(am__set_TESTS_bases); \ bases=`for i in $$bases; do echo $$i; done \ | $(am__list_recheck_tests)` || exit 1; \ log_list=`for i in $$bases; do echo $$i.log; done`; \ log_list=`echo $$log_list`; \ $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \ am__force_recheck=am--force-recheck \ TEST_LOGS="$$log_list"; \ exit $$? test-gconfig.log: test-gconfig$(EXEEXT) @p='test-gconfig$(EXEEXT)'; \ b='test-gconfig'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) test-events.log: test-events$(EXEEXT) @p='test-events$(EXEEXT)'; \ b='test-events'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) .test.log: @p='$<'; \ $(am__set_b); \ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) @am__EXEEXT_TRUE@.test$(EXEEXT).log: @am__EXEEXT_TRUE@ @p='$<'; \ @am__EXEEXT_TRUE@ $(am__set_b); \ @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \ @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am $(MAKE) $(AM_MAKEFLAGS) $(check_LTLIBRARIES) $(check_PROGRAMS) \ $(check_SCRIPTS) $(check_DATA) $(MAKE) $(AM_MAKEFLAGS) check-TESTS check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-am all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(SCRIPTS) $(DATA) installdirs: for dir in "$(DESTDIR)$(installed_testdir)" "$(DESTDIR)$(installed_testdir)" "$(DESTDIR)$(installed_testdir)" "$(DESTDIR)$(installed_test_metadir)" "$(DESTDIR)$(installed_testdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS) -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs) -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-checkLTLIBRARIES clean-checkPROGRAMS clean-generic \ clean-installed_testLTLIBRARIES clean-installed_testPROGRAMS \ clean-libtool clean-noinstLTLIBRARIES clean-noinstPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-installed_testLTLIBRARIES \ install-installed_testPROGRAMS install-installed_testSCRIPTS \ install-installed_test_metaDATA \ install-nobase_installed_testDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-installed_testLTLIBRARIES \ uninstall-installed_testPROGRAMS \ uninstall-installed_testSCRIPTS \ uninstall-installed_test_metaDATA \ uninstall-nobase_installed_testDATA .MAKE: all check check-am install install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-TESTS check-am clean \ clean-checkLTLIBRARIES clean-checkPROGRAMS clean-generic \ clean-installed_testLTLIBRARIES clean-installed_testPROGRAMS \ clean-libtool clean-noinstLTLIBRARIES clean-noinstPROGRAMS \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-installed_testLTLIBRARIES \ install-installed_testPROGRAMS install-installed_testSCRIPTS \ install-installed_test_metaDATA install-man \ install-nobase_installed_testDATA install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ recheck tags tags-am uninstall uninstall-am \ uninstall-installed_testLTLIBRARIES \ uninstall-installed_testPROGRAMS \ uninstall-installed_testSCRIPTS \ uninstall-installed_test_metaDATA \ uninstall-nobase_installed_testDATA .PRECIOUS: Makefile @ENABLE_INSTALLED_TESTS_TRUE@@ENABLE_TESTS_TRUE@%.test: %$(EXEEXT) Makefile @ENABLE_INSTALLED_TESTS_TRUE@@ENABLE_TESTS_TRUE@ $(AM_V_GEN) (echo '[Test]' > $@.tmp; \ @ENABLE_INSTALLED_TESTS_TRUE@@ENABLE_TESTS_TRUE@ echo 'Type=session' >> $@.tmp; \ @ENABLE_INSTALLED_TESTS_TRUE@@ENABLE_TESTS_TRUE@ echo 'Exec=$(installed_testdir)/$(notdir $<) --tap' >> $@.tmp; \ @ENABLE_INSTALLED_TESTS_TRUE@@ENABLE_TESTS_TRUE@ echo 'Output=TAP' >> $@.tmp; \ @ENABLE_INSTALLED_TESTS_TRUE@@ENABLE_TESTS_TRUE@ mv $@.tmp $@) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libvirt-glib-1.0.0/tests/xml/0000775000000000000000000000000013007065555013017 500000000000000libvirt-glib-1.0.0/tests/xml/gconfig-domain-cpu.xml0000664000000000000000000000027113004340477017123 00000000000000 3 libvirt-glib-1.0.0/tests/xml/gconfig-domain-device-unknown.xml0000664000000000000000000000006113007065555021271 00000000000000 libvirt-glib-1.0.0/tests/xml/gconfig-domain-device-sound.xml0000664000000000000000000000011013004340477020711 00000000000000 libvirt-glib-1.0.0/tests/xml/gconfig-domain.xml0000664000000000000000000000045113004340477016336 00000000000000 foo 1234 3 restart libvirt-glib-1.0.0/tests/xml/gconfig-domain-device-filesys.xml0000664000000000000000000000065613004340477021256 00000000000000 libvirt-glib-1.0.0/tests/xml/gconfig-domain-device-usbredir.xml0000664000000000000000000000211313004340477021405 00000000000000
libvirt-glib-1.0.0/tests/xml/gconfig-domain-device-disk.xml0000664000000000000000000000040713004340477020524 00000000000000 libvirt-glib-1.0.0/tests/xml/gconfig-domain-device-graphics.xml0000664000000000000000000000021113004340477021363 00000000000000 libvirt-glib-1.0.0/tests/xml/gconfig-domain-device-network.xml0000664000000000000000000000044213004340477021262 00000000000000 libvirt-glib-1.0.0/tests/xml/gconfig-domain-device-video.xml0000664000000000000000000000016713004340477020703 00000000000000 libvirt-glib-1.0.0/tests/xml/gconfig-domain-device-channel.xml0000664000000000000000000000057313004340477021206 00000000000000 libvirt-glib-1.0.0/tests/xml/gconfig-domain-device-console.xml0000664000000000000000000000010613004340477021230 00000000000000 libvirt-glib-1.0.0/tests/xml/gconfig-domain-device-pci-hostdev.xml0000664000000000000000000000044313004340477022017 00000000000000
libvirt-glib-1.0.0/tests/xml/gconfig-domain-clock.xml0000664000000000000000000000031013004340477017421 00000000000000 libvirt-glib-1.0.0/tests/xml/gconfig-domain-device-input.xml0000664000000000000000000000012113004340477020722 00000000000000 libvirt-glib-1.0.0/tests/xml/gconfig-domain-os.xml0000664000000000000000000000016713004340477016761 00000000000000 hvm libvirt-glib-1.0.0/libvirt-gconfig/0000775000000000000000000000000013007136424014134 500000000000000libvirt-glib-1.0.0/libvirt-gconfig/Makefile.am0000664000000000000000000002521613004340477016120 00000000000000SUBDIRS = . tests EXTRA_DIST = \ libvirt-gconfig.sym \ libvirt-gconfig-enum-types.h.template \ libvirt-gconfig-enum-types.c.template lib_LTLIBRARIES = libvirt-gconfig-1.0.la GCONFIG_HEADER_FILES = \ libvirt-gconfig.h \ libvirt-gconfig-main.h \ libvirt-gconfig-object.h \ libvirt-gconfig-capabilities.h \ libvirt-gconfig-capabilities-host.h \ libvirt-gconfig-capabilities-cpu.h \ libvirt-gconfig-capabilities-cpu-feature.h \ libvirt-gconfig-capabilities-cpu-model.h \ libvirt-gconfig-capabilities-cpu-topology.h \ libvirt-gconfig-capabilities-guest.h \ libvirt-gconfig-capabilities-guest-arch.h \ libvirt-gconfig-capabilities-guest-domain.h \ libvirt-gconfig-capabilities-guest-feature.h \ libvirt-gconfig-capabilities-host-secmodel.h \ libvirt-gconfig-domain.h \ libvirt-gconfig-domain-address.h \ libvirt-gconfig-domain-address-pci.h \ libvirt-gconfig-domain-address-usb.h \ libvirt-gconfig-domain-channel.h \ libvirt-gconfig-domain-chardev.h \ libvirt-gconfig-domain-chardev-source.h \ libvirt-gconfig-domain-chardev-source-pty.h \ libvirt-gconfig-domain-chardev-source-spiceport.h \ libvirt-gconfig-domain-chardev-source-spicevmc.h \ libvirt-gconfig-domain-chardev-source-unix.h \ libvirt-gconfig-domain-clock.h \ libvirt-gconfig-domain-console.h \ libvirt-gconfig-domain-controller.h \ libvirt-gconfig-domain-controller-usb.h \ libvirt-gconfig-domain-cpu.h \ libvirt-gconfig-domain-cpu-feature.h \ libvirt-gconfig-domain-cpu-model.h \ libvirt-gconfig-domain-device.h \ libvirt-gconfig-domain-disk.h \ libvirt-gconfig-domain-disk-driver.h \ libvirt-gconfig-domain-filesys.h \ libvirt-gconfig-domain-graphics.h \ libvirt-gconfig-domain-graphics-desktop.h \ libvirt-gconfig-domain-graphics-rdp.h \ libvirt-gconfig-domain-graphics-sdl.h \ libvirt-gconfig-domain-graphics-spice.h \ libvirt-gconfig-domain-graphics-vnc.h \ libvirt-gconfig-domain-hostdev.h \ libvirt-gconfig-domain-hostdev-pci.h \ libvirt-gconfig-domain-input.h \ libvirt-gconfig-domain-interface.h \ libvirt-gconfig-domain-interface-bridge.h \ libvirt-gconfig-domain-interface-filterref.h \ libvirt-gconfig-domain-interface-filterref-parameter.h \ libvirt-gconfig-domain-interface-network.h \ libvirt-gconfig-domain-interface-user.h \ libvirt-gconfig-domain-memballoon.h \ libvirt-gconfig-domain-os.h \ libvirt-gconfig-domain-parallel.h \ libvirt-gconfig-domain-power-management.h \ libvirt-gconfig-domain-redirdev.h \ libvirt-gconfig-domain-seclabel.h \ libvirt-gconfig-domain-serial.h \ libvirt-gconfig-domain-smartcard.h \ libvirt-gconfig-domain-smartcard-host.h \ libvirt-gconfig-domain-smartcard-host-certificates.h \ libvirt-gconfig-domain-smartcard-passthrough.h \ libvirt-gconfig-domain-snapshot.h \ libvirt-gconfig-domain-snapshot-disk.h \ libvirt-gconfig-domain-sound.h \ libvirt-gconfig-domain-timer.h \ libvirt-gconfig-domain-timer-hpet.h \ libvirt-gconfig-domain-timer-pit.h \ libvirt-gconfig-domain-timer-rtc.h \ libvirt-gconfig-domain-video.h \ libvirt-gconfig-helpers.h \ libvirt-gconfig-interface.h \ libvirt-gconfig-network.h \ libvirt-gconfig-network-filter.h \ libvirt-gconfig-node-device.h \ libvirt-gconfig-secret.h \ libvirt-gconfig-storage-permissions.h \ libvirt-gconfig-storage-pool.h \ libvirt-gconfig-storage-pool-source.h \ libvirt-gconfig-storage-pool-target.h \ libvirt-gconfig-storage-vol.h \ libvirt-gconfig-storage-vol-backing-store.h \ libvirt-gconfig-storage-vol-target.h noinst_HEADERS = \ libvirt-gconfig-private.h \ libvirt-gconfig-capabilities-cpu-private.h \ libvirt-gconfig-compat.h \ libvirt-gconfig-domain-chardev-source-private.h \ libvirt-gconfig-domain-device-private.h \ libvirt-gconfig-domain-snapshot-private.h \ libvirt-gconfig-helpers-private.h \ libvirt-gconfig-object-private.h \ libvirt-gconfig-xml-doc.h GCONFIG_SOURCE_FILES = \ libvirt-gconfig-object.c \ libvirt-gconfig-main.c \ libvirt-gconfig-capabilities.c \ libvirt-gconfig-capabilities-host.c \ libvirt-gconfig-capabilities-cpu.c \ libvirt-gconfig-capabilities-cpu-feature.c \ libvirt-gconfig-capabilities-cpu-model.c \ libvirt-gconfig-capabilities-cpu-topology.c \ libvirt-gconfig-capabilities-guest.c \ libvirt-gconfig-capabilities-guest-arch.c \ libvirt-gconfig-capabilities-guest-domain.c \ libvirt-gconfig-capabilities-guest-feature.c \ libvirt-gconfig-capabilities-host-secmodel.c \ libvirt-gconfig-domain.c \ libvirt-gconfig-domain-address.c \ libvirt-gconfig-domain-address-pci.c \ libvirt-gconfig-domain-address-usb.c \ libvirt-gconfig-domain-channel.c \ libvirt-gconfig-domain-chardev.c \ libvirt-gconfig-domain-chardev-source.c \ libvirt-gconfig-domain-chardev-source-pty.c \ libvirt-gconfig-domain-chardev-source-spiceport.c \ libvirt-gconfig-domain-chardev-source-spicevmc.c \ libvirt-gconfig-domain-chardev-source-unix.c \ libvirt-gconfig-domain-clock.c \ libvirt-gconfig-domain-console.c \ libvirt-gconfig-domain-controller.c \ libvirt-gconfig-domain-controller-usb.c \ libvirt-gconfig-domain-cpu.c \ libvirt-gconfig-domain-cpu-feature.c \ libvirt-gconfig-domain-cpu-model.c \ libvirt-gconfig-domain-device.c \ libvirt-gconfig-domain-disk.c \ libvirt-gconfig-domain-disk-driver.c \ libvirt-gconfig-domain-filesys.c \ libvirt-gconfig-domain-graphics.c \ libvirt-gconfig-domain-graphics-desktop.c \ libvirt-gconfig-domain-graphics-rdp.c \ libvirt-gconfig-domain-graphics-sdl.c \ libvirt-gconfig-domain-graphics-spice.c \ libvirt-gconfig-domain-graphics-vnc.c \ libvirt-gconfig-domain-hostdev.c \ libvirt-gconfig-domain-hostdev-pci.c \ libvirt-gconfig-domain-input.c \ libvirt-gconfig-domain-interface.c \ libvirt-gconfig-domain-interface-bridge.c \ libvirt-gconfig-domain-interface-filterref.c \ libvirt-gconfig-domain-interface-filterref-parameter.c \ libvirt-gconfig-domain-interface-network.c \ libvirt-gconfig-domain-interface-user.c \ libvirt-gconfig-domain-memballoon.c \ libvirt-gconfig-domain-os.c \ libvirt-gconfig-domain-parallel.c \ libvirt-gconfig-domain-power-management.c \ libvirt-gconfig-domain-redirdev.c \ libvirt-gconfig-domain-seclabel.c \ libvirt-gconfig-domain-serial.c \ libvirt-gconfig-domain-smartcard.c \ libvirt-gconfig-domain-smartcard-host.c \ libvirt-gconfig-domain-smartcard-host-certificates.c \ libvirt-gconfig-domain-smartcard-passthrough.c \ libvirt-gconfig-domain-snapshot.c \ libvirt-gconfig-domain-snapshot-disk.c \ libvirt-gconfig-domain-sound.c \ libvirt-gconfig-domain-timer.c \ libvirt-gconfig-domain-timer-hpet.c \ libvirt-gconfig-domain-timer-pit.c \ libvirt-gconfig-domain-timer-rtc.c \ libvirt-gconfig-domain-video.c \ libvirt-gconfig-helpers.c \ libvirt-gconfig-interface.c \ libvirt-gconfig-network.c \ libvirt-gconfig-network-filter.c \ libvirt-gconfig-node-device.c \ libvirt-gconfig-secret.c \ libvirt-gconfig-storage-permissions.c \ libvirt-gconfig-storage-pool.c \ libvirt-gconfig-storage-pool-source.c \ libvirt-gconfig-storage-pool-target.c \ libvirt-gconfig-storage-vol.c \ libvirt-gconfig-storage-vol-backing-store.c \ libvirt-gconfig-storage-vol-target.c \ libvirt-gconfig-xml-doc.c GCONFIG_GENERATED_FILES = \ libvirt-gconfig-enum-types.c \ libvirt-gconfig-enum-types.h libvirt_gconfig_1_0_ladir = $(includedir)/libvirt-gconfig-1.0/libvirt-gconfig libvirt_gconfig_1_0_la_HEADERS = \ $(GCONFIG_HEADER_FILES) nodist_libvirt_gconfig_1_0_la_HEADERS = \ $(builddir)/libvirt-gconfig-enum-types.h libvirt_gconfig_1_0_la_SOURCES = \ $(libvirt_gconfig_1_0_la_HEADERS) \ $(GCONFIG_SOURCE_FILES) nodist_libvirt_gconfig_1_0_la_SOURCES = \ $(GCONFIG_GENERATED_FILES) libvirt_gconfig_1_0_la_CFLAGS = \ -DG_LOG_DOMAIN="\"Libvirt.GConfig\"" \ -DDATADIR="\"$(datadir)\"" \ -DLIBVIRT_GCONFIG_BUILD \ $(COVERAGE_CFLAGS) \ -I$(top_srcdir) \ -I$(top_builddir) \ $(GOBJECT2_CFLAGS) \ $(LIBXML2_CFLAGS) \ $(WARN_CFLAGS) libvirt_gconfig_1_0_la_LIBADD = \ $(GOBJECT2_LIBS) \ $(LIBXML2_LIBS) \ $(CYGWIN_EXTRA_LIBADD) libvirt_gconfig_1_0_la_DEPENDENCIES = \ libvirt-gconfig.sym libvirt_gconfig_1_0_la_LDFLAGS = \ $(COVERAGE_CFLAGS:-f%=-Wc,f%) \ $(CYGWIN_EXTRA_LDFLAGS) $(MINGW_EXTRA_LDFLAGS) \ -Wl,--version-script=$(srcdir)/libvirt-gconfig.sym \ -version-info $(LIBVIRT_GLIB_VERSION_INFO) BUILT_SOURCES = $(GCONFIG_GENERATED_FILES) CLEANFILES = $(BUILT_SOURCES) libvirt-gconfig-enum-types.h: $(GCONFIG_HEADER_FILES) libvirt-gconfig-enum-types.h.template $(AM_V_GEN) ( $(GLIB_MKENUMS) --template $(srcdir)/libvirt-gconfig-enum-types.h.template $(GCONFIG_HEADER_FILES:%=$(srcdir)/%) ) | \ sed -e "s/G_TYPE_VIR_CONFIG/GVIR_CONFIG_TYPE/" -e "s/g_vir/gvir/" > libvirt-gconfig-enum-types.h libvirt-gconfig-enum-types.c: $(GCONFIG_HEADER_FILES) libvirt-gconfig-enum-types.c.template $(AM_V_GEN) ( $(GLIB_MKENUMS) --template $(srcdir)/libvirt-gconfig-enum-types.c.template $(GCONFIG_HEADER_FILES:%=$(srcdir)/%) ) | \ sed -e "s/G_TYPE_VIR_CONFIG/GVIR_CONFIG_TYPE/" -e "s/g_vir/gvir/" > libvirt-gconfig-enum-types.c # .libs/libvirt-gconfig.so is built by libtool as a side-effect of the Makefile # rule for libosvirt-gconfig.la. However, checking symbols relies on Linux ELF layout if WITH_LINUX check-symfile: libvirt-gconfig.sym libvirt-gconfig-1.0.la $(AM_V_GEN)$(PERL) $(top_srcdir)/build-aux/check-symfile.pl $(srcdir)/libvirt-gconfig.sym \ .libs/libvirt-gconfig-1.0.so else ! WITH_LINUX check-symfile: endif ! WITH_LINUX check-symsorting: $(AM_V_GEN)$(PERL) $(top_srcdir)/build-aux/check-symsorting.pl \ $(srcdir)/libvirt-gconfig.sym check-local: check-symfile check-symsorting -include $(INTROSPECTION_MAKEFILE) INTROSPECTION_GIRS = if HAVE_INTROSPECTION LibvirtGConfig-1.0.gir: libvirt-gconfig-1.0.la LibvirtGConfig_1_0_gir_INCLUDES = GObject-2.0 LibvirtGConfig_1_0_gir_PACKAGES = gobject-2.0 LibvirtGConfig_1_0_gir_EXPORT_PACKAGES = libvirt-gconfig-1.0 LibvirtGConfig_1_0_gir_LIBS = libvirt-gconfig-1.0.la LibvirtGConfig_1_0_gir_FILES = \ $(GCONFIG_SOURCE_FILES) \ $(GCONFIG_HEADER_FILES) \ $(GCONFIG_GENERATED_FILES) \ $(NULL) LibvirtGConfig_1_0_gir_CFLAGS = $(libvirt_gconfig_1_0_la_CFLAGS) LibvirtGConfig_1_0_gir_SCANNERFLAGS = \ --identifier-prefix=GVirConfig \ --symbol-prefix=gvir_config \ --c-include="libvirt-gconfig/libvirt-gconfig.h" \ --warn-all \ $(NULL) INTROSPECTION_GIRS += LibvirtGConfig-1.0.gir girdir = $(datadir)/gir-1.0 gir_DATA = LibvirtGConfig-1.0.gir typelibdir = $(libdir)/girepository-1.0 typelib_DATA = LibvirtGConfig-1.0.typelib CLEANFILES += $(gir_DATA) $(typelib_DATA) endif # HAVE_INTROSPECTION libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-host.h0000664000000000000000000000561413004340477022724 00000000000000/* * libvirt-gconfig-capabilities-host.h: libvirt host capabilities * * Copyright (C) 2010-2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Zeeshan Ali * Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_CAPABILITIES_HOST_H__ #define __LIBVIRT_GCONFIG_CAPABILITIES_HOST_H__ #include "libvirt-gconfig/libvirt-gconfig-capabilities-cpu.h" G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_CAPABILITIES_HOST (gvir_config_capabilities_host_get_type ()) #define GVIR_CONFIG_CAPABILITIES_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_HOST, GVirConfigCapabilitiesHost)) #define GVIR_CONFIG_CAPABILITIES_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_HOST, GVirConfigCapabilitiesHostClass)) #define GVIR_CONFIG_IS_CAPABILITIES_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_HOST)) #define GVIR_CONFIG_IS_CAPABILITIES_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_HOST)) #define GVIR_CONFIG_CAPABILITIES_HOST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_HOST, GVirConfigCapabilitiesHostClass)) typedef struct _GVirConfigCapabilitiesHost GVirConfigCapabilitiesHost; typedef struct _GVirConfigCapabilitiesHostPrivate GVirConfigCapabilitiesHostPrivate; typedef struct _GVirConfigCapabilitiesHostClass GVirConfigCapabilitiesHostClass; struct _GVirConfigCapabilitiesHost { GVirConfigObject parent; GVirConfigCapabilitiesHostPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigCapabilitiesHostClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; GType gvir_config_capabilities_host_get_type(void); const gchar * gvir_config_capabilities_host_get_uuid(GVirConfigCapabilitiesHost *host); GVirConfigCapabilitiesCpu * gvir_config_capabilities_host_get_cpu(GVirConfigCapabilitiesHost *host); GList * gvir_config_capabilities_host_get_secmodels(GVirConfigCapabilitiesHost *host); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_CAPABILITIES_HOST_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-enum-types.c.template0000664000000000000000000000160113004340477023223 00000000000000/*** BEGIN file-header ***/ #include /*** END file-header ***/ /*** BEGIN file-production ***/ /* enumerations from "@filename@" */ /*** END file-production ***/ /*** BEGIN value-header ***/ GType @enum_name@_get_type (void) { static volatile gsize g_define_type_id__volatile = 0; if (g_once_init_enter (&g_define_type_id__volatile)) { static const G@Type@Value values[] = { /*** END value-header ***/ /*** BEGIN value-production ***/ { @VALUENAME@, "@VALUENAME@", "@valuenick@" }, /*** END value-production ***/ /*** BEGIN value-tail ***/ { 0, NULL, NULL } }; GType g_define_type_id = g_@type@_register_static (g_intern_static_string ("@EnumName@"), values); g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); } return g_define_type_id__volatile; } /*** END value-tail ***/ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-object.c0000664000000000000000000007560713007065555020576 00000000000000/* * libvirt-gconfig-object.c: base object for XML configuration * * Copyright (C) 2008 Daniel P. Berrange * Copyright (C) 2010-2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #include #include #include #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_OBJECT_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_OBJECT, GVirConfigObjectPrivate)) struct _GVirConfigObjectPrivate { gchar *schema; GVirConfigXmlDoc *doc; xmlNodePtr node; }; G_DEFINE_TYPE(GVirConfigObject, gvir_config_object, G_TYPE_OBJECT); enum { PROP_0, PROP_SCHEMA, PROP_NODE, PROP_DOC }; static void gvir_xml_generic_error_nop(void *userData G_GNUC_UNUSED, const char *msg G_GNUC_UNUSED, ...) { } static void gvir_xml_structured_error_nop(void *userData G_GNUC_UNUSED, xmlErrorPtr error G_GNUC_UNUSED) { } static void gvir_config_object_get_property(GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) { GVirConfigObject *obj = GVIR_CONFIG_OBJECT(object); GVirConfigObjectPrivate *priv = obj->priv; switch (prop_id) { case PROP_SCHEMA: g_value_set_string(value, priv->schema); break; case PROP_NODE: g_value_set_pointer(value, gvir_config_object_get_xml_node(obj)); break; case PROP_DOC: g_value_set_object(value, obj->priv->doc); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec); } } static void gvir_config_object_set_property(GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) { GVirConfigObject *obj = GVIR_CONFIG_OBJECT(object); GVirConfigObjectPrivate *priv = obj->priv; switch (prop_id) { case PROP_SCHEMA: g_free(priv->schema); priv->schema = g_value_dup_string(value); break; case PROP_NODE: priv->node =g_value_get_pointer(value); break; case PROP_DOC: obj->priv->doc = g_value_dup_object(value); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec); } } static void gvir_config_object_finalize(GObject *object) { GVirConfigObject *gvir_object = GVIR_CONFIG_OBJECT(object); GVirConfigObjectPrivate *priv = gvir_object->priv; g_free(priv->schema); if (priv->doc != NULL) { g_object_unref(G_OBJECT(priv->doc)); priv->node = NULL; /* node belongs to doc, make sure not to free it */ } if (priv->node != NULL) { g_assert(priv->node->doc == NULL); xmlFreeNode(priv->node); } G_OBJECT_CLASS(gvir_config_object_parent_class)->finalize(object); } static void gvir_config_object_class_init(GVirConfigObjectClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); object_class->finalize = gvir_config_object_finalize; object_class->get_property = gvir_config_object_get_property; object_class->set_property = gvir_config_object_set_property; g_object_class_install_property(object_class, PROP_SCHEMA, g_param_spec_string("schema", "Schema", "The doc RNG schema", NULL, G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); g_object_class_install_property(object_class, PROP_NODE, g_param_spec_pointer("node", "XML Node", "The XML node this config object corresponds to", G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); g_object_class_install_property(object_class, PROP_DOC, g_param_spec_object("doc", "XML Doc", "The XML doc this config object corresponds to", GVIR_CONFIG_TYPE_XML_DOC, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); g_type_class_add_private(klass, sizeof(GVirConfigObjectPrivate)); } static void gvir_config_object_init(GVirConfigObject *object) { object->priv = GVIR_CONFIG_OBJECT_GET_PRIVATE(object); } void gvir_config_object_validate(GVirConfigObject *config, GError **err) { GVirConfigObjectPrivate *priv; xmlRelaxNGParserCtxtPtr rngParser = NULL; xmlRelaxNGPtr rng = NULL; xmlRelaxNGValidCtxtPtr rngValid = NULL; g_return_if_fail(GVIR_CONFIG_IS_OBJECT(config)); g_return_if_fail(err == NULL || *err == NULL); priv = config->priv; xmlSetGenericErrorFunc(NULL, gvir_xml_generic_error_nop); xmlSetStructuredErrorFunc(NULL, gvir_xml_structured_error_nop); if (!priv->node) { gvir_config_set_error_literal(err, GVIR_CONFIG_OBJECT_ERROR, 0, _("No XML document associated with this config object")); return; } if (!priv->schema) { gvir_config_set_error_literal(err, GVIR_CONFIG_OBJECT_ERROR, 0, _("No XML schema associated with this config object")); return; } rngParser = xmlRelaxNGNewParserCtxt(priv->schema); if (!rngParser) { gvir_config_set_error(err, GVIR_CONFIG_OBJECT_ERROR, 0, _("Unable to create RNG parser for %s"), priv->schema); return; } rng = xmlRelaxNGParse(rngParser); if (!rng) { gvir_config_set_error(err, GVIR_CONFIG_OBJECT_ERROR, 0, _("Unable to parse RNG %s"), priv->schema); xmlRelaxNGFreeParserCtxt(rngParser); return; } xmlRelaxNGFreeParserCtxt(rngParser); rngValid = xmlRelaxNGNewValidCtxt(rng); if (!rngValid) { gvir_config_set_error(err, GVIR_CONFIG_OBJECT_ERROR, 0, _("Unable to create RNG validation context %s"), priv->schema); xmlRelaxNGFree(rng); return; } if (xmlRelaxNGValidateDoc(rngValid, priv->node->doc) != 0) { gvir_config_set_error_literal(err, GVIR_CONFIG_OBJECT_ERROR, 0, _("Unable to validate doc")); xmlRelaxNGFreeValidCtxt(rngValid); xmlRelaxNGFree(rng); return; } xmlRelaxNGFreeValidCtxt(rngValid); xmlRelaxNGFree(rng); } gchar *gvir_config_object_to_xml(GVirConfigObject *config) { g_return_val_if_fail(GVIR_CONFIG_IS_OBJECT(config), NULL); return gvir_config_xml_node_to_string(config->priv->node); } const gchar *gvir_config_object_get_schema(GVirConfigObject *config) { g_return_val_if_fail(GVIR_CONFIG_IS_OBJECT(config), NULL); return config->priv->schema; } G_GNUC_INTERNAL GVirConfigXmlDoc * gvir_config_object_get_xml_doc(GVirConfigObject *config) { return config->priv->doc; } /* FIXME: will we always have one xmlNode per GConfig object? */ /* FIXME: need to return the right node from subclasses */ /* NB: the xmlNodePtr must not be freed by the caller */ G_GNUC_INTERNAL xmlNodePtr gvir_config_object_get_xml_node(GVirConfigObject *config) { return config->priv->node; } G_GNUC_INTERNAL const char * gvir_config_object_get_node_content(GVirConfigObject *object, const char *node_name) { xmlNodePtr node; node = gvir_config_object_get_xml_node(GVIR_CONFIG_OBJECT(object)); if (node == NULL) return NULL; return gvir_config_xml_get_child_element_content(node, node_name); } G_GNUC_INTERNAL const char * gvir_config_object_get_attribute(GVirConfigObject *object, const char *node_name, const char *attr_name) { xmlNodePtr node; g_return_val_if_fail(attr_name != NULL, NULL); node = gvir_config_object_get_xml_node(GVIR_CONFIG_OBJECT(object)); if (node == NULL) return NULL; if (node_name != NULL) { node = gvir_config_xml_get_element(node, node_name, NULL); if (node == NULL) return NULL; } return gvir_config_xml_get_attribute_content(node, attr_name); } static xmlNodePtr gvir_config_object_set_child_internal(GVirConfigObject *object, xmlNodePtr child, gboolean overwrite) { xmlNodePtr parent_node; xmlNodePtr old_node; parent_node = gvir_config_object_get_xml_node(GVIR_CONFIG_OBJECT(object)); g_return_val_if_fail (parent_node != NULL, NULL); old_node = gvir_config_xml_get_element(parent_node, child->name, NULL); /* FIXME: should we make sure there are no multiple occurrences * of this node? */ if (old_node) { if (overwrite) { old_node = xmlReplaceNode(old_node, child); xmlFreeNode(old_node); } else { return old_node; } } else { xmlAddChild(parent_node, child); } return NULL; } G_GNUC_INTERNAL void gvir_config_object_set_child(GVirConfigObject *object, xmlNodePtr child) { gvir_config_object_set_child_internal(object, child, TRUE); } G_GNUC_INTERNAL void gvir_config_object_foreach_child(GVirConfigObject *object, const char *parent_name, GVirConfigXmlNodeIterator iter_func, gpointer opaque) { xmlNodePtr root_node; xmlNodePtr node; g_return_if_fail(GVIR_CONFIG_IS_OBJECT(object)); root_node = gvir_config_object_get_xml_node(object); g_return_if_fail(root_node != NULL); node = gvir_config_xml_get_element(root_node, parent_name, NULL); if (node == NULL) return; gvir_config_xml_foreach_child(node, iter_func, opaque); } G_GNUC_INTERNAL GVirConfigObject * gvir_config_object_add_child(GVirConfigObject *object, const char *child_name) { xmlNodePtr new_node; xmlNodePtr old_node; g_return_val_if_fail(GVIR_CONFIG_IS_OBJECT(object), NULL); g_return_val_if_fail(child_name != NULL, NULL); new_node = xmlNewDocNode(NULL, NULL, (xmlChar *)child_name, NULL); old_node = gvir_config_object_set_child_internal(object, new_node, FALSE); if (old_node != NULL) { xmlFreeNode(new_node); return GVIR_CONFIG_OBJECT(g_object_new(GVIR_CONFIG_TYPE_OBJECT, "doc", object->priv->doc, "node", old_node, NULL)); } return GVIR_CONFIG_OBJECT(g_object_new(GVIR_CONFIG_TYPE_OBJECT, "doc", object->priv->doc, "node", new_node, NULL)); } G_GNUC_INTERNAL void gvir_config_object_add_child_with_attribute(GVirConfigObject *object, const char *child_name, const char *attr_name, const char *attr_value) { GVirConfigObject *child; child = gvir_config_object_add_child(object, child_name); gvir_config_object_set_attribute(child, attr_name, attr_value, NULL); g_object_unref(G_OBJECT(child)); } void gvir_config_object_add_child_with_attribute_enum(GVirConfigObject *object, const char *child_name, const char *attr_name, GType attr_type, unsigned int attr_value) { GVirConfigObject *child; child = gvir_config_object_add_child(object, child_name); gvir_config_object_set_attribute_with_type(child, attr_name, attr_type, attr_value, NULL); g_object_unref(G_OBJECT(child)); } G_GNUC_INTERNAL GVirConfigObject * gvir_config_object_replace_child(GVirConfigObject *object, const char *child_name) { xmlNodePtr new_node; g_return_val_if_fail(GVIR_CONFIG_IS_OBJECT(object), NULL); g_return_val_if_fail(child_name != NULL, NULL); new_node = xmlNewDocNode(NULL, NULL, (xmlChar *)child_name, NULL); gvir_config_object_set_child_internal(object, new_node, TRUE); return GVIR_CONFIG_OBJECT(g_object_new(GVIR_CONFIG_TYPE_OBJECT, "doc", object->priv->doc, "node", new_node, NULL)); } G_GNUC_INTERNAL void gvir_config_object_replace_child_with_attribute(GVirConfigObject *object, const char *child_name, const char *attr_name, const char *attr_value) { GVirConfigObject *child; child = gvir_config_object_replace_child(object, child_name); gvir_config_object_set_attribute(child, attr_name, attr_value, NULL); g_object_unref(G_OBJECT(child)); } G_GNUC_INTERNAL void gvir_config_object_replace_child_with_attribute_enum(GVirConfigObject *object, const char *child_name, const char *attr_name, GType attr_type, unsigned int attr_value) { GVirConfigObject *child; child = gvir_config_object_replace_child(object, child_name); gvir_config_object_set_attribute_with_type(child, attr_name, attr_type, attr_value, NULL); g_object_unref(G_OBJECT(child)); } struct NodeMatch { const char *name; const char *ns; }; static gboolean maybe_unlink_node(xmlNodePtr node, void *opaque) { gboolean dounlink = TRUE; struct NodeMatch *match = (struct NodeMatch *)opaque; if (match->ns != NULL) { dounlink = dounlink && (g_strcmp0(match->ns, (char *)node->ns->href) == 0); } if (match->name != NULL) { dounlink = dounlink && (g_strcmp0(match->name, (char *)node->name) == 0); } if (dounlink) { xmlUnlinkNode(node); xmlFreeNode(node); } return dounlink; } static gboolean remove_oneshot(xmlNodePtr node, gpointer opaque) { return !maybe_unlink_node(node, opaque); } G_GNUC_INTERNAL void gvir_config_object_delete_child(GVirConfigObject *object, const char *child_name, const char *ns_href) { struct NodeMatch match; g_return_if_fail(GVIR_CONFIG_IS_OBJECT(object)); match.name = child_name; match.ns = ns_href; gvir_config_object_foreach_child(object, NULL, remove_oneshot, &match); } static gboolean remove_always(xmlNodePtr node, gpointer opaque) { maybe_unlink_node(node, opaque); return TRUE; } G_GNUC_INTERNAL void gvir_config_object_delete_children(GVirConfigObject *object, const char *child_name, const char *ns_href) { struct NodeMatch match; g_return_if_fail(GVIR_CONFIG_IS_OBJECT(object)); match.name = child_name; match.ns = ns_href; gvir_config_object_foreach_child(object, NULL, remove_always, &match); } G_GNUC_INTERNAL void gvir_config_object_set_node_content(GVirConfigObject *object, const char *node_name, const char *value) { xmlChar *encoded_data; GVirConfigObject *node; g_return_if_fail(GVIR_CONFIG_IS_OBJECT(object)); if (value == NULL) { gvir_config_object_delete_child(object, node_name, NULL); return; } if (node_name != NULL) { node = gvir_config_object_replace_child(object, node_name); g_return_if_fail(node != NULL); } else { node = g_object_ref(G_OBJECT(object)); } encoded_data = xmlEncodeEntitiesReentrant(node->priv->node->doc, (xmlChar *)value); xmlNodeSetContent(node->priv->node, encoded_data); xmlFree(encoded_data); g_object_unref(G_OBJECT(node)); } G_GNUC_INTERNAL void gvir_config_object_set_node_content_uint64(GVirConfigObject *object, const char *node_name, guint64 value) { char *str; g_return_if_fail(GVIR_CONFIG_IS_OBJECT(object)); str = g_strdup_printf("%"G_GUINT64_FORMAT, value); gvir_config_object_set_node_content(object, node_name, str); g_free(str); } /* FIXME: how to notify of errors/node not found? */ G_GNUC_INTERNAL guint64 gvir_config_object_get_node_content_uint64(GVirConfigObject *object, const char *node_name) { xmlNodePtr node; const char *str; guint64 value; node = gvir_config_object_get_xml_node(GVIR_CONFIG_OBJECT(object)); if (node == NULL) return 0; str = gvir_config_xml_get_child_element_content(node, node_name); if (!str) return 0; value = g_ascii_strtoull(str, NULL, 0); return value; } G_GNUC_INTERNAL gint gvir_config_object_get_node_content_genum(GVirConfigObject *object, const char *node_name, GType enum_type, gint default_value) { xmlNodePtr node; const char *str; gint value; node = gvir_config_object_get_xml_node(GVIR_CONFIG_OBJECT(object)); if (node == NULL) return default_value; str = gvir_config_xml_get_child_element_content(node, node_name); if (!str) return default_value; value = gvir_config_genum_get_value(enum_type, str, default_value); return value; } G_GNUC_INTERNAL gint gvir_config_object_get_attribute_genum(GVirConfigObject *object, const char *node_name, const char *attr_name, GType enum_type, gint default_value) { xmlNodePtr node; const char *attr_val; gint value; g_return_val_if_fail(attr_name != NULL, default_value); node = gvir_config_object_get_xml_node(GVIR_CONFIG_OBJECT(object)); if (node == NULL) return default_value; if (node_name != NULL) { node = gvir_config_xml_get_element(node, node_name, NULL); if (node == NULL) return default_value; } attr_val = gvir_config_xml_get_attribute_content(node, attr_name); if (attr_val == NULL) return default_value; value = gvir_config_genum_get_value(enum_type, attr_val, default_value); return value; } G_GNUC_INTERNAL guint64 gvir_config_object_get_attribute_uint64(GVirConfigObject *object, const char *node_name, const char *attr_name, guint64 default_value) { const char *str; str = gvir_config_object_get_attribute(object, node_name, attr_name); if (str == NULL) return default_value; return g_ascii_strtoull(str, NULL, 0); } G_GNUC_INTERNAL gboolean gvir_config_object_get_attribute_boolean(GVirConfigObject *object, const char *node_name, const char *attr_name, gboolean default_value) { const char *str; str = gvir_config_object_get_attribute(object, node_name, attr_name); if (g_strcmp0(str, "yes") == 0) { return TRUE; } else if (g_strcmp0(str, "no") == 0) { return FALSE; } else { return default_value; } } GVirConfigObject *gvir_config_object_new_from_xml(GType type, const char *root_name, const char *schema, const gchar *xml, GError **error) { GVirConfigObject *object; GVirConfigXmlDoc *doc; xmlNodePtr node; GError *tmp_error = NULL; node = gvir_config_xml_parse(xml, root_name, &tmp_error); if (tmp_error != NULL) { g_propagate_error(error, tmp_error); return NULL; } doc = gvir_config_xml_doc_new(node->doc); object = GVIR_CONFIG_OBJECT(g_object_new(type, "doc", doc, "node", node, "schema", schema, NULL)); g_object_unref(G_OBJECT(doc)); return object; } G_GNUC_INTERNAL GVirConfigObject * gvir_config_object_new_from_tree(GType type, GVirConfigXmlDoc *doc, const char *schema, xmlNodePtr tree) { g_return_val_if_fail(g_type_is_a(type, GVIR_CONFIG_TYPE_OBJECT), NULL); g_return_val_if_fail(GVIR_CONFIG_IS_XML_DOC(doc), NULL); g_return_val_if_fail(tree != NULL, NULL); return GVIR_CONFIG_OBJECT(g_object_new(type, "doc", doc, "node", tree, "schema", schema, NULL)); } GVirConfigObject *gvir_config_object_new(GType type, const char *root_name, const char *schema) { GVirConfigObject *object; GVirConfigXmlDoc *doc; xmlDocPtr xml_doc; xmlNodePtr node; doc = gvir_config_xml_doc_new(NULL); g_object_get(G_OBJECT(doc), "doc", &xml_doc, NULL); g_assert(xml_doc != NULL); node = xmlNewDocNode(xml_doc, NULL, (xmlChar *)root_name, NULL); xmlDocSetRootElement(xml_doc, node); object = GVIR_CONFIG_OBJECT(g_object_new(type, "doc", doc, "node", node, "schema", schema, NULL)); g_object_unref(G_OBJECT(doc)); return object; } G_GNUC_INTERNAL void gvir_config_object_set_attribute(GVirConfigObject *object, ...) { xmlDocPtr doc; va_list args; g_return_if_fail(GVIR_CONFIG_IS_OBJECT(object)); g_object_get(G_OBJECT(object->priv->doc), "doc", &doc, NULL); va_start(args, object); while (TRUE) { const char *name; const char *value; name = va_arg(args, const char *); if (name == NULL) { break; } gvir_config_object_remove_attribute(object, name); value = va_arg(args, const char *); if (value == NULL) { g_warn_if_reached(); break; } xmlNewProp(object->priv->node, (xmlChar *)name, (xmlChar *)value); } va_end(args); } G_GNUC_INTERNAL void gvir_config_object_set_attribute_with_type(GVirConfigObject *object, ...) { va_list args; g_return_if_fail(GVIR_CONFIG_IS_OBJECT(object)); va_start(args, object); while (TRUE) { const char *name; GType attr_type; char *str; name = va_arg(args, const char *); if (name == NULL) { break; } gvir_config_object_remove_attribute(object, name); attr_type = va_arg(args, GType); if (G_TYPE_IS_ENUM(attr_type)) { int val; const char *enum_str; val = va_arg(args, int); enum_str = gvir_config_genum_get_nick(attr_type, val); if (enum_str != NULL) { str = g_strdup(enum_str); } else { str = NULL; } } else switch (attr_type) { case G_TYPE_UINT64: { guint64 val; val = va_arg(args, guint64); str = g_strdup_printf("%"G_GUINT64_FORMAT, val); break; } case G_TYPE_UINT: { guint val; val = va_arg(args, guint); str = g_strdup_printf("%u", val); break; } case G_TYPE_INT: { gint val; val = va_arg(args, gint); str = g_strdup_printf("%d", val); break; } case G_TYPE_STRING: str = va_arg(args, char *); xmlNewProp(object->priv->node, (xmlChar *)name, (xmlChar *)str); str = NULL; break; case G_TYPE_BOOLEAN: { gboolean val; val = va_arg(args, gboolean); str = g_strdup_printf("%s", val?"yes":"no"); break; } default: g_warning("Unhandled type: %s", g_type_name(attr_type)); g_assert_not_reached(); } if (str != NULL) { xmlNewProp(object->priv->node, (xmlChar *)name, (xmlChar *)str); g_free(str); } } va_end(args); } static void gvir_config_object_attach(GVirConfigObject *parent, GVirConfigObject *child, gboolean replace) { g_return_if_fail(GVIR_CONFIG_IS_OBJECT(parent)); g_return_if_fail(GVIR_CONFIG_IS_OBJECT(child)); if (replace) { gvir_config_object_delete_children(parent, (char *)child->priv->node->name, NULL); } xmlUnlinkNode(child->priv->node); xmlAddChild(parent->priv->node, child->priv->node); if (child->priv->doc != NULL) { g_object_unref(G_OBJECT(child->priv->doc)); child->priv->doc = NULL; } if (parent->priv->doc != NULL) { child->priv->doc = g_object_ref(G_OBJECT(parent->priv->doc)); } } G_GNUC_INTERNAL void gvir_config_object_attach_replace(GVirConfigObject *parent, const char *child_name, GVirConfigObject *child) { g_return_if_fail(child_name != NULL); if (child == NULL) gvir_config_object_delete_children(parent, child_name, NULL); else gvir_config_object_attach(parent, child, TRUE); } G_GNUC_INTERNAL void gvir_config_object_attach_add(GVirConfigObject *parent, GVirConfigObject *child) { gvir_config_object_attach(parent, child, FALSE); } G_GNUC_INTERNAL void gvir_config_object_remove_attribute(GVirConfigObject *object, const char *attr_name) { int status; do { status = xmlUnsetProp(object->priv->node, (xmlChar *)attr_name); } while (status == 0); } G_GNUC_INTERNAL gboolean gvir_config_object_set_namespace(GVirConfigObject *object, const char *ns, const char *ns_uri) { xmlNsPtr namespace; g_return_val_if_fail(GVIR_CONFIG_IS_OBJECT(object), FALSE); g_return_val_if_fail(ns != NULL, FALSE); g_return_val_if_fail(ns_uri != NULL, FALSE); namespace = xmlNewNs(object->priv->node, (xmlChar *)ns_uri, (xmlChar *)ns); if (namespace == NULL) return FALSE; xmlSetNs(object->priv->node, namespace); return TRUE; } G_GNUC_INTERNAL GVirConfigObject * gvir_config_object_get_child_with_type(GVirConfigObject *object, const gchar *child_name, GType child_type) { xmlNodePtr node; g_return_val_if_fail(GVIR_CONFIG_IS_OBJECT(object), NULL); g_return_val_if_fail(child_name != NULL, NULL); node = gvir_config_xml_get_element(object->priv->node, child_name, NULL); if (node == NULL) return NULL; return gvir_config_object_new_from_tree(child_type, object->priv->doc, object->priv->schema, node); } G_GNUC_INTERNAL GVirConfigObject * gvir_config_object_get_child(GVirConfigObject *object, const gchar *child_name) { return gvir_config_object_get_child_with_type(object, child_name, GVIR_CONFIG_TYPE_OBJECT); } G_GNUC_INTERNAL gboolean gvir_config_object_has_child(GVirConfigObject *object, const gchar *child_name) { xmlNodePtr node; g_return_val_if_fail(GVIR_CONFIG_IS_OBJECT(object), FALSE); g_return_val_if_fail(child_name != NULL, FALSE); node = gvir_config_xml_get_element(object->priv->node, child_name, NULL); return (node != NULL); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-address-usb.c0000664000000000000000000000676513004340477023004 00000000000000/* * libvirt-gconfig-domain-address-usb.c: libvirt USB device address configuration * * Copyright (C) 2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_ADDRESS_USB_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_ADDRESS_USB, GVirConfigDomainAddressUsbPrivate)) struct _GVirConfigDomainAddressUsbPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainAddressUsb, gvir_config_domain_address_usb, GVIR_CONFIG_TYPE_DOMAIN_ADDRESS); static void gvir_config_domain_address_usb_class_init(GVirConfigDomainAddressUsbClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainAddressUsbPrivate)); } static void gvir_config_domain_address_usb_init(GVirConfigDomainAddressUsb *address) { address->priv = GVIR_CONFIG_DOMAIN_ADDRESS_USB_GET_PRIVATE(address); } GVirConfigDomainAddressUsb *gvir_config_domain_address_usb_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_ADDRESS_USB, "address", NULL); gvir_config_object_set_attribute(object, "type", "usb", NULL); return GVIR_CONFIG_DOMAIN_ADDRESS_USB(object); } GVirConfigDomainAddressUsb *gvir_config_domain_address_usb_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_ADDRESS_USB, "address", NULL, xml, error); if (g_strcmp0(gvir_config_object_get_attribute(object, NULL, "type"), "usb") != 0) { g_object_unref(G_OBJECT(object)); g_return_val_if_reached(NULL); } return GVIR_CONFIG_DOMAIN_ADDRESS_USB(object); } void gvir_config_domain_address_usb_set_bus(GVirConfigDomainAddressUsb *address, guint16 bus) { gchar *bus_str; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_ADDRESS_USB(address)); g_return_if_fail(bus <= 0xfff); bus_str = g_strdup_printf("0x%03x", bus); gvir_config_object_set_attribute(GVIR_CONFIG_OBJECT(address), "bus", bus_str, NULL); g_free(bus_str); } void gvir_config_domain_address_usb_set_port(GVirConfigDomainAddressUsb *address, const char *port) { /* port is a dotted notation of up to four octets, such as 1.2 or 2.1.3.1, * that's why the argument is a char * and not an unsigned int */ g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_ADDRESS_USB(address)); gvir_config_object_set_attribute(GVIR_CONFIG_OBJECT(address), "port", port, NULL); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-xml-doc.h0000664000000000000000000000442113004340477020656 00000000000000/* * libvirt-gobject-xml-doc.h: libvirt XML document management * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_XML_DOC_H__ #define __LIBVIRT_GCONFIG_XML_DOC_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_XML_DOC (gvir_config_xml_doc_get_type ()) #define GVIR_CONFIG_XML_DOC(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_XML_DOC, GVirConfigXmlDoc)) #define GVIR_CONFIG_XML_DOC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_XML_DOC, GVirConfigXmlDocClass)) #define GVIR_CONFIG_IS_XML_DOC(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_XML_DOC)) #define GVIR_CONFIG_IS_XML_DOC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_XML_DOC)) #define GVIR_CONFIG_XML_DOC_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_XML_DOC, GVirConfigXmlDocClass)) typedef struct _GVirConfigXmlDoc GVirConfigXmlDoc; typedef struct _GVirConfigXmlDocPrivate GVirConfigXmlDocPrivate; typedef struct _GVirConfigXmlDocClass GVirConfigXmlDocClass; struct _GVirConfigXmlDoc { GObject parent; GVirConfigXmlDocPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigXmlDocClass { GObjectClass parent_class; gpointer padding[20]; }; GType gvir_config_xml_doc_get_type(void); GVirConfigXmlDoc *gvir_config_xml_doc_new(xmlDocPtr doc); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_XML_DOC_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-channel.c0000664000000000000000000001012113004340477022155 00000000000000/* * libvirt-gconfig-domain-channel.c: libvirt domain channel configuration * * Copyright (C) 2011-2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_CHANNEL_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_CHANNEL, GVirConfigDomainChannelPrivate)) struct _GVirConfigDomainChannelPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainChannel, gvir_config_domain_channel, GVIR_CONFIG_TYPE_DOMAIN_CHARDEV); static void gvir_config_domain_channel_class_init(GVirConfigDomainChannelClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainChannelPrivate)); } static void gvir_config_domain_channel_init(GVirConfigDomainChannel *channel) { channel->priv = GVIR_CONFIG_DOMAIN_CHANNEL_GET_PRIVATE(channel); } GVirConfigDomainChannel *gvir_config_domain_channel_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_CHANNEL, "channel", NULL); return GVIR_CONFIG_DOMAIN_CHANNEL(object); } GVirConfigDomainChannel *gvir_config_domain_channel_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_CHANNEL, "channel", NULL, xml, error); if (object == NULL) return NULL; return GVIR_CONFIG_DOMAIN_CHANNEL(object); } GVirConfigDomainChannelTargetType gvir_config_domain_channel_get_target_type(GVirConfigDomainChannel *channel) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_CHANNEL(channel), GVIR_CONFIG_DOMAIN_CHANNEL_TARGET_GUESTFWD); return gvir_config_object_get_attribute_genum(GVIR_CONFIG_OBJECT(channel), "target", "type", GVIR_CONFIG_TYPE_DOMAIN_CHANNEL_TARGET_TYPE, GVIR_CONFIG_DOMAIN_CHANNEL_TARGET_GUESTFWD); } void gvir_config_domain_channel_set_target_type(GVirConfigDomainChannel *channel, GVirConfigDomainChannelTargetType type) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_CHANNEL(channel)); gvir_config_object_add_child_with_attribute_enum(GVIR_CONFIG_OBJECT(channel), "target", "type", GVIR_CONFIG_TYPE_DOMAIN_CHANNEL_TARGET_TYPE, type); } const gchar *gvir_config_domain_channel_get_target_name(GVirConfigDomainChannel *channel) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_CHANNEL(channel), NULL); return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(channel), "target", "name"); } void gvir_config_domain_channel_set_target_name(GVirConfigDomainChannel *channel, const gchar *name) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_CHANNEL(channel)); gvir_config_object_add_child_with_attribute(GVIR_CONFIG_OBJECT(channel), "target", "name", name); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-disk.c0000664000000000000000000003706113004340477021513 00000000000000/* * libvirt-gconfig-domain-disk.c: libvirt domain disk configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_DISK_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_DISK, GVirConfigDomainDiskPrivate)) struct _GVirConfigDomainDiskPrivate { GVirConfigDomainDiskType type; }; G_DEFINE_TYPE(GVirConfigDomainDisk, gvir_config_domain_disk, GVIR_CONFIG_TYPE_DOMAIN_DEVICE); static void gvir_config_domain_disk_class_init(GVirConfigDomainDiskClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainDiskPrivate)); } static void gvir_config_domain_disk_init(GVirConfigDomainDisk *disk) { disk->priv = GVIR_CONFIG_DOMAIN_DISK_GET_PRIVATE(disk); } GVirConfigDomainDisk *gvir_config_domain_disk_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_DISK, "disk", NULL); return GVIR_CONFIG_DOMAIN_DISK(object); } GVirConfigDomainDisk *gvir_config_domain_disk_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_DISK, "disk", NULL, xml, error); return GVIR_CONFIG_DOMAIN_DISK(object); } GVirConfigDomainDevice * gvir_config_domain_disk_new_from_tree(GVirConfigXmlDoc *doc, xmlNodePtr tree) { GVirConfigObject *object; GVirConfigDomainDisk *disk; GVirConfigDomainDiskType type; const char *type_str; type_str = gvir_config_xml_get_attribute_content(tree, "type"); if (type_str == NULL) return NULL; type = gvir_config_genum_get_value(GVIR_CONFIG_TYPE_DOMAIN_DISK_TYPE, type_str, GVIR_CONFIG_DOMAIN_DISK_FILE); object = gvir_config_object_new_from_tree(GVIR_CONFIG_TYPE_DOMAIN_DISK, doc, NULL, tree); disk = GVIR_CONFIG_DOMAIN_DISK(object); disk->priv->type = type; return GVIR_CONFIG_DOMAIN_DEVICE(object); } void gvir_config_domain_disk_set_type(GVirConfigDomainDisk *disk, GVirConfigDomainDiskType type) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK(disk)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(disk), "type", GVIR_CONFIG_TYPE_DOMAIN_DISK_TYPE, type, NULL); disk->priv->type = type; } void gvir_config_domain_disk_set_guest_device_type(GVirConfigDomainDisk *disk, GVirConfigDomainDiskGuestDeviceType type) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK(disk)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(disk), "device", GVIR_CONFIG_TYPE_DOMAIN_DISK_GUEST_DEVICE_TYPE, type, NULL); } void gvir_config_domain_disk_set_snapshot_type(GVirConfigDomainDisk *disk, GVirConfigDomainDiskSnapshotType type) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK(disk)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(disk), "snapshot", GVIR_CONFIG_TYPE_DOMAIN_DISK_SNAPSHOT_TYPE, type, NULL); } void gvir_config_domain_disk_set_startup_policy(GVirConfigDomainDisk *disk, GVirConfigDomainDiskStartupPolicy policy) { const char *str; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK(disk)); str = gvir_config_genum_get_nick(GVIR_CONFIG_TYPE_DOMAIN_DISK_STARTUP_POLICY, policy); g_return_if_fail(str != NULL); gvir_config_object_add_child_with_attribute(GVIR_CONFIG_OBJECT(disk), "source", "startupPolicy", str); } void gvir_config_domain_disk_set_source(GVirConfigDomainDisk *disk, const char *source) { const char *attribute_name; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK(disk)); switch (disk->priv->type) { case GVIR_CONFIG_DOMAIN_DISK_FILE: attribute_name = "file"; break; case GVIR_CONFIG_DOMAIN_DISK_BLOCK: attribute_name = "dev"; break; case GVIR_CONFIG_DOMAIN_DISK_DIR: attribute_name = "dir"; break; case GVIR_CONFIG_DOMAIN_DISK_NETWORK: attribute_name = "protocol"; break; default: g_return_if_reached(); } gvir_config_object_replace_child_with_attribute(GVIR_CONFIG_OBJECT(disk), "source", attribute_name, source); } void gvir_config_domain_disk_set_driver_name(GVirConfigDomainDisk *disk, const char *driver_name) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK(disk)); gvir_config_object_add_child_with_attribute(GVIR_CONFIG_OBJECT(disk), "driver", "name", driver_name); } /** * gvir_config_domain_disk_set_driver_type: * * Deprecated: 0.1.7: Use gvir_config_domain_disk_set_driver_format() * instead */ void gvir_config_domain_disk_set_driver_type(GVirConfigDomainDisk *disk, const char *driver_type) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK(disk)); gvir_config_object_add_child_with_attribute(GVIR_CONFIG_OBJECT(disk), "driver", "type", driver_type); } void gvir_config_domain_disk_set_driver_format(GVirConfigDomainDisk *disk, GVirConfigDomainDiskFormat format) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK(disk)); gvir_config_object_add_child_with_attribute_enum(GVIR_CONFIG_OBJECT(disk), "driver", "type", GVIR_CONFIG_TYPE_DOMAIN_DISK_FORMAT, format); } void gvir_config_domain_disk_set_driver_cache(GVirConfigDomainDisk *disk, GVirConfigDomainDiskCacheType cache_type) { const char *cache_str; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK(disk)); cache_str = gvir_config_genum_get_nick(GVIR_CONFIG_TYPE_DOMAIN_DISK_CACHE_TYPE, cache_type); g_return_if_fail(cache_str != NULL); gvir_config_object_add_child_with_attribute(GVIR_CONFIG_OBJECT(disk), "driver", "cache", cache_str); } void gvir_config_domain_disk_set_target_bus(GVirConfigDomainDisk *disk, GVirConfigDomainDiskBus bus) { const char *bus_str; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK(disk)); bus_str = gvir_config_genum_get_nick(GVIR_CONFIG_TYPE_DOMAIN_DISK_BUS, bus); g_return_if_fail(bus_str != NULL); gvir_config_object_add_child_with_attribute(GVIR_CONFIG_OBJECT(disk), "target", "bus", bus_str); } void gvir_config_domain_disk_set_target_dev(GVirConfigDomainDisk *disk, const char *dev) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK(disk)); gvir_config_object_add_child_with_attribute(GVIR_CONFIG_OBJECT(disk), "target", "dev", dev); } GVirConfigDomainDiskType gvir_config_domain_disk_get_disk_type(GVirConfigDomainDisk *disk) { return disk->priv->type; } GVirConfigDomainDiskGuestDeviceType gvir_config_domain_disk_get_guest_device_type(GVirConfigDomainDisk *disk) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK(disk), GVIR_CONFIG_DOMAIN_DISK_GUEST_DEVICE_DISK); return gvir_config_object_get_attribute_genum(GVIR_CONFIG_OBJECT(disk), NULL, "device", GVIR_CONFIG_TYPE_DOMAIN_DISK_GUEST_DEVICE_TYPE, GVIR_CONFIG_DOMAIN_DISK_GUEST_DEVICE_DISK); } GVirConfigDomainDiskSnapshotType gvir_config_domain_disk_get_snapshot_type(GVirConfigDomainDisk *disk) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK(disk), GVIR_CONFIG_DOMAIN_DISK_SNAPSHOT_NO); return gvir_config_object_get_attribute_genum(GVIR_CONFIG_OBJECT(disk), NULL, "snapshot", GVIR_CONFIG_TYPE_DOMAIN_DISK_SNAPSHOT_TYPE, GVIR_CONFIG_DOMAIN_DISK_SNAPSHOT_NO); } GVirConfigDomainDiskStartupPolicy gvir_config_domain_disk_get_startup_policy(GVirConfigDomainDisk *disk) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK(disk), GVIR_CONFIG_DOMAIN_DISK_STARTUP_POLICY_MANDATORY); return gvir_config_object_get_attribute_genum (GVIR_CONFIG_OBJECT(disk), "source", "startupPolicy", GVIR_CONFIG_TYPE_DOMAIN_DISK_STARTUP_POLICY, GVIR_CONFIG_DOMAIN_DISK_STARTUP_POLICY_MANDATORY); } const char * gvir_config_domain_disk_get_source(GVirConfigDomainDisk *disk) { const char *attribute_name; g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK(disk), NULL); switch (disk->priv->type) { case GVIR_CONFIG_DOMAIN_DISK_FILE: attribute_name = "file"; break; case GVIR_CONFIG_DOMAIN_DISK_BLOCK: attribute_name = "dev"; break; case GVIR_CONFIG_DOMAIN_DISK_DIR: attribute_name = "dir"; break; case GVIR_CONFIG_DOMAIN_DISK_NETWORK: attribute_name = "protocol"; break; default: g_return_val_if_reached(NULL); } return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(disk), "source", attribute_name); } const char * gvir_config_domain_disk_get_driver_name(GVirConfigDomainDisk *disk) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK(disk), NULL); return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(disk), "driver", "name"); } /** * gvir_config_domain_disk_get_driver_type: * * Deprecated: 0.1.7: Use gvir_config_domain_disk_get_driver_format() * instead */ const char * gvir_config_domain_disk_get_driver_type(GVirConfigDomainDisk *disk) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK(disk), NULL); return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(disk), "driver", "type"); } GVirConfigDomainDiskFormat gvir_config_domain_disk_get_driver_format(GVirConfigDomainDisk *disk) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK(disk), GVIR_CONFIG_DOMAIN_DISK_FORMAT_RAW); return gvir_config_object_get_attribute_genum(GVIR_CONFIG_OBJECT(disk), "driver", "type", GVIR_CONFIG_TYPE_DOMAIN_DISK_FORMAT, GVIR_CONFIG_DOMAIN_DISK_FORMAT_RAW); } GVirConfigDomainDiskCacheType gvir_config_domain_disk_get_driver_cache(GVirConfigDomainDisk *disk) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK(disk), GVIR_CONFIG_DOMAIN_DISK_CACHE_DEFAULT); return gvir_config_object_get_attribute_genum(GVIR_CONFIG_OBJECT(disk), "driver", "cache", GVIR_CONFIG_TYPE_DOMAIN_DISK_CACHE_TYPE, GVIR_CONFIG_DOMAIN_DISK_CACHE_DEFAULT); } GVirConfigDomainDiskBus gvir_config_domain_disk_get_target_bus(GVirConfigDomainDisk *disk) { /* FIXME: the default value depends on the "name" attribute, should we * copy what libvirt is doing here? */ g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK(disk), GVIR_CONFIG_DOMAIN_DISK_BUS_IDE); return gvir_config_object_get_attribute_genum(GVIR_CONFIG_OBJECT(disk), "target", "snapshot", GVIR_CONFIG_TYPE_DOMAIN_DISK_BUS, GVIR_CONFIG_DOMAIN_DISK_BUS_IDE); } const char * gvir_config_domain_disk_get_target_dev(GVirConfigDomainDisk *disk) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK(disk), NULL); return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(disk), "target", "dev"); } void gvir_config_domain_disk_set_readonly(GVirConfigDomainDisk *disk, gboolean readonly) { if (readonly) { GVirConfigObject *node = gvir_config_object_replace_child(GVIR_CONFIG_OBJECT(disk), "readonly"); g_object_unref(node); } else gvir_config_object_delete_child(GVIR_CONFIG_OBJECT(disk), "readonly", NULL); } /** * gvir_config_domain_disk_set_driver: * @disk: a #GVirConfigDomainDisk * @driver: (allow-none): a #GVirConfigDomainDiskDriver * * Uses @driver as the driver configuration for @disk. */ void gvir_config_domain_disk_set_driver(GVirConfigDomainDisk *disk, GVirConfigDomainDiskDriver *driver) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK(disk)); g_return_if_fail(driver == NULL || GVIR_CONFIG_IS_DOMAIN_DISK_DRIVER(driver)); gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(disk), "driver", GVIR_CONFIG_OBJECT(driver)); } /** * gvir_config_domain_disk_get_driver: * @disk: a #GVirConfigDomainDisk * * Gets the driver configuration for @disk. * * Returns: (transfer full): A #GVirConfigDomainDiskDriver. The returned * object should be unreffed with g_object_unref() when no longer needed. */ GVirConfigDomainDiskDriver *gvir_config_domain_disk_get_driver(GVirConfigDomainDisk *disk) { GVirConfigObject *object; g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK(disk), NULL); object = gvir_config_object_get_child_with_type(GVIR_CONFIG_OBJECT(disk), "driver", GVIR_CONFIG_TYPE_DOMAIN_DISK_DRIVER); return GVIR_CONFIG_DOMAIN_DISK_DRIVER(object); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-hostdev.h0000664000000000000000000000625313004340477022241 00000000000000/* * libvirt-gconfig-domain-hostdev.h: libvirt domain hostdev configuration * * Copyright (C) 2016 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Zeeshan Ali (Khattak) * Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_HOSTDEV_H__ #define __LIBVIRT_GCONFIG_DOMAIN_HOSTDEV_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_HOSTDEV (gvir_config_domain_hostdev_get_type ()) #define GVIR_CONFIG_DOMAIN_HOSTDEV(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_HOSTDEV, GVirConfigDomainHostdev)) #define GVIR_CONFIG_DOMAIN_HOSTDEV_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_HOSTDEV, GVirConfigDomainHostdevClass)) #define GVIR_CONFIG_IS_DOMAIN_HOSTDEV(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_HOSTDEV)) #define GVIR_CONFIG_IS_DOMAIN_HOSTDEV_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_HOSTDEV)) #define GVIR_CONFIG_DOMAIN_HOSTDEV_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_HOSTDEV, GVirConfigDomainHostdevClass)) typedef struct _GVirConfigDomainHostdev GVirConfigDomainHostdev; typedef struct _GVirConfigDomainHostdevPrivate GVirConfigDomainHostdevPrivate; typedef struct _GVirConfigDomainHostdevClass GVirConfigDomainHostdevClass; struct _GVirConfigDomainHostdev { GVirConfigDomainDevice parent; GVirConfigDomainHostdevPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainHostdevClass { GVirConfigDomainDeviceClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_hostdev_get_type(void); void gvir_config_domain_hostdev_set_boot_order(GVirConfigDomainHostdev *hostdev, gint order); gint gvir_config_domain_hostdev_get_boot_order(GVirConfigDomainHostdev *hostdev); void gvir_config_domain_hostdev_set_readonly(GVirConfigDomainHostdev *hostdev, gboolean readonly); gboolean gvir_config_domain_hostdev_get_readonly(GVirConfigDomainHostdev *hostdev); void gvir_config_domain_hostdev_set_shareable(GVirConfigDomainHostdev *hostdev, gboolean shareable); gboolean gvir_config_domain_hostdev_get_shareable(GVirConfigDomainHostdev *hostdev); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_HOSTDEV_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-cpu.c0000664000000000000000000001167413004340477021352 00000000000000/* * libvirt-gconfig-domain-cpu.c: libvirt Domain CPU * * Copyright (C) 2008 Daniel P. Berrange * Copyright (C) 2010-2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Zeeshan Ali * Daniel P. Berrange */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_CPU_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_CPU, GVirConfigDomainCpuPrivate)) struct _GVirConfigDomainCpuPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainCpu, gvir_config_domain_cpu, GVIR_CONFIG_TYPE_CAPABILITIES_CPU); static GList * _gvir_config_domain_cpu_get_features(GVirConfigCapabilitiesCpu *cpu); static void gvir_config_domain_cpu_class_init(GVirConfigDomainCpuClass *klass) { GVirConfigCapabilitiesCpuClass *capabilities_class; capabilities_class = GVIR_CONFIG_CAPABILITIES_CPU_CLASS(klass); capabilities_class->get_features = _gvir_config_domain_cpu_get_features; g_type_class_add_private(klass, sizeof(GVirConfigDomainCpuPrivate)); } static void gvir_config_domain_cpu_init(GVirConfigDomainCpu *cpu) { cpu->priv = GVIR_CONFIG_DOMAIN_CPU_GET_PRIVATE(cpu); } GVirConfigDomainCpu *gvir_config_domain_cpu_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_CPU, "cpu", NULL); return GVIR_CONFIG_DOMAIN_CPU(object); } GVirConfigDomainCpu *gvir_config_domain_cpu_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_CPU, "cpu", NULL, xml, error); return GVIR_CONFIG_DOMAIN_CPU(object); } static GList * _gvir_config_domain_cpu_get_features(GVirConfigCapabilitiesCpu *cpu) { return gvir_config_capabilities_cpu_get_features_with_type( cpu, GVIR_CONFIG_TYPE_DOMAIN_CPU_FEATURE); } GVirConfigDomainCpuMatchPolicy gvir_config_domain_cpu_get_match_policy(GVirConfigDomainCpu *cpu) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_CPU(cpu), GVIR_CONFIG_DOMAIN_CPU_MATCH_POLICY_EXACT); return gvir_config_object_get_attribute_genum (GVIR_CONFIG_OBJECT(cpu), NULL, "match", GVIR_CONFIG_TYPE_DOMAIN_CPU_MATCH_POLICY, GVIR_CONFIG_DOMAIN_CPU_MATCH_POLICY_EXACT); } void gvir_config_domain_cpu_set_match_policy(GVirConfigDomainCpu *cpu, GVirConfigDomainCpuMatchPolicy policy) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_CPU(cpu)); gvir_config_object_set_attribute_with_type (GVIR_CONFIG_OBJECT(cpu), "match", GVIR_CONFIG_TYPE_DOMAIN_CPU_MATCH_POLICY, policy, NULL); } GVirConfigDomainCpuMode gvir_config_domain_cpu_get_mode(GVirConfigDomainCpu *cpu) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_CPU(cpu), GVIR_CONFIG_DOMAIN_CPU_MODE_CUSTOM); return gvir_config_object_get_attribute_genum (GVIR_CONFIG_OBJECT(cpu), NULL, "mode", GVIR_CONFIG_TYPE_DOMAIN_CPU_MODE, GVIR_CONFIG_DOMAIN_CPU_MODE_CUSTOM); } void gvir_config_domain_cpu_set_mode(GVirConfigDomainCpu *cpu, GVirConfigDomainCpuMode mode) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_CPU(cpu)); gvir_config_object_set_attribute_with_type (GVIR_CONFIG_OBJECT(cpu), "mode", GVIR_CONFIG_TYPE_DOMAIN_CPU_MODE, mode, NULL); } void gvir_config_domain_cpu_set_model(GVirConfigDomainCpu *cpu, GVirConfigDomainCpuModel *model) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_CPU(cpu)); g_return_if_fail(model == NULL || GVIR_CONFIG_IS_DOMAIN_CPU_MODEL(model)); gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(cpu), "model", GVIR_CONFIG_OBJECT(model)); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-timer-hpet.h0000664000000000000000000000541013004340477022635 00000000000000/* * libvirt-gconfig-domain-timer-hpet.h: libvirt domain HPET timer configuration * * Copyright (C) 2012, 2014 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_TIMER_HPET_H__ #define __LIBVIRT_GCONFIG_DOMAIN_TIMER_HPET_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_TIMER_HPET (gvir_config_domain_timer_hpet_get_type ()) #define GVIR_CONFIG_DOMAIN_TIMER_HPET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_TIMER_HPET, GVirConfigDomainTimerHpet)) #define GVIR_CONFIG_DOMAIN_TIMER_HPET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_TIMER_HPET, GVirConfigDomainTimerHpetClass)) #define GVIR_CONFIG_IS_DOMAIN_TIMER_HPET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_TIMER_HPET)) #define GVIR_CONFIG_IS_DOMAIN_TIMER_HPET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_TIMER_HPET)) #define GVIR_CONFIG_DOMAIN_TIMER_HPET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_TIMER_HPET, GVirConfigDomainTimerHpetClass)) typedef struct _GVirConfigDomainTimerHpet GVirConfigDomainTimerHpet; typedef struct _GVirConfigDomainTimerHpetPrivate GVirConfigDomainTimerHpetPrivate; typedef struct _GVirConfigDomainTimerHpetClass GVirConfigDomainTimerHpetClass; struct _GVirConfigDomainTimerHpet { GVirConfigDomainTimer parent; GVirConfigDomainTimerHpetPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainTimerHpetClass { GVirConfigDomainTimerClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_timer_hpet_get_type(void); GVirConfigDomainTimerHpet *gvir_config_domain_timer_hpet_new(void); GVirConfigDomainTimerHpet *gvir_config_domain_timer_hpet_new_from_xml(const gchar *xml, GError **error); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_TIMER_HPET_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-redirdev.c0000664000000000000000000000661513004340477022366 00000000000000/* * libvirt-gconfig-domain-redirdev.c: libvirt domain redirdev configuration * * Copyright (C) 2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_REDIRDEV_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_REDIRDEV, GVirConfigDomainRedirdevPrivate)) struct _GVirConfigDomainRedirdevPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainRedirdev, gvir_config_domain_redirdev, GVIR_CONFIG_TYPE_DOMAIN_CHARDEV); static void gvir_config_domain_redirdev_class_init(GVirConfigDomainRedirdevClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainRedirdevPrivate)); } static void gvir_config_domain_redirdev_init(GVirConfigDomainRedirdev *redirdev) { redirdev->priv = GVIR_CONFIG_DOMAIN_REDIRDEV_GET_PRIVATE(redirdev); } GVirConfigDomainRedirdev *gvir_config_domain_redirdev_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_REDIRDEV, "redirdev", NULL); return GVIR_CONFIG_DOMAIN_REDIRDEV(object); } GVirConfigDomainRedirdev *gvir_config_domain_redirdev_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_REDIRDEV, "redirdev", NULL, xml, error); return GVIR_CONFIG_DOMAIN_REDIRDEV(object); } void gvir_config_domain_redirdev_set_bus(GVirConfigDomainRedirdev *redirdev, GVirConfigDomainRedirdevBus bus) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_REDIRDEV(redirdev)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(redirdev), "bus", GVIR_CONFIG_TYPE_DOMAIN_REDIRDEV_BUS, bus, NULL); } /** * gvir_config_domain_redirdev_set_address: * @address: (allow-none): */ void gvir_config_domain_redirdev_set_address(GVirConfigDomainRedirdev *redirdev, GVirConfigDomainAddress *address) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_REDIRDEV(redirdev)); g_return_if_fail(address == NULL || GVIR_CONFIG_IS_DOMAIN_ADDRESS(address)); gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(redirdev), "address", GVIR_CONFIG_OBJECT(address)); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-chardev.h0000664000000000000000000000542313004340477022177 00000000000000/* * libvirt-gconfig-domain-chardev.h: libvirt domain chardev configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_CHARDEV_H__ #define __LIBVIRT_GCONFIG_DOMAIN_CHARDEV_H__ #include G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_CHARDEV (gvir_config_domain_chardev_get_type ()) #define GVIR_CONFIG_DOMAIN_CHARDEV(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV, GVirConfigDomainChardev)) #define GVIR_CONFIG_DOMAIN_CHARDEV_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV, GVirConfigDomainChardevClass)) #define GVIR_CONFIG_IS_DOMAIN_CHARDEV(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV)) #define GVIR_CONFIG_IS_DOMAIN_CHARDEV_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV)) #define GVIR_CONFIG_DOMAIN_CHARDEV_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV, GVirConfigDomainChardevClass)) typedef struct _GVirConfigDomainChardev GVirConfigDomainChardev; typedef struct _GVirConfigDomainChardevPrivate GVirConfigDomainChardevPrivate; typedef struct _GVirConfigDomainChardevClass GVirConfigDomainChardevClass; struct _GVirConfigDomainChardev { GVirConfigDomainDevice parent; GVirConfigDomainChardevPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainChardevClass { GVirConfigDomainDeviceClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_chardev_get_type(void); void gvir_config_domain_chardev_set_source(GVirConfigDomainChardev *chardev, GVirConfigDomainChardevSource *source); GVirConfigDomainChardevSource * gvir_config_domain_chardev_get_source(GVirConfigDomainChardev *chardev); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_CHARDEV_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/tests/0000775000000000000000000000000013007136424015276 500000000000000libvirt-glib-1.0.0/libvirt-gconfig/tests/Makefile.am0000664000000000000000000000074213004340477017257 00000000000000noinst_PROGRAMS = test-domain-create test-domain-parse test-capabilities-parse AM_CFLAGS = \ $(GOBJECT2_CFLAGS) \ $(LIBXML2_CFLAGS) \ $(WARN_CFLAGS) AM_CPPFLAGS = -I$(top_srcdir) LDADD = \ $(top_builddir)/libvirt-gconfig/libvirt-gconfig-1.0.la \ $(GOBJECT2_LIBS) \ $(LIBXML2_LIBS) \ $(CYGWIN_EXTRA_LIBADD) test_domain_create_SOURCES = test-domain-create.c test_domain_parse_SOURCES = test-domain-parse.c test_capabilities_parse_SOURCES = test-capabilities-parse.c libvirt-glib-1.0.0/libvirt-gconfig/tests/test-domain-parse.c0000664000000000000000000000545013004340477020724 00000000000000/* * test-domain-create.c: test libvirt-gconfig domain parsing * * Copyright (C) 2011 Red Hat, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * The Software is provided "as is", without warranty of any kind, express * or implied, including but not limited to the warranties of * merchantability, fitness for a particular purpose and noninfringement. * In no event shall the authors or copyright holders be liable for any * claim, damages or other liability, whether in an action of contract, * tort or otherwise, arising from, out of or in connection with the * software or the use or other dealings in the Software. * * Author: Christophe Fergeau */ #include #include #include int main(int argc, char **argv) { GVirConfigDomain *domain; const char *name; GStrv features; char *xml; GError *error = NULL; gvir_config_init(&argc, &argv); if (argc != 2) { g_print("Usage: %s filename\n", argv[0]); g_print("Attempt to parse the libvirt XML definition from filename\n"); return 1; } g_file_get_contents(argv[1], &xml, NULL, &error); if (error != NULL) { g_print("Couldn't read %s: %s\n", argv[1], error->message); return 2; } domain = gvir_config_domain_new_from_xml(xml, &error); if (error != NULL) { g_print("Couldn't parse %s: %s\n", argv[1], error->message); return 3; } g_assert(domain != NULL); gvir_config_object_validate(GVIR_CONFIG_OBJECT(domain), &error); if (error != NULL) { g_print("%s format is invalid: %s\n", argv[1], error->message); g_clear_error(&error); } name = gvir_config_domain_get_name(domain); g_assert(name != NULL); g_assert(strcmp(name, "foo") == 0); g_assert(gvir_config_domain_get_memory(domain) == 987654321); features = gvir_config_domain_get_features(domain); g_assert(g_strv_length(features) == 2); g_assert(strcmp(features[0], "f1") == 0); g_assert(strcmp(features[1], "f2") == 0); g_strfreev(features); g_free(xml); xml = gvir_config_object_to_xml(GVIR_CONFIG_OBJECT(domain)); g_print("%s\n", xml); g_free(xml); g_object_unref(G_OBJECT(domain)); return 0; } libvirt-glib-1.0.0/libvirt-gconfig/tests/test-domain-create.c0000664000000000000000000005656413004340477021071 00000000000000/* * test-domain-create.c: test libvirt-gconfig domain creation * * Copyright (C) 2011 Red Hat, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * The Software is provided "as is", without warranty of any kind, express * or implied, including but not limited to the warranties of * merchantability, fitness for a particular purpose and noninfringement. * In no event shall the authors or copyright holders be liable for any * claim, damages or other liability, whether in an action of contract, * tort or otherwise, arising from, out of or in connection with the * software or the use or other dealings in the Software. * * Author: Christophe Fergeau */ #include #include #include const char *features[] = { "foo", "bar", "baz", NULL }; #define g_str_const_check(str1, str2) G_STMT_START { \ g_assert((str1) != NULL); \ g_assert(g_strcmp0((str1), (str2)) == 0); \ } G_STMT_END #define g_str_check(str1, str2) G_STMT_START { \ char *alloced_str = (str1); \ g_str_const_check(alloced_str, (str2)); \ g_free(alloced_str); \ } G_STMT_END static GVirConfigDomainControllerUsb * create_usb_controller(GVirConfigDomainControllerUsbModel model, guint indx, GVirConfigDomainControllerUsb *master, guint start_port, guint domain, guint bus, guint slot, guint function, gboolean multifunction) { GVirConfigDomainControllerUsb *controller; GVirConfigDomainAddressPci *address; controller = gvir_config_domain_controller_usb_new(); gvir_config_domain_controller_usb_set_model(controller, model); gvir_config_domain_controller_set_index(GVIR_CONFIG_DOMAIN_CONTROLLER(controller), indx); if (master) gvir_config_domain_controller_usb_set_master(controller, master, start_port); address = gvir_config_domain_address_pci_new(); gvir_config_domain_address_pci_set_domain(address, domain); gvir_config_domain_address_pci_set_bus(address, bus); gvir_config_domain_address_pci_set_slot(address, slot); gvir_config_domain_address_pci_set_function(address, function); if (multifunction) gvir_config_domain_address_pci_set_multifunction(address, multifunction); gvir_config_domain_controller_set_address(GVIR_CONFIG_DOMAIN_CONTROLLER(controller), GVIR_CONFIG_DOMAIN_ADDRESS(address)); g_object_unref(G_OBJECT(address)); return controller; } static GVirConfigDomainRedirdev * create_redirdev(guint bus, guint port) { GVirConfigDomainRedirdev *redirdev; GVirConfigDomainAddressUsb *address; GVirConfigDomainChardevSourceSpiceVmc *spicevmc; gchar *port_str; redirdev = gvir_config_domain_redirdev_new(); gvir_config_domain_redirdev_set_bus(redirdev, GVIR_CONFIG_DOMAIN_REDIRDEV_BUS_USB); spicevmc = gvir_config_domain_chardev_source_spicevmc_new(); gvir_config_domain_chardev_set_source(GVIR_CONFIG_DOMAIN_CHARDEV(redirdev), GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE(spicevmc)); g_object_unref(G_OBJECT(spicevmc)); address = gvir_config_domain_address_usb_new(); gvir_config_domain_address_usb_set_bus(address, bus); port_str = g_strdup_printf("%d", port); gvir_config_domain_address_usb_set_port(address, port_str); g_free(port_str); gvir_config_domain_redirdev_set_address(redirdev, GVIR_CONFIG_DOMAIN_ADDRESS(address)); g_object_unref(G_OBJECT(address)); return redirdev; } int main(int argc, char **argv) { GVirConfigDomain *domain; GStrv feat; unsigned int i; char *xml; gvir_config_init(&argc, &argv); domain = gvir_config_domain_new(); g_assert(domain != NULL); gvir_config_domain_set_virt_type(domain, GVIR_CONFIG_DOMAIN_VIRT_KVM); g_assert(gvir_config_domain_get_virt_type(domain) == GVIR_CONFIG_DOMAIN_VIRT_KVM); gvir_config_domain_set_name(domain, "foo"); g_str_const_check(gvir_config_domain_get_name(domain), "foo"); gvir_config_domain_set_memory(domain, 1234); g_assert(gvir_config_domain_get_memory(domain) == 1234); gvir_config_domain_set_vcpus(domain, 3); g_assert(gvir_config_domain_get_vcpus(domain) == 3); gvir_config_domain_set_features(domain, (const GStrv)features); feat = gvir_config_domain_get_features(domain); for (i = 0; features[i] != NULL; i++) { g_assert(feat[i] != NULL); g_assert(strcmp(feat[i], features[i]) == 0); } g_strfreev(feat); gvir_config_domain_set_lifecycle(domain, GVIR_CONFIG_DOMAIN_LIFECYCLE_ON_POWEROFF, GVIR_CONFIG_DOMAIN_LIFECYCLE_RESTART); /* clock node */ GVirConfigDomainClock *klock; GVirConfigDomainTimerPit *pit; GVirConfigDomainTimerRtc *rtc; GVirConfigDomainTimerHpet *hpet; klock = gvir_config_domain_clock_new(); gvir_config_domain_clock_set_offset(klock, GVIR_CONFIG_DOMAIN_CLOCK_TIMEZONE); gvir_config_domain_clock_set_timezone(klock, "CEST"); g_assert(gvir_config_domain_clock_get_offset(klock) == GVIR_CONFIG_DOMAIN_CLOCK_TIMEZONE); g_str_const_check(gvir_config_domain_clock_get_timezone(klock), "CEST"); pit = gvir_config_domain_timer_pit_new(); gvir_config_domain_timer_set_tick_policy(GVIR_CONFIG_DOMAIN_TIMER(pit), GVIR_CONFIG_DOMAIN_TIMER_TICK_POLICY_DELAY); gvir_config_domain_clock_add_timer(klock, GVIR_CONFIG_DOMAIN_TIMER(pit)); g_assert(gvir_config_domain_timer_get_tick_policy(GVIR_CONFIG_DOMAIN_TIMER(pit)) == GVIR_CONFIG_DOMAIN_TIMER_TICK_POLICY_DELAY); g_assert(gvir_config_domain_timer_get_present(GVIR_CONFIG_DOMAIN_TIMER(pit)) != FALSE); g_object_unref(G_OBJECT(pit)); rtc = gvir_config_domain_timer_rtc_new(); gvir_config_domain_timer_set_tick_policy(GVIR_CONFIG_DOMAIN_TIMER(rtc), GVIR_CONFIG_DOMAIN_TIMER_TICK_POLICY_CATCHUP); gvir_config_domain_clock_add_timer(klock, GVIR_CONFIG_DOMAIN_TIMER(rtc)); g_assert(gvir_config_domain_timer_get_tick_policy(GVIR_CONFIG_DOMAIN_TIMER(rtc)) == GVIR_CONFIG_DOMAIN_TIMER_TICK_POLICY_CATCHUP); g_assert(gvir_config_domain_timer_get_present(GVIR_CONFIG_DOMAIN_TIMER(rtc)) != FALSE); g_object_unref(G_OBJECT(rtc)); hpet = gvir_config_domain_timer_hpet_new(); gvir_config_domain_timer_set_present(GVIR_CONFIG_DOMAIN_TIMER(hpet), FALSE); gvir_config_domain_clock_add_timer(klock, GVIR_CONFIG_DOMAIN_TIMER(hpet)); g_assert(gvir_config_domain_timer_get_present(GVIR_CONFIG_DOMAIN_TIMER(hpet)) == FALSE); g_object_unref(G_OBJECT(hpet)); gvir_config_domain_set_clock(domain, klock); g_object_unref(G_OBJECT(klock)); klock = gvir_config_domain_get_clock(domain); g_assert(klock != NULL); g_assert(gvir_config_domain_clock_get_offset(klock) == GVIR_CONFIG_DOMAIN_CLOCK_TIMEZONE); g_str_const_check(gvir_config_domain_clock_get_timezone(klock), "CEST"); g_object_unref(G_OBJECT(klock)); /* os node */ GVirConfigDomainOs *os; GList *devices = NULL; os = gvir_config_domain_os_new(); gvir_config_domain_os_set_os_type(os, GVIR_CONFIG_DOMAIN_OS_TYPE_HVM); gvir_config_domain_os_set_arch(os, "x86_64"); devices = g_list_append(devices, GINT_TO_POINTER(GVIR_CONFIG_DOMAIN_OS_BOOT_DEVICE_CDROM)); devices = g_list_append(devices, GINT_TO_POINTER(GVIR_CONFIG_DOMAIN_OS_BOOT_DEVICE_NETWORK)); gvir_config_domain_os_set_boot_devices(os, devices); g_list_free(devices); devices = NULL; gvir_config_domain_set_os(domain, os); g_object_unref(G_OBJECT(os)); /* cpu node */ GVirConfigDomainCpu *cpu; cpu = gvir_config_domain_cpu_new(); /* cpu/feature nodes */ GVirConfigDomainCpuFeature *feature; GList *cpu_features = NULL; gvir_config_domain_cpu_set_match_policy(cpu, GVIR_CONFIG_DOMAIN_CPU_MATCH_POLICY_STRICT); gvir_config_domain_cpu_set_mode(cpu, GVIR_CONFIG_DOMAIN_CPU_MODE_HOST_PASSTHROUGH); feature = gvir_config_domain_cpu_feature_new(); gvir_config_capabilities_cpu_feature_set_name(GVIR_CONFIG_CAPABILITIES_CPU_FEATURE(feature), "foo"); gvir_config_domain_cpu_feature_set_policy(feature, GVIR_CONFIG_DOMAIN_CPU_FEATURE_POLICY_REQUIRE); gvir_config_capabilities_cpu_add_feature(GVIR_CONFIG_CAPABILITIES_CPU(cpu), GVIR_CONFIG_CAPABILITIES_CPU_FEATURE(feature)); g_object_unref(feature); /* cpu/topology nodes */ GVirConfigCapabilitiesCpuTopology *topology; topology = gvir_config_capabilities_cpu_topology_new(); gvir_config_capabilities_cpu_topology_set_cores(topology, 1); gvir_config_capabilities_cpu_topology_set_sockets(topology, 2); gvir_config_capabilities_cpu_topology_set_threads(topology, 3); gvir_config_capabilities_cpu_set_topology(GVIR_CONFIG_CAPABILITIES_CPU(cpu), topology); g_object_unref(topology); gvir_config_domain_set_cpu(domain, cpu); g_object_unref(cpu); cpu = gvir_config_domain_get_cpu(domain); g_assert(gvir_config_domain_cpu_get_match_policy(cpu) == GVIR_CONFIG_DOMAIN_CPU_MATCH_POLICY_STRICT); g_assert(gvir_config_domain_cpu_get_mode(cpu) == GVIR_CONFIG_DOMAIN_CPU_MODE_HOST_PASSTHROUGH); g_assert(cpu != NULL); g_assert(GVIR_CONFIG_IS_CAPABILITIES_CPU(cpu)); cpu_features = gvir_config_capabilities_cpu_get_features(GVIR_CONFIG_CAPABILITIES_CPU(cpu)); g_assert(g_list_length(cpu_features) >= 1); g_assert(GVIR_CONFIG_IS_DOMAIN_CPU_FEATURE(cpu_features->data)); feature = GVIR_CONFIG_DOMAIN_CPU_FEATURE(cpu_features->data); g_str_const_check(gvir_config_capabilities_cpu_feature_get_name (GVIR_CONFIG_CAPABILITIES_CPU_FEATURE(feature)), "foo"); g_assert(gvir_config_domain_cpu_feature_get_policy(feature) == GVIR_CONFIG_DOMAIN_CPU_FEATURE_POLICY_REQUIRE); g_list_free_full(cpu_features, g_object_unref); topology = gvir_config_capabilities_cpu_get_topology(GVIR_CONFIG_CAPABILITIES_CPU(cpu)); g_assert(topology != NULL); g_assert(gvir_config_capabilities_cpu_topology_get_cores(topology) == 1); g_assert(gvir_config_capabilities_cpu_topology_get_sockets(topology) == 2); g_assert(gvir_config_capabilities_cpu_topology_get_threads(topology) == 3); g_object_unref(topology); g_object_unref(cpu); /* disk node */ GVirConfigDomainDisk *disk; GVirConfigDomainDiskDriver *driver; driver = gvir_config_domain_disk_driver_new(); gvir_config_domain_disk_driver_set_name(driver, "foo"); gvir_config_domain_disk_driver_set_format(driver, GVIR_CONFIG_DOMAIN_DISK_FORMAT_BOCHS); gvir_config_domain_disk_driver_set_name(driver, "qemu"); gvir_config_domain_disk_driver_set_cache(driver, GVIR_CONFIG_DOMAIN_DISK_CACHE_NONE); gvir_config_domain_disk_driver_set_format(driver, GVIR_CONFIG_DOMAIN_DISK_FORMAT_QCOW2); gvir_config_domain_disk_driver_set_copy_on_read(driver, TRUE); disk = gvir_config_domain_disk_new(); gvir_config_domain_disk_set_type(disk, GVIR_CONFIG_DOMAIN_DISK_FILE); gvir_config_domain_disk_set_guest_device_type(disk, GVIR_CONFIG_DOMAIN_DISK_GUEST_DEVICE_DISK); gvir_config_domain_disk_set_source(disk, "/tmp/foo/bar"); gvir_config_domain_disk_set_startup_policy (disk, GVIR_CONFIG_DOMAIN_DISK_STARTUP_POLICY_REQUISITE); gvir_config_domain_disk_set_target_bus(disk, GVIR_CONFIG_DOMAIN_DISK_BUS_IDE); gvir_config_domain_disk_set_target_dev(disk, "hda"); gvir_config_domain_disk_set_driver(disk, driver); g_object_unref(G_OBJECT(driver)); devices = g_list_append(devices, GVIR_CONFIG_DOMAIN_DEVICE(disk)); g_assert(gvir_config_domain_disk_get_disk_type(disk) == GVIR_CONFIG_DOMAIN_DISK_FILE); g_assert(gvir_config_domain_disk_get_guest_device_type(disk) == GVIR_CONFIG_DOMAIN_DISK_GUEST_DEVICE_DISK); g_assert(gvir_config_domain_disk_get_startup_policy (disk) == GVIR_CONFIG_DOMAIN_DISK_STARTUP_POLICY_REQUISITE); g_str_const_check(gvir_config_domain_disk_get_source(disk), "/tmp/foo/bar"); driver = gvir_config_domain_disk_get_driver(disk); g_assert(driver != NULL); g_assert(gvir_config_domain_disk_driver_get_cache(driver) == GVIR_CONFIG_DOMAIN_DISK_CACHE_NONE); g_str_const_check(gvir_config_domain_disk_driver_get_name(driver), "qemu"); g_assert(gvir_config_domain_disk_driver_get_format(driver) == GVIR_CONFIG_DOMAIN_DISK_FORMAT_QCOW2); g_assert(gvir_config_domain_disk_driver_get_copy_on_read(driver)); g_assert(gvir_config_domain_disk_get_target_bus(disk) == GVIR_CONFIG_DOMAIN_DISK_BUS_IDE); g_str_const_check(gvir_config_domain_disk_get_target_dev(disk), "hda"); g_object_unref(driver); /* network interfaces node */ GVirConfigDomainInterface *interface; interface = GVIR_CONFIG_DOMAIN_INTERFACE(gvir_config_domain_interface_network_new()); gvir_config_domain_interface_network_set_source(GVIR_CONFIG_DOMAIN_INTERFACE_NETWORK(interface), "default"); devices = g_list_append(devices, GVIR_CONFIG_DOMAIN_DEVICE(interface)); interface = GVIR_CONFIG_DOMAIN_INTERFACE(gvir_config_domain_interface_user_new()); gvir_config_domain_interface_set_ifname(interface, "eth0"); gvir_config_domain_interface_set_link_state(interface, GVIR_CONFIG_DOMAIN_INTERFACE_LINK_STATE_UP); gvir_config_domain_interface_set_mac(interface, "00:11:22:33:44:55"); gvir_config_domain_interface_set_model(interface, "foo"); devices = g_list_append(devices, GVIR_CONFIG_DOMAIN_DEVICE(interface)); /* input node */ GVirConfigDomainInput *input; input = gvir_config_domain_input_new(); gvir_config_domain_input_set_device_type(input, GVIR_CONFIG_DOMAIN_INPUT_DEVICE_TABLET); gvir_config_domain_input_set_bus(input, GVIR_CONFIG_DOMAIN_INPUT_BUS_USB); devices = g_list_append(devices, GVIR_CONFIG_DOMAIN_DEVICE(input)); /* graphics node */ GVirConfigDomainGraphicsSpice *graphics; graphics = gvir_config_domain_graphics_spice_new(); gvir_config_domain_graphics_spice_set_port(graphics, 1234); g_assert(gvir_config_domain_graphics_spice_get_port(graphics) == 1234); /* SPICE image compression configuration */ gvir_config_domain_graphics_spice_set_image_compression (graphics, GVIR_CONFIG_DOMAIN_GRAPHICS_SPICE_IMAGE_COMPRESSION_AUTO_LZ); g_assert(gvir_config_domain_graphics_spice_get_image_compression(graphics) == GVIR_CONFIG_DOMAIN_GRAPHICS_SPICE_IMAGE_COMPRESSION_AUTO_LZ); devices = g_list_append(devices, GVIR_CONFIG_DOMAIN_DEVICE(graphics)); /* video node */ GVirConfigDomainVideo *video; video = gvir_config_domain_video_new(); gvir_config_domain_video_set_model(video, GVIR_CONFIG_DOMAIN_VIDEO_MODEL_QXL); devices = g_list_append(devices, GVIR_CONFIG_DOMAIN_DEVICE(video)); /* sound node */ GVirConfigDomainSound *sound; sound = gvir_config_domain_sound_new(); gvir_config_domain_sound_set_model(sound, GVIR_CONFIG_DOMAIN_SOUND_MODEL_ES1370); devices = g_list_append(devices, GVIR_CONFIG_DOMAIN_DEVICE(sound)); /* console node */ GVirConfigDomainConsole *console; GVirConfigDomainChardevSourcePty *pty; console = gvir_config_domain_console_new(); pty = gvir_config_domain_chardev_source_pty_new(); gvir_config_domain_chardev_set_source(GVIR_CONFIG_DOMAIN_CHARDEV(console), GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE(pty)); g_object_unref(G_OBJECT(pty)); devices = g_list_append(devices, GVIR_CONFIG_DOMAIN_DEVICE(console)); /* spice agent channel */ GVirConfigDomainChannel *channel; GVirConfigDomainChardevSourceSpiceVmc *spicevmc; channel = gvir_config_domain_channel_new(); gvir_config_domain_channel_set_target_type(channel, GVIR_CONFIG_DOMAIN_CHANNEL_TARGET_VIRTIO); spicevmc = gvir_config_domain_chardev_source_spicevmc_new(); gvir_config_domain_chardev_set_source(GVIR_CONFIG_DOMAIN_CHARDEV(channel), GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE(spicevmc)); g_object_unref(G_OBJECT(spicevmc)); devices = g_list_append(devices, GVIR_CONFIG_DOMAIN_DEVICE(channel)); /* spice usb redirection */ GVirConfigDomainControllerUsb *ehci; GVirConfigDomainControllerUsb *uhci1; GVirConfigDomainControllerUsb *uhci2; GVirConfigDomainControllerUsb *uhci3; GVirConfigDomainRedirdev *redirdev; ehci = create_usb_controller(GVIR_CONFIG_DOMAIN_CONTROLLER_USB_MODEL_ICH9_EHCI1, 1, NULL, 0, 0, 0, 8, 7, FALSE); devices = g_list_append(devices, GVIR_CONFIG_DOMAIN_DEVICE(ehci)); uhci1 = create_usb_controller(GVIR_CONFIG_DOMAIN_CONTROLLER_USB_MODEL_ICH9_UHCI1, 7, ehci, 0, 0, 0, 8, 0, TRUE); devices = g_list_append(devices, GVIR_CONFIG_DOMAIN_DEVICE(uhci1)); uhci2 = create_usb_controller(GVIR_CONFIG_DOMAIN_CONTROLLER_USB_MODEL_ICH9_UHCI2, 7, ehci, 2, 0, 0, 8, 1, FALSE); devices = g_list_append(devices, GVIR_CONFIG_DOMAIN_DEVICE(uhci2)); uhci3 = create_usb_controller(GVIR_CONFIG_DOMAIN_CONTROLLER_USB_MODEL_ICH9_UHCI3, 7, ehci, 4, 0, 0, 8, 2, FALSE); g_assert(gvir_config_domain_controller_get_index(GVIR_CONFIG_DOMAIN_CONTROLLER(uhci1)) == 1); devices = g_list_append(devices, GVIR_CONFIG_DOMAIN_DEVICE(uhci3)); /* three redirdev channels allows to redirect a maximum of 3 USB * devices at a time. The address which create_redirdev assigns to the * redirdev object is optional */ redirdev = create_redirdev(0, 3); devices = g_list_append(devices, GVIR_CONFIG_DOMAIN_DEVICE(redirdev)); redirdev = create_redirdev(0, 4); devices = g_list_append(devices, GVIR_CONFIG_DOMAIN_DEVICE(redirdev)); redirdev = create_redirdev(0, 5); devices = g_list_append(devices, GVIR_CONFIG_DOMAIN_DEVICE(redirdev)); /* unix channel */ GVirConfigDomainChardevSourceUnix *unix_source; channel = gvir_config_domain_channel_new(); gvir_config_domain_channel_set_target_type(channel, GVIR_CONFIG_DOMAIN_CHANNEL_TARGET_VIRTIO); gvir_config_domain_channel_set_target_name(channel, "org.qemu.guest_agent.0"); unix_source = gvir_config_domain_chardev_source_unix_new(); gvir_config_domain_chardev_set_source(GVIR_CONFIG_DOMAIN_CHARDEV(channel), GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE(unix_source)); g_object_unref(G_OBJECT(unix_source)); devices = g_list_append(devices, GVIR_CONFIG_DOMAIN_DEVICE(channel)); gvir_config_domain_set_devices(domain, devices); g_list_foreach(devices, (GFunc)g_object_unref, NULL); g_list_free(devices); devices = NULL; gvir_config_domain_set_custom_xml(domain, "", "ns", "http://foo", NULL); gvir_config_domain_set_custom_xml(domain, "", "nsbar", "http://bar", NULL); gvir_config_domain_set_custom_xml(domain, "", "ns", "http://bar", NULL); gvir_config_domain_set_custom_xml(domain, "", "ns", "http://foo", NULL); g_str_check(gvir_config_domain_get_custom_xml(domain, "http://foo"), ""); g_str_check(gvir_config_domain_get_custom_xml(domain, "http://bar"), ""); xml = gvir_config_object_to_xml(GVIR_CONFIG_OBJECT(domain)); g_print("%s\n\n", xml); g_free(xml); g_object_unref(G_OBJECT(domain)); /* storage pool */ GVirConfigStoragePool *pool; GVirConfigStoragePoolSource *pool_source; GVirConfigStoragePoolTarget *pool_target; GVirConfigStoragePermissions *perms; pool = gvir_config_storage_pool_new(); gvir_config_storage_pool_set_pool_type(pool, GVIR_CONFIG_STORAGE_POOL_TYPE_DIR); pool_source = gvir_config_storage_pool_source_new(); gvir_config_storage_pool_source_set_directory(pool_source, "/foo/bar"); gvir_config_storage_pool_set_source(pool, pool_source); g_object_unref(G_OBJECT(pool_source)); pool_source = gvir_config_storage_pool_get_source(pool); g_str_const_check(gvir_config_storage_pool_source_get_directory(pool_source), "/foo/bar"); g_object_unref(G_OBJECT(pool_source)); perms = gvir_config_storage_permissions_new(); gvir_config_storage_permissions_set_owner(perms, 1001); gvir_config_storage_permissions_set_group(perms, 1007); gvir_config_storage_permissions_set_mode(perms, 0744); gvir_config_storage_permissions_set_label(perms, "virt_image_t"); pool_target = gvir_config_storage_pool_target_new(); gvir_config_storage_pool_target_set_path(pool_target, "/dev/disk/by-path"); gvir_config_storage_pool_target_set_permissions(pool_target, perms); g_object_unref(G_OBJECT(perms)); gvir_config_storage_pool_set_target(pool, pool_target); g_object_unref(G_OBJECT(pool_target)); pool_target = gvir_config_storage_pool_get_target(pool); g_str_const_check(gvir_config_storage_pool_target_get_path(pool_target), "/dev/disk/by-path"); perms = gvir_config_storage_pool_target_get_permissions(pool_target); g_object_unref(G_OBJECT(pool_target)); g_assert(gvir_config_storage_permissions_get_owner(perms) == 1001); g_assert(gvir_config_storage_permissions_get_group(perms) == 1007); g_assert(gvir_config_storage_permissions_get_mode(perms) == 0744); g_str_const_check(gvir_config_storage_permissions_get_label(perms), "virt_image_t"); g_object_unref(G_OBJECT(perms)); xml = gvir_config_object_to_xml(GVIR_CONFIG_OBJECT(pool)); g_print("%s\n\n", xml); g_free(xml); g_object_unref(G_OBJECT(pool)); /* storage volume */ GVirConfigStorageVol *vol; GVirConfigStorageVolTarget *vol_target; vol = gvir_config_storage_vol_new(); gvir_config_storage_vol_set_name(vol, "my-volume"); gvir_config_storage_vol_set_capacity(vol, 1000000); perms = gvir_config_storage_permissions_new(); gvir_config_storage_permissions_set_owner(perms, 1001); gvir_config_storage_permissions_set_group(perms, 1007); gvir_config_storage_permissions_set_mode(perms, 0744); gvir_config_storage_permissions_set_label(perms, "virt_image_t"); vol_target = gvir_config_storage_vol_target_new(); gvir_config_storage_vol_target_set_format(vol_target, "qcow2"); gvir_config_storage_vol_target_set_permissions(vol_target, perms); gvir_config_storage_vol_target_set_compat(vol_target, "1.1"); g_object_unref(G_OBJECT(perms)); gvir_config_storage_vol_set_target(vol, vol_target); g_object_unref(G_OBJECT(vol_target)); xml = gvir_config_object_to_xml(GVIR_CONFIG_OBJECT(vol)); g_print("%s\n\n", xml); g_free(xml); g_object_unref(G_OBJECT(vol)); return 0; } libvirt-glib-1.0.0/libvirt-gconfig/tests/test-capabilities-parse.c0000664000000000000000000001531013004340477022102 00000000000000/* * test-capabilities-parse.c: test libvirt-gconfig capabilities parsing * * Copyright (C) 2011-2012 Red Hat, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * The Software is provided "as is", without warranty of any kind, express * or implied, including but not limited to the warranties of * merchantability, fitness for a particular purpose and noninfringement. * In no event shall the authors or copyright holders be liable for any * claim, damages or other liability, whether in an action of contract, * tort or otherwise, arising from, out of or in connection with the * software or the use or other dealings in the Software. * * Authors: Zeeshan Ali * Christophe Fergeau */ #include #include #include static void verify_host_caps(GVirConfigCapabilitiesHost *host_caps) { GVirConfigCapabilitiesCpu *cpu_caps; GVirConfigCapabilitiesCpuTopology *topology; GList *features, *iter, *secmodels; const char *str; g_assert(host_caps != NULL); str = gvir_config_capabilities_host_get_uuid(host_caps); g_assert(g_strcmp0(str, "cd6a24b3-46f8-01aa-bb39-c39aa2123730") == 0); cpu_caps = gvir_config_capabilities_host_get_cpu(host_caps); g_assert(cpu_caps != NULL); str = gvir_config_capabilities_cpu_get_arch(cpu_caps); g_assert(g_strcmp0(str, "x86_64") == 0); features = gvir_config_capabilities_cpu_get_features(cpu_caps); for (iter = features; iter != NULL; iter = iter->next) { g_assert(iter->data != NULL); g_object_unref(G_OBJECT(iter->data)); } g_list_free(features); topology = gvir_config_capabilities_cpu_get_topology(cpu_caps); g_assert(topology != NULL); g_assert(gvir_config_capabilities_cpu_topology_get_sockets(topology) == 1); g_assert(gvir_config_capabilities_cpu_topology_get_cores(topology) == 2); g_assert(gvir_config_capabilities_cpu_topology_get_threads(topology) == 2); g_object_unref(G_OBJECT(topology)); g_object_unref(G_OBJECT(cpu_caps)); secmodels = gvir_config_capabilities_host_get_secmodels(host_caps); g_assert(g_list_length(secmodels) == 2); for (iter = secmodels; iter != NULL; iter = iter->next) { GVirConfigCapabilitiesHostSecModel *secmodel; g_assert(iter->data != NULL); secmodel = GVIR_CONFIG_CAPABILITIES_HOST_SECMODEL(iter->data); g_assert(gvir_config_capabilities_host_secmodel_get_model(secmodel) != NULL); g_assert(gvir_config_capabilities_host_secmodel_get_doi(secmodel) != NULL); g_object_unref(G_OBJECT(iter->data)); } g_list_free(secmodels); } static void verify_guest_caps(GVirConfigCapabilitiesGuest *guest_caps) { GVirConfigCapabilitiesGuestArch *arch_caps; GList *features, *domains, *iter; const char *str; g_assert(guest_caps != NULL); g_assert(gvir_config_capabilities_guest_get_os_type(guest_caps) == GVIR_CONFIG_DOMAIN_OS_TYPE_HVM); features = gvir_config_capabilities_guest_get_features(guest_caps); for (iter = features; iter != NULL; iter = iter->next) { GVirConfigCapabilitiesGuestFeature *feature_caps; feature_caps = GVIR_CONFIG_CAPABILITIES_GUEST_FEATURE(iter->data); g_assert(feature_caps != NULL); str = gvir_config_capabilities_guest_feature_get_name(feature_caps); g_assert(str != NULL); g_object_unref(G_OBJECT(feature_caps)); } g_list_free(features); arch_caps = gvir_config_capabilities_guest_get_arch(guest_caps); g_assert(arch_caps != NULL); str = gvir_config_capabilities_guest_arch_get_name(arch_caps); g_assert(str != NULL); str = gvir_config_capabilities_guest_arch_get_emulator(arch_caps); g_assert(str != NULL); domains = gvir_config_capabilities_guest_arch_get_domains(arch_caps); for (iter = domains; iter != NULL; iter = iter->next) { GVirConfigCapabilitiesGuestDomain *domain_caps; GVirConfigDomainVirtType virt_type; domain_caps = GVIR_CONFIG_CAPABILITIES_GUEST_DOMAIN(iter->data); g_assert(domain_caps != NULL); virt_type = gvir_config_capabilities_guest_domain_get_virt_type(domain_caps); str = gvir_config_capabilities_guest_domain_get_emulator(domain_caps); g_assert((virt_type == GVIR_CONFIG_DOMAIN_VIRT_QEMU && str == NULL) || (virt_type == GVIR_CONFIG_DOMAIN_VIRT_KVM && g_strcmp0(str, "/usr/bin/qemu-kvm") == 0)); g_object_unref(G_OBJECT(domain_caps)); } g_list_free(domains); g_object_unref(G_OBJECT(arch_caps)); } int main(int argc, char **argv) { GVirConfigCapabilities *caps; GVirConfigCapabilitiesHost *host_caps; GList *guests_caps, *iter; char *xml; GError *error = NULL; gvir_config_init(&argc, &argv); if (argc != 2) { g_print("Usage: %s filename\n", argv[0]); g_print("Attempt to parse the libvirt XML definition from filename\n"); return 1; } g_file_get_contents(argv[1], &xml, NULL, &error); if (error != NULL) { g_print("Couldn't read %s: %s\n", argv[1], error->message); return 2; } caps = gvir_config_capabilities_new_from_xml(xml, &error); g_free(xml); if (error != NULL) { g_print("Couldn't parse %s: %s\n", argv[1], error->message); return 3; } g_assert(caps != NULL); gvir_config_object_validate(GVIR_CONFIG_OBJECT(caps), &error); if (error != NULL) { g_print("%s format is invalid: %s\n", argv[1], error->message); g_clear_error(&error); } host_caps = gvir_config_capabilities_get_host(caps); verify_host_caps(host_caps); g_object_unref(G_OBJECT(host_caps)); guests_caps = gvir_config_capabilities_get_guests(caps); for (iter = guests_caps; iter != NULL; iter = iter->next) { GVirConfigCapabilitiesGuest *guest_caps; guest_caps = GVIR_CONFIG_CAPABILITIES_GUEST(iter->data); verify_guest_caps(guest_caps); g_object_unref(G_OBJECT(guest_caps)); } g_list_free(guests_caps); xml = gvir_config_object_to_xml(GVIR_CONFIG_OBJECT(caps)); g_print("%s\n", xml); g_free(xml); g_object_unref(G_OBJECT(caps)); return 0; } libvirt-glib-1.0.0/libvirt-gconfig/tests/Makefile.in0000664000000000000000000005362013007136323017267 00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ noinst_PROGRAMS = test-domain-create$(EXEEXT) \ test-domain-parse$(EXEEXT) test-capabilities-parse$(EXEEXT) subdir = libvirt-gconfig/tests ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/glibtests.m4 \ $(top_srcdir)/m4/intltool.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/manywarnings.m4 \ $(top_srcdir)/m4/virt-compile-warnings.m4 \ $(top_srcdir)/m4/virt-gettext.m4 $(top_srcdir)/m4/warnings.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = PROGRAMS = $(noinst_PROGRAMS) am_test_capabilities_parse_OBJECTS = \ test-capabilities-parse.$(OBJEXT) test_capabilities_parse_OBJECTS = \ $(am_test_capabilities_parse_OBJECTS) test_capabilities_parse_LDADD = $(LDADD) am__DEPENDENCIES_1 = test_capabilities_parse_DEPENDENCIES = \ $(top_builddir)/libvirt-gconfig/libvirt-gconfig-1.0.la \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = am_test_domain_create_OBJECTS = test-domain-create.$(OBJEXT) test_domain_create_OBJECTS = $(am_test_domain_create_OBJECTS) test_domain_create_LDADD = $(LDADD) test_domain_create_DEPENDENCIES = \ $(top_builddir)/libvirt-gconfig/libvirt-gconfig-1.0.la \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) am_test_domain_parse_OBJECTS = test-domain-parse.$(OBJEXT) test_domain_parse_OBJECTS = $(am_test_domain_parse_OBJECTS) test_domain_parse_LDADD = $(LDADD) test_domain_parse_DEPENDENCIES = \ $(top_builddir)/libvirt-gconfig/libvirt-gconfig-1.0.la \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(test_capabilities_parse_SOURCES) \ $(test_domain_create_SOURCES) $(test_domain_parse_SOURCES) DIST_SOURCES = $(test_capabilities_parse_SOURCES) \ $(test_domain_create_SOURCES) $(test_domain_parse_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in \ $(top_srcdir)/build-aux/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ COVERAGE_CFLAGS = @COVERAGE_CFLAGS@ COVERAGE_LDFLAGS = @COVERAGE_LDFLAGS@ COV_FLAGS = @COV_FLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ CYGWIN_EXTRA_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@ CYGWIN_EXTRA_LIBADD = @CYGWIN_EXTRA_LIBADD@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GIO2_CFLAGS = @GIO2_CFLAGS@ GIO2_LIBS = @GIO2_LIBS@ GLIB2_CFLAGS = @GLIB2_CFLAGS@ GLIB2_LIBS = @GLIB2_LIBS@ GLIB2_REQUIRED = @GLIB2_REQUIRED@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GOBJECT2_CFLAGS = @GOBJECT2_CFLAGS@ GOBJECT2_LIBS = @GOBJECT2_LIBS@ GREP = @GREP@ GTHREAD2_CFLAGS = @GTHREAD2_CFLAGS@ GTHREAD2_LIBS = @GTHREAD2_LIBS@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBVIRT_CFLAGS = @LIBVIRT_CFLAGS@ LIBVIRT_GLIB_MAJOR_VERSION = @LIBVIRT_GLIB_MAJOR_VERSION@ LIBVIRT_GLIB_MICRO_VERSION = @LIBVIRT_GLIB_MICRO_VERSION@ LIBVIRT_GLIB_MINOR_VERSION = @LIBVIRT_GLIB_MINOR_VERSION@ LIBVIRT_GLIB_VERSION = @LIBVIRT_GLIB_VERSION@ LIBVIRT_GLIB_VERSION_INFO = @LIBVIRT_GLIB_VERSION_INFO@ LIBVIRT_GLIB_VERSION_NUMBER = @LIBVIRT_GLIB_VERSION_NUMBER@ LIBVIRT_LIBS = @LIBVIRT_LIBS@ LIBVIRT_REQUIRED = @LIBVIRT_REQUIRED@ LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ LIBXML2_LIBS = @LIBXML2_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MINGW_EXTRA_LDFLAGS = @MINGW_EXTRA_LDFLAGS@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VAPIGEN = @VAPIGEN@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ installed_test_metadir = @installed_test_metadir@ installed_testdir = @installed_testdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AM_CFLAGS = \ $(GOBJECT2_CFLAGS) \ $(LIBXML2_CFLAGS) \ $(WARN_CFLAGS) AM_CPPFLAGS = -I$(top_srcdir) LDADD = \ $(top_builddir)/libvirt-gconfig/libvirt-gconfig-1.0.la \ $(GOBJECT2_LIBS) \ $(LIBXML2_LIBS) \ $(CYGWIN_EXTRA_LIBADD) test_domain_create_SOURCES = test-domain-create.c test_domain_parse_SOURCES = test-domain-parse.c test_capabilities_parse_SOURCES = test-capabilities-parse.c all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libvirt-gconfig/tests/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu libvirt-gconfig/tests/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list test-capabilities-parse$(EXEEXT): $(test_capabilities_parse_OBJECTS) $(test_capabilities_parse_DEPENDENCIES) $(EXTRA_test_capabilities_parse_DEPENDENCIES) @rm -f test-capabilities-parse$(EXEEXT) $(AM_V_CCLD)$(LINK) $(test_capabilities_parse_OBJECTS) $(test_capabilities_parse_LDADD) $(LIBS) test-domain-create$(EXEEXT): $(test_domain_create_OBJECTS) $(test_domain_create_DEPENDENCIES) $(EXTRA_test_domain_create_DEPENDENCIES) @rm -f test-domain-create$(EXEEXT) $(AM_V_CCLD)$(LINK) $(test_domain_create_OBJECTS) $(test_domain_create_LDADD) $(LIBS) test-domain-parse$(EXEEXT): $(test_domain_parse_OBJECTS) $(test_domain_parse_DEPENDENCIES) $(EXTRA_test_domain_parse_DEPENDENCIES) @rm -f test-domain-parse$(EXEEXT) $(AM_V_CCLD)$(LINK) $(test_domain_parse_OBJECTS) $(test_domain_parse_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-capabilities-parse.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-domain-create.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-domain-parse.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstPROGRAMS cscopelist-am ctags \ ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-storage-vol-backing-store.c0000664000000000000000000000702613004340477024302 00000000000000/* * libvirt-gconfig-storage-vol-backing-store.c: libvirt storage vol backing store configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_STORAGE_VOL_BACKING_STORE_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_STORAGE_VOL_BACKING_STORE, GVirConfigStorageVolBackingStorePrivate)) struct _GVirConfigStorageVolBackingStorePrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigStorageVolBackingStore, gvir_config_storage_vol_backing_store, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_storage_vol_backing_store_class_init(GVirConfigStorageVolBackingStoreClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigStorageVolBackingStorePrivate)); } static void gvir_config_storage_vol_backing_store_init(GVirConfigStorageVolBackingStore *backing_store) { backing_store->priv = GVIR_CONFIG_STORAGE_VOL_BACKING_STORE_GET_PRIVATE(backing_store); } GVirConfigStorageVolBackingStore *gvir_config_storage_vol_backing_store_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_STORAGE_VOL_BACKING_STORE, "backingStore", NULL); return GVIR_CONFIG_STORAGE_VOL_BACKING_STORE(object); } GVirConfigStorageVolBackingStore *gvir_config_storage_vol_backing_store_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_STORAGE_VOL_BACKING_STORE, "backingStore", NULL, xml, error); return GVIR_CONFIG_STORAGE_VOL_BACKING_STORE(object); } void gvir_config_storage_vol_backing_store_set_format(GVirConfigStorageVolBackingStore *backing_store, const char *format) { GVirConfigObject *node; g_return_if_fail(GVIR_CONFIG_IS_STORAGE_VOL_BACKING_STORE(backing_store)); node = gvir_config_object_replace_child(GVIR_CONFIG_OBJECT(backing_store), "format"); g_return_if_fail(GVIR_CONFIG_IS_OBJECT(node)); gvir_config_object_set_attribute(node, "type", format, NULL); g_object_unref(G_OBJECT(node)); } /** * gvir_config_storage_vol_backing_store_set_path: * @path: (allow-none): */ void gvir_config_storage_vol_backing_store_set_path(GVirConfigStorageVolBackingStore *backing_store, const char *path) { g_return_if_fail(GVIR_CONFIG_IS_STORAGE_VOL_BACKING_STORE(backing_store)); gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(backing_store), "path", path); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-controller.h0000664000000000000000000000565713004340477022757 00000000000000/* * libvirt-gconfig-domain-controller.h: libvirt domain controller configuration * * Copyright (C) 2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_CONTROLLER_H__ #define __LIBVIRT_GCONFIG_DOMAIN_CONTROLLER_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_CONTROLLER (gvir_config_domain_controller_get_type ()) #define GVIR_CONFIG_DOMAIN_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_CONTROLLER, GVirConfigDomainController)) #define GVIR_CONFIG_DOMAIN_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_CONTROLLER, GVirConfigDomainControllerClass)) #define GVIR_CONFIG_IS_DOMAIN_CONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_CONTROLLER)) #define GVIR_CONFIG_IS_DOMAIN_CONTROLLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_CONTROLLER)) #define GVIR_CONFIG_DOMAIN_CONTROLLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_CONTROLLER, GVirConfigDomainControllerClass)) typedef struct _GVirConfigDomainController GVirConfigDomainController; typedef struct _GVirConfigDomainControllerPrivate GVirConfigDomainControllerPrivate; typedef struct _GVirConfigDomainControllerClass GVirConfigDomainControllerClass; struct _GVirConfigDomainController { GVirConfigDomainDevice parent; GVirConfigDomainControllerPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainControllerClass { GVirConfigDomainDeviceClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_controller_get_type(void); void gvir_config_domain_controller_set_index(GVirConfigDomainController *controller, guint index); guint gvir_config_domain_controller_get_index(GVirConfigDomainController *controller); void gvir_config_domain_controller_set_address(GVirConfigDomainController *controller, GVirConfigDomainAddress *address); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_CONTROLLER_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-smartcard-host-certificates.h0000664000000000000000000000765513004340477026172 00000000000000/* * libvirt-gconfig-domain-smartcard-host-certificates.h: libvirt domain smartcard host-certificates configuration * * Copyright (C) 2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Alexander Larsson */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_SMARTCARD_HOST_CERTIFICATES_H__ #define __LIBVIRT_GCONFIG_DOMAIN_SMARTCARD_HOST_CERTIFICATES_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD_HOST_CERTIFICATES (gvir_config_domain_smartcard_host_certificates_get_type ()) #define GVIR_CONFIG_DOMAIN_SMARTCARD_HOST_CERTIFICATES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD_HOST_CERTIFICATES, GVirConfigDomainSmartcardHostCertificates)) #define GVIR_CONFIG_DOMAIN_SMARTCARD_HOST_CERTIFICATES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD_HOST_CERTIFICATES, GVirConfigDomainSmartcardHostCertificatesClass)) #define GVIR_CONFIG_IS_DOMAIN_SMARTCARD_HOST_CERTIFICATES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD_HOST_CERTIFICATES)) #define GVIR_CONFIG_IS_DOMAIN_SMARTCARD_HOST_CERTIFICATES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD_HOST_CERTIFICATES)) #define GVIR_CONFIG_DOMAIN_SMARTCARD_HOST_CERTIFICATES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD_HOST_CERTIFICATES, GVirConfigDomainSmartcardHostCertificatesClass)) typedef struct _GVirConfigDomainSmartcardHostCertificates GVirConfigDomainSmartcardHostCertificates; typedef struct _GVirConfigDomainSmartcardHostCertificatesPrivate GVirConfigDomainSmartcardHostCertificatesPrivate; typedef struct _GVirConfigDomainSmartcardHostCertificatesClass GVirConfigDomainSmartcardHostCertificatesClass; struct _GVirConfigDomainSmartcardHostCertificates { GVirConfigDomainSmartcard parent; GVirConfigDomainSmartcardHostCertificatesPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainSmartcardHostCertificatesClass { GVirConfigDomainSmartcardClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_smartcard_host_certificates_get_type(void); GVirConfigDomainSmartcardHostCertificates *gvir_config_domain_smartcard_host_certificates_new(void); GVirConfigDomainSmartcardHostCertificates *gvir_config_domain_smartcard_host_certificates_new_from_xml(const gchar *xml, GError **error); void gvir_config_domain_smartcard_host_certificates_set_database(GVirConfigDomainSmartcardHostCertificates *smartcard, const char *path); void gvir_config_domain_smartcard_host_certificates_set_certificates(GVirConfigDomainSmartcardHostCertificates *smartcard, const char *cert1, const char *cert2, const char *cert3); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_SMARTCARD_HOST_CERTIFICATES_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-cpu-feature.c0000664000000000000000000000675313004340477023005 00000000000000/* * libvirt-gconfig-domain-cpu-feature.c: libvirt domain CPU feature * * Copyright (C) 2008 Daniel P. Berrange * Copyright (C) 2010-2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Zeeshan Ali * Daniel P. Berrange */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_CPU_FEATURE_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_CPU_FEATURE, GVirConfigDomainCpuFeaturePrivate)) struct _GVirConfigDomainCpuFeaturePrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainCpuFeature, gvir_config_domain_cpu_feature, GVIR_CONFIG_TYPE_CAPABILITIES_CPU_FEATURE); static void gvir_config_domain_cpu_feature_class_init(GVirConfigDomainCpuFeatureClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainCpuFeaturePrivate)); } static void gvir_config_domain_cpu_feature_init(GVirConfigDomainCpuFeature *feature) { feature->priv = GVIR_CONFIG_DOMAIN_CPU_FEATURE_GET_PRIVATE(feature); } GVirConfigDomainCpuFeature *gvir_config_domain_cpu_feature_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_CPU_FEATURE, "feature", NULL); return GVIR_CONFIG_DOMAIN_CPU_FEATURE(object); } GVirConfigDomainCpuFeature * gvir_config_domain_cpu_feature_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_CPU_FEATURE, "feature", NULL, xml, error); return GVIR_CONFIG_DOMAIN_CPU_FEATURE(object); } GVirConfigDomainCpuFeaturePolicy gvir_config_domain_cpu_feature_get_policy(GVirConfigDomainCpuFeature *feature) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_CPU_FEATURE(feature), GVIR_CONFIG_DOMAIN_CPU_FEATURE_POLICY_REQUIRE); return gvir_config_object_get_attribute_genum (GVIR_CONFIG_OBJECT(feature), NULL, "policy", GVIR_CONFIG_TYPE_DOMAIN_CPU_FEATURE_POLICY, GVIR_CONFIG_DOMAIN_CPU_FEATURE_POLICY_REQUIRE); } void gvir_config_domain_cpu_feature_set_policy(GVirConfigDomainCpuFeature *feature, GVirConfigDomainCpuFeaturePolicy policy) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_CPU_FEATURE(feature)); gvir_config_object_set_attribute_with_type (GVIR_CONFIG_OBJECT(feature), "policy", GVIR_CONFIG_TYPE_DOMAIN_CPU_FEATURE_POLICY, policy, NULL); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-cpu-feature.h0000664000000000000000000000600513004340477024162 00000000000000/* * libvirt-gconfig-capabilities-cpu-feature.h: libvirt CPU feature capabilities * * Copyright (C) 2010-2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Zeeshan Ali * Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_CAPABILITIES_CPU_FEATURE_H__ #define __LIBVIRT_GCONFIG_CAPABILITIES_CPU_FEATURE_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_CAPABILITIES_CPU_FEATURE (gvir_config_capabilities_cpu_feature_get_type ()) #define GVIR_CONFIG_CAPABILITIES_CPU_FEATURE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_CPU_FEATURE, GVirConfigCapabilitiesCpuFeature)) #define GVIR_CONFIG_CAPABILITIES_CPU_FEATURE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_CPU_FEATURE, GVirConfigCapabilitiesCpuFeatureClass)) #define GVIR_CONFIG_IS_CAPABILITIES_CPU_FEATURE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_CPU_FEATURE)) #define GVIR_CONFIG_IS_CAPABILITIES_CPU_FEATURE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_CPU_FEATURE)) #define GVIR_CONFIG_CAPABILITIES_CPU_FEATURE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_CPU_FEATURE, GVirConfigCapabilitiesCpuFeatureClass)) typedef struct _GVirConfigCapabilitiesCpuFeature GVirConfigCapabilitiesCpuFeature; typedef struct _GVirConfigCapabilitiesCpuFeaturePrivate GVirConfigCapabilitiesCpuFeaturePrivate; typedef struct _GVirConfigCapabilitiesCpuFeatureClass GVirConfigCapabilitiesCpuFeatureClass; struct _GVirConfigCapabilitiesCpuFeature { GVirConfigObject parent; GVirConfigCapabilitiesCpuFeaturePrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigCapabilitiesCpuFeatureClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; GType gvir_config_capabilities_cpu_feature_get_type(void); const gchar * gvir_config_capabilities_cpu_feature_get_name(GVirConfigCapabilitiesCpuFeature *feature); void gvir_config_capabilities_cpu_feature_set_name(GVirConfigCapabilitiesCpuFeature *feature, const gchar *name); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_CAPABILITIES_CPU_FEATURE_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-graphics-desktop.h0000664000000000000000000000701213004340477024026 00000000000000/* * libvirt-gconfig-domain-graphics-desktop.h: libvirt domain desktop configuration * * Copyright (C) 2011, 2014 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_GRAPHICS_DESKTOP_H__ #define __LIBVIRT_GCONFIG_DOMAIN_GRAPHICS_DESKTOP_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_DESKTOP (gvir_config_domain_graphics_desktop_get_type ()) #define GVIR_CONFIG_DOMAIN_GRAPHICS_DESKTOP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_DESKTOP, GVirConfigDomainGraphicsDesktop)) #define GVIR_CONFIG_DOMAIN_GRAPHICS_DESKTOP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_DESKTOP, GVirConfigDomainGraphicsDesktopClass)) #define GVIR_CONFIG_IS_DOMAIN_GRAPHICS_DESKTOP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_DESKTOP)) #define GVIR_CONFIG_IS_DOMAIN_GRAPHICS_DESKTOP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_DESKTOP)) #define GVIR_CONFIG_DOMAIN_GRAPHICS_DESKTOP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_DESKTOP, GVirConfigDomainGraphicsDesktopClass)) typedef struct _GVirConfigDomainGraphicsDesktop GVirConfigDomainGraphicsDesktop; typedef struct _GVirConfigDomainGraphicsDesktopPrivate GVirConfigDomainGraphicsDesktopPrivate; typedef struct _GVirConfigDomainGraphicsDesktopClass GVirConfigDomainGraphicsDesktopClass; struct _GVirConfigDomainGraphicsDesktop { GVirConfigDomainGraphics parent; GVirConfigDomainGraphicsDesktopPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainGraphicsDesktopClass { GVirConfigDomainGraphicsClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_graphics_desktop_get_type(void); GVirConfigDomainGraphicsDesktop *gvir_config_domain_graphics_desktop_new(void); GVirConfigDomainGraphicsDesktop *gvir_config_domain_graphics_desktop_new_from_xml(const gchar *xml, GError **error); const gchar *gvir_config_domain_graphics_desktop_get_display(GVirConfigDomainGraphicsDesktop *graphics); void gvir_config_domain_graphics_desktop_set_display(GVirConfigDomainGraphicsDesktop *graphics, const gchar *disp); gboolean gvir_config_domain_graphics_desktop_get_fullscreen(GVirConfigDomainGraphicsDesktop *graphics); void gvir_config_domain_graphics_desktop_set_fullscreen(GVirConfigDomainGraphicsDesktop *graphics, gboolean fullscreen); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_GRAPHICS_DESKTOP_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-filesys.h0000664000000000000000000001122313004340477022234 00000000000000/* * libvirt-gconfig-domain-filesys.h: libvirt domain filesystem configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_FILESYS_H__ #define __LIBVIRT_GCONFIG_DOMAIN_FILESYS_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_FILESYS (gvir_config_domain_filesys_get_type ()) #define GVIR_CONFIG_DOMAIN_FILESYS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_FILESYS, GVirConfigDomainFilesys)) #define GVIR_CONFIG_DOMAIN_FILESYS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_FILESYS, GVirConfigDomainFilesysClass)) #define GVIR_CONFIG_IS_DOMAIN_FILESYS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_FILESYS)) #define GVIR_CONFIG_IS_DOMAIN_FILESYS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_FILESYS)) #define GVIR_CONFIG_DOMAIN_FILESYS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_FILESYS, GVirConfigDomainFilesysClass)) typedef struct _GVirConfigDomainFilesys GVirConfigDomainFilesys; typedef struct _GVirConfigDomainFilesysPrivate GVirConfigDomainFilesysPrivate; typedef struct _GVirConfigDomainFilesysClass GVirConfigDomainFilesysClass; struct _GVirConfigDomainFilesys { GVirConfigDomainDevice parent; GVirConfigDomainFilesysPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainFilesysClass { GVirConfigDomainDeviceClass parent_class; gpointer padding[20]; }; typedef enum { GVIR_CONFIG_DOMAIN_FILESYS_MOUNT, GVIR_CONFIG_DOMAIN_FILESYS_BLOCK, GVIR_CONFIG_DOMAIN_FILESYS_FILE, GVIR_CONFIG_DOMAIN_FILESYS_TEMPLATE, GVIR_CONFIG_DOMAIN_FILESYS_RAM, GVIR_CONFIG_DOMAIN_FILESYS_BIND, } GVirConfigDomainFilesysType; typedef enum { GVIR_CONFIG_DOMAIN_FILESYS_ACCESS_PASSTHROUGH, GVIR_CONFIG_DOMAIN_FILESYS_ACCESS_MAPPED, GVIR_CONFIG_DOMAIN_FILESYS_ACCESS_SQUASH, } GVirConfigDomainFilesysAccessType; typedef enum { GVIR_CONFIG_DOMAIN_FILESYS_DRIVER_DEFAULT, GVIR_CONFIG_DOMAIN_FILESYS_DRIVER_PATH, GVIR_CONFIG_DOMAIN_FILESYS_DRIVER_HANDLE, GVIR_CONFIG_DOMAIN_FILESYS_DRIVER_LOOP, GVIR_CONFIG_DOMAIN_FILESYS_DRIVER_NBD, GVIR_CONFIG_DOMAIN_FILESYS_DRIVER_PLOOP, } GVirConfigDomainFilesysDriverType; GType gvir_config_domain_filesys_get_type(void); GVirConfigDomainFilesys *gvir_config_domain_filesys_new(void); GVirConfigDomainFilesys *gvir_config_domain_filesys_new_from_xml(const gchar *xml, GError **error); void gvir_config_domain_filesys_set_type(GVirConfigDomainFilesys *filesys, GVirConfigDomainFilesysType type); void gvir_config_domain_filesys_set_access_type(GVirConfigDomainFilesys *filesys, GVirConfigDomainFilesysAccessType type); void gvir_config_domain_filesys_set_driver_type(GVirConfigDomainFilesys *filesys, GVirConfigDomainFilesysDriverType type); void gvir_config_domain_filesys_set_driver_format(GVirConfigDomainFilesys *filesys, GVirConfigDomainDiskFormat format); void gvir_config_domain_filesys_set_source(GVirConfigDomainFilesys *filesys, const char *source); void gvir_config_domain_filesys_set_ram_usage(GVirConfigDomainFilesys *filesys, guint64 bytes); void gvir_config_domain_filesys_set_target(GVirConfigDomainFilesys *filesys, const char *target); void gvir_config_domain_filesys_set_readonly(GVirConfigDomainFilesys *filesys, gboolean readonly); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_FILESYS_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-object.h0000664000000000000000000000570413004340477020566 00000000000000/* * libvirt-gconfig-object.h: base object for XML configuration * * Copyright (C) 2010-2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_OBJECT_H__ #define __LIBVIRT_GCONFIG_OBJECT_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_OBJECT (gvir_config_object_get_type ()) #define GVIR_CONFIG_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_OBJECT, GVirConfigObject)) #define GVIR_CONFIG_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_OBJECT, GVirConfigObjectClass)) #define GVIR_CONFIG_IS_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_OBJECT)) #define GVIR_CONFIG_IS_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_OBJECT)) #define GVIR_CONFIG_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_OBJECT, GVirConfigObjectClass)) typedef struct _GVirConfigObject GVirConfigObject; typedef struct _GVirConfigObjectPrivate GVirConfigObjectPrivate; typedef struct _GVirConfigObjectClass GVirConfigObjectClass; struct _GVirConfigObject { GObject parent; GVirConfigObjectPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigObjectClass { GObjectClass parent_class; gpointer padding[20]; }; GType gvir_config_object_get_type(void); GVirConfigObject *gvir_config_object_new(GType type, const char *root_name, const char *schema); GVirConfigObject *gvir_config_object_new_from_xml(GType type, const char *root_name, const char *schema, const gchar *xml, GError **error); void gvir_config_object_validate(GVirConfigObject *config, GError **err); gchar *gvir_config_object_to_xml(GVirConfigObject *config); const gchar *gvir_config_object_get_schema(GVirConfigObject *config); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_OBJECT_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-capabilities.h0000664000000000000000000000552113004340477021746 00000000000000/* * libvirt-gconfig-capabilities.c: libvirt capabilities configuration * * Copyright (C) 2010-2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_CAPABILITIES_H__ #define __LIBVIRT_GCONFIG_CAPABILITIES_H__ #include "libvirt-gconfig/libvirt-gconfig-capabilities-host.h" G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_CAPABILITIES (gvir_config_capabilities_get_type ()) #define GVIR_CONFIG_CAPABILITIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_CAPABILITIES, GVirConfigCapabilities)) #define GVIR_CONFIG_CAPABILITIES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_CAPABILITIES, GVirConfigCapabilitiesClass)) #define GVIR_CONFIG_IS_CAPABILITIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_CAPABILITIES)) #define GVIR_CONFIG_IS_CAPABILITIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_CAPABILITIES)) #define GVIR_CONFIG_CAPABILITIES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_CAPABILITIES, GVirConfigCapabilitiesClass)) typedef struct _GVirConfigCapabilities GVirConfigCapabilities; typedef struct _GVirConfigCapabilitiesPrivate GVirConfigCapabilitiesPrivate; typedef struct _GVirConfigCapabilitiesClass GVirConfigCapabilitiesClass; struct _GVirConfigCapabilities { GVirConfigObject parent; GVirConfigCapabilitiesPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigCapabilitiesClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; GType gvir_config_capabilities_get_type(void); GVirConfigCapabilities *gvir_config_capabilities_new(void); GVirConfigCapabilities *gvir_config_capabilities_new_from_xml(const gchar *xml, GError **error); GVirConfigCapabilitiesHost * gvir_config_capabilities_get_host(GVirConfigCapabilities *caps); GList *gvir_config_capabilities_get_guests(GVirConfigCapabilities *caps); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_CAPABILITIES_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-clock.c0000664000000000000000000001203113004340477021642 00000000000000/* * libvirt-gconfig-domain-clock.c: libvirt domain clock configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_CLOCK_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_CLOCK, GVirConfigDomainClockPrivate)) struct _GVirConfigDomainClockPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainClock, gvir_config_domain_clock, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_domain_clock_class_init(GVirConfigDomainClockClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainClockPrivate)); } static void gvir_config_domain_clock_init(GVirConfigDomainClock *klock) { klock->priv = GVIR_CONFIG_DOMAIN_CLOCK_GET_PRIVATE(klock); } GVirConfigDomainClock *gvir_config_domain_clock_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_CLOCK, "clock", NULL); return GVIR_CONFIG_DOMAIN_CLOCK(object); } GVirConfigDomainClock *gvir_config_domain_clock_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_CLOCK, "clock", NULL, xml, error); return GVIR_CONFIG_DOMAIN_CLOCK(object); } GVirConfigDomainClockOffset gvir_config_domain_clock_get_offset(GVirConfigDomainClock *klock) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_CLOCK(klock), GVIR_CONFIG_DOMAIN_CLOCK_UTC); return gvir_config_object_get_attribute_genum(GVIR_CONFIG_OBJECT(klock), NULL, "offset", GVIR_CONFIG_TYPE_DOMAIN_CLOCK_OFFSET, GVIR_CONFIG_DOMAIN_CLOCK_UTC); } void gvir_config_domain_clock_set_offset(GVirConfigDomainClock *klock, GVirConfigDomainClockOffset offset) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_CLOCK(klock)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(klock), "offset", GVIR_CONFIG_TYPE_DOMAIN_CLOCK_OFFSET, offset, NULL); } const char *gvir_config_domain_clock_get_timezone(GVirConfigDomainClock *klock) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_CLOCK(klock), NULL); return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(klock), NULL, "timezone"); } void gvir_config_domain_clock_set_timezone(GVirConfigDomainClock *klock, const char *tz) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_CLOCK(klock)); g_return_if_fail(tz != NULL); gvir_config_object_set_attribute(GVIR_CONFIG_OBJECT(klock), "timezone", tz, NULL); } int gvir_config_domain_clock_get_variable_offset(GVirConfigDomainClock *klock) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_CLOCK(klock), 0); return gvir_config_object_get_attribute_uint64(GVIR_CONFIG_OBJECT(klock), NULL, "adjustment", 0); } void gvir_config_domain_clock_set_variable_offset(GVirConfigDomainClock *klock, gint seconds) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_CLOCK(klock)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(klock), "offset", G_TYPE_STRING, "variable", "adjustment", G_TYPE_INT, seconds, NULL); } void gvir_config_domain_clock_add_timer(GVirConfigDomainClock *klock, GVirConfigDomainTimer *timer) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_CLOCK(klock)); g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_TIMER(timer)); gvir_config_object_attach_add(GVIR_CONFIG_OBJECT(klock), GVIR_CONFIG_OBJECT(timer)); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-capabilities.c0000664000000000000000000001115413004340477021740 00000000000000/* * libvirt-gconfig-capabilities.c: libvirt capabilities configuration * * Copyright (C) 2008 Daniel P. Berrange * Copyright (C) 2010-2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_CAPABILITIES_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_CAPABILITIES, GVirConfigCapabilitiesPrivate)) struct _GVirConfigCapabilitiesPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigCapabilities, gvir_config_capabilities, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_capabilities_class_init(GVirConfigCapabilitiesClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigCapabilitiesPrivate)); } static void gvir_config_capabilities_init(GVirConfigCapabilities *caps) { caps->priv = GVIR_CONFIG_CAPABILITIES_GET_PRIVATE(caps); } GVirConfigCapabilities *gvir_config_capabilities_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_CAPABILITIES, "capabilities", DATADIR "/libvirt/schemas/capability.rng"); return GVIR_CONFIG_CAPABILITIES(object); } GVirConfigCapabilities *gvir_config_capabilities_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_CAPABILITIES, "capabilities", DATADIR "/libvirt/schemas/capability.rng", xml, error); return GVIR_CONFIG_CAPABILITIES(object); } /** * gvir_config_capabilities_get_host: * * Gets the host capabilities. * * Returns: (transfer full): a new #GVirConfigCapabilitiesHost. */ GVirConfigCapabilitiesHost * gvir_config_capabilities_get_host(GVirConfigCapabilities *caps) { GVirConfigObject *object; g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES(caps), NULL); object = gvir_config_object_get_child_with_type (GVIR_CONFIG_OBJECT(caps), "host", GVIR_CONFIG_TYPE_CAPABILITIES_HOST); return GVIR_CONFIG_CAPABILITIES_HOST(object); } struct GetGuestData { GVirConfigXmlDoc *doc; const gchar *schema; GList *guests; }; static gboolean add_guest(xmlNodePtr node, gpointer opaque) { struct GetGuestData* data = (struct GetGuestData*)opaque; GVirConfigObject *object; if (g_strcmp0((const gchar *)node->name, "guest") != 0) return TRUE; object = gvir_config_object_new_from_tree(GVIR_CONFIG_TYPE_CAPABILITIES_GUEST, data->doc, data->schema, node); if (object != NULL) data->guests = g_list_append(data->guests, object); else g_debug("Failed to parse %s node", node->name); return TRUE; } /** * gvir_config_capabilities_get_guests: * * Gets the list of guest capabilities. * * Returns: (element-type LibvirtGConfig.CapabilitiesGuest) (transfer full): * a newly allocated #GList of #GVirConfigCapabilitiesGuest. */ GList * gvir_config_capabilities_get_guests(GVirConfigCapabilities *caps) { struct GetGuestData data; g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES(caps), NULL); g_object_get(G_OBJECT(caps), "doc", &data.doc, NULL); data.schema = gvir_config_object_get_schema(GVIR_CONFIG_OBJECT(caps)); data.guests = NULL; gvir_config_object_foreach_child(GVIR_CONFIG_OBJECT(caps), NULL, add_guest, &data); g_clear_object(&data.doc); return data.guests; } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-controller-usb.c0000664000000000000000000002141413004340477023526 00000000000000/* * libvirt-gconfig-domain-controller-usb.c: libvirt domain USB controller configuration * * Copyright (C) 2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" /** * SECTION:libvirt-gconfig-domain-controller-usb * @title: USB Controller Configuration * @short_description: configuration of USB controllers * * A #GVirConfigDomainControllerUsb represents an USB controller device. * A #GVirConfigDomain with #GVirConfigDomainControllerUsb devices will * be able to use USB devices. * * Several USB controllers can be added to the same domain, for example * to have an USB1 and an USB2 controller. * * When using SPICE (see #GVirConfigGraphicsSpice), USB devices plugged * on the client can be forwarded to the guest through the use of * #GVirConfigDomainRedirDev. * * * Adding USB controllers to a standard x86 domain * * This example shows the recommended USB setup to get a virtual machine * looking like your usual x86 desktop or laptop. * * * static GVirConfigDomainControllerUsb * * create_usb_controller(GVirConfigDomainControllerUsbModel model, guint index, * GVirConfigDomainControllerUsb *master, guint start_port) * { * GVirConfigDomainControllerUsb *controller; * * controller = gvir_config_domain_controller_usb_new(); * gvir_config_domain_controller_usb_set_model(controller, model); * gvir_config_domain_controller_set_index(GVIR_CONFIG_DOMAIN_CONTROLLER(controller), index); * if (master) * gvir_config_domain_controller_usb_set_master(controller, master, start_port); * * return controller; * } * * void setup_default_usb_controllers(GVirConfigDomain *domain) * { * GVirConfigDomainControllerUsb *ehci; * GVirConfigDomainControllerUsb *uhci1; * GVirConfigDomainControllerUsb *uhci2; * GVirConfigDomainControllerUsb *uhci3; * * ehci = create_usb_controller(GVIR_CONFIG_DOMAIN_CONTROLLER_USB_MODEL_ICH9_EHCI1, * 0, NULL, 0); * gvir_config_domain_add_device(domain, GVIR_CONFIG_DOMAIN_DEVICE(ehci)); * uhci1 = create_usb_controller(GVIR_CONFIG_DOMAIN_CONTROLLER_USB_MODEL_ICH9_UHCI1, * 0, ehci, 0); * gvir_config_domain_add_device(domain, GVIR_CONFIG_DOMAIN_DEVICE(uhci1)); * g_object_unref(G_OBJECT(uhci1)); * uhci2 = create_usb_controller(GVIR_CONFIG_DOMAIN_CONTROLLER_USB_MODEL_ICH9_UHCI2, * 0, ehci, 2); * gvir_config_domain_add_device(domain, GVIR_CONFIG_DOMAIN_DEVICE(uhci2)); * g_object_unref(G_OBJECT(uhci2)); * uhci3 = create_usb_controller(GVIR_CONFIG_DOMAIN_CONTROLLER_USB_MODEL_ICH9_UHCI3, * 0, ehci, 4); * gvir_config_domain_add_device(domain, GVIR_CONFIG_DOMAIN_DEVICE(uhci3)); * g_object_unref(G_OBJECT(uhci3)); * g_object_unref(G_OBJECT(ehci)); *} * * * * This class models libvirt XML nodes located at * * /domain/devices/controller[@type="usb"] */ /** * GVirConfigDomainControllerUsb: * * The #GVirConfigDomainControllerUsb struct is an opaque data structure * which is used to configure USB controllers on a domain. It should only * be accessed via the following functions. */ #define GVIR_CONFIG_DOMAIN_CONTROLLER_USB_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_CONTROLLER_USB, GVirConfigDomainControllerUsbPrivate)) struct _GVirConfigDomainControllerUsbPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainControllerUsb, gvir_config_domain_controller_usb, GVIR_CONFIG_TYPE_DOMAIN_CONTROLLER); static void gvir_config_domain_controller_usb_class_init(GVirConfigDomainControllerUsbClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainControllerUsbPrivate)); } static void gvir_config_domain_controller_usb_init(GVirConfigDomainControllerUsb *controller_usb) { controller_usb->priv = GVIR_CONFIG_DOMAIN_CONTROLLER_USB_GET_PRIVATE(controller_usb); } /** * gvir_config_domain_controller_usb_new: * * Creates a new #GVirConfigDomainControllerUsb with a reference count of 1. * gvir_config_domain_controller_set_index() must be called before * this controller is usable. * * Returns: a new #GVirConfigDomainControllerUsb */ GVirConfigDomainControllerUsb *gvir_config_domain_controller_usb_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_CONTROLLER_USB, "controller", NULL); gvir_config_object_set_attribute(object, "type", "usb", NULL); return GVIR_CONFIG_DOMAIN_CONTROLLER_USB(object); } /** * gvir_config_domain_controller_usb_new_from_xml: * @xml: xml data to create the controller from * @error: return location for a #GError, or NULL * * Creates a new #GVirConfigDomainControllerUsb with a reference count of 1. * The controller object will be created using the XML description stored * in @xml. This is a fragment of libvirt domain XML whose root node is * <controller>. * * Returns: a new #GVirConfigDomainControllerUsb, or NULL if @xml failed to * be parsed. */ GVirConfigDomainControllerUsb *gvir_config_domain_controller_usb_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_CONTROLLER_USB, "controller", NULL, xml, error); if (g_strcmp0(gvir_config_object_get_attribute(object, NULL, "type"), "usb") != 0) { g_object_unref(G_OBJECT(object)); g_return_val_if_reached(NULL); } return GVIR_CONFIG_DOMAIN_CONTROLLER_USB(object); } /** * gvir_config_domain_controller_usb_set_model: * @controller: a #GVirConfigDomainControllerUsb * @model: the USB controller model * * Sets the model of @controller to @model. */ void gvir_config_domain_controller_usb_set_model(GVirConfigDomainControllerUsb *controller, GVirConfigDomainControllerUsbModel model) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_CONTROLLER_USB(controller)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(controller), "model", GVIR_CONFIG_TYPE_DOMAIN_CONTROLLER_USB_MODEL, model, NULL); } /** * gvir_config_domain_controller_usb_set_master: * @controller: a #GVirConfigDomainControllerUsb * @master: the master #GVirConfigDomainControllerUsb * @startport: the start port number * * Sets @controller to be a companion controller of @master. @controller * will be exposed from port @startport on @master in the guest. * After this call, @controller's index will be set to @master's index. */ void gvir_config_domain_controller_usb_set_master(GVirConfigDomainControllerUsb *controller, GVirConfigDomainControllerUsb *master, guint startport) { guint index; char *startport_str; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_CONTROLLER_USB(controller)); g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_CONTROLLER_USB(master)); index = gvir_config_domain_controller_get_index(GVIR_CONFIG_DOMAIN_CONTROLLER(master)); gvir_config_domain_controller_set_index(GVIR_CONFIG_DOMAIN_CONTROLLER(controller), index); startport_str = g_strdup_printf("%d", startport); gvir_config_object_replace_child_with_attribute(GVIR_CONFIG_OBJECT(controller), "master", "startport", startport_str); g_free(startport_str); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-storage-vol-target.h0000664000000000000000000000641013004340477023041 00000000000000/* * libvirt-gconfig-storage-vol-target.c: libvirt storage volume target configuration * * Copyright (C) 2010-2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_STORAGE_VOL_TARGET_H__ #define __LIBVIRT_GCONFIG_STORAGE_VOL_TARGET_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_STORAGE_VOL_TARGET (gvir_config_storage_vol_target_get_type ()) #define GVIR_CONFIG_STORAGE_VOL_TARGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_STORAGE_VOL_TARGET, GVirConfigStorageVolTarget)) #define GVIR_CONFIG_STORAGE_VOL_TARGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_STORAGE_VOL_TARGET, GVirConfigStorageVolTargetClass)) #define GVIR_CONFIG_IS_STORAGE_VOL_TARGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_STORAGE_VOL_TARGET)) #define GVIR_CONFIG_IS_STORAGE_VOL_TARGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_STORAGE_VOL_TARGET)) #define GVIR_CONFIG_STORAGE_VOL_TARGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_STORAGE_VOL_TARGET, GVirConfigStorageVolTargetClass)) typedef struct _GVirConfigStorageVolTarget GVirConfigStorageVolTarget; typedef struct _GVirConfigStorageVolTargetPrivate GVirConfigStorageVolTargetPrivate; typedef struct _GVirConfigStorageVolTargetClass GVirConfigStorageVolTargetClass; struct _GVirConfigStorageVolTarget { GVirConfigObject parent; GVirConfigStorageVolTargetPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigStorageVolTargetClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; GType gvir_config_storage_vol_target_get_type(void); GVirConfigStorageVolTarget *gvir_config_storage_vol_target_new(void); GVirConfigStorageVolTarget *gvir_config_storage_vol_target_new_from_xml(const gchar *xml, GError **error); void gvir_config_storage_vol_target_set_compat(GVirConfigStorageVolTarget *target, const char *compat); void gvir_config_storage_vol_target_set_format(GVirConfigStorageVolTarget *target, const char *format); void gvir_config_storage_vol_target_set_permissions(GVirConfigStorageVolTarget *target, GVirConfigStoragePermissions *perms); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_STORAGE_VOL_TARGET_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-storage-pool-target.h0000664000000000000000000000653413004340477023221 00000000000000/* * libvirt-gconfig-storage-pool-target.h: libvirt storage pool target configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_STORAGE_POOL_TARGET_H__ #define __LIBVIRT_GCONFIG_STORAGE_POOL_TARGET_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_STORAGE_POOL_TARGET (gvir_config_storage_pool_target_get_type ()) #define GVIR_CONFIG_STORAGE_POOL_TARGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_STORAGE_POOL_TARGET, GVirConfigStoragePoolTarget)) #define GVIR_CONFIG_STORAGE_POOL_TARGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_STORAGE_POOL_TARGET, GVirConfigStoragePoolTargetClass)) #define GVIR_CONFIG_IS_STORAGE_POOL_TARGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_STORAGE_POOL_TARGET)) #define GVIR_CONFIG_IS_STORAGE_POOL_TARGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_STORAGE_POOL_TARGET)) #define GVIR_CONFIG_STORAGE_POOL_TARGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_STORAGE_POOL_TARGET, GVirConfigStoragePoolTargetClass)) typedef struct _GVirConfigStoragePoolTarget GVirConfigStoragePoolTarget; typedef struct _GVirConfigStoragePoolTargetPrivate GVirConfigStoragePoolTargetPrivate; typedef struct _GVirConfigStoragePoolTargetClass GVirConfigStoragePoolTargetClass; struct _GVirConfigStoragePoolTarget { GVirConfigObject parent; GVirConfigStoragePoolTargetPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigStoragePoolTargetClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; GType gvir_config_storage_pool_target_get_type(void); GVirConfigStoragePoolTarget *gvir_config_storage_pool_target_new(void); GVirConfigStoragePoolTarget *gvir_config_storage_pool_target_new_from_xml(const gchar *xml, GError **error); const char *gvir_config_storage_pool_target_get_path(GVirConfigStoragePoolTarget *target); void gvir_config_storage_pool_target_set_path(GVirConfigStoragePoolTarget *target, const char *path); GVirConfigStoragePermissions *gvir_config_storage_pool_target_get_permissions(GVirConfigStoragePoolTarget *target); void gvir_config_storage_pool_target_set_permissions(GVirConfigStoragePoolTarget *target, GVirConfigStoragePermissions *perms); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_STORAGE_POOL_TARGET_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-chardev-source-spicevmc.h0000664000000000000000000000631713004340477025307 00000000000000/* * libvirt-gconfig-domain-chardev-source-spicevmc.h: libvirt domain chardev spicevmc configuration * * Copyright (C) 2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_CHARDEV_SOURCE_SPICE_VMC_H__ #define __LIBVIRT_GCONFIG_DOMAIN_CHARDEV_SOURCE_SPICE_VMC_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_SPICE_VMC (gvir_config_domain_chardev_source_spicevmc_get_type ()) #define GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_SPICE_VMC(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_SPICE_VMC, GVirConfigDomainChardevSourceSpiceVmc)) #define GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_SPICE_VMC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_SPICE_VMC, GVirConfigDomainChardevSourceSpiceVmcClass)) #define GVIR_CONFIG_IS_DOMAIN_CHARDEV_SOURCE_SPICE_VMC(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_SPICE_VMC)) #define GVIR_CONFIG_IS_DOMAIN_CHARDEV_SOURCE_SPICE_VMC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_SPICE_VMC)) #define GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_SPICE_VMC_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_SPICE_VMC, GVirConfigDomainChardevSourceSpiceVmcClass)) typedef struct _GVirConfigDomainChardevSourceSpiceVmc GVirConfigDomainChardevSourceSpiceVmc; typedef struct _GVirConfigDomainChardevSourceSpiceVmcPrivate GVirConfigDomainChardevSourceSpiceVmcPrivate; typedef struct _GVirConfigDomainChardevSourceSpiceVmcClass GVirConfigDomainChardevSourceSpiceVmcClass; struct _GVirConfigDomainChardevSourceSpiceVmc { GVirConfigDomainChardevSource parent; GVirConfigDomainChardevSourceSpiceVmcPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainChardevSourceSpiceVmcClass { GVirConfigDomainChardevSourceClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_chardev_source_spicevmc_get_type(void); GVirConfigDomainChardevSourceSpiceVmc *gvir_config_domain_chardev_source_spicevmc_new(void); GVirConfigDomainChardevSourceSpiceVmc *gvir_config_domain_chardev_source_spicevmc_new_from_xml(const gchar *xml, GError **error); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_CHARDEV_SOURCE_SPICE_VMC_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain.c0000664000000000000000000007723713004340477020574 00000000000000/* * libvirt-gconfig-domain.c: libvirt domain configuration * * Copyright (C) 2008 Daniel P. Berrange * Copyright (C) 2010-2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN, GVirConfigDomainPrivate)) struct _GVirConfigDomainPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomain, gvir_config_domain, GVIR_CONFIG_TYPE_OBJECT); enum { PROP_0, PROP_NAME, PROP_UUID, PROP_TITLE, PROP_DESCRIPTION, PROP_MEMORY, PROP_VCPU, PROP_FEATURES, PROP_CURRENT_MEMORY }; static void gvir_config_domain_get_property(GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) { GVirConfigDomain *domain = GVIR_CONFIG_DOMAIN(object); switch (prop_id) { case PROP_NAME: g_value_set_string(value, gvir_config_domain_get_name(domain)); break; case PROP_UUID: g_value_set_string(value, gvir_config_domain_get_uuid(domain)); break; case PROP_TITLE: g_value_set_string(value, gvir_config_domain_get_title(domain)); break; case PROP_DESCRIPTION: g_value_set_string(value, gvir_config_domain_get_description(domain)); break; case PROP_MEMORY: g_value_set_uint64(value, gvir_config_domain_get_memory(domain)); break; case PROP_CURRENT_MEMORY: g_value_set_uint64(value, gvir_config_domain_get_current_memory(domain)); break; case PROP_VCPU: g_value_set_uint64(value, gvir_config_domain_get_vcpus(domain)); break; case PROP_FEATURES: g_value_take_boxed(value, gvir_config_domain_get_features(domain)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec); } } static void gvir_config_domain_set_property(GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) { GVirConfigDomain *domain = GVIR_CONFIG_DOMAIN(object); switch (prop_id) { case PROP_NAME: gvir_config_domain_set_name(domain, g_value_get_string(value)); break; case PROP_UUID: gvir_config_domain_set_uuid(domain, g_value_get_string(value)); break; case PROP_TITLE: gvir_config_domain_set_title(domain, g_value_get_string(value)); break; case PROP_DESCRIPTION: gvir_config_domain_set_description(domain, g_value_get_string(value)); break; case PROP_MEMORY: gvir_config_domain_set_memory(domain, g_value_get_uint64(value)); break; case PROP_CURRENT_MEMORY: gvir_config_domain_set_current_memory(domain, g_value_get_uint64(value)); break; case PROP_VCPU: gvir_config_domain_set_vcpus(domain, g_value_get_uint64(value)); break; case PROP_FEATURES: gvir_config_domain_set_features(domain, g_value_get_boxed(value)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec); } } static void gvir_config_domain_class_init(GVirConfigDomainClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); g_type_class_add_private(klass, sizeof(GVirConfigDomainPrivate)); object_class->get_property = gvir_config_domain_get_property; object_class->set_property = gvir_config_domain_set_property; g_object_class_install_property(object_class, PROP_NAME, g_param_spec_string("name", "Name", "Domain Name", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property(object_class, PROP_UUID, g_param_spec_string("uuid", "UUID", "Domain UUID", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property(object_class, PROP_TITLE, g_param_spec_string("title", "Title", "A short description - title - of the domain", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property(object_class, PROP_DESCRIPTION, g_param_spec_string("description", "Description", "Some human readable description (could be anything).", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property(object_class, PROP_MEMORY, g_param_spec_uint64("memory", "Memory", "Maximum Guest Memory (in kilobytes)", 0, G_MAXUINT64, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property(object_class, PROP_CURRENT_MEMORY, g_param_spec_uint64("current-memory", "Current memory", "Current Guest Memory (in kilobytes)", 0, G_MAXUINT64, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property(object_class, PROP_VCPU, g_param_spec_uint64("vcpu", "Virtual CPUs", "Maximum Number of Guest Virtual CPUs", 0, G_MAXUINT64, 1, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property(object_class, PROP_FEATURES, g_param_spec_boxed("features", "Features", "Hypervisor Features", G_TYPE_STRV, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); } static void gvir_config_domain_init(GVirConfigDomain *domain) { domain->priv = GVIR_CONFIG_DOMAIN_GET_PRIVATE(domain); } GVirConfigDomain *gvir_config_domain_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN, "domain", DATADIR "/libvirt/schemas/domain.rng", xml, error); return GVIR_CONFIG_DOMAIN(object); } GVirConfigDomain *gvir_config_domain_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN, "domain", DATADIR "/libvirt/schemas/domain.rng"); return GVIR_CONFIG_DOMAIN(object); } GVirConfigDomainVirtType gvir_config_domain_get_virt_type(GVirConfigDomain *domain) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN(domain), GVIR_CONFIG_DOMAIN_VIRT_QEMU); return gvir_config_object_get_attribute_genum (GVIR_CONFIG_OBJECT(domain), NULL, "type", GVIR_CONFIG_TYPE_DOMAIN_VIRT_TYPE, GVIR_CONFIG_DOMAIN_VIRT_QEMU); } void gvir_config_domain_set_virt_type(GVirConfigDomain *domain, GVirConfigDomainVirtType type) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN(domain)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(domain), "type", GVIR_CONFIG_TYPE_DOMAIN_VIRT_TYPE, type, NULL); } const char *gvir_config_domain_get_name(GVirConfigDomain *domain) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN(domain), NULL); return gvir_config_object_get_node_content(GVIR_CONFIG_OBJECT(domain), "name"); } const char *gvir_config_domain_get_uuid(GVirConfigDomain *domain) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN(domain), NULL); return gvir_config_object_get_node_content(GVIR_CONFIG_OBJECT(domain), "uuid"); } const char *gvir_config_domain_get_title(GVirConfigDomain *domain) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN(domain), NULL); return gvir_config_object_get_node_content(GVIR_CONFIG_OBJECT(domain), "title"); } /** * gvir_config_domain_set_name: * @domain: a #GVirConfigDomain * @name: (allow-none): */ void gvir_config_domain_set_name(GVirConfigDomain *domain, const char *name) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN(domain)); gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(domain), "name", name); g_object_notify(G_OBJECT(domain), "name"); } /** * gvir_config_domain_set_uuid: * @domain: a #GVirConfigDomain * @uuid: (allow-none): */ void gvir_config_domain_set_uuid(GVirConfigDomain *domain, const char *uuid) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN(domain)); gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(domain), "uuid", uuid); g_object_notify(G_OBJECT(domain), "uuid"); } /** * gvir_config_domain_set_title: * @domain: a #GVirConfigDomain * @title: (allow-none): title of the domain * * Sets the title of the domain. This is an optional short textual description of the domain. Passing a NULL @title * unsets the current domain title. */ void gvir_config_domain_set_title(GVirConfigDomain *domain, const char *title) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN(domain)); gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(domain), "title", title); g_object_notify(G_OBJECT(domain), "title"); } const char *gvir_config_domain_get_description(GVirConfigDomain *domain) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN(domain), NULL); return gvir_config_object_get_node_content(GVIR_CONFIG_OBJECT(domain), "description"); } /** * gvir_config_domain_set_description: * @domain: a #GVirConfigDomain * @description: (allow-none): */ void gvir_config_domain_set_description(GVirConfigDomain *domain, const char *description) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN(domain)); gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(domain), "description", description); g_object_notify(G_OBJECT(domain), "description"); } static void insert_base(GHashTable *unit_bases, const char *unit, guint64 unit_base) { guint64 *base; base = g_slice_alloc(sizeof(*base)); *base = unit_base; g_hash_table_insert(unit_bases, (gpointer)unit, base); } static gpointer set_unit_bases(G_GNUC_UNUSED gpointer user_data) { GHashTable *unit_bases; unit_bases = g_hash_table_new(g_str_hash, g_str_equal); insert_base(unit_bases, "b", 1); insert_base(unit_bases, "bytes", 1); insert_base(unit_bases, "KB", 1000); insert_base(unit_bases, "k", 1024); insert_base(unit_bases, "KiB", 1024); insert_base(unit_bases, "MB", 1000*1000); insert_base(unit_bases, "M", 1024*1024); insert_base(unit_bases, "MiB", 1024*1024); insert_base(unit_bases, "GB", 1000*1000*1000); insert_base(unit_bases, "G", 1024*1024*1024); insert_base(unit_bases, "GiB", 1024*1024*1024); insert_base(unit_bases, "TB", (guint64)1000*1000*1000*1000); insert_base(unit_bases, "T", (guint64)1024*1024*1024*1024); insert_base(unit_bases, "TiB", (guint64)1024*1024*1024*1024); return unit_bases; } static guint64 get_unit_base(const char *unit, guint64 default_base) { static GOnce set_unit_bases_once = G_ONCE_INIT; GHashTable *unit_bases; guint64 *unit_base; if (unit == NULL) { return default_base; } unit_bases = g_once (&set_unit_bases_once, set_unit_bases, &unit_bases); g_return_val_if_fail (unit_bases != NULL, default_base); unit_base = g_hash_table_lookup(unit_bases, unit); if (unit_base == NULL) { /* unknown unit, fall back to the default unit */ g_return_val_if_reached(default_base); } return *unit_base; } /** * gvir_config_domain_get_memory: * @domain: a #GVirConfigDomain * * Returns: maximum amount of RAM in kilobytes (i.e. blocks of 1024 bytes). */ guint64 gvir_config_domain_get_memory(GVirConfigDomain *domain) { const char *unit; guint64 unit_base; guint64 memory; g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN(domain), 0); unit = gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(domain), "memory", "unit"); unit_base = get_unit_base(unit, 1024); memory = gvir_config_object_get_node_content_uint64(GVIR_CONFIG_OBJECT(domain), "memory"); return memory * unit_base / 1024; } /** * gvir_config_domain_get_current_memory: * @domain: a #GVirConfigDomain * * Returns: current amount of RAM in kilobytes (i.e. blocks of 1024 bytes). */ guint64 gvir_config_domain_get_current_memory(GVirConfigDomain *domain) { const char *unit; guint64 unit_base; guint64 memory; g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN(domain), 0); unit = gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(domain), "currentMemory", "unit"); unit_base = get_unit_base(unit, 1024); memory = gvir_config_object_get_node_content_uint64(GVIR_CONFIG_OBJECT(domain), "currentMemory"); return memory * unit_base / 1024; } /** * gvir_config_domain_set_memory: * @domain: a #GVirConfigDomain * @memory: The maximum amount of RAM in kilobytes. * * Sets the maximum amount of RAM allocated to @domain in kilobytes (i.e. * blocks of 1024 bytes). */ void gvir_config_domain_set_memory(GVirConfigDomain *domain, guint64 memory) { GVirConfigObject *node; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN(domain)); node = gvir_config_object_replace_child(GVIR_CONFIG_OBJECT(domain), "memory"); gvir_config_object_set_node_content_uint64(GVIR_CONFIG_OBJECT(node), NULL, memory); gvir_config_object_set_attribute(GVIR_CONFIG_OBJECT(node), "unit", "KiB", NULL); g_object_unref(G_OBJECT(node)); g_object_notify(G_OBJECT(domain), "memory"); } /** * gvir_config_domain_set_current_memory: * @domain: a #GVirConfigDomain * @memory: The current amount of RAM in kilobytes. * * Sets the current amount of RAM allocated to @domain in kilobytes (i.e. * blocks of 1024 bytes). This can be set to less than the maximum domain * memory to allow to balloon the guest memory on the fly. Be aware that * libvirt will set it automatically if it's not explictly set, which means * you may need to set this value in addition to 'memory' if you want to * change the available domain memory after creation. */ void gvir_config_domain_set_current_memory(GVirConfigDomain *domain, guint64 memory) { GVirConfigObject *node; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN(domain)); node = gvir_config_object_replace_child(GVIR_CONFIG_OBJECT(domain), "currentMemory"); gvir_config_object_set_node_content_uint64(GVIR_CONFIG_OBJECT(node), NULL, memory); gvir_config_object_set_attribute(GVIR_CONFIG_OBJECT(node), "unit", "KiB", NULL); g_object_unref(G_OBJECT(node)); g_object_notify(G_OBJECT(domain), "current-memory"); } guint64 gvir_config_domain_get_vcpus(GVirConfigDomain *domain) { return gvir_config_object_get_node_content_uint64(GVIR_CONFIG_OBJECT(domain), "vcpu"); } void gvir_config_domain_set_vcpus(GVirConfigDomain *domain, guint64 vcpu_count) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN(domain)); gvir_config_object_set_node_content_uint64(GVIR_CONFIG_OBJECT(domain), "vcpu", vcpu_count); g_object_notify(G_OBJECT(domain), "vcpu"); } static gboolean add_feature(xmlNodePtr node, gpointer opaque) { GPtrArray *features; g_return_val_if_fail(opaque != NULL, FALSE); features = (GPtrArray *)opaque; g_ptr_array_add(features, g_strdup((char *)node->name)); return TRUE; } /** * gvir_config_domain_get_features: * @domain: a #GVirConfigDomain * * Returns: (transfer full): The returned list should be freed with * g_strfreev() when no longer needed. */ GStrv gvir_config_domain_get_features(GVirConfigDomain *domain) { GPtrArray *features; g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN(domain), NULL); features = g_ptr_array_new(); gvir_config_object_foreach_child(GVIR_CONFIG_OBJECT(domain), "features", add_feature, features); g_ptr_array_add(features, NULL); return (GStrv)g_ptr_array_free(features, FALSE); } void gvir_config_domain_set_features(GVirConfigDomain *domain, const GStrv features) { GVirConfigObject *features_node; GStrv it; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN(domain)); features_node = gvir_config_object_replace_child(GVIR_CONFIG_OBJECT(domain), "features"); g_return_if_fail(GVIR_CONFIG_IS_OBJECT(features_node)); for (it = features; *it != NULL; it++) { GVirConfigObject *feature; feature = gvir_config_object_replace_child(GVIR_CONFIG_OBJECT(features_node), *it); g_object_unref(G_OBJECT(feature)); } g_object_unref(G_OBJECT(features_node)); g_object_notify(G_OBJECT(domain), "features"); } /** * gvir_config_domain_get_clock: * @domain: a #GVirConfigDomain * * Gets the clock configuration of @domain * * Returns: (transfer full): A #GVirConfigDomainClock. The returned * object should be unreffed with g_object_unref() when no longer needed. */ GVirConfigDomainClock *gvir_config_domain_get_clock(GVirConfigDomain *domain) { GVirConfigObject *object; g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN(domain), NULL); object = gvir_config_object_get_child_with_type(GVIR_CONFIG_OBJECT(domain), "clock", GVIR_CONFIG_TYPE_DOMAIN_CLOCK); return GVIR_CONFIG_DOMAIN_CLOCK(object); } /** * gvir_config_domain_set_clock: * @domain: a #GVirConfigDomain * @klock: (allow-none): */ void gvir_config_domain_set_clock(GVirConfigDomain *domain, GVirConfigDomainClock *klock) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN(domain)); g_return_if_fail(klock == NULL || GVIR_CONFIG_IS_DOMAIN_CLOCK(klock)); gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(domain), "clock", GVIR_CONFIG_OBJECT(klock)); } /** * gvir_config_domain_get_os: * @domain: a #GVirConfigDomain * * Gets the operating system configuration of @domain * * Returns: (transfer full): A #GVirConfigDomainOs. The returned * object should be unreffed with g_object_unref() when no longer needed. */ GVirConfigDomainOs *gvir_config_domain_get_os(GVirConfigDomain *domain) { GVirConfigObject *object; g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN(domain), NULL); object = gvir_config_object_get_child_with_type(GVIR_CONFIG_OBJECT(domain), "os", GVIR_CONFIG_TYPE_DOMAIN_OS); return GVIR_CONFIG_DOMAIN_OS(object); } /** * gvir_config_domain_set_os: * @domain: a #GVirConfigDomain * @os: (allow-none): the os configuration to set */ void gvir_config_domain_set_os(GVirConfigDomain *domain, GVirConfigDomainOs *os) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN(domain)); g_return_if_fail(os == NULL || GVIR_CONFIG_IS_DOMAIN_OS(os)); gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(domain), "os", GVIR_CONFIG_OBJECT(os)); } /** * gvir_config_domain_set_seclabel: * @domain: a #GVirConfigDomain * @seclabel: (allow-none): the security label configuration to set */ void gvir_config_domain_set_seclabel(GVirConfigDomain *domain, GVirConfigDomainSeclabel *seclabel) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN(domain)); g_return_if_fail(seclabel == NULL || GVIR_CONFIG_IS_DOMAIN_SECLABEL(seclabel)); gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(domain), "seclabel", GVIR_CONFIG_OBJECT(seclabel)); } void gvir_config_domain_set_lifecycle(GVirConfigDomain *domain, GVirConfigDomainLifecycleEvent event, GVirConfigDomainLifecycleAction action) { const char *event_str; const char *action_str; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN(domain)); g_return_if_fail((event == GVIR_CONFIG_DOMAIN_LIFECYCLE_ON_CRASH) || ((action != GVIR_CONFIG_DOMAIN_LIFECYCLE_COREDUMP_DESTROY) && (action != GVIR_CONFIG_DOMAIN_LIFECYCLE_COREDUMP_RESTART))); event_str = gvir_config_genum_get_nick(GVIR_CONFIG_TYPE_DOMAIN_LIFECYCLE_EVENT, event); g_return_if_fail(event_str != NULL); action_str = gvir_config_genum_get_nick(GVIR_CONFIG_TYPE_DOMAIN_LIFECYCLE_ACTION, action); g_return_if_fail(action_str != NULL); gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(domain), event_str, action_str); } /** * gvir_config_domain_set_devices: * @domain: a #GVirConfigDomain * @devices: (in) (element-type LibvirtGConfig.DomainDevice): */ void gvir_config_domain_set_devices(GVirConfigDomain *domain, GList *devices) { GVirConfigObject *devices_node; GList *it; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN(domain)); if (devices == NULL) { gvir_config_object_delete_children(GVIR_CONFIG_OBJECT(domain), "devices", NULL); return; } devices_node = gvir_config_object_new(GVIR_CONFIG_TYPE_OBJECT, "devices", NULL); for (it = devices; it != NULL; it = it->next) { if (!GVIR_CONFIG_IS_DOMAIN_DEVICE(it->data)) { g_warn_if_reached(); continue; } gvir_config_object_attach_add(devices_node, GVIR_CONFIG_OBJECT(it->data)); } gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(domain), "devices", devices_node); g_object_unref(G_OBJECT(devices_node)); } void gvir_config_domain_add_device(GVirConfigDomain *domain, GVirConfigDomainDevice *device) { GVirConfigObject *devices_node; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN(domain)); g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_DEVICE(device)); devices_node = gvir_config_object_add_child(GVIR_CONFIG_OBJECT(domain), "devices"); gvir_config_object_attach_add(devices_node, GVIR_CONFIG_OBJECT(device)); g_object_unref(G_OBJECT(devices_node)); } struct GetDeviceData { GVirConfigXmlDoc *doc; GList *devices; }; static gboolean add_device(xmlNodePtr node, gpointer opaque) { struct GetDeviceData* data = (struct GetDeviceData*)opaque; GVirConfigDomainDevice *device; device = gvir_config_domain_device_new_from_tree(data->doc, node); if (device != NULL) data->devices = g_list_append(data->devices, device); else g_debug("Failed to parse %s node", node->name); return TRUE; } /** * gvir_config_domain_get_devices: * @domain: a #GVirConfigDomain * * Gets the list of devices attached to @domain. The returned list should * be freed with g_list_free(), after its elements have been unreffed with * g_object_unref(). * * Returns: (element-type LibvirtGConfig.DomainDevice) (transfer full): * a newly allocated #GList of #GVirConfigDomainDevice. */ GList *gvir_config_domain_get_devices(GVirConfigDomain *domain) { struct GetDeviceData data; g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN(domain), NULL); g_object_get(G_OBJECT(domain), "doc", &data.doc, NULL); data.devices = NULL; gvir_config_object_foreach_child(GVIR_CONFIG_OBJECT(domain), "devices", add_device, &data); if (data.doc != NULL) { g_object_unref(G_OBJECT(data.doc)); } return data.devices; } gboolean gvir_config_domain_set_custom_xml(GVirConfigDomain *domain, const gchar *xml, const gchar *ns, const gchar *ns_uri, GError **error) { GVirConfigObject *metadata; GVirConfigObject *custom_xml; g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN(domain), FALSE); g_return_val_if_fail(xml != NULL, FALSE); g_return_val_if_fail(error == NULL || *error == NULL, FALSE); metadata = gvir_config_object_add_child(GVIR_CONFIG_OBJECT(domain), "metadata"); custom_xml = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_OBJECT, NULL, NULL, xml, error); if (custom_xml == NULL) { g_assert_not_reached(); g_object_unref(G_OBJECT(metadata)); return FALSE; } gvir_config_object_set_namespace(custom_xml, ns, ns_uri); gvir_config_object_delete_children(metadata, NULL, ns_uri); gvir_config_object_attach_add(metadata, custom_xml); g_object_unref(G_OBJECT(metadata)); g_object_unref(G_OBJECT(custom_xml)); return TRUE; } struct LookupNamespacedNodeData { const char *ns_uri; xmlNodePtr node; }; static gboolean lookup_namespaced_node(xmlNodePtr node, gpointer opaque) { struct LookupNamespacedNodeData* data = opaque; if (node->ns == NULL) return TRUE; if (g_strcmp0((char *)node->ns->href, data->ns_uri) == 0) { data->node = node; return FALSE; } return TRUE; } gchar *gvir_config_domain_get_custom_xml(GVirConfigDomain *domain, const gchar *ns_uri) { struct LookupNamespacedNodeData data = { NULL, NULL }; g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN(domain), NULL); g_return_val_if_fail(ns_uri != NULL, NULL); data.ns_uri = ns_uri; gvir_config_object_foreach_child(GVIR_CONFIG_OBJECT(domain), "metadata", lookup_namespaced_node, &data); return gvir_config_xml_node_to_string(data.node); } /** * gvir_config_domain_get_cpu: * @domain: a #GVirConfigDomain * * Gets the CPU configuration of @domain * * Returns: (transfer full): A #GVirConfigDomainCpu. The returned object * should be unreffed with g_object_unref() when no longer needed. */ GVirConfigDomainCpu *gvir_config_domain_get_cpu(GVirConfigDomain *domain) { GVirConfigObject *object; g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN(domain), NULL); object = gvir_config_object_get_child_with_type(GVIR_CONFIG_OBJECT(domain), "cpu", GVIR_CONFIG_TYPE_DOMAIN_CPU); return GVIR_CONFIG_DOMAIN_CPU(object); } /** * gvir_config_domain_set_cpu: * @domain: a #GVirConfigDomain * @cpu: (allow-none): */ void gvir_config_domain_set_cpu(GVirConfigDomain *domain, GVirConfigDomainCpu *cpu) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN(domain)); g_return_if_fail(cpu == NULL || GVIR_CONFIG_IS_DOMAIN_CPU(cpu)); gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(domain), "cpu", GVIR_CONFIG_OBJECT(cpu)); } /** * gvir_config_domain_set_power_management: * @domain: a #GVirConfigDomain * @pm: (allow-none): a #GVirPowerManagement instance */ void gvir_config_domain_set_power_management(GVirConfigDomain *domain, GVirConfigDomainPowerManagement *pm) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN(domain)); g_return_if_fail(pm != NULL || GVIR_CONFIG_IS_DOMAIN_POWER_MANAGEMENT(pm)); gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(domain), "pm", GVIR_CONFIG_OBJECT(pm)); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-storage-vol.c0000664000000000000000000001114713004340477021553 00000000000000/* * libvirt-gconfig-storage-vol.c: libvirt storage vol configuration * * Copyright (C) 2008 Daniel P. Berrange * Copyright (C) 2010-2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_STORAGE_VOL_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_STORAGE_VOL, GVirConfigStorageVolPrivate)) struct _GVirConfigStorageVolPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigStorageVol, gvir_config_storage_vol, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_storage_vol_class_init(GVirConfigStorageVolClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigStorageVolPrivate)); } static void gvir_config_storage_vol_init(GVirConfigStorageVol *vol) { vol->priv = GVIR_CONFIG_STORAGE_VOL_GET_PRIVATE(vol); } GVirConfigStorageVol *gvir_config_storage_vol_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_STORAGE_VOL, "volume", DATADIR "/libvirt/schemas/storage_vol.rng"); return GVIR_CONFIG_STORAGE_VOL(object); } GVirConfigStorageVol *gvir_config_storage_vol_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_STORAGE_VOL, "volume", DATADIR "/libvirt/schemas/storage_vol.rng", xml, error); return GVIR_CONFIG_STORAGE_VOL(object); } /** * gvir_config_storage_vol_set_name: * @name: (allow-none): */ void gvir_config_storage_vol_set_name(GVirConfigStorageVol *vol, const char *name) { g_return_if_fail(GVIR_CONFIG_IS_STORAGE_VOL(vol)); gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(vol), "name", name); } void gvir_config_storage_vol_set_capacity(GVirConfigStorageVol *vol, guint64 capacity) { g_return_if_fail(GVIR_CONFIG_IS_STORAGE_VOL(vol)); gvir_config_object_set_node_content_uint64(GVIR_CONFIG_OBJECT(vol), "capacity", capacity); } void gvir_config_storage_vol_set_allocation(GVirConfigStorageVol *vol, guint64 allocation) { g_return_if_fail(GVIR_CONFIG_IS_STORAGE_VOL(vol)); gvir_config_object_set_node_content_uint64(GVIR_CONFIG_OBJECT(vol), "allocation", allocation); } /** * gvir_config_storage_vol_set_target: * @target: (allow-none): */ void gvir_config_storage_vol_set_target(GVirConfigStorageVol *vol, GVirConfigStorageVolTarget *target) { g_return_if_fail(GVIR_CONFIG_IS_STORAGE_VOL(vol)); g_return_if_fail(target == NULL || GVIR_CONFIG_IS_STORAGE_VOL_TARGET(target)); gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(vol), "target", GVIR_CONFIG_OBJECT(target)); } /** * gvir_config_storage_vol_set_backing_store: * @backing_store: (allow-none): */ void gvir_config_storage_vol_set_backing_store(GVirConfigStorageVol *vol, GVirConfigStorageVolBackingStore *backing_store) { g_return_if_fail(GVIR_CONFIG_IS_STORAGE_VOL(vol)); g_return_if_fail(backing_store == NULL || GVIR_CONFIG_IS_STORAGE_VOL_BACKING_STORE(backing_store)); gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(vol), "backingStore", GVIR_CONFIG_OBJECT(backing_store)); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-cpu-feature.c0000664000000000000000000000501013004340477024150 00000000000000/* * libvirt-gconfig-capabilities-cpu-feature.c: libvirt CPU feature capabilities * * Copyright (C) 2008 Daniel P. Berrange * Copyright (C) 2010-2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Zeeshan Ali * Daniel P. Berrange */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_CAPABILITIES_CPU_FEATURE_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_CAPABILITIES_CPU_FEATURE, GVirConfigCapabilitiesCpuFeaturePrivate)) struct _GVirConfigCapabilitiesCpuFeaturePrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigCapabilitiesCpuFeature, gvir_config_capabilities_cpu_feature, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_capabilities_cpu_feature_class_init(GVirConfigCapabilitiesCpuFeatureClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigCapabilitiesCpuFeaturePrivate)); } static void gvir_config_capabilities_cpu_feature_init(GVirConfigCapabilitiesCpuFeature *feature) { feature->priv = GVIR_CONFIG_CAPABILITIES_CPU_FEATURE_GET_PRIVATE(feature); } const gchar * gvir_config_capabilities_cpu_feature_get_name(GVirConfigCapabilitiesCpuFeature *feature) { return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(feature), NULL, "name"); } void gvir_config_capabilities_cpu_feature_set_name(GVirConfigCapabilitiesCpuFeature *feature, const gchar *name) { g_return_if_fail(GVIR_CONFIG_IS_CAPABILITIES_CPU_FEATURE(feature)); g_return_if_fail(name != NULL); gvir_config_object_set_attribute(GVIR_CONFIG_OBJECT(feature), "name", name, NULL); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-smartcard-passthrough.h0000664000000000000000000000654013004340477025111 00000000000000/* * libvirt-gconfig-domain-smartcard-passthrough.h: libvirt domain smartcard passthrough configuration * * Copyright (C) 2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Alexander Larsson */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_SMARTCARD_PASSTHROUGH_H__ #define __LIBVIRT_GCONFIG_DOMAIN_SMARTCARD_PASSTHROUGH_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD_PASSTHROUGH (gvir_config_domain_smartcard_passthrough_get_type ()) #define GVIR_CONFIG_DOMAIN_SMARTCARD_PASSTHROUGH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD_PASSTHROUGH, GVirConfigDomainSmartcardPassthrough)) #define GVIR_CONFIG_DOMAIN_SMARTCARD_PASSTHROUGH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD_PASSTHROUGH, GVirConfigDomainSmartcardPassthroughClass)) #define GVIR_CONFIG_IS_DOMAIN_SMARTCARD_PASSTHROUGH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD_PASSTHROUGH)) #define GVIR_CONFIG_IS_DOMAIN_SMARTCARD_PASSTHROUGH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD_PASSTHROUGH)) #define GVIR_CONFIG_DOMAIN_SMARTCARD_PASSTHROUGH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD_PASSTHROUGH, GVirConfigDomainSmartcardPassthroughClass)) typedef struct _GVirConfigDomainSmartcardPassthrough GVirConfigDomainSmartcardPassthrough; typedef struct _GVirConfigDomainSmartcardPassthroughPrivate GVirConfigDomainSmartcardPassthroughPrivate; typedef struct _GVirConfigDomainSmartcardPassthroughClass GVirConfigDomainSmartcardPassthroughClass; struct _GVirConfigDomainSmartcardPassthrough { GVirConfigDomainSmartcard parent; GVirConfigDomainSmartcardPassthroughPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainSmartcardPassthroughClass { GVirConfigDomainSmartcardClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_smartcard_passthrough_get_type(void); GVirConfigDomainSmartcardPassthrough *gvir_config_domain_smartcard_passthrough_new(void); GVirConfigDomainSmartcardPassthrough *gvir_config_domain_smartcard_passthrough_new_from_xml(const gchar *xml, GError **error); void gvir_config_domain_smartcard_passthrough_set_source(GVirConfigDomainSmartcardPassthrough *smartcard, GVirConfigDomainChardevSource *source); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_SMARTCARD_PASSTHROUGH_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-hostdev-pci.c0000664000000000000000000002026413004340477023003 00000000000000/* * libvirt-gconfig-domain-hostdev.c: libvirt domain hostdev configuration * * Copyright (C) 2016 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Zeeshan Ali (Khattak) * Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_HOSTDEV_PCI_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_HOSTDEV_PCI, GVirConfigDomainHostdevPciPrivate)) struct _GVirConfigDomainHostdevPciPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainHostdevPci, gvir_config_domain_hostdev_pci, GVIR_CONFIG_TYPE_DOMAIN_HOSTDEV); static void gvir_config_domain_hostdev_pci_class_init(GVirConfigDomainHostdevPciClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainHostdevPciPrivate)); } static void gvir_config_domain_hostdev_pci_init(GVirConfigDomainHostdevPci *hostdev) { hostdev->priv = GVIR_CONFIG_DOMAIN_HOSTDEV_PCI_GET_PRIVATE(hostdev); } /** * gvir_config_domain_hostdev_pci_new: * * Creates a new #GVirConfigDomainHostdevPci. * * Returns: (transfer full): a new #GVirConfigDomainHostdevPci. The returned * object should be unreffed with g_object_unref() when no longer needed. */ GVirConfigDomainHostdevPci *gvir_config_domain_hostdev_pci_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_HOSTDEV_PCI, "hostdev", NULL); gvir_config_object_set_attribute(object, "mode", "subsystem", NULL); gvir_config_object_set_attribute(object, "type", "pci", NULL); return GVIR_CONFIG_DOMAIN_HOSTDEV_PCI(object); } /** * gvir_config_domain_hostdev_pci_new_from_xml: * @xml: xml data to create the host device from * @error: return location for a #GError, or NULL * * Creates a new #GVirConfigDomainHostdevPci. The host device object will be * created using the XML description stored in @xml. This is a fragment of * libvirt domain XML whose root node is <hostdev>. * * Returns: (transfer full): a new #GVirConfigDomainHostdevPci, or NULL if @xml * failed to be parsed. The returned object should be unreffed with * g_object_unref() when no longer needed. */ GVirConfigDomainHostdevPci *gvir_config_domain_hostdev_pci_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_HOSTDEV_PCI, "hostdev", NULL, xml, error); if (object == NULL) return NULL; if (g_strcmp0(gvir_config_object_get_attribute(object, NULL, "type"), "pci") != 0) { g_object_unref(G_OBJECT(object)); g_return_val_if_reached(NULL); } return GVIR_CONFIG_DOMAIN_HOSTDEV_PCI(object); } void gvir_config_domain_hostdev_pci_set_address(GVirConfigDomainHostdevPci *hostdev, GVirConfigDomainAddressPci *address) { GVirConfigObject *source; xmlNodePtr node; xmlAttrPtr attr; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_HOSTDEV_PCI(hostdev)); g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_ADDRESS_PCI(address)); node = gvir_config_object_get_xml_node(GVIR_CONFIG_OBJECT(address)); g_return_if_fail(node != NULL); source = gvir_config_object_replace_child(GVIR_CONFIG_OBJECT(hostdev), "source"); /* Because of https://bugzilla.redhat.com/show_bug.cgi?id=1327577, we can't * just use GVirConfigDomainAddressPci's node, as is, since it contains * a 'type' attribute, which is not accepted by libvirt. So we create a * copy for our use and just delete the 'type' attribute from it. */ node = xmlCopyNode(node, 1); for (attr = node->properties; attr; attr = attr->next) { if (g_strcmp0 ("type", (char *)attr->name) == 0) { xmlRemoveProp (attr); break; } } gvir_config_object_set_child(source, node); g_object_unref(source); } /** * gvir_config_domain_hostdev_pci_get_address: * @hostdev: A #GVirConfigDomainHostdevPci object. * * Gets the address associated with @hostdev. * * Returns: (transfer full): a new #GVirConfigDomainAddressPci, or NULL if no * address is associated with @hostdev. The returned object should be unreffed * with g_object_unref() when no longer needed. */ GVirConfigDomainAddressPci *gvir_config_domain_hostdev_pci_get_address(GVirConfigDomainHostdevPci *hostdev) { GVirConfigObject *source; GVirConfigObject* address; g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_HOSTDEV_PCI(hostdev), NULL); source = gvir_config_object_get_child(GVIR_CONFIG_OBJECT(hostdev), "source"); if (source == NULL) return NULL; address = gvir_config_object_get_child_with_type(source, "address", GVIR_CONFIG_TYPE_DOMAIN_ADDRESS_PCI); g_object_unref(source); return GVIR_CONFIG_DOMAIN_ADDRESS_PCI(address); } void gvir_config_domain_hostdev_pci_set_managed(GVirConfigDomainHostdevPci *hostdev, gboolean managed) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_HOSTDEV_PCI(hostdev)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(hostdev), "managed", G_TYPE_BOOLEAN, managed, NULL); } gboolean gvir_config_domain_hostdev_pci_get_managed(GVirConfigDomainHostdevPci *hostdev) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_HOSTDEV_PCI(hostdev), FALSE); return gvir_config_object_get_attribute_boolean(GVIR_CONFIG_OBJECT(hostdev), NULL, "managed", FALSE); } void gvir_config_domain_hostdev_pci_set_rom_file(GVirConfigDomainHostdevPci *hostdev, const gchar *file) { GVirConfigObject *rom; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_HOSTDEV_PCI(hostdev)); rom = gvir_config_object_add_child(GVIR_CONFIG_OBJECT(hostdev), "rom"); gvir_config_object_set_attribute(rom, "file", file, NULL); g_object_unref(rom); } void gvir_config_domain_hostdev_pci_set_rom_bar(GVirConfigDomainHostdevPci *hostdev, gboolean bar) { GVirConfigObject *rom; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_HOSTDEV_PCI(hostdev)); rom = gvir_config_object_add_child(GVIR_CONFIG_OBJECT(hostdev), "rom"); gvir_config_object_set_attribute(rom, "bar", bar? "on" : "off", NULL); g_object_unref(rom); } const gchar *gvir_config_domain_hostdev_pci_get_rom_file(GVirConfigDomainHostdevPci *hostdev) { return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(hostdev), "rom", "file"); } gboolean gvir_config_domain_hostdev_pci_get_rom_bar(GVirConfigDomainHostdevPci *hostdev) { const gchar *bar_str; g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_HOSTDEV_PCI(hostdev), FALSE); bar_str = gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(hostdev), "rom", "bar"); return (g_strcmp0(bar_str, "on") == 0); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-os.c0000664000000000000000000002425513004340477021203 00000000000000/* * libvirt-gconfig-domain-os.c: libvirt domain OS configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_OS_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_OS, GVirConfigDomainOsPrivate)) struct _GVirConfigDomainOsPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainOs, gvir_config_domain_os, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_domain_os_class_init(GVirConfigDomainOsClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainOsPrivate)); } static void gvir_config_domain_os_init(GVirConfigDomainOs *os) { os->priv = GVIR_CONFIG_DOMAIN_OS_GET_PRIVATE(os); } GVirConfigDomainOs *gvir_config_domain_os_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_OS, "os", NULL); return GVIR_CONFIG_DOMAIN_OS(object); } GVirConfigDomainOs *gvir_config_domain_os_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_OS, "os", NULL, xml, error); return GVIR_CONFIG_DOMAIN_OS(object); } void gvir_config_domain_os_set_os_type(GVirConfigDomainOs *os, GVirConfigDomainOsType type) { const char *type_str; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_OS(os)); type_str = gvir_config_genum_get_nick(GVIR_CONFIG_TYPE_DOMAIN_OS_TYPE, type); g_return_if_fail(type_str != NULL); gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(os), "type", type_str); } GVirConfigDomainOsType gvir_config_domain_os_get_os_type(GVirConfigDomainOs *os) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_OS(os), GVIR_CONFIG_DOMAIN_OS_TYPE_HVM); return gvir_config_object_get_node_content_genum (GVIR_CONFIG_OBJECT(os), "type", GVIR_CONFIG_TYPE_DOMAIN_OS_TYPE, GVIR_CONFIG_DOMAIN_OS_TYPE_HVM); } /** * gvir_config_domain_os_set_kernel: * @os: a #GVirConfigDomainOs * @kernel: (allow-none): The kernel path */ void gvir_config_domain_os_set_kernel(GVirConfigDomainOs *os, const char * kernel) { gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(os), "kernel", kernel); } /** * gvir_config_domain_os_set_ramdisk: * @os: a #GVirConfigDomainOs * @ramdisk: (allow-none): The ramdisk path */ void gvir_config_domain_os_set_ramdisk(GVirConfigDomainOs *os, const char * ramdisk) { gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(os), "initrd", ramdisk); } /** * gvir_config_domain_os_set_cmdline: * @os: a #GVirConfigDomainOs * @cmdline: (allow-none): The direct boot commandline */ void gvir_config_domain_os_set_cmdline(GVirConfigDomainOs *os, const char * cmdline) { gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(os), "cmdline", cmdline); } /** * gvir_config_domain_os_set_init: * @os: a #GVirConfigDomainOs * @init: (allow-none): */ void gvir_config_domain_os_set_init(GVirConfigDomainOs *os, const char * init) { gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(os), "init", init); } /** * gvir_config_domain_os_set_loader: * @os: a #GVirConfigDomainOs * @loader: (allow-none): */ void gvir_config_domain_os_set_loader(GVirConfigDomainOs *os, const char * loader) { gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(os), "loader", loader); } void gvir_config_domain_os_enable_boot_menu(GVirConfigDomainOs *os, gboolean enable) { GVirConfigObject *node; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_OS(os)); node = gvir_config_object_replace_child(GVIR_CONFIG_OBJECT(os), "bootmenu"); g_return_if_fail(GVIR_CONFIG_IS_OBJECT(node)); gvir_config_object_set_attribute_with_type(node, "enable", G_TYPE_BOOLEAN, enable, NULL); g_object_unref(G_OBJECT(node)); } void gvir_config_domain_os_bios_enable_serial(GVirConfigDomainOs *os, gboolean enable) { GVirConfigObject *node; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_OS(os)); node = gvir_config_object_replace_child(GVIR_CONFIG_OBJECT(os), "bios"); g_return_if_fail(GVIR_CONFIG_IS_OBJECT(node)); gvir_config_object_set_attribute_with_type(node, "useserial", G_TYPE_BOOLEAN, enable, NULL); g_object_unref(G_OBJECT(node)); } void gvir_config_domain_os_set_smbios_mode(GVirConfigDomainOs *os, GVirConfigDomainOsSmBiosMode mode) { GVirConfigObject *node; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_OS(os)); node = gvir_config_object_replace_child(GVIR_CONFIG_OBJECT(os), "smbios"); g_return_if_fail(GVIR_CONFIG_IS_OBJECT(node)); gvir_config_object_set_attribute_with_type(node, "mode", GVIR_CONFIG_TYPE_DOMAIN_OS_SM_BIOS_MODE, mode, NULL); g_object_unref(G_OBJECT(node)); } /** * gvir_config_domain_os_set_boot_devices: * @os: a #GVirConfigDomainOs * @boot_devices: (in) (element-type LibvirtGConfig.DomainOsBootDevice): */ void gvir_config_domain_os_set_boot_devices(GVirConfigDomainOs *os, GList *boot_devices) { GList *it; xmlNodePtr os_node; xmlNodePtr node; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_OS(os)); os_node = gvir_config_object_get_xml_node(GVIR_CONFIG_OBJECT(os)); g_return_if_fail(os_node != NULL); node = os_node->children; while (node != NULL) { xmlNodePtr next_node; next_node = node->next; if (g_strcmp0("boot", (char *)node->name) == 0) { xmlUnlinkNode(node); xmlFreeNode(node); } node = next_node; } for (it = boot_devices; it != NULL; it = it->next) { const char *dev; dev = gvir_config_genum_get_nick(GVIR_CONFIG_TYPE_DOMAIN_OS_BOOT_DEVICE, GPOINTER_TO_INT(it->data)); g_warn_if_fail(dev != NULL); if (dev != NULL) { node = xmlNewDocNode(NULL, NULL, (xmlChar*)"boot", NULL); xmlNewProp(node, (xmlChar*)"dev", (xmlChar*)dev); xmlAddChild(os_node, node); } } } static gboolean add_boot_device(xmlNodePtr node, gpointer opaque) { GList **devices = (GList **)opaque; const gchar *value; if (g_strcmp0((const gchar *)node->name, "boot") != 0) return TRUE; value = gvir_config_xml_get_attribute_content(node, "dev"); if (value != NULL) { GVirConfigDomainOsBootDevice device; device = gvir_config_genum_get_value (GVIR_CONFIG_TYPE_DOMAIN_OS_BOOT_DEVICE, value, GVIR_CONFIG_DOMAIN_OS_BOOT_DEVICE_HD); *devices = g_list_append(*devices, GINT_TO_POINTER(device)); } else g_debug("Failed to parse attribute 'dev' of node 'boot'"); return TRUE; } /** * gvir_config_domain_os_get_boot_devices: * @os: a #GVirConfigDomainOs * * Gets the list of devices attached to @os. The returned list should be * freed with g_list_free(). * * Returns: (element-type LibvirtGConfig.DomainOsBootDevice) (transfer container): * a newly allocated #GList of #GVirConfigDomainOsBootDevice. */ GList *gvir_config_domain_os_get_boot_devices(GVirConfigDomainOs *os) { GList *devices = NULL; g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_OS(os), NULL); gvir_config_object_foreach_child(GVIR_CONFIG_OBJECT(os), NULL, add_boot_device, &devices); return devices; } const char *gvir_config_domain_os_get_arch(GVirConfigDomainOs *os) { return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(os), "type", "arch"); } void gvir_config_domain_os_set_arch(GVirConfigDomainOs *os, const char *arch) { xmlNodePtr os_node; xmlNodePtr os_type_node; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_OS(os)); os_node = gvir_config_object_get_xml_node(GVIR_CONFIG_OBJECT(os)); g_return_if_fail(os_node != NULL); os_type_node = gvir_config_xml_get_element(os_node, "type", NULL); g_return_if_fail(os_type_node != NULL); xmlNewProp(os_type_node, (xmlChar*)"arch", (xmlChar*)arch); } void gvir_config_domain_os_set_machine(GVirConfigDomainOs *os, const char *machine) { xmlNodePtr os_node; xmlNodePtr os_type_node; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_OS(os)); os_node = gvir_config_object_get_xml_node(GVIR_CONFIG_OBJECT(os)); g_return_if_fail(os_node != NULL); os_type_node = gvir_config_xml_get_element(os_node, "type", NULL); g_return_if_fail(os_type_node != NULL); xmlNewProp(os_type_node, (xmlChar*)"machine", (xmlChar*)machine); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig.sym0000664000000000000000000006260013004340477017701 00000000000000LIBVIRT_GCONFIG_0.0.8 { global: gvir_config_capabilities_get_type; gvir_config_capabilities_new; gvir_config_capabilities_new_from_xml; gvir_config_domain_add_device; gvir_config_domain_address_get_type; gvir_config_domain_address_pci_get_type; gvir_config_domain_address_pci_new; gvir_config_domain_address_pci_new_from_xml; gvir_config_domain_address_pci_set_bus; gvir_config_domain_address_pci_set_domain; gvir_config_domain_address_pci_set_function; gvir_config_domain_address_pci_set_multifunction; gvir_config_domain_address_pci_set_slot; gvir_config_domain_address_usb_get_type; gvir_config_domain_address_usb_new; gvir_config_domain_address_usb_new_from_xml; gvir_config_domain_address_usb_set_bus; gvir_config_domain_address_usb_set_port; gvir_config_domain_channel_get_type; gvir_config_domain_channel_new; gvir_config_domain_channel_new_from_xml; gvir_config_domain_channel_set_target_name; gvir_config_domain_channel_set_target_type; gvir_config_domain_channel_target_type_get_type; gvir_config_domain_chardev_get_type; gvir_config_domain_chardev_set_source; gvir_config_domain_chardev_source_get_type; gvir_config_domain_chardev_source_pty_get_type; gvir_config_domain_chardev_source_pty_new; gvir_config_domain_chardev_source_pty_new_from_xml; gvir_config_domain_chardev_source_pty_set_path; gvir_config_domain_chardev_source_spicevmc_get_type; gvir_config_domain_chardev_source_spicevmc_new; gvir_config_domain_chardev_source_spicevmc_new_from_xml; gvir_config_domain_clock_add_timer; gvir_config_domain_clock_get_type; gvir_config_domain_clock_new; gvir_config_domain_clock_new_from_xml; gvir_config_domain_clock_offset_get_type; gvir_config_domain_clock_set_offset; gvir_config_domain_clock_set_timezone; gvir_config_domain_clock_set_variable_offset; gvir_config_domain_console_get_type; gvir_config_domain_console_new; gvir_config_domain_console_new_from_xml; gvir_config_domain_console_set_target_type; gvir_config_domain_console_target_type_get_type; gvir_config_domain_controller_get_index; gvir_config_domain_controller_get_type; gvir_config_domain_controller_set_address; gvir_config_domain_controller_set_index; gvir_config_domain_controller_usb_get_type; gvir_config_domain_controller_usb_model_get_type; gvir_config_domain_controller_usb_new; gvir_config_domain_controller_usb_new_from_xml; gvir_config_domain_controller_usb_set_master; gvir_config_domain_controller_usb_set_model; gvir_config_domain_device_get_type; gvir_config_domain_disk_bus_get_type; gvir_config_domain_disk_cache_type_get_type; gvir_config_domain_disk_get_disk_type; gvir_config_domain_disk_get_driver_cache; gvir_config_domain_disk_get_driver_name; gvir_config_domain_disk_get_driver_type; gvir_config_domain_disk_get_guest_device_type; gvir_config_domain_disk_get_snapshot_type; gvir_config_domain_disk_get_source; gvir_config_domain_disk_get_startup_policy; gvir_config_domain_disk_get_target_bus; gvir_config_domain_disk_get_target_dev; gvir_config_domain_disk_get_type; gvir_config_domain_disk_guest_device_type_get_type; gvir_config_domain_disk_new; gvir_config_domain_disk_new_from_xml; gvir_config_domain_disk_set_driver_cache; gvir_config_domain_disk_set_driver_name; gvir_config_domain_disk_set_driver_type; gvir_config_domain_disk_set_guest_device_type; gvir_config_domain_disk_set_readonly; gvir_config_domain_disk_set_snapshot_type; gvir_config_domain_disk_set_source; gvir_config_domain_disk_set_startup_policy; gvir_config_domain_disk_set_target_bus; gvir_config_domain_disk_set_target_dev; gvir_config_domain_disk_set_type; gvir_config_domain_disk_snapshot_type_get_type; gvir_config_domain_disk_startup_policy_get_type; gvir_config_domain_disk_type_get_type; gvir_config_domain_filesys_access_type_get_type; gvir_config_domain_filesys_driver_type_get_type; gvir_config_domain_filesys_get_type; gvir_config_domain_filesys_new; gvir_config_domain_filesys_new_from_xml; gvir_config_domain_filesys_set_access_type; gvir_config_domain_filesys_set_driver_type; gvir_config_domain_filesys_set_readonly; gvir_config_domain_filesys_set_source; gvir_config_domain_filesys_set_target; gvir_config_domain_filesys_set_type; gvir_config_domain_filesys_type_get_type; gvir_config_domain_get_custom_xml; gvir_config_domain_get_description; gvir_config_domain_get_devices; gvir_config_domain_get_features; gvir_config_domain_get_memory; gvir_config_domain_get_name; gvir_config_domain_get_type; gvir_config_domain_get_vcpus; gvir_config_domain_graphics_get_type; gvir_config_domain_graphics_sdl_get_type; gvir_config_domain_graphics_sdl_new; gvir_config_domain_graphics_sdl_new_from_xml; gvir_config_domain_graphics_sdl_set_display; gvir_config_domain_graphics_sdl_set_xauthority; gvir_config_domain_graphics_spice_get_type; gvir_config_domain_graphics_spice_new; gvir_config_domain_graphics_spice_new_from_xml; gvir_config_domain_graphics_spice_set_autoport; gvir_config_domain_graphics_spice_set_password; gvir_config_domain_graphics_spice_set_port; gvir_config_domain_graphics_spice_set_tls_port; gvir_config_domain_graphics_vnc_get_type; gvir_config_domain_graphics_vnc_new; gvir_config_domain_graphics_vnc_new_from_xml; gvir_config_domain_graphics_vnc_set_autoport; gvir_config_domain_graphics_vnc_set_password; gvir_config_domain_graphics_vnc_set_port; gvir_config_domain_input_bus_get_type; gvir_config_domain_input_device_type_get_type; gvir_config_domain_input_get_type; gvir_config_domain_input_new; gvir_config_domain_input_new_from_xml; gvir_config_domain_input_set_bus; gvir_config_domain_input_set_device_type; gvir_config_domain_interface_bridge_get_type; gvir_config_domain_interface_bridge_new; gvir_config_domain_interface_bridge_new_from_xml; gvir_config_domain_interface_bridge_set_source; gvir_config_domain_interface_get_ifname; gvir_config_domain_interface_get_link_state; gvir_config_domain_interface_get_mac; gvir_config_domain_interface_get_model; gvir_config_domain_interface_get_type; gvir_config_domain_interface_link_state_get_type; gvir_config_domain_interface_network_get_type; gvir_config_domain_interface_network_new; gvir_config_domain_interface_network_new_from_xml; gvir_config_domain_interface_network_set_source; gvir_config_domain_interface_set_ifname; gvir_config_domain_interface_set_link_state; gvir_config_domain_interface_set_mac; gvir_config_domain_interface_set_model; gvir_config_domain_interface_user_get_type; gvir_config_domain_interface_user_new; gvir_config_domain_interface_user_new_from_xml; gvir_config_domain_lifecycle_action_get_type; gvir_config_domain_lifecycle_event_get_type; gvir_config_domain_memballoon_get_type; gvir_config_domain_memballoon_model_get_type; gvir_config_domain_memballoon_new; gvir_config_domain_memballoon_new_from_xml; gvir_config_domain_memballoon_set_model; gvir_config_domain_new; gvir_config_domain_new_from_xml; gvir_config_domain_os_bios_enable_serial; gvir_config_domain_os_boot_device_get_type; gvir_config_domain_os_enable_boot_menu; gvir_config_domain_os_get_type; gvir_config_domain_os_new; gvir_config_domain_os_new_from_xml; gvir_config_domain_os_set_arch; gvir_config_domain_os_set_boot_devices; gvir_config_domain_os_set_cmdline; gvir_config_domain_os_set_init; gvir_config_domain_os_set_kernel; gvir_config_domain_os_set_loader; gvir_config_domain_os_set_machine; gvir_config_domain_os_set_os_type; gvir_config_domain_os_set_ramdisk; gvir_config_domain_os_set_smbios_mode; gvir_config_domain_os_sm_bios_mode_get_type; gvir_config_domain_os_type_get_type; gvir_config_domain_parallel_get_type; gvir_config_domain_parallel_new; gvir_config_domain_parallel_new_from_xml; gvir_config_domain_redirdev_bus_get_type; gvir_config_domain_redirdev_get_type; gvir_config_domain_redirdev_new; gvir_config_domain_redirdev_new_from_xml; gvir_config_domain_redirdev_set_address; gvir_config_domain_redirdev_set_bus; gvir_config_domain_seclabel_get_type; gvir_config_domain_seclabel_new; gvir_config_domain_seclabel_new_from_xml; gvir_config_domain_seclabel_set_baselabel; gvir_config_domain_seclabel_set_label; gvir_config_domain_seclabel_set_model; gvir_config_domain_seclabel_set_type; gvir_config_domain_seclabel_type_get_type; gvir_config_domain_serial_get_type; gvir_config_domain_serial_new; gvir_config_domain_serial_new_from_xml; gvir_config_domain_set_clock; gvir_config_domain_set_custom_xml; gvir_config_domain_set_description; gvir_config_domain_set_devices; gvir_config_domain_set_features; gvir_config_domain_set_lifecycle; gvir_config_domain_set_memory; gvir_config_domain_set_name; gvir_config_domain_set_os; gvir_config_domain_set_seclabel; gvir_config_domain_set_vcpus; gvir_config_domain_set_virt_type; gvir_config_domain_snapshot_get_type; gvir_config_domain_snapshot_new; gvir_config_domain_snapshot_new_from_xml; gvir_config_domain_sound_get_type; gvir_config_domain_sound_model_get_type; gvir_config_domain_sound_new; gvir_config_domain_sound_new_from_xml; gvir_config_domain_sound_set_model; gvir_config_domain_timer_get_tick_policy; gvir_config_domain_timer_get_type; gvir_config_domain_timer_pit_get_type; gvir_config_domain_timer_pit_new; gvir_config_domain_timer_pit_new_from_xml; gvir_config_domain_timer_rtc_get_type; gvir_config_domain_timer_rtc_new; gvir_config_domain_timer_rtc_new_from_xml; gvir_config_domain_timer_set_tick_policy; gvir_config_domain_timer_tick_policy_get_type; gvir_config_domain_video_get_type; gvir_config_domain_video_model_get_type; gvir_config_domain_video_new; gvir_config_domain_video_new_from_xml; gvir_config_domain_video_set_heads; gvir_config_domain_video_set_model; gvir_config_domain_video_set_vram; gvir_config_domain_virt_type_get_type; gvir_config_init; gvir_config_init_check; gvir_config_interface_get_type; gvir_config_interface_new; gvir_config_interface_new_from_xml; gvir_config_network_filter_get_type; gvir_config_network_filter_new; gvir_config_network_filter_new_from_xml; gvir_config_network_get_type; gvir_config_network_new; gvir_config_network_new_from_xml; gvir_config_node_device_get_type; gvir_config_node_device_new; gvir_config_node_device_new_from_xml; gvir_config_object_error_quark; gvir_config_object_get_schema; gvir_config_object_get_type; gvir_config_object_new; gvir_config_object_to_xml; gvir_config_object_validate; gvir_config_secret_get_type; gvir_config_secret_new; gvir_config_secret_new_from_xml; gvir_config_storage_permissions_get_type; gvir_config_storage_permissions_new; gvir_config_storage_permissions_new_from_xml; gvir_config_storage_permissions_set_group; gvir_config_storage_permissions_set_label; gvir_config_storage_permissions_set_mode; gvir_config_storage_permissions_set_owner; gvir_config_storage_pool_get_type; gvir_config_storage_pool_new; gvir_config_storage_pool_new_from_xml; gvir_config_storage_pool_set_allocation; gvir_config_storage_pool_set_available; gvir_config_storage_pool_set_capacity; gvir_config_storage_pool_set_name; gvir_config_storage_pool_set_pool_type; gvir_config_storage_pool_set_source; gvir_config_storage_pool_set_target; gvir_config_storage_pool_set_uuid; gvir_config_storage_pool_source_get_type; gvir_config_storage_pool_source_new; gvir_config_storage_pool_source_new_from_xml; gvir_config_storage_pool_source_set_adapter; gvir_config_storage_pool_source_set_device_path; gvir_config_storage_pool_source_set_directory; gvir_config_storage_pool_source_set_format; gvir_config_storage_pool_source_set_host; gvir_config_storage_pool_source_set_name; gvir_config_storage_pool_source_set_product; gvir_config_storage_pool_source_set_vendor; gvir_config_storage_pool_target_get_type; gvir_config_storage_pool_target_new; gvir_config_storage_pool_target_new_from_xml; gvir_config_storage_pool_target_set_path; gvir_config_storage_pool_target_set_permissions; gvir_config_storage_pool_type_get_type; gvir_config_storage_vol_backing_store_get_type; gvir_config_storage_vol_backing_store_new; gvir_config_storage_vol_backing_store_new_from_xml; gvir_config_storage_vol_backing_store_set_format; gvir_config_storage_vol_backing_store_set_path; gvir_config_storage_vol_get_type; gvir_config_storage_vol_new; gvir_config_storage_vol_new_from_xml; gvir_config_storage_vol_set_allocation; gvir_config_storage_vol_set_backing_store; gvir_config_storage_vol_set_capacity; gvir_config_storage_vol_set_name; gvir_config_storage_vol_set_target; gvir_config_storage_vol_target_get_type; gvir_config_storage_vol_target_new; gvir_config_storage_vol_target_new_from_xml; gvir_config_storage_vol_target_set_format; gvir_config_storage_vol_target_set_permissions; gvir_config_xml_doc_get_type; gvir_config_xml_doc_new; local: *; }; LIBVIRT_GCONFIG_0.0.9 { global: gvir_config_capabilities_cpu_feature_get_name; gvir_config_capabilities_cpu_feature_get_type; gvir_config_capabilities_cpu_get_arch; gvir_config_capabilities_cpu_get_features; gvir_config_capabilities_cpu_get_topology; gvir_config_capabilities_cpu_get_type; gvir_config_capabilities_cpu_topology_get_cores; gvir_config_capabilities_cpu_topology_get_sockets; gvir_config_capabilities_cpu_topology_get_threads; gvir_config_capabilities_cpu_topology_get_type; gvir_config_capabilities_get_guests; gvir_config_capabilities_get_host; gvir_config_capabilities_guest_arch_get_domains; gvir_config_capabilities_guest_arch_get_emulator; gvir_config_capabilities_guest_arch_get_name; gvir_config_capabilities_guest_arch_get_type; gvir_config_capabilities_guest_domain_get_emulator; gvir_config_capabilities_guest_domain_get_type; gvir_config_capabilities_guest_domain_get_virt_type; gvir_config_capabilities_guest_feature_get_name; gvir_config_capabilities_guest_feature_get_type; gvir_config_capabilities_guest_get_arch; gvir_config_capabilities_guest_get_features; gvir_config_capabilities_guest_get_os_type; gvir_config_capabilities_guest_get_type; gvir_config_capabilities_host_get_cpu; gvir_config_capabilities_host_get_type; gvir_config_capabilities_host_get_uuid; gvir_config_domain_filesys_set_ram_usage; gvir_config_domain_get_os; gvir_config_domain_get_title; gvir_config_domain_get_virt_type; gvir_config_domain_os_get_arch; gvir_config_domain_os_get_boot_devices; gvir_config_domain_os_get_os_type; gvir_config_domain_set_title; } LIBVIRT_GCONFIG_0.0.8; LIBVIRT_GCONFIG_0.1.0 { global: gvir_config_capabilities_cpu_add_feature; gvir_config_capabilities_cpu_feature_set_name; gvir_config_capabilities_cpu_set_topology; gvir_config_capabilities_cpu_topology_new; gvir_config_capabilities_cpu_topology_new_from_xml; gvir_config_capabilities_cpu_topology_set_cores; gvir_config_capabilities_cpu_topology_set_sockets; gvir_config_capabilities_cpu_topology_set_threads; gvir_config_domain_cpu_feature_get_policy; gvir_config_domain_cpu_feature_get_type; gvir_config_domain_cpu_feature_new; gvir_config_domain_cpu_feature_new_from_xml; gvir_config_domain_cpu_feature_policy_get_type; gvir_config_domain_cpu_feature_set_policy; gvir_config_domain_cpu_get_match_policy; gvir_config_domain_cpu_get_mode; gvir_config_domain_cpu_get_type; gvir_config_domain_cpu_match_policy_get_type; gvir_config_domain_cpu_mode_get_type; gvir_config_domain_cpu_new; gvir_config_domain_cpu_new_from_xml; gvir_config_domain_cpu_set_match_policy; gvir_config_domain_cpu_set_mode; gvir_config_domain_get_cpu; gvir_config_domain_set_cpu; } LIBVIRT_GCONFIG_0.0.9; LIBVIRT_GCONFIG_0.1.3 { global: gvir_config_domain_get_current_memory; gvir_config_domain_graphics_spice_get_port; gvir_config_domain_graphics_vnc_get_port; gvir_config_domain_graphics_vnc_get_socket; gvir_config_domain_graphics_vnc_set_socket; gvir_config_domain_set_current_memory; } LIBVIRT_GCONFIG_0.1.0; LIBVIRT_GCONFIG_0.1.4 { global: gvir_config_domain_power_management_get_type; gvir_config_domain_power_management_new; gvir_config_domain_power_management_new_from_xml; gvir_config_domain_power_management_set_disk_suspend_enabled; gvir_config_domain_power_management_set_mem_suspend_enabled; gvir_config_domain_set_power_management; } LIBVIRT_GCONFIG_0.1.3; LIBVIRT_GCONFIG_0.1.5 { global: gvir_config_domain_smartcard_get_type; gvir_config_domain_smartcard_host_certificates_get_type; gvir_config_domain_smartcard_host_certificates_new; gvir_config_domain_smartcard_host_certificates_new_from_xml; gvir_config_domain_smartcard_host_certificates_set_certificates; gvir_config_domain_smartcard_host_certificates_set_database; gvir_config_domain_smartcard_host_get_type; gvir_config_domain_smartcard_host_new; gvir_config_domain_smartcard_host_new_from_xml; gvir_config_domain_smartcard_passthrough_get_type; gvir_config_domain_smartcard_passthrough_new; gvir_config_domain_smartcard_passthrough_new_from_xml; gvir_config_domain_smartcard_passthrough_set_source; gvir_config_domain_smartcard_set_address; } LIBVIRT_GCONFIG_0.1.4; LIBVIRT_GCONFIG_0.1.6 { global: gvir_config_domain_graphics_spice_get_image_compression; gvir_config_domain_graphics_spice_image_compression_get_type; gvir_config_domain_graphics_spice_set_image_compression; } LIBVIRT_GCONFIG_0.1.5; LIBVIRT_GCONFIG_0.1.7 { global: gvir_config_domain_channel_get_target_name; gvir_config_domain_channel_get_target_type; gvir_config_domain_chardev_get_source; gvir_config_domain_chardev_source_pty_get_path; gvir_config_domain_device_get_alias; gvir_config_domain_disk_format_get_type; gvir_config_domain_disk_get_driver_format; gvir_config_domain_disk_set_driver_format; gvir_config_domain_graphics_desktop_get_type; gvir_config_domain_graphics_desktop_new; gvir_config_domain_graphics_desktop_new_from_xml; gvir_config_domain_graphics_desktop_set_display; gvir_config_domain_graphics_desktop_set_fullscreen; gvir_config_domain_graphics_rdp_get_port; gvir_config_domain_graphics_rdp_get_type; gvir_config_domain_graphics_rdp_new; gvir_config_domain_graphics_rdp_new_from_xml; gvir_config_domain_graphics_rdp_set_autoport; gvir_config_domain_graphics_rdp_set_port; gvir_config_domain_graphics_sdl_set_fullscreen; gvir_config_domain_snapshot_add_disk; gvir_config_domain_snapshot_disk_get_driver_format; gvir_config_domain_snapshot_disk_get_name; gvir_config_domain_snapshot_disk_get_snapshot_type; gvir_config_domain_snapshot_disk_get_source_file; gvir_config_domain_snapshot_disk_get_type; gvir_config_domain_snapshot_disk_new; gvir_config_domain_snapshot_disk_new_from_xml; gvir_config_domain_snapshot_disk_set_driver_format; gvir_config_domain_snapshot_disk_set_name; gvir_config_domain_snapshot_disk_set_snapshot_type; gvir_config_domain_snapshot_disk_set_source_file; gvir_config_domain_snapshot_domain_state_get_type; gvir_config_domain_snapshot_get_creation_time; gvir_config_domain_snapshot_get_description; gvir_config_domain_snapshot_get_disks; gvir_config_domain_snapshot_get_domain; gvir_config_domain_snapshot_get_memory_file; gvir_config_domain_snapshot_get_memory_state; gvir_config_domain_snapshot_get_name; gvir_config_domain_snapshot_get_parent; gvir_config_domain_snapshot_get_state; gvir_config_domain_snapshot_memory_state_get_type; gvir_config_domain_snapshot_set_description; gvir_config_domain_snapshot_set_disks; gvir_config_domain_snapshot_set_memory_file; gvir_config_domain_snapshot_set_memory_state; gvir_config_domain_snapshot_set_name; gvir_config_storage_permissions_get_group; gvir_config_storage_permissions_get_label; gvir_config_storage_permissions_get_mode; gvir_config_storage_permissions_get_owner; gvir_config_storage_pool_get_allocation; gvir_config_storage_pool_get_available; gvir_config_storage_pool_get_capacity; gvir_config_storage_pool_get_name; gvir_config_storage_pool_get_pool_type; gvir_config_storage_pool_get_source; gvir_config_storage_pool_get_target; gvir_config_storage_pool_get_uuid; gvir_config_storage_pool_source_get_adapter; gvir_config_storage_pool_source_get_device_path; gvir_config_storage_pool_source_get_directory; gvir_config_storage_pool_source_get_format; gvir_config_storage_pool_source_get_host; gvir_config_storage_pool_source_get_name; gvir_config_storage_pool_source_get_product; gvir_config_storage_pool_source_get_vendor; gvir_config_storage_pool_target_get_path; gvir_config_storage_pool_target_get_permissions; } LIBVIRT_GCONFIG_0.1.6; LIBVIRT_GCONFIG_0.1.8 { global: gvir_config_domain_clock_get_offset; gvir_config_domain_clock_get_timezone; gvir_config_domain_clock_get_variable_offset; gvir_config_domain_disk_driver_discard_get_type; gvir_config_domain_disk_driver_error_policy_get_type; gvir_config_domain_disk_driver_get_cache; gvir_config_domain_disk_driver_get_copy_on_read; gvir_config_domain_disk_driver_get_discard; gvir_config_domain_disk_driver_get_error_policy; gvir_config_domain_disk_driver_get_format; gvir_config_domain_disk_driver_get_io_policy; gvir_config_domain_disk_driver_get_name; gvir_config_domain_disk_driver_get_type; gvir_config_domain_disk_driver_io_policy_get_type; gvir_config_domain_disk_driver_new; gvir_config_domain_disk_driver_new_from_xml; gvir_config_domain_disk_driver_set_cache; gvir_config_domain_disk_driver_set_copy_on_read; gvir_config_domain_disk_driver_set_discard; gvir_config_domain_disk_driver_set_error_policy; gvir_config_domain_disk_driver_set_format; gvir_config_domain_disk_driver_set_io_policy; gvir_config_domain_disk_driver_set_name; gvir_config_domain_disk_get_driver; gvir_config_domain_disk_set_driver; gvir_config_domain_get_clock; gvir_config_domain_get_uuid; gvir_config_domain_graphics_desktop_get_display; gvir_config_domain_graphics_desktop_get_fullscreen; gvir_config_domain_graphics_rdp_get_multi_user; gvir_config_domain_graphics_rdp_get_replace_user; gvir_config_domain_graphics_rdp_set_multi_user; gvir_config_domain_graphics_rdp_set_replace_user; gvir_config_domain_input_get_bus; gvir_config_domain_input_get_device_type; gvir_config_domain_interface_filterref_add_parameter; gvir_config_domain_interface_filterref_get_name; gvir_config_domain_interface_filterref_get_parameters; gvir_config_domain_interface_filterref_get_type; gvir_config_domain_interface_filterref_new; gvir_config_domain_interface_filterref_new_from_xml; gvir_config_domain_interface_filterref_parameter_get_name; gvir_config_domain_interface_filterref_parameter_get_type; gvir_config_domain_interface_filterref_parameter_get_value; gvir_config_domain_interface_filterref_parameter_new; gvir_config_domain_interface_filterref_parameter_new_from_xml; gvir_config_domain_interface_filterref_parameter_set_name; gvir_config_domain_interface_filterref_parameter_set_value; gvir_config_domain_interface_filterref_set_name; gvir_config_domain_interface_get_filterref; gvir_config_domain_interface_set_filterref; gvir_config_domain_set_uuid; gvir_config_domain_timer_get_present; gvir_config_domain_timer_hpet_get_type; gvir_config_domain_timer_hpet_new; gvir_config_domain_timer_hpet_new_from_xml; gvir_config_domain_timer_set_present; gvir_config_object_new_from_xml; } LIBVIRT_GCONFIG_0.1.7; LIBVIRT_GCONFIG_0.1.9 { global: gvir_config_capabilities_cpu_get_model; gvir_config_capabilities_cpu_model_get_name; gvir_config_capabilities_cpu_model_get_type; gvir_config_capabilities_cpu_model_new; gvir_config_capabilities_cpu_model_set_name; gvir_config_capabilities_host_get_secmodels; gvir_config_capabilities_host_secmodel_get_doi; gvir_config_capabilities_host_secmodel_get_model; gvir_config_capabilities_host_secmodel_get_type; gvir_config_domain_chardev_source_spiceport_get_channel; gvir_config_domain_chardev_source_spiceport_get_type; gvir_config_domain_chardev_source_spiceport_new; gvir_config_domain_chardev_source_spiceport_new_from_xml; gvir_config_domain_chardev_source_spiceport_set_channel; gvir_config_domain_cpu_model_get_type; gvir_config_domain_cpu_model_new; gvir_config_domain_cpu_set_model; } LIBVIRT_GCONFIG_0.1.8; LIBVIRT_GCONFIG_0.2.0 { global: gvir_config_storage_vol_target_set_compat; } LIBVIRT_GCONFIG_0.1.9; LIBVIRT_GCONFIG_0.2.1 { global: gvir_config_domain_filesys_set_driver_format; } LIBVIRT_GCONFIG_0.2.0; LIBVIRT_GCONFIG_0.2.2 { global: gvir_config_domain_chardev_source_unix_get_type; gvir_config_domain_chardev_source_unix_new; gvir_config_domain_chardev_source_unix_new_from_xml; gvir_config_domain_video_set_ram; gvir_config_domain_video_set_vgamem; } LIBVIRT_GCONFIG_0.2.1; LIBVIRT_GCONFIG_0.2.4 { global: gvir_config_domain_address_pci_get_bus; gvir_config_domain_address_pci_get_domain; gvir_config_domain_address_pci_get_function; gvir_config_domain_address_pci_get_multifunction; gvir_config_domain_address_pci_get_slot; gvir_config_domain_graphics_spice_set_gl; gvir_config_domain_hostdev_get_boot_order; gvir_config_domain_hostdev_get_readonly; gvir_config_domain_hostdev_get_shareable; gvir_config_domain_hostdev_get_type; gvir_config_domain_hostdev_pci_get_address; gvir_config_domain_hostdev_pci_get_managed; gvir_config_domain_hostdev_pci_get_rom_bar; gvir_config_domain_hostdev_pci_get_rom_file; gvir_config_domain_hostdev_pci_get_type; gvir_config_domain_hostdev_pci_new; gvir_config_domain_hostdev_pci_new_from_xml; gvir_config_domain_hostdev_pci_set_address; gvir_config_domain_hostdev_pci_set_managed; gvir_config_domain_hostdev_pci_set_rom_bar; gvir_config_domain_hostdev_pci_set_rom_file; gvir_config_domain_hostdev_set_boot_order; gvir_config_domain_hostdev_set_readonly; gvir_config_domain_hostdev_set_shareable; gvir_config_domain_video_get_model; gvir_config_domain_video_set_accel3d; } LIBVIRT_GCONFIG_0.2.2; # .... define new API here using predicted next version number .... libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-interface-filterref-parameter.c0000664000000000000000000001012613004340477026450 00000000000000/* * libvirt-gconfig-domain-interface-filterref-parameter.c: * libvirt filterref parameters * * Copyright (C) 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Ian Main * Daniel P. Berrange */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_INTERFACE_FILTERREF_PARAMETER_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_FILTERREF_PARAMETER, GVirConfigDomainInterfaceFilterrefParameterPrivate)) struct _GVirConfigDomainInterfaceFilterrefParameterPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainInterfaceFilterrefParameter, gvir_config_domain_interface_filterref_parameter, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_domain_interface_filterref_parameter_class_init(GVirConfigDomainInterfaceFilterrefParameterClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainInterfaceFilterrefParameterPrivate)); } static void gvir_config_domain_interface_filterref_parameter_init(GVirConfigDomainInterfaceFilterrefParameter *parameter) { parameter->priv = GVIR_CONFIG_DOMAIN_INTERFACE_FILTERREF_PARAMETER_GET_PRIVATE(parameter); } GVirConfigDomainInterfaceFilterrefParameter *gvir_config_domain_interface_filterref_parameter_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_FILTERREF_PARAMETER, "parameter", NULL); return GVIR_CONFIG_DOMAIN_INTERFACE_FILTERREF_PARAMETER(object); } GVirConfigDomainInterfaceFilterrefParameter * gvir_config_domain_interface_filterref_parameter_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_FILTERREF_PARAMETER, "parameter", NULL, xml, error); return GVIR_CONFIG_DOMAIN_INTERFACE_FILTERREF_PARAMETER(object); } void gvir_config_domain_interface_filterref_parameter_set_name(GVirConfigDomainInterfaceFilterrefParameter *parameter, const gchar *name) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_INTERFACE_FILTERREF_PARAMETER(parameter)); gvir_config_object_set_attribute(GVIR_CONFIG_OBJECT(parameter), "name", name, NULL); } void gvir_config_domain_interface_filterref_parameter_set_value(GVirConfigDomainInterfaceFilterrefParameter *parameter, const gchar *value) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_INTERFACE_FILTERREF_PARAMETER(parameter)); gvir_config_object_set_attribute(GVIR_CONFIG_OBJECT(parameter), "value", value, NULL); } const gchar *gvir_config_domain_interface_filterref_parameter_get_name(GVirConfigDomainInterfaceFilterrefParameter *parameter) { return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(parameter), NULL, "name"); } const gchar *gvir_config_domain_interface_filterref_parameter_get_value(GVirConfigDomainInterfaceFilterrefParameter *parameter) { return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(parameter), NULL, "value"); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-secret.c0000664000000000000000000000440313004340477020573 00000000000000/* * libvirt-gconfig-secret.c: libvirt secret configuration * * Copyright (C) 2008 Daniel P. Berrange * Copyright (C) 2010-2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #define GVIR_CONFIG_SECRET_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_SECRET, GVirConfigSecretPrivate)) struct _GVirConfigSecretPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigSecret, gvir_config_secret, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_secret_class_init(GVirConfigSecretClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigSecretPrivate)); } static void gvir_config_secret_init(GVirConfigSecret *secret) { secret->priv = GVIR_CONFIG_SECRET_GET_PRIVATE(secret); } GVirConfigSecret *gvir_config_secret_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_SECRET, "secret", DATADIR "/libvirt/schemas/secret.rng"); return GVIR_CONFIG_SECRET(object); } GVirConfigSecret *gvir_config_secret_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_SECRET, "secret", DATADIR "/libvirt/schemas/secret.rng", xml, error); return GVIR_CONFIG_SECRET(object); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-cpu-model.h0000664000000000000000000000610313004340477023626 00000000000000/* * libvirt-gconfig-capabilities-cpu-model.h: libvirt CPU model capabilities * * Copyright (C) 2014 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Zeeshan Ali */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_CAPABILITIES_CPU_MODEL_H__ #define __LIBVIRT_GCONFIG_CAPABILITIES_CPU_MODEL_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_CAPABILITIES_CPU_MODEL (gvir_config_capabilities_cpu_model_get_type ()) #define GVIR_CONFIG_CAPABILITIES_CPU_MODEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_CPU_MODEL, GVirConfigCapabilitiesCpuModel)) #define GVIR_CONFIG_CAPABILITIES_CPU_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_CPU_MODEL, GVirConfigCapabilitiesCpuModelClass)) #define GVIR_CONFIG_IS_CAPABILITIES_CPU_MODEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_CPU_MODEL)) #define GVIR_CONFIG_IS_CAPABILITIES_CPU_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_CPU_MODEL)) #define GVIR_CONFIG_CAPABILITIES_CPU_MODEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_CPU_MODEL, GVirConfigCapabilitiesCpuModelClass)) typedef struct _GVirConfigCapabilitiesCpuModel GVirConfigCapabilitiesCpuModel; typedef struct _GVirConfigCapabilitiesCpuModelPrivate GVirConfigCapabilitiesCpuModelPrivate; typedef struct _GVirConfigCapabilitiesCpuModelClass GVirConfigCapabilitiesCpuModelClass; struct _GVirConfigCapabilitiesCpuModel { GVirConfigObject parent; GVirConfigCapabilitiesCpuModelPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigCapabilitiesCpuModelClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; GType gvir_config_capabilities_cpu_model_get_type(void); GVirConfigCapabilitiesCpuModel *gvir_config_capabilities_cpu_model_new(void); GVirConfigCapabilitiesCpuModel * gvir_config_capabilities_cpu_model_new_from_xml(const gchar *xml, GError **error); void gvir_config_capabilities_cpu_model_set_name(GVirConfigCapabilitiesCpuModel *model, const gchar *name); const gchar * gvir_config_capabilities_cpu_model_get_name(GVirConfigCapabilitiesCpuModel *model); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_CAPABILITIES_CPU_MODEL_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-interface.c0000664000000000000000000000452413004340477021252 00000000000000/* * libvirt-gconfig-interface.c: libvirt interface configuration * * Copyright (C) 2008 Daniel P. Berrange * Copyright (C) 2010-2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #define GVIR_CONFIG_INTERFACE_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_INTERFACE, GVirConfigInterfacePrivate)) struct _GVirConfigInterfacePrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigInterface, gvir_config_interface, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_interface_class_init(GVirConfigInterfaceClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigInterfacePrivate)); } static void gvir_config_interface_init(GVirConfigInterface *iface) { iface->priv = GVIR_CONFIG_INTERFACE_GET_PRIVATE(iface); } GVirConfigInterface *gvir_config_interface_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_INTERFACE, "interface", DATADIR "/libvirt/schemas/interface.rng"); return GVIR_CONFIG_INTERFACE(object); } GVirConfigInterface *gvir_config_interface_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_INTERFACE, "interface", DATADIR "/libvirt/schemas/interface.rng", xml, error); return GVIR_CONFIG_INTERFACE(object); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-network-filter.h0000664000000000000000000000524313004340477022272 00000000000000/* * libvirt-gconfig-network-filter.h: libvirt network filter configuration * * Copyright (C) 2010-2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_NETWORK_FILTER_H__ #define __LIBVIRT_GCONFIG_NETWORK_FILTER_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_NETWORK_FILTER (gvir_config_network_filter_get_type ()) #define GVIR_CONFIG_NETWORK_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_NETWORK_FILTER, GVirConfigNetworkFilter)) #define GVIR_CONFIG_NETWORK_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_NETWORK_FILTER, GVirConfigNetworkFilterClass)) #define GVIR_CONFIG_IS_NETWORK_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_NETWORK_FILTER)) #define GVIR_CONFIG_IS_NETWORK_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_NETWORK_FILTER)) #define GVIR_CONFIG_NETWORK_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_NETWORK_FILTER, GVirConfigNetworkFilterClass)) typedef struct _GVirConfigNetworkFilter GVirConfigNetworkFilter; typedef struct _GVirConfigNetworkFilterPrivate GVirConfigNetworkFilterPrivate; typedef struct _GVirConfigNetworkFilterClass GVirConfigNetworkFilterClass; struct _GVirConfigNetworkFilter { GVirConfigObject parent; GVirConfigNetworkFilterPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigNetworkFilterClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; GType gvir_config_network_filter_get_type(void); GVirConfigNetworkFilter *gvir_config_network_filter_new(void); GVirConfigNetworkFilter *gvir_config_network_filter_new_from_xml(const gchar *xml, GError **error); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_NETWORK_FILTER_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.h0000664000000000000000000000645613004340477023152 00000000000000/* * libvirt-gconfig-domain-graphics-sdl.h: libvirt domain SDL configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_GRAPHICS_SDL_H__ #define __LIBVIRT_GCONFIG_DOMAIN_GRAPHICS_SDL_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_SDL (gvir_config_domain_graphics_sdl_get_type ()) #define GVIR_CONFIG_DOMAIN_GRAPHICS_SDL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_SDL, GVirConfigDomainGraphicsSdl)) #define GVIR_CONFIG_DOMAIN_GRAPHICS_SDL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_SDL, GVirConfigDomainGraphicsSdlClass)) #define GVIR_CONFIG_IS_DOMAIN_GRAPHICS_SDL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_SDL)) #define GVIR_CONFIG_IS_DOMAIN_GRAPHICS_SDL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_SDL)) #define GVIR_CONFIG_DOMAIN_GRAPHICS_SDL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_SDL, GVirConfigDomainGraphicsSdlClass)) typedef struct _GVirConfigDomainGraphicsSdl GVirConfigDomainGraphicsSdl; typedef struct _GVirConfigDomainGraphicsSdlPrivate GVirConfigDomainGraphicsSdlPrivate; typedef struct _GVirConfigDomainGraphicsSdlClass GVirConfigDomainGraphicsSdlClass; struct _GVirConfigDomainGraphicsSdl { GVirConfigDomainGraphics parent; GVirConfigDomainGraphicsSdlPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainGraphicsSdlClass { GVirConfigDomainGraphicsClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_graphics_sdl_get_type(void); GVirConfigDomainGraphicsSdl *gvir_config_domain_graphics_sdl_new(void); GVirConfigDomainGraphicsSdl *gvir_config_domain_graphics_sdl_new_from_xml(const gchar *xml, GError **error); void gvir_config_domain_graphics_sdl_set_xauthority(GVirConfigDomainGraphicsSdl *graphics, const gchar *path); void gvir_config_domain_graphics_sdl_set_display(GVirConfigDomainGraphicsSdl *graphics, const gchar *disp); void gvir_config_domain_graphics_sdl_set_fullscreen(GVirConfigDomainGraphicsSdl *graphics, gboolean fullscreen); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_GRAPHICS_SDL_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-cpu.c0000664000000000000000000001501213004340477022522 00000000000000/* * libvirt-gconfig-capabilities-cpu.c: libvirt CPU capabilities * * Copyright (C) 2008 Daniel P. Berrange * Copyright (C) 2010-2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Zeeshan Ali * Daniel P. Berrange */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_CAPABILITIES_CPU_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_CAPABILITIES_CPU, GVirConfigCapabilitiesCpuPrivate)) struct _GVirConfigCapabilitiesCpuPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigCapabilitiesCpu, gvir_config_capabilities_cpu, GVIR_CONFIG_TYPE_OBJECT); static GList * _gvir_config_capabilities_cpu_get_features(GVirConfigCapabilitiesCpu *cpu); static void gvir_config_capabilities_cpu_class_init(GVirConfigCapabilitiesCpuClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigCapabilitiesCpuPrivate)); klass->get_features = _gvir_config_capabilities_cpu_get_features; } static void gvir_config_capabilities_cpu_init(GVirConfigCapabilitiesCpu *cpu) { cpu->priv = GVIR_CONFIG_CAPABILITIES_CPU_GET_PRIVATE(cpu); } const gchar * gvir_config_capabilities_cpu_get_arch(GVirConfigCapabilitiesCpu *cpu) { return gvir_config_object_get_node_content(GVIR_CONFIG_OBJECT(cpu), "arch"); } /** * gvir_config_capabilities_cpu_add_feature: * * Adds a new feature to CPU. */ void gvir_config_capabilities_cpu_add_feature(GVirConfigCapabilitiesCpu *cpu, GVirConfigCapabilitiesCpuFeature *feature) { g_return_if_fail(GVIR_CONFIG_IS_CAPABILITIES_CPU(cpu)); g_return_if_fail(GVIR_CONFIG_IS_CAPABILITIES_CPU_FEATURE(feature)); gvir_config_object_attach_add(GVIR_CONFIG_OBJECT(cpu), GVIR_CONFIG_OBJECT(feature)); } struct GetFeatureData { GVirConfigXmlDoc *doc; const gchar *schema; GList *features; GType type; }; static gboolean add_feature(xmlNodePtr node, gpointer opaque) { struct GetFeatureData* data = (struct GetFeatureData*)opaque; GVirConfigObject *feature; if (g_strcmp0((const gchar *)node->name, "feature") != 0) return TRUE; feature = gvir_config_object_new_from_tree (data->type, data->doc, data->schema, node); if (feature != NULL) data->features = g_list_append(data->features, feature); else g_debug("Failed to parse %s node", node->name); return TRUE; } G_GNUC_INTERNAL GList * gvir_config_capabilities_cpu_get_features_with_type(GVirConfigCapabilitiesCpu *cpu, GType type) { struct GetFeatureData data; g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES_CPU(cpu), NULL); data.schema = gvir_config_object_get_schema(GVIR_CONFIG_OBJECT(cpu)); g_object_get(G_OBJECT(cpu), "doc", &data.doc, NULL); g_return_val_if_fail(data.doc != NULL, NULL); data.features = NULL; data.type = type; gvir_config_object_foreach_child(GVIR_CONFIG_OBJECT(cpu), NULL, add_feature, &data); g_clear_object(&data.doc); return data.features; } static GList * _gvir_config_capabilities_cpu_get_features(GVirConfigCapabilitiesCpu *cpu) { return gvir_config_capabilities_cpu_get_features_with_type( cpu, GVIR_CONFIG_TYPE_CAPABILITIES_CPU_FEATURE); } /** * gvir_config_capabilities_cpu_get_features: * * Gets the features of this CPU. * * Returns: (element-type LibvirtGConfig.CapabilitiesCpuFeature) (transfer full): * a newly allocated #GList of #GVirConfigCapabilitiesCpuFeature. */ GList * gvir_config_capabilities_cpu_get_features(GVirConfigCapabilitiesCpu *cpu) { return GVIR_CONFIG_CAPABILITIES_CPU_GET_CLASS(cpu)->get_features(cpu); } /** * gvir_config_capabilities_cpu_get_topology: * * Gets the topology of the cpu. * * Returns: (transfer full): a new #GVirConfigCapabilitiesCpuTopology. */ GVirConfigCapabilitiesCpuTopology * gvir_config_capabilities_cpu_get_topology(GVirConfigCapabilitiesCpu *cpu) { GVirConfigObject *object; g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES_CPU(cpu), NULL); object = gvir_config_object_get_child_with_type (GVIR_CONFIG_OBJECT(cpu), "topology", GVIR_CONFIG_TYPE_CAPABILITIES_CPU_TOPOLOGY); return GVIR_CONFIG_CAPABILITIES_CPU_TOPOLOGY(object); } /** * gvir_config_capabilities_cpu_set_topology: * * Sets the topology of the cpu. */ void gvir_config_capabilities_cpu_set_topology(GVirConfigCapabilitiesCpu *cpu, GVirConfigCapabilitiesCpuTopology *topology) { g_return_if_fail(GVIR_CONFIG_IS_CAPABILITIES_CPU(cpu)); g_return_if_fail(topology == NULL || GVIR_CONFIG_IS_CAPABILITIES_CPU_TOPOLOGY(topology)); gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(cpu), "topology", GVIR_CONFIG_OBJECT(topology)); } /** * gvir_config_capabilities_cpu_get_model: * * Gets the model of the cpu. * * Returns: (transfer full): a new #GVirConfigCapabilitiesCpuModel. */ GVirConfigCapabilitiesCpuModel * gvir_config_capabilities_cpu_get_model(GVirConfigCapabilitiesCpu *cpu) { GVirConfigObject *object; g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES_CPU(cpu), NULL); object = gvir_config_object_get_child_with_type (GVIR_CONFIG_OBJECT(cpu), "model", GVIR_CONFIG_TYPE_CAPABILITIES_CPU_MODEL); return GVIR_CONFIG_CAPABILITIES_CPU_MODEL(object); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-private.h0000664000000000000000000000247613004340477020775 00000000000000/* * libvirt-gconfig-private.h: libvirt domain device configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #ifndef __LIBVIRT_GCONFIG_PRIVATE_H__ #define __LIBVIRT_GCONFIG_PRIVATE_H__ #include #include #include #include #include #include #endif /* __LIBVIRT_GCONFIG_PRIVATE_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-chardev-source-unix.h0000664000000000000000000000614513004340477024460 00000000000000/* * libvirt-gconfig-domain-chardev-source-unix.h: libvirt domain chardev unix configuration * * Copyright (C) 2012 Red Hat, Inc. * Copyright (C) 2015 T A Mahadevan. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: T A Mahadevan */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_CHARDEV_SOURCE_UNIX_H__ #define __LIBVIRT_GCONFIG_DOMAIN_CHARDEV_SOURCE_UNIX_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_UNIX (gvir_config_domain_chardev_source_unix_get_type ()) #define GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_UNIX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_UNIX, GVirConfigDomainChardevSourceUnix)) #define GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_UNIX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_UNIX, GVirConfigDomainChardevSourceUnixClass)) #define GVIR_CONFIG_IS_DOMAIN_CHARDEV_SOURCE_UNIX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_UNIX)) #define GVIR_CONFIG_IS_DOMAIN_CHARDEV_SOURCE_UNIX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_UNIX)) #define GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_UNIX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_UNIX, GVirConfigDomainChardevSourceUnixClass)) typedef struct _GVirConfigDomainChardevSourceUnix GVirConfigDomainChardevSourceUnix; typedef struct _GVirConfigDomainChardevSourceUnixPrivate GVirConfigDomainChardevSourceUnixPrivate; typedef struct _GVirConfigDomainChardevSourceUnixClass GVirConfigDomainChardevSourceUnixClass; struct _GVirConfigDomainChardevSourceUnix { GVirConfigDomainChardevSource parent; GVirConfigDomainChardevSourceUnixPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainChardevSourceUnixClass { GVirConfigDomainChardevSourceClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_chardev_source_unix_get_type(void); GVirConfigDomainChardevSourceUnix *gvir_config_domain_chardev_source_unix_new(void); GVirConfigDomainChardevSourceUnix *gvir_config_domain_chardev_source_unix_new_from_xml(const gchar *xml, GError **error); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_CHARDEV_SOURCE_UNIX_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-compat.h0000664000000000000000000000201113004340477020567 00000000000000/* * libvirt-gconfig-compat.h: libvirt configuration * * Copyright (C) 2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #ifndef __LIBVIRT_GCONFIG_COMPAT_H__ #define __LIBVIRT_GCONFIG_COMPAT_H__ #include #if GLIB_CHECK_VERSION(2, 35, 0) #define g_type_init() #endif #endif /* __LIBVIRT_GCONFIG_COMPAT_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-storage-pool-target.c0000664000000000000000000001136713004340477023214 00000000000000/* * libvirt-gconfig-storage-pool-target.c: libvirt storage pool target configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_STORAGE_POOL_TARGET_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_STORAGE_POOL_TARGET, GVirConfigStoragePoolTargetPrivate)) struct _GVirConfigStoragePoolTargetPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigStoragePoolTarget, gvir_config_storage_pool_target, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_storage_pool_target_class_init(GVirConfigStoragePoolTargetClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigStoragePoolTargetPrivate)); } static void gvir_config_storage_pool_target_init(GVirConfigStoragePoolTarget *target) { target->priv = GVIR_CONFIG_STORAGE_POOL_TARGET_GET_PRIVATE(target); } GVirConfigStoragePoolTarget *gvir_config_storage_pool_target_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_STORAGE_POOL_TARGET, "target", NULL); return GVIR_CONFIG_STORAGE_POOL_TARGET(object); } GVirConfigStoragePoolTarget *gvir_config_storage_pool_target_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_STORAGE_POOL_TARGET, "target", NULL, xml, error); return GVIR_CONFIG_STORAGE_POOL_TARGET(object); } /** * gvir_config_storage_pool_target_get_path: * @target: a #GVirConfigStoragePoolTarget * * Provides the location at which the storage pool associated with @target * will be mapped into the local filesystem namespace. * * Returns: local filesystem path the storage pool is mapped at. */ const char *gvir_config_storage_pool_target_get_path(GVirConfigStoragePoolTarget *target) { g_return_val_if_fail(GVIR_CONFIG_IS_STORAGE_POOL_TARGET(target), NULL); return gvir_config_object_get_node_content(GVIR_CONFIG_OBJECT(target), "path"); } /** * gvir_config_storage_pool_target_set_path: * @path: (allow-none): */ void gvir_config_storage_pool_target_set_path(GVirConfigStoragePoolTarget *target, const char *path) { g_return_if_fail(GVIR_CONFIG_IS_STORAGE_POOL_TARGET(target)); gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(target), "path", path); } /** * gvir_config_storage_pool_target_get_permissions: * @target: a #GVirConfigStoragePoolTarget * * Gets the permissions associated with @target * * Returns: (transfer full): a new #GVirConfigStoragePoolPermissions instance. */ GVirConfigStoragePermissions *gvir_config_storage_pool_target_get_permissions(GVirConfigStoragePoolTarget *target) { GVirConfigObject *object; g_return_val_if_fail(GVIR_CONFIG_IS_STORAGE_POOL_TARGET(target), NULL); object = gvir_config_object_get_child_with_type (GVIR_CONFIG_OBJECT(target), "permissions", GVIR_CONFIG_TYPE_STORAGE_PERMISSIONS); return GVIR_CONFIG_STORAGE_PERMISSIONS(object); } /** * gvir_config_storage_pool_perms_set_permissions: * @perms: (allow-none): */ void gvir_config_storage_pool_target_set_permissions(GVirConfigStoragePoolTarget *target, GVirConfigStoragePermissions *perms) { g_return_if_fail(GVIR_CONFIG_IS_STORAGE_POOL_TARGET(target)); g_return_if_fail(perms == NULL || GVIR_CONFIG_IS_STORAGE_PERMISSIONS(perms)); gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(target), "permissions", GVIR_CONFIG_OBJECT(perms)); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-redirdev.h0000664000000000000000000000613713004340477022372 00000000000000/* * libvirt-gconfig-domain-redirdev.h: libvirt domain redirdev configuration * * Copyright (C) 2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_REDIRDEV_H__ #define __LIBVIRT_GCONFIG_DOMAIN_REDIRDEV_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_REDIRDEV (gvir_config_domain_redirdev_get_type ()) #define GVIR_CONFIG_DOMAIN_REDIRDEV(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_REDIRDEV, GVirConfigDomainRedirdev)) #define GVIR_CONFIG_DOMAIN_REDIRDEV_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_REDIRDEV, GVirConfigDomainRedirdevClass)) #define GVIR_CONFIG_IS_DOMAIN_REDIRDEV(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_REDIRDEV)) #define GVIR_CONFIG_IS_DOMAIN_REDIRDEV_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_REDIRDEV)) #define GVIR_CONFIG_DOMAIN_REDIRDEV_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_REDIRDEV, GVirConfigDomainRedirdevClass)) typedef struct _GVirConfigDomainRedirdev GVirConfigDomainRedirdev; typedef struct _GVirConfigDomainRedirdevPrivate GVirConfigDomainRedirdevPrivate; typedef struct _GVirConfigDomainRedirdevClass GVirConfigDomainRedirdevClass; struct _GVirConfigDomainRedirdev { GVirConfigDomainChardev parent; GVirConfigDomainRedirdevPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainRedirdevClass { GVirConfigDomainChardevClass parent_class; gpointer padding[20]; }; typedef enum { GVIR_CONFIG_DOMAIN_REDIRDEV_BUS_USB } GVirConfigDomainRedirdevBus; GType gvir_config_domain_redirdev_get_type(void); GVirConfigDomainRedirdev *gvir_config_domain_redirdev_new(void); GVirConfigDomainRedirdev *gvir_config_domain_redirdev_new_from_xml(const gchar *xml, GError **error); void gvir_config_domain_redirdev_set_bus(GVirConfigDomainRedirdev *redirdev, GVirConfigDomainRedirdevBus bus); void gvir_config_domain_redirdev_set_address(GVirConfigDomainRedirdev *redirdev, GVirConfigDomainAddress *address); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_REDIRDEV_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-helpers.h0000664000000000000000000000243613004340477020761 00000000000000/* * libvirt-gconfig-helpers.h: libvirt configuration helpers * * Copyright (C) 2010, 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Daniel P. Berrange * Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_HELPERS_H__ #define __LIBVIRT_GCONFIG_HELPERS_H__ G_BEGIN_DECLS GQuark gvir_config_object_error_quark(void); #define GVIR_CONFIG_OBJECT_ERROR gvir_config_object_error_quark() G_END_DECLS #endif /* __LIBVIRT_GCONFIG_HELPERS_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-smartcard-host.h0000664000000000000000000000563013004340477023516 00000000000000/* * libvirt-gconfig-domain-smartcard-host.h: libvirt domain smartcard host configuration * * Copyright (C) 2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Alexander Larsson */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_SMARTCARD_HOST_H__ #define __LIBVIRT_GCONFIG_DOMAIN_SMARTCARD_HOST_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD_HOST (gvir_config_domain_smartcard_host_get_type ()) #define GVIR_CONFIG_DOMAIN_SMARTCARD_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD_HOST, GVirConfigDomainSmartcardHost)) #define GVIR_CONFIG_DOMAIN_SMARTCARD_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD_HOST, GVirConfigDomainSmartcardHostClass)) #define GVIR_CONFIG_IS_DOMAIN_SMARTCARD_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD_HOST)) #define GVIR_CONFIG_IS_DOMAIN_SMARTCARD_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD_HOST)) #define GVIR_CONFIG_DOMAIN_SMARTCARD_HOST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD_HOST, GVirConfigDomainSmartcardHostClass)) typedef struct _GVirConfigDomainSmartcardHost GVirConfigDomainSmartcardHost; typedef struct _GVirConfigDomainSmartcardHostPrivate GVirConfigDomainSmartcardHostPrivate; typedef struct _GVirConfigDomainSmartcardHostClass GVirConfigDomainSmartcardHostClass; struct _GVirConfigDomainSmartcardHost { GVirConfigDomainSmartcard parent; GVirConfigDomainSmartcardHostPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainSmartcardHostClass { GVirConfigDomainSmartcardClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_smartcard_host_get_type(void); GVirConfigDomainSmartcardHost *gvir_config_domain_smartcard_host_new(void); GVirConfigDomainSmartcardHost *gvir_config_domain_smartcard_host_new_from_xml(const gchar *xml, GError **error); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_SMARTCARD_HOST_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-main.h0000664000000000000000000000254213004340477020241 00000000000000/* * libvirt-gconfig-main.h: libvirt gconfig integration * * Copyright (C) 2008 Daniel P. Berrange * Copyright (C) 2010-2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_MAIN_H__ #define __LIBVIRT_GCONFIG_MAIN_H__ G_BEGIN_DECLS void gvir_config_init(int *argc, char ***argv); gboolean gvir_config_init_check(int *argc, char ***argv, GError **err); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_MAIN_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-timer-rtc.c0000664000000000000000000000503413004340477022462 00000000000000/* * libvirt-gconfig-domain-timer-rtc.c: libvirt domain RTC timer configuration * * Copyright (C) 2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_TIMER_RTC_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_TIMER_RTC, GVirConfigDomainTimerRtcPrivate)) struct _GVirConfigDomainTimerRtcPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainTimerRtc, gvir_config_domain_timer_rtc, GVIR_CONFIG_TYPE_DOMAIN_TIMER); static void gvir_config_domain_timer_rtc_class_init(GVirConfigDomainTimerRtcClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainTimerRtcPrivate)); } static void gvir_config_domain_timer_rtc_init(GVirConfigDomainTimerRtc *timer) { timer->priv = GVIR_CONFIG_DOMAIN_TIMER_RTC_GET_PRIVATE(timer); } GVirConfigDomainTimerRtc *gvir_config_domain_timer_rtc_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_TIMER_RTC, "timer", NULL); gvir_config_object_set_attribute(object, "name", "rtc", NULL); return GVIR_CONFIG_DOMAIN_TIMER_RTC(object); } GVirConfigDomainTimerRtc *gvir_config_domain_timer_rtc_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_TIMER_RTC, "timer", NULL, xml, error); if (g_strcmp0(gvir_config_object_get_attribute(object, NULL, "type"), "rtc") != 0) { g_object_unref(G_OBJECT(object)); g_return_val_if_reached(NULL); } return GVIR_CONFIG_DOMAIN_TIMER_RTC(object); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-storage-pool.h0000664000000000000000000001150013004340477021722 00000000000000/* * libvirt-gconfig-storage-pool.h: libvirt storage pool configuration * * Copyright (C) 2010-2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_STORAGE_POOL_H__ #define __LIBVIRT_GCONFIG_STORAGE_POOL_H__ #include #include G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_STORAGE_POOL (gvir_config_storage_pool_get_type ()) #define GVIR_CONFIG_STORAGE_POOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_STORAGE_POOL, GVirConfigStoragePool)) #define GVIR_CONFIG_STORAGE_POOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_STORAGE_POOL, GVirConfigStoragePoolClass)) #define GVIR_CONFIG_IS_STORAGE_POOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_STORAGE_POOL)) #define GVIR_CONFIG_IS_STORAGE_POOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_STORAGE_POOL)) #define GVIR_CONFIG_STORAGE_POOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_STORAGE_POOL, GVirConfigStoragePoolClass)) typedef struct _GVirConfigStoragePool GVirConfigStoragePool; typedef struct _GVirConfigStoragePoolPrivate GVirConfigStoragePoolPrivate; typedef struct _GVirConfigStoragePoolClass GVirConfigStoragePoolClass; struct _GVirConfigStoragePool { GVirConfigObject parent; GVirConfigStoragePoolPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigStoragePoolClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; typedef enum { GVIR_CONFIG_STORAGE_POOL_TYPE_DIR, GVIR_CONFIG_STORAGE_POOL_TYPE_FS, GVIR_CONFIG_STORAGE_POOL_TYPE_NETFS, GVIR_CONFIG_STORAGE_POOL_TYPE_LOGICAL, GVIR_CONFIG_STORAGE_POOL_TYPE_DISK, GVIR_CONFIG_STORAGE_POOL_TYPE_ISCSI, GVIR_CONFIG_STORAGE_POOL_TYPE_SCSI, GVIR_CONFIG_STORAGE_POOL_TYPE_MPATH } GVirConfigStoragePoolType; GType gvir_config_storage_pool_get_type(void); GVirConfigStoragePool *gvir_config_storage_pool_new(void); GVirConfigStoragePool *gvir_config_storage_pool_new_from_xml(const gchar *xml, GError **error); guint64 gvir_config_storage_pool_get_allocation(GVirConfigStoragePool *pool); void gvir_config_storage_pool_set_allocation(GVirConfigStoragePool *pool, guint64 allocation); guint64 gvir_config_storage_pool_get_available(GVirConfigStoragePool *pool); void gvir_config_storage_pool_set_available(GVirConfigStoragePool *pool, guint64 available); guint64 gvir_config_storage_pool_get_capacity(GVirConfigStoragePool *pool); void gvir_config_storage_pool_set_capacity(GVirConfigStoragePool *pool, guint64 capacity); const char *gvir_config_storage_pool_get_name(GVirConfigStoragePool *pool); void gvir_config_storage_pool_set_name(GVirConfigStoragePool *pool, const char *name); GVirConfigStoragePoolType gvir_config_storage_pool_get_pool_type(GVirConfigStoragePool *pool); void gvir_config_storage_pool_set_pool_type(GVirConfigStoragePool *pool, GVirConfigStoragePoolType type); GVirConfigStoragePoolSource *gvir_config_storage_pool_get_source(GVirConfigStoragePool *pool); void gvir_config_storage_pool_set_source(GVirConfigStoragePool *pool, GVirConfigStoragePoolSource *source); GVirConfigStoragePoolTarget *gvir_config_storage_pool_get_target(GVirConfigStoragePool *pool); void gvir_config_storage_pool_set_target(GVirConfigStoragePool *pool, GVirConfigStoragePoolTarget *target); const char *gvir_config_storage_pool_get_uuid(GVirConfigStoragePool *pool); void gvir_config_storage_pool_set_uuid(GVirConfigStoragePool *pool, const char *uuid); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_STORAGE_POOL_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-graphics-sdl.c0000664000000000000000000000761513004340477023143 00000000000000/* * libvirt-gconfig-domain-graphics-sdl.c: libvirt domain SDL configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_GRAPHICS_SDL_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_SDL, GVirConfigDomainGraphicsSdlPrivate)) struct _GVirConfigDomainGraphicsSdlPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainGraphicsSdl, gvir_config_domain_graphics_sdl, GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS); static void gvir_config_domain_graphics_sdl_class_init(GVirConfigDomainGraphicsSdlClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainGraphicsSdlPrivate)); } static void gvir_config_domain_graphics_sdl_init(GVirConfigDomainGraphicsSdl *graphics_sdl) { graphics_sdl->priv = GVIR_CONFIG_DOMAIN_GRAPHICS_SDL_GET_PRIVATE(graphics_sdl); } GVirConfigDomainGraphicsSdl *gvir_config_domain_graphics_sdl_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_SDL, "graphics", NULL); gvir_config_object_set_attribute(object, "type", "sdl", NULL); return GVIR_CONFIG_DOMAIN_GRAPHICS_SDL(object); } GVirConfigDomainGraphicsSdl * gvir_config_domain_graphics_sdl_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_SDL, "graphics", NULL, xml, error); if (g_strcmp0(gvir_config_object_get_attribute(object, NULL, "type"), "sdl") != 0) { g_object_unref(G_OBJECT(object)); return NULL; } return GVIR_CONFIG_DOMAIN_GRAPHICS_SDL(object); } void gvir_config_domain_graphics_sdl_set_xauthority(GVirConfigDomainGraphicsSdl *graphics, const gchar *path) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_GRAPHICS_SDL(graphics)); gvir_config_object_set_attribute(GVIR_CONFIG_OBJECT(graphics), "xauth", path, NULL); } void gvir_config_domain_graphics_sdl_set_display(GVirConfigDomainGraphicsSdl *graphics, const gchar *disp) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_GRAPHICS_SDL(graphics)); gvir_config_object_set_attribute(GVIR_CONFIG_OBJECT(graphics), "display", disp, NULL); } void gvir_config_domain_graphics_sdl_set_fullscreen(GVirConfigDomainGraphicsSdl *graphics, gboolean fullscreen) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_GRAPHICS_SDL(graphics)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(graphics), "fullscreen", G_TYPE_BOOLEAN, fullscreen, NULL); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-interface.h0000664000000000000000000001007013004340477022515 00000000000000/* * libvirt-gconfig-domain-interface.h: libvirt domain interface configuration * * Copyright (C) 2010-2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_INTERFACE_H__ #define __LIBVIRT_GCONFIG_DOMAIN_INTERFACE_H__ #include G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_INTERFACE (gvir_config_domain_interface_get_type ()) #define GVIR_CONFIG_DOMAIN_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE, GVirConfigDomainInterface)) #define GVIR_CONFIG_DOMAIN_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE, GVirConfigDomainInterfaceClass)) #define GVIR_CONFIG_IS_DOMAIN_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE)) #define GVIR_CONFIG_IS_DOMAIN_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE)) #define GVIR_CONFIG_DOMAIN_INTERFACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE, GVirConfigDomainInterfaceClass)) typedef struct _GVirConfigDomainInterface GVirConfigDomainInterface; typedef struct _GVirConfigDomainInterfacePrivate GVirConfigDomainInterfacePrivate; typedef struct _GVirConfigDomainInterfaceClass GVirConfigDomainInterfaceClass; struct _GVirConfigDomainInterface { GVirConfigDomainDevice parent; GVirConfigDomainInterfacePrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainInterfaceClass { GVirConfigDomainDeviceClass parent_class; gpointer padding[20]; }; typedef enum { GVIR_CONFIG_DOMAIN_INTERFACE_LINK_STATE_DEFAULT, GVIR_CONFIG_DOMAIN_INTERFACE_LINK_STATE_UP, GVIR_CONFIG_DOMAIN_INTERFACE_LINK_STATE_DOWN } GVirConfigDomainInterfaceLinkState; GType gvir_config_domain_interface_get_type(void); void gvir_config_domain_interface_set_ifname(GVirConfigDomainInterface *interface, const char *ifname); void gvir_config_domain_interface_set_link_state(GVirConfigDomainInterface *interface, GVirConfigDomainInterfaceLinkState state); void gvir_config_domain_interface_set_mac(GVirConfigDomainInterface *interface, const char *mac_address); void gvir_config_domain_interface_set_model(GVirConfigDomainInterface *interface, const char *model); const char *gvir_config_domain_interface_get_ifname(GVirConfigDomainInterface *interface); GVirConfigDomainInterfaceLinkState gvir_config_domain_interface_get_link_state(GVirConfigDomainInterface *interface); const char *gvir_config_domain_interface_get_mac(GVirConfigDomainInterface *interface); const char *gvir_config_domain_interface_get_model(GVirConfigDomainInterface *interface); void gvir_config_domain_interface_set_filterref(GVirConfigDomainInterface *interface, GVirConfigDomainInterfaceFilterref *filterref); GVirConfigDomainInterfaceFilterref *gvir_config_domain_interface_get_filterref(GVirConfigDomainInterface *interface); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_INTERFACE_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-interface-filterref.h0000664000000000000000000000721413004340477024503 00000000000000/* * libvirt-gconfig-domain-interface-network-filterref.h: libvirt filter reference config * * Copyright (C) 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Ian Main */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #include #ifndef __LIBVIRT_GCONFIG_DOMAIN_INTERFACE_FILTERREF_H__ #define __LIBVIRT_GCONFIG_DOMAIN_INTERFACE_FILTERREF_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_FILTERREF (gvir_config_domain_interface_filterref_get_type ()) #define GVIR_CONFIG_DOMAIN_INTERFACE_FILTERREF(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_FILTERREF, GVirConfigDomainInterfaceFilterref)) #define GVIR_CONFIG_DOMAIN_INTERFACE_FILTERREF_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_FILTERREF, GVirConfigDomainInterfaceFilterrefClass)) #define GVIR_CONFIG_IS_DOMAIN_INTERFACE_FILTERREF(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_FILTERREF)) #define GVIR_CONFIG_IS_DOMAIN_INTERFACE_FILTERREF_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_FILTERREF)) #define GVIR_CONFIG_DOMAIN_INTERFACE_FILTERREF_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_FILTERREF, GVirConfigDomainInterfaceFilterrefClass)) typedef struct _GVirConfigDomainInterfaceFilterref GVirConfigDomainInterfaceFilterref; typedef struct _GVirConfigDomainInterfaceFilterrefPrivate GVirConfigDomainInterfaceFilterrefPrivate; typedef struct _GVirConfigDomainInterfaceFilterrefClass GVirConfigDomainInterfaceFilterrefClass; struct _GVirConfigDomainInterfaceFilterref { GVirConfigObject parent; GVirConfigDomainInterfaceFilterrefPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainInterfaceFilterrefClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_interface_filterref_get_type(void); GVirConfigDomainInterfaceFilterref *gvir_config_domain_interface_filterref_new(void); GVirConfigDomainInterfaceFilterref * gvir_config_domain_interface_filterref_new_from_xml(const gchar *xml, GError **error); void gvir_config_domain_interface_filterref_set_name(GVirConfigDomainInterfaceFilterref *filterref, const char *filter); const char *gvir_config_domain_interface_filterref_get_name(GVirConfigDomainInterfaceFilterref *filterref); void gvir_config_domain_interface_filterref_add_parameter(GVirConfigDomainInterfaceFilterref *filterref, GVirConfigDomainInterfaceFilterrefParameter *parameter); GList *gvir_config_domain_interface_filterref_get_parameters(GVirConfigDomainInterfaceFilterref *filterref); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_INTERFACE_FILTERREF_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-address-pci.c0000664000000000000000000001450113004340477022751 00000000000000/* * libvirt-gconfig-domain-address-pci.c: libvirt pci device address configuration * * Copyright (C) 2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_ADDRESS_PCI_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_ADDRESS_PCI, GVirConfigDomainAddressPciPrivate)) struct _GVirConfigDomainAddressPciPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainAddressPci, gvir_config_domain_address_pci, GVIR_CONFIG_TYPE_DOMAIN_ADDRESS); static void gvir_config_domain_address_pci_class_init(GVirConfigDomainAddressPciClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainAddressPciPrivate)); } static void gvir_config_domain_address_pci_init(GVirConfigDomainAddressPci *address) { address->priv = GVIR_CONFIG_DOMAIN_ADDRESS_PCI_GET_PRIVATE(address); } GVirConfigDomainAddressPci *gvir_config_domain_address_pci_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_ADDRESS_PCI, "address", NULL); gvir_config_object_set_attribute(object, "type", "pci", NULL); return GVIR_CONFIG_DOMAIN_ADDRESS_PCI(object); } GVirConfigDomainAddressPci *gvir_config_domain_address_pci_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_ADDRESS_PCI, "address", NULL, xml, error); if (g_strcmp0(gvir_config_object_get_attribute(object, NULL, "type"), "pci") != 0) { g_object_unref(G_OBJECT(object)); g_return_val_if_reached(NULL); } return GVIR_CONFIG_DOMAIN_ADDRESS_PCI(object); } static void set_attribute_hex(GVirConfigDomainAddressPci *address, const char *attr_name, guint attr_val, guint min_val, guint max_val, guint size) { char *hex_str; char *format; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_ADDRESS_PCI(address)); g_return_if_fail((attr_val >= min_val) && (attr_val <= max_val)); format = g_strdup_printf("0x%%0%dx", size); hex_str = g_strdup_printf(format, attr_val); gvir_config_object_set_attribute(GVIR_CONFIG_OBJECT(address), attr_name, hex_str, NULL); g_free(hex_str); g_free(format); } int gvir_config_domain_address_pci_get_domain(GVirConfigDomainAddressPci *address) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_ADDRESS_PCI(address), -1); return gvir_config_object_get_attribute_uint64(GVIR_CONFIG_OBJECT(address), NULL, "domain", -1); } void gvir_config_domain_address_pci_set_domain(GVirConfigDomainAddressPci *address, guint16 pci_domain) { set_attribute_hex(address, "domain", pci_domain, 0, G_MAXUINT16, 4); } int gvir_config_domain_address_pci_get_bus(GVirConfigDomainAddressPci *address) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_ADDRESS_PCI(address), -1); return gvir_config_object_get_attribute_uint64(GVIR_CONFIG_OBJECT(address), NULL, "bus", -1); } void gvir_config_domain_address_pci_set_bus(GVirConfigDomainAddressPci *address, guchar bus) { set_attribute_hex(address, "bus", bus, 0, G_MAXUINT8, 2); } int gvir_config_domain_address_pci_get_slot(GVirConfigDomainAddressPci *address) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_ADDRESS_PCI(address), -1); return gvir_config_object_get_attribute_uint64(GVIR_CONFIG_OBJECT(address), NULL, "slot", -1); } void gvir_config_domain_address_pci_set_slot(GVirConfigDomainAddressPci *address, guchar slot) { set_attribute_hex(address, "slot", slot, 0, 0x1f, 2); } int gvir_config_domain_address_pci_get_function(GVirConfigDomainAddressPci *address) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_ADDRESS_PCI(address), -1); return gvir_config_object_get_attribute_uint64(GVIR_CONFIG_OBJECT(address), NULL, "function", -1); } void gvir_config_domain_address_pci_set_function(GVirConfigDomainAddressPci *address, guchar function) { set_attribute_hex(address, "function", function, 0, 7, 1); } gboolean gvir_config_domain_address_pci_get_multifunction(GVirConfigDomainAddressPci *address) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_ADDRESS_PCI(address), FALSE); return gvir_config_object_get_attribute_boolean(GVIR_CONFIG_OBJECT(address), NULL, "multifunction", FALSE); } void gvir_config_domain_address_pci_set_multifunction(GVirConfigDomainAddressPci *address, gboolean multifunction) { gvir_config_object_set_attribute(GVIR_CONFIG_OBJECT(address), "multifunction", multifunction?"on":"off", NULL); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-device.c0000664000000000000000000001150513007065555022017 00000000000000/* * libvirt-gconfig-domain-device.c: libvirt domain device configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_DEVICE_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_DEVICE, GVirConfigDomainDevicePrivate)) struct _GVirConfigDomainDevicePrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainDevice, gvir_config_domain_device, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_domain_device_class_init(GVirConfigDomainDeviceClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainDevicePrivate)); } static void gvir_config_domain_device_init(GVirConfigDomainDevice *device) { device->priv = GVIR_CONFIG_DOMAIN_DEVICE_GET_PRIVATE(device); } G_GNUC_INTERNAL GVirConfigDomainDevice * gvir_config_domain_device_new_from_tree(GVirConfigXmlDoc *doc, xmlNodePtr tree) { GType type; g_return_val_if_fail(GVIR_CONFIG_IS_XML_DOC(doc), NULL); g_return_val_if_fail(tree != NULL, NULL); g_return_val_if_fail(tree->name != NULL, NULL); if (xmlStrEqual(tree->name, (xmlChar*)"disk")) { return gvir_config_domain_disk_new_from_tree(doc, tree); } else if (xmlStrEqual(tree->name, (xmlChar*)"filesystem")) { return gvir_config_domain_filesys_new_from_tree(doc, tree); } else if (xmlStrEqual(tree->name, (xmlChar*)"controller")) { return gvir_config_domain_controller_new_from_tree(doc, tree); } else if (xmlStrEqual(tree->name, (xmlChar*)"lease")) { type = GVIR_CONFIG_TYPE_DOMAIN_DEVICE; } else if (xmlStrEqual(tree->name, (xmlChar*)"hostdev")) { return gvir_config_domain_hostdev_new_from_tree(doc, tree); } else if (xmlStrEqual(tree->name, (xmlChar*)"redirdev")) { type = GVIR_CONFIG_TYPE_DOMAIN_REDIRDEV; } else if (xmlStrEqual(tree->name, (xmlChar*)"smartcard")) { return gvir_config_domain_smartcard_new_from_tree(doc, tree); } else if (xmlStrEqual(tree->name, (xmlChar*)"interface")) { return gvir_config_domain_interface_new_from_tree(doc, tree); } else if (xmlStrEqual(tree->name, (xmlChar*)"input")) { type = GVIR_CONFIG_TYPE_DOMAIN_INPUT; } else if (xmlStrEqual(tree->name, (xmlChar*)"hub")) { type = GVIR_CONFIG_TYPE_DOMAIN_DEVICE; } else if (xmlStrEqual(tree->name, (xmlChar*)"graphics")) { return gvir_config_domain_graphics_new_from_tree(doc, tree); } else if (xmlStrEqual(tree->name, (xmlChar*)"video")) { type = GVIR_CONFIG_TYPE_DOMAIN_VIDEO; } else if (xmlStrEqual(tree->name, (xmlChar*)"parallel")) { type = GVIR_CONFIG_TYPE_DOMAIN_PARALLEL; } else if (xmlStrEqual(tree->name, (xmlChar*)"serial")) { type = GVIR_CONFIG_TYPE_DOMAIN_SERIAL; } else if (xmlStrEqual(tree->name, (xmlChar*)"console")) { type = GVIR_CONFIG_TYPE_DOMAIN_CONSOLE; } else if (xmlStrEqual(tree->name, (xmlChar*)"channel")) { type = GVIR_CONFIG_TYPE_DOMAIN_CHANNEL; } else if (xmlStrEqual(tree->name, (xmlChar*)"watchdog")) { type = GVIR_CONFIG_TYPE_DOMAIN_DEVICE; } else if (xmlStrEqual(tree->name, (xmlChar*)"sound")) { type = GVIR_CONFIG_TYPE_DOMAIN_SOUND; } else if (xmlStrEqual(tree->name, (xmlChar*)"memballoon")) { type = GVIR_CONFIG_TYPE_DOMAIN_MEMBALLOON; } else { g_debug("Unknown device node: %s", tree->name); type = GVIR_CONFIG_TYPE_DOMAIN_DEVICE; } g_return_val_if_fail(g_type_is_a(type, GVIR_CONFIG_TYPE_DOMAIN_DEVICE), NULL); if (type == GVIR_CONFIG_TYPE_DOMAIN_DEVICE) g_debug("Proper support for '%s' device nodes is not yet implemented", tree->name); return GVIR_CONFIG_DOMAIN_DEVICE(gvir_config_object_new_from_tree(type, doc, NULL, tree)); } const gchar *gvir_config_domain_device_get_alias(GVirConfigDomainDevice *dev) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_DEVICE(dev), NULL); return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(dev), "alias", "name"); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-graphics-desktop.c0000664000000000000000000001071513004340477024025 00000000000000/* * libvirt-gconfig-domain-graphics-desktop.c: libvirt domain desktop configuration * * Copyright (C) 2011, 2014 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_GRAPHICS_DESKTOP_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_DESKTOP, GVirConfigDomainGraphicsDesktopPrivate)) struct _GVirConfigDomainGraphicsDesktopPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainGraphicsDesktop, gvir_config_domain_graphics_desktop, GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS); static void gvir_config_domain_graphics_desktop_class_init(GVirConfigDomainGraphicsDesktopClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainGraphicsDesktopPrivate)); } static void gvir_config_domain_graphics_desktop_init(GVirConfigDomainGraphicsDesktop *graphics_desktop) { graphics_desktop->priv = GVIR_CONFIG_DOMAIN_GRAPHICS_DESKTOP_GET_PRIVATE(graphics_desktop); } GVirConfigDomainGraphicsDesktop *gvir_config_domain_graphics_desktop_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_DESKTOP, "graphics", NULL); gvir_config_object_set_attribute(object, "type", "desktop", NULL); return GVIR_CONFIG_DOMAIN_GRAPHICS_DESKTOP(object); } GVirConfigDomainGraphicsDesktop * gvir_config_domain_graphics_desktop_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_DESKTOP, "graphics", NULL, xml, error); if (g_strcmp0(gvir_config_object_get_attribute(object, NULL, "type"), "desktop") != 0) { g_object_unref(G_OBJECT(object)); return NULL; } return GVIR_CONFIG_DOMAIN_GRAPHICS_DESKTOP(object); } void gvir_config_domain_graphics_desktop_set_display(GVirConfigDomainGraphicsDesktop *graphics, const gchar *disp) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_GRAPHICS_DESKTOP(graphics)); gvir_config_object_set_attribute(GVIR_CONFIG_OBJECT(graphics), "display", disp, NULL); } const gchar *gvir_config_domain_graphics_desktop_get_display(GVirConfigDomainGraphicsDesktop *graphics) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_GRAPHICS_DESKTOP(graphics), NULL); return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(graphics), NULL, "display"); } void gvir_config_domain_graphics_desktop_set_fullscreen(GVirConfigDomainGraphicsDesktop *graphics, gboolean fullscreen) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_GRAPHICS_DESKTOP(graphics)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(graphics), "fullscreen", G_TYPE_BOOLEAN, fullscreen, NULL); } gboolean gvir_config_domain_graphics_desktop_get_fullscreen(GVirConfigDomainGraphicsDesktop *graphics) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_GRAPHICS_DESKTOP(graphics), FALSE); return gvir_config_object_get_attribute_boolean(GVIR_CONFIG_OBJECT(graphics), NULL, "fullscreen", FALSE); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-graphics-spice.h0000664000000000000000000001115613004340477023464 00000000000000/* * libvirt-gconfig-domain-graphics-spice.h: libvirt domain SPICE confiiguration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Christophe Fergeau * Zeeshan Ali (Khattak) */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_GRAPHICS_SPICE_H__ #define __LIBVIRT_GCONFIG_DOMAIN_GRAPHICS_SPICE_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_SPICE (gvir_config_domain_graphics_spice_get_type ()) #define GVIR_CONFIG_DOMAIN_GRAPHICS_SPICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_SPICE, GVirConfigDomainGraphicsSpice)) #define GVIR_CONFIG_DOMAIN_GRAPHICS_SPICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_SPICE, GVirConfigDomainGraphicsSpiceClass)) #define GVIR_CONFIG_IS_DOMAIN_GRAPHICS_SPICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_SPICE)) #define GVIR_CONFIG_IS_DOMAIN_GRAPHICS_SPICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_SPICE)) #define GVIR_CONFIG_DOMAIN_GRAPHICS_SPICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_SPICE, GVirConfigDomainGraphicsSpiceClass)) typedef struct _GVirConfigDomainGraphicsSpice GVirConfigDomainGraphicsSpice; typedef struct _GVirConfigDomainGraphicsSpicePrivate GVirConfigDomainGraphicsSpicePrivate; typedef struct _GVirConfigDomainGraphicsSpiceClass GVirConfigDomainGraphicsSpiceClass; struct _GVirConfigDomainGraphicsSpice { GVirConfigDomainGraphics parent; GVirConfigDomainGraphicsSpicePrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainGraphicsSpiceClass { GVirConfigDomainGraphicsClass parent_class; gpointer padding[20]; }; typedef enum { GVIR_CONFIG_DOMAIN_GRAPHICS_SPICE_IMAGE_COMPRESSION_AUTO_GLZ, /*< nick=auto_glz >*/ GVIR_CONFIG_DOMAIN_GRAPHICS_SPICE_IMAGE_COMPRESSION_AUTO_LZ, /*< nick=auto_lz >*/ GVIR_CONFIG_DOMAIN_GRAPHICS_SPICE_IMAGE_COMPRESSION_QUIC, GVIR_CONFIG_DOMAIN_GRAPHICS_SPICE_IMAGE_COMPRESSION_GLZ, GVIR_CONFIG_DOMAIN_GRAPHICS_SPICE_IMAGE_COMPRESSION_LZ, GVIR_CONFIG_DOMAIN_GRAPHICS_SPICE_IMAGE_COMPRESSION_OFF } GVirConfigDomainGraphicsSpiceImageCompression; GType gvir_config_domain_graphics_spice_get_type(void); GVirConfigDomainGraphicsSpice *gvir_config_domain_graphics_spice_new(void); GVirConfigDomainGraphicsSpice *gvir_config_domain_graphics_spice_new_from_xml(const gchar *xml, GError **error); void gvir_config_domain_graphics_spice_set_autoport(GVirConfigDomainGraphicsSpice *graphics, gboolean autoport); void gvir_config_domain_graphics_spice_set_password(GVirConfigDomainGraphicsSpice *graphics, const char *password); int gvir_config_domain_graphics_spice_get_port(GVirConfigDomainGraphicsSpice *graphics); void gvir_config_domain_graphics_spice_set_port(GVirConfigDomainGraphicsSpice *graphics, int port); void gvir_config_domain_graphics_spice_set_tls_port(GVirConfigDomainGraphicsSpice *graphics, int port); void gvir_config_domain_graphics_spice_set_image_compression (GVirConfigDomainGraphicsSpice *graphics, GVirConfigDomainGraphicsSpiceImageCompression compression); int gvir_config_domain_graphics_spice_get_image_compression (GVirConfigDomainGraphicsSpice *graphics); void gvir_config_domain_graphics_spice_set_gl(GVirConfigDomainGraphicsSpice *graphics, gboolean gl); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_GRAPHICS_SPICE_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig.h0000664000000000000000000001414113004340477017315 00000000000000/* * libvirt-gconfig.h: libvirt gconfig integration * * Copyright (C) 2010-2014 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #ifndef __LIBVIRT_GCONFIG_H__ #define __LIBVIRT_GCONFIG_H__ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #endif /* __LIBVIRT_GCONFIG_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-snapshot.c0000664000000000000000000002605313004340477022417 00000000000000/* * libvirt-gconfig-domain-snapshot.c: libvirt domain snapshot configuration * * Copyright (C) 2008 Daniel P. Berrange * Copyright (C) 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange * Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_SNAPSHOT_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_SNAPSHOT, GVirConfigDomainSnapshotPrivate)) struct _GVirConfigDomainSnapshotPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainSnapshot, gvir_config_domain_snapshot, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_domain_snapshot_class_init(GVirConfigDomainSnapshotClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainSnapshotPrivate)); } static void gvir_config_domain_snapshot_init(GVirConfigDomainSnapshot *snapshot) { snapshot->priv = GVIR_CONFIG_DOMAIN_SNAPSHOT_GET_PRIVATE(snapshot); } GVirConfigDomainSnapshot *gvir_config_domain_snapshot_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_SNAPSHOT, "domainsnapshot", DATADIR "/libvirt/schemas/domainsnapshot.rng"); return GVIR_CONFIG_DOMAIN_SNAPSHOT(object); } GVirConfigDomainSnapshot *gvir_config_domain_snapshot_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_SNAPSHOT, "domainsnapshot", DATADIR "/libvirt/schemas/domainsnapshot.rng", xml, error); return GVIR_CONFIG_DOMAIN_SNAPSHOT(object); } const char *gvir_config_domain_snapshot_get_name(GVirConfigDomainSnapshot *snapshot) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_SNAPSHOT(snapshot), NULL); return gvir_config_object_get_node_content(GVIR_CONFIG_OBJECT(snapshot), "name"); } void gvir_config_domain_snapshot_set_name(GVirConfigDomainSnapshot *snapshot, const char *name) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_SNAPSHOT(snapshot)); gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(snapshot), "name", name); } const char *gvir_config_domain_snapshot_get_description(GVirConfigDomainSnapshot *snapshot) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_SNAPSHOT(snapshot), NULL); return gvir_config_object_get_node_content(GVIR_CONFIG_OBJECT(snapshot), "description"); } void gvir_config_domain_snapshot_set_description(GVirConfigDomainSnapshot *snapshot, const char *description) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_SNAPSHOT(snapshot)); gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(snapshot), "description", description); } GVirConfigDomainSnapshotMemoryState gvir_config_domain_snapshot_get_memory_state(GVirConfigDomainSnapshot *snapshot) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_SNAPSHOT(snapshot), GVIR_CONFIG_DOMAIN_SNAPSHOT_MEMORY_STATE_NONE); return gvir_config_object_get_attribute_genum(GVIR_CONFIG_OBJECT(snapshot), "memory", "snapshot", GVIR_CONFIG_TYPE_DOMAIN_SNAPSHOT_MEMORY_STATE, GVIR_CONFIG_DOMAIN_SNAPSHOT_MEMORY_STATE_NONE); } void gvir_config_domain_snapshot_set_memory_state(GVirConfigDomainSnapshot *snapshot, GVirConfigDomainSnapshotMemoryState state) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_SNAPSHOT(snapshot)); gvir_config_object_add_child_with_attribute_enum(GVIR_CONFIG_OBJECT(snapshot), "memory", "snapshot", GVIR_CONFIG_TYPE_DOMAIN_SNAPSHOT_MEMORY_STATE, state); } const char *gvir_config_domain_snapshot_get_memory_file(GVirConfigDomainSnapshot *snapshot) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_SNAPSHOT(snapshot), NULL); return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(snapshot), "memory", "file"); } void gvir_config_domain_snapshot_set_memory_file(GVirConfigDomainSnapshot *snapshot, const char *filename) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_SNAPSHOT(snapshot)); gvir_config_object_add_child_with_attribute(GVIR_CONFIG_OBJECT(snapshot), "memory", "file", filename); } time_t gvir_config_domain_snapshot_get_creation_time(GVirConfigDomainSnapshot *snapshot) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_SNAPSHOT(snapshot), 0); return gvir_config_object_get_node_content_uint64(GVIR_CONFIG_OBJECT(snapshot), "creationTime"); } GVirConfigDomainSnapshotDomainState gvir_config_domain_snapshot_get_state(GVirConfigDomainSnapshot *snapshot) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_SNAPSHOT(snapshot), GVIR_CONFIG_DOMAIN_SNAPSHOT_DOMAIN_STATE_NOSTATE); return gvir_config_object_get_node_content_genum(GVIR_CONFIG_OBJECT(snapshot), "state", GVIR_CONFIG_TYPE_DOMAIN_SNAPSHOT_DOMAIN_STATE, GVIR_CONFIG_DOMAIN_SNAPSHOT_DOMAIN_STATE_NOSTATE); } const char *gvir_config_domain_snapshot_get_parent(GVirConfigDomainSnapshot *snapshot) { GVirConfigObject *parent; const char *parent_name; g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_SNAPSHOT(snapshot), NULL); parent = gvir_config_object_get_child(GVIR_CONFIG_OBJECT(snapshot), "parent"); if (parent == NULL) return NULL; parent_name = gvir_config_object_get_node_content(parent, "name"); g_object_unref(G_OBJECT(parent)); return parent_name; } /** * gvir_config_domain_snapshot_get_domain: * @snapshot: a #GVirConfigDomainSnapshot * * Gets the configuration of the domain @snapshot is a snapshot of. * * Returns: (transfer full): A #GVirConfigDomain. The returned object * should be unreffed with g_object_unref() when no longer needed. */ GVirConfigDomain *gvir_config_domain_snapshot_get_domain(GVirConfigDomainSnapshot *snapshot) { GVirConfigObject *domain; g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_SNAPSHOT(snapshot), NULL); domain = gvir_config_object_get_child_with_type(GVIR_CONFIG_OBJECT(snapshot), "domain", GVIR_CONFIG_TYPE_DOMAIN); return GVIR_CONFIG_DOMAIN(domain); } /** * gvir_config_domain_snapshot_set_disks: * @snapshot: a #GVirConfigDomainSnapshot * @disks: (in) (element-type LibvirtGConfig.DomainSnapshotDisk): */ void gvir_config_domain_snapshot_set_disks(GVirConfigDomainSnapshot *snapshot, GList *disks) { GVirConfigObject *disks_node; GList *it; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_SNAPSHOT(snapshot)); if (disks == NULL) { gvir_config_object_delete_children(GVIR_CONFIG_OBJECT(snapshot), "disks", NULL); return; } disks_node = gvir_config_object_new(GVIR_CONFIG_TYPE_OBJECT, "disks", NULL); for (it = disks; it != NULL; it = it->next) { if (!GVIR_CONFIG_IS_DOMAIN_SNAPSHOT_DISK(it->data)) { g_warn_if_reached(); continue; } gvir_config_object_attach_add(disks_node, GVIR_CONFIG_OBJECT(it->data)); } gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(snapshot), "disks", disks_node); g_object_unref(G_OBJECT(disks_node)); } void gvir_config_domain_snapshot_add_disk(GVirConfigDomainSnapshot *snapshot, GVirConfigDomainSnapshotDisk *disk) { GVirConfigObject *disks_node; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_SNAPSHOT(snapshot)); g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_SNAPSHOT_DISK(disk)); disks_node = gvir_config_object_add_child(GVIR_CONFIG_OBJECT(snapshot), "disks"); gvir_config_object_attach_add(disks_node, GVIR_CONFIG_OBJECT(disk)); g_object_unref(G_OBJECT(disks_node)); } struct GetDiskData { GVirConfigXmlDoc *doc; GList *disks; }; static gboolean get_disk(xmlNodePtr node, gpointer opaque) { struct GetDiskData* data = (struct GetDiskData*)opaque; GVirConfigDomainSnapshotDisk *disk; disk = gvir_config_domain_snapshot_disk_new_from_tree(data->doc, node); if (disk != NULL) data->disks = g_list_prepend(data->disks, disk); else g_debug("Failed to parse %s node", node->name); return TRUE; } /** * gvir_config_domain_snapshot_get_disks: * @snapshot: a #GVirConfigDomainSnapshot * * Gets the list of disks attached to @snapshot. The returned list should * be freed with g_list_free(), after its elements have been unreffed with * g_object_unref(). * * Returns: (element-type LibvirtGConfig.DomainSnapshotDisk) (transfer full): * a newly allocated #GList of #GVirConfigDomainSnapshotDisk. */ GList *gvir_config_domain_snapshot_get_disks(GVirConfigDomainSnapshot *snapshot) { struct GetDiskData data; g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_SNAPSHOT(snapshot), NULL); g_object_get(G_OBJECT(snapshot), "doc", &data.doc, NULL); data.disks = NULL; gvir_config_object_foreach_child(GVIR_CONFIG_OBJECT(snapshot), "disks", get_disk, &data); if (data.doc != NULL) { g_object_unref(G_OBJECT(data.doc)); } return g_list_reverse(data.disks); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-channel.h0000664000000000000000000000660313004340477022174 00000000000000/* * libvirt-gconfig-domain-channel.h: libvirt domain channel configuration * * Copyright (C) 2011-2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_CHANNEL_H__ #define __LIBVIRT_GCONFIG_DOMAIN_CHANNEL_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_CHANNEL (gvir_config_domain_channel_get_type ()) #define GVIR_CONFIG_DOMAIN_CHANNEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_CHANNEL, GVirConfigDomainChannel)) #define GVIR_CONFIG_DOMAIN_CHANNEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_CHANNEL, GVirConfigDomainChannelClass)) #define GVIR_CONFIG_IS_DOMAIN_CHANNEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_CHANNEL)) #define GVIR_CONFIG_IS_DOMAIN_CHANNEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_CHANNEL)) #define GVIR_CONFIG_DOMAIN_CHANNEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_CHANNEL, GVirConfigDomainChannelClass)) typedef struct _GVirConfigDomainChannel GVirConfigDomainChannel; typedef struct _GVirConfigDomainChannelPrivate GVirConfigDomainChannelPrivate; typedef struct _GVirConfigDomainChannelClass GVirConfigDomainChannelClass; struct _GVirConfigDomainChannel { GVirConfigDomainChardev parent; GVirConfigDomainChannelPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainChannelClass { GVirConfigDomainChardevClass parent_class; gpointer padding[20]; }; typedef enum { GVIR_CONFIG_DOMAIN_CHANNEL_TARGET_GUESTFWD, GVIR_CONFIG_DOMAIN_CHANNEL_TARGET_VIRTIO, GVIR_CONFIG_DOMAIN_CHANNEL_TARGET_SPICEPORT, } GVirConfigDomainChannelTargetType; GType gvir_config_domain_channel_get_type(void); GVirConfigDomainChannel *gvir_config_domain_channel_new(void); GVirConfigDomainChannel *gvir_config_domain_channel_new_from_xml(const gchar *xml, GError **error); GVirConfigDomainChannelTargetType gvir_config_domain_channel_get_target_type(GVirConfigDomainChannel *channel); void gvir_config_domain_channel_set_target_type(GVirConfigDomainChannel *channel, GVirConfigDomainChannelTargetType type); const gchar *gvir_config_domain_channel_get_target_name(GVirConfigDomainChannel *channel); void gvir_config_domain_channel_set_target_name(GVirConfigDomainChannel *channel, const gchar *name); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_CHANNEL_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-chardev-source-unix.c0000664000000000000000000000617313004340477024454 00000000000000/* * libvirt-gconfig-domain-chardev-source-unix.c: libvirt domain chardev unix configuration * * Copyright (C) 2012 Red Hat, Inc. * Copyright (C) 2015 T A Mahadevan * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: T A Mahadevan */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_UNIX_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_UNIX, GVirConfigDomainChardevSourceUnixPrivate)) struct _GVirConfigDomainChardevSourceUnixPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainChardevSourceUnix, gvir_config_domain_chardev_source_unix, GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE); static void gvir_config_domain_chardev_source_unix_class_init(GVirConfigDomainChardevSourceUnixClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainChardevSourceUnixPrivate)); } static void gvir_config_domain_chardev_source_unix_init(GVirConfigDomainChardevSourceUnix *source) { source->priv = GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_UNIX_GET_PRIVATE(source); } GVirConfigDomainChardevSourceUnix *gvir_config_domain_chardev_source_unix_new(void) { GVirConfigObject *object; /* the name of the root node is just a placeholder, it will be * overwritten when the GVirConfigDomainChardevSourceUnix is attached to a * GVirConfigDomainChardev */ object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_UNIX, "dummy", NULL); gvir_config_object_set_attribute(object, "type", "unix", NULL); return GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_UNIX(object); } GVirConfigDomainChardevSourceUnix *gvir_config_domain_chardev_source_unix_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; /* the name of the root node is just a placeholder, it will be * overwritten when the GVirConfigDomainChardevSourceUnix is attached to a * GVirConfigDomainChardev */ object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_UNIX, "dummy", NULL, xml, error); if (g_strcmp0(gvir_config_object_get_attribute(object, NULL, "type"), "unix") != 0) { g_object_unref(G_OBJECT(object)); g_return_val_if_reached(NULL); } return GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_UNIX(object); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-network.c0000664000000000000000000000444213004340477021002 00000000000000/* * libvirt-gconfig-network.c: libvirt network configuration * * Copyright (C) 2008 Daniel P. Berrange * Copyright (C) 2010-2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #define GVIR_CONFIG_NETWORK_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_NETWORK, GVirConfigNetworkPrivate)) struct _GVirConfigNetworkPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigNetwork, gvir_config_network, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_network_class_init(GVirConfigNetworkClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigNetworkPrivate)); } static void gvir_config_network_init(GVirConfigNetwork *network) { network->priv = GVIR_CONFIG_NETWORK_GET_PRIVATE(network); } GVirConfigNetwork *gvir_config_network_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_NETWORK, "network", DATADIR "/libvirt/schemas/network.rng"); return GVIR_CONFIG_NETWORK(object); } GVirConfigNetwork *gvir_config_network_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_NETWORK, "network", DATADIR "/libvirt/schemas/network.rng", xml, error); return GVIR_CONFIG_NETWORK(object); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-chardev.c0000664000000000000000000000702113004340477022166 00000000000000/* * libvirt-gconfig-domain-chardev.c: libvirt domain chardev configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #include "libvirt-gconfig/libvirt-gconfig-domain-chardev-source-private.h" #define GVIR_CONFIG_DOMAIN_CHARDEV_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV, GVirConfigDomainChardevPrivate)) struct _GVirConfigDomainChardevPrivate { gboolean unused; }; G_DEFINE_ABSTRACT_TYPE(GVirConfigDomainChardev, gvir_config_domain_chardev, GVIR_CONFIG_TYPE_DOMAIN_DEVICE) static void gvir_config_domain_chardev_class_init(GVirConfigDomainChardevClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainChardevPrivate)); } static void gvir_config_domain_chardev_init(GVirConfigDomainChardev *chardev) { chardev->priv = GVIR_CONFIG_DOMAIN_CHARDEV_GET_PRIVATE(chardev); } static void prepend_prop(xmlNodePtr node, xmlAttrPtr prop) { if (node->properties == NULL) { node->properties = prop; } else { prop->next = node->properties; node->properties->prev = prop; node->properties = prop; } } void gvir_config_domain_chardev_set_source(GVirConfigDomainChardev *chardev, GVirConfigDomainChardevSource *source) { xmlNodePtr chardev_node; xmlNodePtr source_node; xmlNodePtr child; xmlAttrPtr attr; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_CHARDEV(chardev)); g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_CHARDEV_SOURCE(source)); chardev_node = gvir_config_object_get_xml_node(GVIR_CONFIG_OBJECT(chardev)); source_node = gvir_config_object_get_xml_node(GVIR_CONFIG_OBJECT(source)); g_return_if_fail((chardev_node != NULL) && (source_node != NULL)); for (child = source_node->children; child != NULL; child = child->next) { xmlUnlinkNode(child); xmlAddChild(chardev_node, child); } for (attr = source_node->properties; attr != NULL; attr = attr->next) { xmlAttrPtr new_attr; new_attr = xmlCopyProp(chardev_node, attr); prepend_prop(chardev_node, new_attr); } } /** * gvir_config_domain_chardev_get_source: * @chardev: a #GVirConfigDomainChardev * * Gets the source for the chardev * * Returns: (transfer full): the chardev source */ GVirConfigDomainChardevSource * gvir_config_domain_chardev_get_source(GVirConfigDomainChardev *chardev) { GVirConfigXmlDoc *doc; xmlNodePtr tree; doc = gvir_config_object_get_xml_doc(GVIR_CONFIG_OBJECT(chardev)); tree = gvir_config_object_get_xml_node(GVIR_CONFIG_OBJECT(chardev)); return gvir_config_domain_chardev_source_new_from_tree(doc, tree); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-interface-filterref-parameter.h0000664000000000000000000000752613004340477026467 00000000000000/* * libvirt-gconfig-domain-interface-filterref-parameter.h: * libvirt filterref parameters * * Copyright (C) 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Ian Main * Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_INTERFACE_FILTERREF_PARAMETER_H__ #define __LIBVIRT_GCONFIG_DOMAIN_INTERFACE_FILTERREF_PARAMETER_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_FILTERREF_PARAMETER (gvir_config_domain_interface_filterref_parameter_get_type ()) #define GVIR_CONFIG_DOMAIN_INTERFACE_FILTERREF_PARAMETER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_FILTERREF_PARAMETER, GVirConfigDomainInterfaceFilterrefParameter)) #define GVIR_CONFIG_DOMAIN_INTERFACE_FILTERREF_PARAMETER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_FILTERREF_PARAMETER, GVirConfigDomainInterfaceFilterrefParameterClass)) #define GVIR_CONFIG_IS_DOMAIN_INTERFACE_FILTERREF_PARAMETER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_FILTERREF_PARAMETER)) #define GVIR_CONFIG_IS_DOMAIN_INTERFACE_FILTERREF_PARAMETER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_FILTERREF_PARAMETER)) #define GVIR_CONFIG_DOMAIN_INTERFACE_FILTERREF_PARAMETER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_FILTERREF_PARAMETER, GVirConfigDomainInterfaceFilterrefParameterClass)) typedef struct _GVirConfigDomainInterfaceFilterrefParameter GVirConfigDomainInterfaceFilterrefParameter; typedef struct _GVirConfigDomainInterfaceFilterrefParameterPrivate GVirConfigDomainInterfaceFilterrefParameterPrivate; typedef struct _GVirConfigDomainInterfaceFilterrefParameterClass GVirConfigDomainInterfaceFilterrefParameterClass; struct _GVirConfigDomainInterfaceFilterrefParameter { GVirConfigObject parent; GVirConfigDomainInterfaceFilterrefParameterPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainInterfaceFilterrefParameterClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_interface_filterref_parameter_get_type(void); GVirConfigDomainInterfaceFilterrefParameter *gvir_config_domain_interface_filterref_parameter_new(void); GVirConfigDomainInterfaceFilterrefParameter * gvir_config_domain_interface_filterref_parameter_new_from_xml(const gchar *xml, GError **error); void gvir_config_domain_interface_filterref_parameter_set_name(GVirConfigDomainInterfaceFilterrefParameter *parameter, const gchar *name); void gvir_config_domain_interface_filterref_parameter_set_value(GVirConfigDomainInterfaceFilterrefParameter *parameter, const gchar *value); const gchar *gvir_config_domain_interface_filterref_parameter_get_name(GVirConfigDomainInterfaceFilterrefParameter *parameter); const gchar *gvir_config_domain_interface_filterref_parameter_get_value(GVirConfigDomainInterfaceFilterrefParameter *parameter); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_INTERFACE_FILTERREF_PARAMETER_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-graphics-vnc.h0000664000000000000000000000716513004340477023154 00000000000000/* * libvirt-gconfig-domain-graphics-vnc.h: libvirt domain VNC graphics configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_GRAPHICS_VNC_H__ #define __LIBVIRT_GCONFIG_DOMAIN_GRAPHICS_VNC_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_VNC (gvir_config_domain_graphics_vnc_get_type ()) #define GVIR_CONFIG_DOMAIN_GRAPHICS_VNC(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_VNC, GVirConfigDomainGraphicsVnc)) #define GVIR_CONFIG_DOMAIN_GRAPHICS_VNC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_VNC, GVirConfigDomainGraphicsVncClass)) #define GVIR_CONFIG_IS_DOMAIN_GRAPHICS_VNC(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_VNC)) #define GVIR_CONFIG_IS_DOMAIN_GRAPHICS_VNC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_VNC)) #define GVIR_CONFIG_DOMAIN_GRAPHICS_VNC_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_VNC, GVirConfigDomainGraphicsVncClass)) typedef struct _GVirConfigDomainGraphicsVnc GVirConfigDomainGraphicsVnc; typedef struct _GVirConfigDomainGraphicsVncPrivate GVirConfigDomainGraphicsVncPrivate; typedef struct _GVirConfigDomainGraphicsVncClass GVirConfigDomainGraphicsVncClass; struct _GVirConfigDomainGraphicsVnc { GVirConfigDomainGraphics parent; GVirConfigDomainGraphicsVncPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainGraphicsVncClass { GVirConfigDomainGraphicsClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_graphics_vnc_get_type(void); GVirConfigDomainGraphicsVnc *gvir_config_domain_graphics_vnc_new(void); GVirConfigDomainGraphicsVnc *gvir_config_domain_graphics_vnc_new_from_xml(const gchar *xml, GError **error); const char *gvir_config_domain_graphics_vnc_get_socket(GVirConfigDomainGraphicsVnc *graphics); void gvir_config_domain_graphics_vnc_set_socket(GVirConfigDomainGraphicsVnc *graphics, const char *socket); void gvir_config_domain_graphics_vnc_set_autoport(GVirConfigDomainGraphicsVnc *graphics, gboolean autoport); int gvir_config_domain_graphics_vnc_get_port(GVirConfigDomainGraphicsVnc *graphics); void gvir_config_domain_graphics_vnc_set_port(GVirConfigDomainGraphicsVnc *graphics, int port); void gvir_config_domain_graphics_vnc_set_password(GVirConfigDomainGraphicsVnc *graphics, const char *password); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_GRAPHICS_VNC_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-node-device.c0000664000000000000000000000456413004340477021500 00000000000000/* * libvirt-gconfig-node-device.c: libvirt node device configuration * * Copyright (C) 2008 Daniel P. Berrange * Copyright (C) 2010-2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #define GVIR_CONFIG_NODE_DEVICE_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_NODE_DEVICE, GVirConfigNodeDevicePrivate)) struct _GVirConfigNodeDevicePrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigNodeDevice, gvir_config_node_device, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_node_device_class_init(GVirConfigNodeDeviceClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigNodeDevicePrivate)); } static void gvir_config_node_device_init(GVirConfigNodeDevice *device) { device->priv = GVIR_CONFIG_NODE_DEVICE_GET_PRIVATE(device); } GVirConfigNodeDevice *gvir_config_node_device_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_NODE_DEVICE, "device", DATADIR "/libvirt/schemas/nodedev.rng"); return GVIR_CONFIG_NODE_DEVICE(object); } GVirConfigNodeDevice *gvir_config_node_device_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_NODE_DEVICE, "device", DATADIR "/libvirt/schemas/nodedev.rng", xml, error); return GVIR_CONFIG_NODE_DEVICE(object); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-smartcard-host-certificates.c0000664000000000000000000001156613004340477026161 00000000000000/* * libvirt-gconfig-domain-smartcard-host-certificates.c: libvirt domain smartcard host-certificates configuration * * Copyright (C) 2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Alexander Larsson */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_SMARTCARD_HOST_CERTIFICATES_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD_HOST_CERTIFICATES, GVirConfigDomainSmartcardHostCertificatesPrivate)) struct _GVirConfigDomainSmartcardHostCertificatesPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainSmartcardHostCertificates, gvir_config_domain_smartcard_host_certificates, GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD); static void gvir_config_domain_smartcard_host_certificates_class_init(GVirConfigDomainSmartcardHostCertificatesClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainSmartcardHostCertificatesPrivate)); } static void gvir_config_domain_smartcard_host_certificates_init(GVirConfigDomainSmartcardHostCertificates *smartcard) { smartcard->priv = GVIR_CONFIG_DOMAIN_SMARTCARD_HOST_CERTIFICATES_GET_PRIVATE(smartcard); } GVirConfigDomainSmartcardHostCertificates *gvir_config_domain_smartcard_host_certificates_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD_HOST_CERTIFICATES, "smartcard", NULL); gvir_config_object_set_attribute(object, "mode", "host-certificates", NULL); return GVIR_CONFIG_DOMAIN_SMARTCARD_HOST_CERTIFICATES(object); } GVirConfigDomainSmartcardHostCertificates *gvir_config_domain_smartcard_host_certificates_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD_HOST_CERTIFICATES, "smartcard", NULL, xml, error); if (g_strcmp0(gvir_config_object_get_attribute(object, NULL, "mode"), "host-certificates") != 0) { g_object_unref(G_OBJECT(object)); return NULL; } return GVIR_CONFIG_DOMAIN_SMARTCARD_HOST_CERTIFICATES(object); } /** * gvir_config_domain_smartcard_host_certificates_set_database: * @path: (allow-none): */ void gvir_config_domain_smartcard_host_certificates_set_database (GVirConfigDomainSmartcardHostCertificates *smartcard, const char *path) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_SMARTCARD_HOST_CERTIFICATES(smartcard)); gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(smartcard), "database", path); } /** * gvir_config_domain_smartcard_host_certificates_set_certificates: * @cert1: (allow-none): * @cert2: (allow-none): * @cert3: (allow-none): */ void gvir_config_domain_smartcard_host_certificates_set_certificates (GVirConfigDomainSmartcardHostCertificates *smartcard, const char *cert1, const char *cert2, const char *cert3) { GVirConfigObject *child; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_SMARTCARD_HOST_CERTIFICATES(smartcard)); gvir_config_object_delete_children(GVIR_CONFIG_OBJECT(smartcard), "certificate", NULL); if (cert1 == NULL) return; child = gvir_config_object_add_child(GVIR_CONFIG_OBJECT(smartcard), "certificate"); gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(smartcard), NULL, cert1); g_object_unref(G_OBJECT(child)); child = gvir_config_object_add_child(GVIR_CONFIG_OBJECT(smartcard), "certificate"); gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(smartcard), NULL, cert2); g_object_unref(G_OBJECT(child)); child = gvir_config_object_add_child(GVIR_CONFIG_OBJECT(smartcard), "certificate"); gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(smartcard), NULL, cert3); g_object_unref(G_OBJECT(child)); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-guest-feature.h0000664000000000000000000000564513004340477024533 00000000000000/* * libvirt-gconfig-capabilities-guest-feature.h: libvirt guest feature capabilities * * Copyright (C) 2010-2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Zeeshan Ali * Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_CAPABILITIES_GUEST_FEATURE_H__ #define __LIBVIRT_GCONFIG_CAPABILITIES_GUEST_FEATURE_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_FEATURE (gvir_config_capabilities_guest_feature_get_type ()) #define GVIR_CONFIG_CAPABILITIES_GUEST_FEATURE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_FEATURE, GVirConfigCapabilitiesGuestFeature)) #define GVIR_CONFIG_CAPABILITIES_GUEST_FEATURE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_FEATURE, GVirConfigCapabilitiesGuestFeatureClass)) #define GVIR_CONFIG_IS_CAPABILITIES_GUEST_FEATURE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_FEATURE)) #define GVIR_CONFIG_IS_CAPABILITIES_GUEST_FEATURE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_FEATURE)) #define GVIR_CONFIG_CAPABILITIES_GUEST_FEATURE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_FEATURE, GVirConfigCapabilitiesGuestFeatureClass)) typedef struct _GVirConfigCapabilitiesGuestFeature GVirConfigCapabilitiesGuestFeature; typedef struct _GVirConfigCapabilitiesGuestFeaturePrivate GVirConfigCapabilitiesGuestFeaturePrivate; typedef struct _GVirConfigCapabilitiesGuestFeatureClass GVirConfigCapabilitiesGuestFeatureClass; struct _GVirConfigCapabilitiesGuestFeature { GVirConfigObject parent; GVirConfigCapabilitiesGuestFeaturePrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigCapabilitiesGuestFeatureClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; GType gvir_config_capabilities_guest_feature_get_type(void); const gchar * gvir_config_capabilities_guest_feature_get_name(GVirConfigCapabilitiesGuestFeature *feature); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_CAPABILITIES_GUEST_FEATURE_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-timer.c0000664000000000000000000000720613004340477021677 00000000000000/* * libvirt-gconfig-domain-timer.c: libvirt domain timer configuration * * Copyright (C) 2011, 2014 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_TIMER_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_TIMER, GVirConfigDomainTimerPrivate)) struct _GVirConfigDomainTimerPrivate { gboolean unused; }; G_DEFINE_ABSTRACT_TYPE(GVirConfigDomainTimer, gvir_config_domain_timer, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_domain_timer_class_init(GVirConfigDomainTimerClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainTimerPrivate)); } static void gvir_config_domain_timer_init(GVirConfigDomainTimer *timer) { timer->priv = GVIR_CONFIG_DOMAIN_TIMER_GET_PRIVATE(timer); } void gvir_config_domain_timer_set_tick_policy(GVirConfigDomainTimer *timer, GVirConfigDomainTimerTickPolicy policy) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_TIMER(timer)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(timer), "tickpolicy", GVIR_CONFIG_TYPE_DOMAIN_TIMER_TICK_POLICY, policy, NULL); } GVirConfigDomainTimerTickPolicy gvir_config_domain_timer_get_tick_policy(GVirConfigDomainTimer *timer) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_TIMER(timer), GVIR_CONFIG_DOMAIN_TIMER_TICK_POLICY_DELAY); return gvir_config_object_get_attribute_genum(GVIR_CONFIG_OBJECT(timer), NULL, "tickpolicy", GVIR_CONFIG_TYPE_DOMAIN_TIMER_TICK_POLICY, GVIR_CONFIG_DOMAIN_TIMER_TICK_POLICY_DELAY); } void gvir_config_domain_timer_set_present(GVirConfigDomainTimer *timer, gboolean present) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_TIMER(timer)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(timer), "present", G_TYPE_BOOLEAN, present, NULL); } gboolean gvir_config_domain_timer_get_present(GVirConfigDomainTimer *timer) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_TIMER(timer), TRUE); return gvir_config_object_get_attribute_boolean(GVIR_CONFIG_OBJECT(timer), NULL, "present", TRUE); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-chardev-source-spiceport.c0000664000000000000000000001002513004340477025470 00000000000000/* * libvirt-gconfig-domain-chardev-source-spiceport.c: libvirt domain chardev spiceport configuration * * Copyright (C) 2014 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_SPICE_PORT_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_SPICE_PORT, GVirConfigDomainChardevSourceSpicePortPrivate)) struct _GVirConfigDomainChardevSourceSpicePortPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainChardevSourceSpicePort, gvir_config_domain_chardev_source_spiceport, GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE); static void gvir_config_domain_chardev_source_spiceport_class_init(GVirConfigDomainChardevSourceSpicePortClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainChardevSourceSpicePortPrivate)); } static void gvir_config_domain_chardev_source_spiceport_init(GVirConfigDomainChardevSourceSpicePort *source) { source->priv = GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_SPICE_PORT_GET_PRIVATE(source); } GVirConfigDomainChardevSourceSpicePort *gvir_config_domain_chardev_source_spiceport_new(void) { GVirConfigObject *object; /* the name of the root node is just a placeholder, it will be * overwritten when the GVirConfigDomainChardevSourceSpicePort is attached to a * GVirConfigDomainChardev */ object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_SPICE_PORT, "dummy", NULL); gvir_config_object_set_attribute(object, "type", "spiceport", NULL); return GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_SPICE_PORT(object); } GVirConfigDomainChardevSourceSpicePort *gvir_config_domain_chardev_source_spiceport_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; /* the name of the root node is just a placeholder, it will be * overwritten when the GVirConfigDomainChardevSourceSpicePort is attached to a * GVirConfigDomainChardev */ object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_SPICE_PORT, "dummy", NULL, xml, error); if (g_strcmp0(gvir_config_object_get_attribute(object, NULL, "type"), "spiceport") != 0) { g_object_unref(G_OBJECT(object)); g_return_val_if_reached(NULL); } return GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_SPICE_PORT(object); } void gvir_config_domain_chardev_source_spiceport_set_channel(GVirConfigDomainChardevSourceSpicePort *port, const char *channel) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_CHARDEV_SOURCE_SPICE_PORT(port)); gvir_config_object_replace_child_with_attribute(GVIR_CONFIG_OBJECT(port), "source", "channel", channel); } const gchar * gvir_config_domain_chardev_source_spiceport_get_channel(GVirConfigDomainChardevSourceSpicePort *port) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_CHARDEV_SOURCE_SPICE_PORT(port), NULL); return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(port), "source", "channel"); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-video.c0000664000000000000000000001452113004340477021663 00000000000000/* * libvirt-gconfig-domain-video.c: libvirt domain video configuration * * Copyright (C) 2011 Red Hat, Inc. * Copyright (C) 2015 T A Mahadevan * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_VIDEO_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_VIDEO, GVirConfigDomainVideoPrivate)) struct _GVirConfigDomainVideoPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainVideo, gvir_config_domain_video, GVIR_CONFIG_TYPE_DOMAIN_DEVICE); static void gvir_config_domain_video_class_init(GVirConfigDomainVideoClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainVideoPrivate)); } static void gvir_config_domain_video_init(GVirConfigDomainVideo *video) { video->priv = GVIR_CONFIG_DOMAIN_VIDEO_GET_PRIVATE(video); } GVirConfigDomainVideo *gvir_config_domain_video_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_VIDEO, "video", NULL); return GVIR_CONFIG_DOMAIN_VIDEO(object); } GVirConfigDomainVideo *gvir_config_domain_video_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_VIDEO, "video", NULL, xml, error); return GVIR_CONFIG_DOMAIN_VIDEO(object); } GVirConfigDomainVideoModel gvir_config_domain_video_get_model(GVirConfigDomainVideo *video) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_VIDEO(video), GVIR_CONFIG_DOMAIN_VIDEO_MODEL_VGA); return gvir_config_object_get_attribute_genum(GVIR_CONFIG_OBJECT(video), "model", "type", GVIR_CONFIG_TYPE_DOMAIN_VIDEO_MODEL, GVIR_CONFIG_DOMAIN_VIDEO_MODEL_VGA); } void gvir_config_domain_video_set_model(GVirConfigDomainVideo *video, GVirConfigDomainVideoModel model) { GVirConfigObject *node; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_VIDEO(video)); node = gvir_config_object_replace_child(GVIR_CONFIG_OBJECT(video), "model"); g_return_if_fail(GVIR_CONFIG_IS_OBJECT(node)); gvir_config_object_set_attribute_with_type(node, "type", GVIR_CONFIG_TYPE_DOMAIN_VIDEO_MODEL, model, NULL); g_object_unref(G_OBJECT(node)); } void gvir_config_domain_video_set_vram(GVirConfigDomainVideo *video, guint kbytes) { GVirConfigObject *node; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_VIDEO(video)); node = gvir_config_object_add_child(GVIR_CONFIG_OBJECT(video), "model"); g_return_if_fail(GVIR_CONFIG_IS_OBJECT(node)); gvir_config_object_set_attribute_with_type(node, "vram", G_TYPE_UINT, kbytes, NULL); g_object_unref(G_OBJECT(node)); } void gvir_config_domain_video_set_ram(GVirConfigDomainVideo *video, guint kbytes) { GVirConfigObject *node; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_VIDEO(video)); node = gvir_config_object_add_child(GVIR_CONFIG_OBJECT(video), "model"); g_return_if_fail(GVIR_CONFIG_OBJECT(node)); gvir_config_object_set_attribute_with_type(node, "ram", G_TYPE_UINT, kbytes, NULL); g_object_unref(G_OBJECT(node)); } void gvir_config_domain_video_set_vgamem(GVirConfigDomainVideo *video, guint kbytes) { GVirConfigObject *node; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_VIDEO(video)); node = gvir_config_object_add_child(GVIR_CONFIG_OBJECT(video), "model"); g_return_if_fail(GVIR_CONFIG_OBJECT(node)); gvir_config_object_set_attribute_with_type(node, "vgamem", G_TYPE_UINT, kbytes, NULL); g_object_unref(G_OBJECT(node)); } void gvir_config_domain_video_set_heads(GVirConfigDomainVideo *video, guint head_count) { GVirConfigObject *node; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_VIDEO(video)); node = gvir_config_object_add_child(GVIR_CONFIG_OBJECT(video), "model"); g_return_if_fail(GVIR_CONFIG_IS_OBJECT(node)); gvir_config_object_set_attribute_with_type(node, "heads", G_TYPE_UINT, head_count, NULL); g_object_unref(G_OBJECT(node)); } void gvir_config_domain_video_set_accel3d(GVirConfigDomainVideo *video, gboolean accel3d) { GVirConfigObject *model, *accel; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_VIDEO(video)); model = gvir_config_object_add_child(GVIR_CONFIG_OBJECT(video), "model"); g_return_if_fail(GVIR_CONFIG_IS_OBJECT(model)); accel = gvir_config_object_add_child(GVIR_CONFIG_OBJECT(model), "acceleration"); g_return_if_fail(GVIR_CONFIG_IS_OBJECT(accel)); gvir_config_object_set_attribute_with_type(accel, "accel3d", G_TYPE_BOOLEAN, accel3d, NULL); g_object_unref(G_OBJECT(model)); g_object_unref(G_OBJECT(accel)); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-cpu-model.c0000664000000000000000000000622313004340477023624 00000000000000/* * libvirt-gconfig-capabilities-cpu-model.c: libvirt CPU model capabilities * * Copyright (C) 2014 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Zeeshan Ali */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_CAPABILITIES_CPU_MODEL_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_CAPABILITIES_CPU_MODEL, GVirConfigCapabilitiesCpuModelPrivate)) struct _GVirConfigCapabilitiesCpuModelPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigCapabilitiesCpuModel, gvir_config_capabilities_cpu_model, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_capabilities_cpu_model_class_init(GVirConfigCapabilitiesCpuModelClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigCapabilitiesCpuModelPrivate)); } static void gvir_config_capabilities_cpu_model_init(GVirConfigCapabilitiesCpuModel *model) { model->priv = GVIR_CONFIG_CAPABILITIES_CPU_MODEL_GET_PRIVATE(model); } GVirConfigCapabilitiesCpuModel *gvir_config_capabilities_cpu_model_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_CAPABILITIES_CPU_MODEL, "model", NULL); return GVIR_CONFIG_CAPABILITIES_CPU_MODEL(object); } GVirConfigCapabilitiesCpuModel * gvir_config_capabilities_cpu_model_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_CAPABILITIES_CPU_MODEL, "model", NULL, xml, error); return GVIR_CONFIG_CAPABILITIES_CPU_MODEL(object); } void gvir_config_capabilities_cpu_model_set_name(GVirConfigCapabilitiesCpuModel *model, const gchar *name) { g_return_if_fail(GVIR_CONFIG_IS_CAPABILITIES_CPU_MODEL(model)); gvir_config_object_set_node_content (GVIR_CONFIG_OBJECT(model), NULL, name); } const gchar * gvir_config_capabilities_cpu_model_get_name(GVirConfigCapabilitiesCpuModel *model) { g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES_CPU_MODEL(model), NULL); return gvir_config_object_get_node_content (GVIR_CONFIG_OBJECT(model), NULL); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-interface.c0000664000000000000000000001754313004340477022524 00000000000000/* * libvirt-gconfig-domain-interface.c: libvirt domain interface configuration * * Copyright (C) 2008 Daniel P. Berrange * Copyright (C) 2010-2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange * Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_INTERFACE_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE, GVirConfigDomainInterfacePrivate)) struct _GVirConfigDomainInterfacePrivate { gboolean unused; }; G_DEFINE_ABSTRACT_TYPE(GVirConfigDomainInterface, gvir_config_domain_interface, GVIR_CONFIG_TYPE_DOMAIN_DEVICE); static void gvir_config_domain_interface_class_init(GVirConfigDomainInterfaceClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainInterfacePrivate)); } static void gvir_config_domain_interface_init(GVirConfigDomainInterface *interface) { interface->priv = GVIR_CONFIG_DOMAIN_INTERFACE_GET_PRIVATE(interface); } void gvir_config_domain_interface_set_ifname(GVirConfigDomainInterface *interface, const char *ifname) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_INTERFACE(interface)); gvir_config_object_replace_child_with_attribute(GVIR_CONFIG_OBJECT(interface), "target", "dev", ifname); } void gvir_config_domain_interface_set_link_state(GVirConfigDomainInterface *interface, GVirConfigDomainInterfaceLinkState state) { GVirConfigObject *node; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_INTERFACE(interface)); node = gvir_config_object_replace_child(GVIR_CONFIG_OBJECT(interface), "link"); g_return_if_fail(GVIR_CONFIG_IS_OBJECT(node)); gvir_config_object_set_attribute_with_type(node, "state", GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_LINK_STATE, state, NULL); g_object_unref(G_OBJECT(node)); } void gvir_config_domain_interface_set_mac(GVirConfigDomainInterface *interface, const char *mac_address) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_INTERFACE(interface)); gvir_config_object_replace_child_with_attribute(GVIR_CONFIG_OBJECT(interface), "mac", "address", mac_address); } void gvir_config_domain_interface_set_model(GVirConfigDomainInterface *interface, const char *model) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_INTERFACE(interface)); gvir_config_object_replace_child_with_attribute(GVIR_CONFIG_OBJECT(interface), "model", "type", model); } const char *gvir_config_domain_interface_get_ifname(GVirConfigDomainInterface *interface) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_INTERFACE(interface), NULL); return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(interface), "target", "dev"); } GVirConfigDomainInterfaceLinkState gvir_config_domain_interface_get_link_state(GVirConfigDomainInterface *interface) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_INTERFACE(interface), GVIR_CONFIG_DOMAIN_INTERFACE_LINK_STATE_DEFAULT); return gvir_config_object_get_attribute_genum(GVIR_CONFIG_OBJECT(interface), "link", "state", GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_LINK_STATE, GVIR_CONFIG_DOMAIN_INTERFACE_LINK_STATE_DEFAULT); } const char *gvir_config_domain_interface_get_mac(GVirConfigDomainInterface *interface) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_INTERFACE(interface), NULL); return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(interface), "mac", "address"); } const char *gvir_config_domain_interface_get_model(GVirConfigDomainInterface *interface) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_INTERFACE(interface), NULL); return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(interface), "model", "type"); } /** * gvir_config_domain_interface_set_filterref: * @interface: a #GVirConfigDomainInterface * @filterref: (allow-none): the filterref to set */ void gvir_config_domain_interface_set_filterref(GVirConfigDomainInterface *interface, GVirConfigDomainInterfaceFilterref *filterref) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_INTERFACE(interface)); g_return_if_fail(filterref == NULL || GVIR_CONFIG_IS_DOMAIN_INTERFACE_FILTERREF(filterref)); gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(interface), "filterref", GVIR_CONFIG_OBJECT(filterref)); } /** * gvir_config_domain_interface_get_filterref: * @interface: a #GVirConfigDomainInterface * * Gets the filterref associated with the @interface * * Returns: (transfer full): A #GVirConfigDomainInterfaceFilterref. The returned * object should be unreffed with g_object_unref() when no longer needed. */ GVirConfigDomainInterfaceFilterref *gvir_config_domain_interface_get_filterref(GVirConfigDomainInterface *interface) { GVirConfigObject *object; g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_INTERFACE(interface), NULL); object = gvir_config_object_get_child_with_type (GVIR_CONFIG_OBJECT(interface), "filterref", GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_FILTERREF); return GVIR_CONFIG_DOMAIN_INTERFACE_FILTERREF(object); } G_GNUC_INTERNAL GVirConfigDomainDevice * gvir_config_domain_interface_new_from_tree(GVirConfigXmlDoc *doc, xmlNodePtr tree) { const char *type; GType gtype; type = gvir_config_xml_get_attribute_content(tree, "type"); if (type == NULL) return NULL; if (g_str_equal(type, "network")) { gtype = GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_NETWORK; } else if (g_str_equal(type, "user")) { gtype = GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_USER; } else if (g_str_equal(type, "bridge")) { gtype = GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_BRIDGE; } else if (g_str_equal(type, "direct")) { goto unimplemented; } else if (g_str_equal(type, "server")) { goto unimplemented; } else if (g_str_equal(type, "mcast")) { goto unimplemented; } else if (g_str_equal(type, "ethernet")) { goto unimplemented; } else { g_debug("Unknown domain interface node: %s", type); return NULL; } return GVIR_CONFIG_DOMAIN_DEVICE(gvir_config_object_new_from_tree(gtype, doc, NULL, tree)); unimplemented: g_debug("Parsing of '%s' domain interface nodes is unimplemented", type); return NULL; } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-guest.c0000664000000000000000000001103413004340477023062 00000000000000/* * libvirt-gconfig-capabilities-guest.c: libvirt guest capabilities * * Copyright (C) 2008 Daniel P. Berrange * Copyright (C) 2010-2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Zeeshan Ali * Daniel P. Berrange */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_CAPABILITIES_GUEST_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST, GVirConfigCapabilitiesGuestPrivate)) struct _GVirConfigCapabilitiesGuestPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigCapabilitiesGuest, gvir_config_capabilities_guest, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_capabilities_guest_class_init(GVirConfigCapabilitiesGuestClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigCapabilitiesGuestPrivate)); } static void gvir_config_capabilities_guest_init(GVirConfigCapabilitiesGuest *guest) { guest->priv = GVIR_CONFIG_CAPABILITIES_GUEST_GET_PRIVATE(guest); } GVirConfigDomainOsType gvir_config_capabilities_guest_get_os_type(GVirConfigCapabilitiesGuest *guest) { g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES_GUEST(guest), GVIR_CONFIG_DOMAIN_OS_TYPE_LINUX); return gvir_config_object_get_node_content_genum(GVIR_CONFIG_OBJECT(guest), "os_type", GVIR_CONFIG_TYPE_DOMAIN_OS_TYPE, GVIR_CONFIG_DOMAIN_OS_TYPE_LINUX); } /** * gvir_config_capabilities_guest_get_arch: * * Gets the CPU architecture capabilities of the guest. * * Returns: (transfer full): a new #GVirConfigCapabilitiesGuestArch. */ GVirConfigCapabilitiesGuestArch * gvir_config_capabilities_guest_get_arch(GVirConfigCapabilitiesGuest *guest) { GVirConfigObject *object; g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES_GUEST(guest), NULL); object = gvir_config_object_get_child_with_type (GVIR_CONFIG_OBJECT(guest), "arch", GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_ARCH); return GVIR_CONFIG_CAPABILITIES_GUEST_ARCH(object); } struct GetFeatureData { GVirConfigXmlDoc *doc; const gchar *schema; GList *features; }; static gboolean add_feature(xmlNodePtr node, gpointer opaque) { struct GetFeatureData* data = (struct GetFeatureData*)opaque; GVirConfigObject *object; object = gvir_config_object_new_from_tree (GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_FEATURE, data->doc, data->schema, node); if (object != NULL) data->features = g_list_append(data->features, object); else g_debug("Failed to parse %s node", node->name); return TRUE; } /** * gvir_config_capabilities_guest_get_features: * * Gets the CPU features for this guest. * * Returns: (element-type LibvirtGConfig.CapabilitiesGuestFeature) (transfer full): * a newly allocated #GList of #GVirConfigCapabilitiesGuestFeature. */ GList * gvir_config_capabilities_guest_get_features(GVirConfigCapabilitiesGuest *guest) { struct GetFeatureData data; g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES_GUEST(guest), NULL); g_object_get(G_OBJECT(guest), "doc", &data.doc, NULL); g_return_val_if_fail(data.doc != NULL, NULL); data.schema = gvir_config_object_get_schema(GVIR_CONFIG_OBJECT(guest)); data.features = NULL; gvir_config_object_foreach_child(GVIR_CONFIG_OBJECT(guest), "features", add_feature, &data); g_clear_object(&data.doc); return data.features; } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-graphics-vnc.c0000664000000000000000000001150113004340477023134 00000000000000/* * libvirt-gconfig-domain-graphics-vnc.c: libvirt domain VNC configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_GRAPHICS_VNC_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_VNC, GVirConfigDomainGraphicsVncPrivate)) struct _GVirConfigDomainGraphicsVncPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainGraphicsVnc, gvir_config_domain_graphics_vnc, GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS); static void gvir_config_domain_graphics_vnc_class_init(GVirConfigDomainGraphicsVncClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainGraphicsVncPrivate)); } static void gvir_config_domain_graphics_vnc_init(GVirConfigDomainGraphicsVnc *graphics_vnc) { graphics_vnc->priv = GVIR_CONFIG_DOMAIN_GRAPHICS_VNC_GET_PRIVATE(graphics_vnc); } GVirConfigDomainGraphicsVnc *gvir_config_domain_graphics_vnc_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_VNC, "graphics", NULL); gvir_config_object_set_attribute(object, "type", "vnc", NULL); return GVIR_CONFIG_DOMAIN_GRAPHICS_VNC(object); } GVirConfigDomainGraphicsVnc * gvir_config_domain_graphics_vnc_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_VNC, "graphics", NULL, xml, error); if (g_strcmp0(gvir_config_object_get_attribute(object, NULL, "type"), "vnc") != 0) { g_object_unref(G_OBJECT(object)); return NULL; } return GVIR_CONFIG_DOMAIN_GRAPHICS_VNC(object); } const char *gvir_config_domain_graphics_vnc_get_socket(GVirConfigDomainGraphicsVnc *graphics) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_GRAPHICS_VNC(graphics), NULL); return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(graphics), NULL, "socket"); } void gvir_config_domain_graphics_vnc_set_socket(GVirConfigDomainGraphicsVnc *graphics, const char *socket) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_GRAPHICS_VNC(graphics)); gvir_config_object_set_attribute(GVIR_CONFIG_OBJECT(graphics), "socket", socket, NULL); } void gvir_config_domain_graphics_vnc_set_autoport(GVirConfigDomainGraphicsVnc *graphics, gboolean autoport) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_GRAPHICS_VNC(graphics)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(graphics), "autoport", G_TYPE_BOOLEAN, autoport, NULL); } int gvir_config_domain_graphics_vnc_get_port(GVirConfigDomainGraphicsVnc *graphics) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_GRAPHICS_VNC(graphics), 0); return gvir_config_object_get_attribute_uint64(GVIR_CONFIG_OBJECT(graphics), NULL, "port", 0); } void gvir_config_domain_graphics_vnc_set_port(GVirConfigDomainGraphicsVnc *graphics, int port) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_GRAPHICS_VNC(graphics)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(graphics), "port", G_TYPE_INT, port, NULL); } void gvir_config_domain_graphics_vnc_set_password(GVirConfigDomainGraphicsVnc *graphics, const char *password) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_GRAPHICS_VNC(graphics)); gvir_config_object_set_attribute(GVIR_CONFIG_OBJECT(graphics), "passwd", password, NULL); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-interface-user.h0000664000000000000000000000566213004340477023504 00000000000000/* * libvirt-gconfig-domain-interface-user.c: libvirt domain interface configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange * Author: Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_INTERFACE_USER_H__ #define __LIBVIRT_GCONFIG_DOMAIN_INTERFACE_USER_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_USER (gvir_config_domain_interface_user_get_type ()) #define GVIR_CONFIG_DOMAIN_INTERFACE_USER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE, GVirConfigDomainInterfaceUser)) #define GVIR_CONFIG_DOMAIN_INTERFACE_USER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE, GVirConfigDomainInterfaceUserClass)) #define GVIR_CONFIG_IS_DOMAIN_INTERFACE_USER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE)) #define GVIR_CONFIG_IS_DOMAIN_INTERFACE_USER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE)) #define GVIR_CONFIG_DOMAIN_INTERFACE_USER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE, GVirConfigDomainInterfaceUserClass)) typedef struct _GVirConfigDomainInterfaceUser GVirConfigDomainInterfaceUser; typedef struct _GVirConfigDomainInterfaceUserPrivate GVirConfigDomainInterfaceUserPrivate; typedef struct _GVirConfigDomainInterfaceUserClass GVirConfigDomainInterfaceUserClass; struct _GVirConfigDomainInterfaceUser { GVirConfigDomainInterface parent; GVirConfigDomainInterfaceUserPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainInterfaceUserClass { GVirConfigDomainInterfaceClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_interface_user_get_type(void); GVirConfigDomainInterfaceUser *gvir_config_domain_interface_user_new(void); GVirConfigDomainInterfaceUser *gvir_config_domain_interface_user_new_from_xml(const gchar *xml, GError **error); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_INTERFACE_USER_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-snapshot-private.h0000664000000000000000000000277313004340477024077 00000000000000/* * libvirt-gconfig-domain-snapshot-private.h: libvirt domain snapshot private methods * * Copyright (C) 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_SNAPSHOT_PRIVATE_H__ #define __LIBVIRT_GCONFIG_DOMAIN_SNAPSHOT_PRIVATE_H__ #include #include G_BEGIN_DECLS GVirConfigDomainSnapshotDisk *gvir_config_domain_snapshot_disk_new_from_tree(GVirConfigXmlDoc *doc, xmlNodePtr tree); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_SNAPSHOT_PRIVATE_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-memballoon.h0000664000000000000000000000612113004340477022704 00000000000000/* * libvirt-gconfig-domain-memballoon.h: libvirt domain memballoon configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_MEMBALLOON_H__ #define __LIBVIRT_GCONFIG_DOMAIN_MEMBALLOON_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_MEMBALLOON (gvir_config_domain_memballoon_get_type ()) #define GVIR_CONFIG_DOMAIN_MEMBALLOON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_MEMBALLOON, GVirConfigDomainMemballoon)) #define GVIR_CONFIG_DOMAIN_MEMBALLOON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_MEMBALLOON, GVirConfigDomainMemballoonClass)) #define GVIR_CONFIG_IS_DOMAIN_MEMBALLOON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_MEMBALLOON)) #define GVIR_CONFIG_IS_DOMAIN_MEMBALLOON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_MEMBALLOON)) #define GVIR_CONFIG_DOMAIN_MEMBALLOON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_MEMBALLOON, GVirConfigDomainMemballoonClass)) typedef struct _GVirConfigDomainMemballoon GVirConfigDomainMemballoon; typedef struct _GVirConfigDomainMemballoonPrivate GVirConfigDomainMemballoonPrivate; typedef struct _GVirConfigDomainMemballoonClass GVirConfigDomainMemballoonClass; struct _GVirConfigDomainMemballoon { GVirConfigDomainDevice parent; GVirConfigDomainMemballoonPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainMemballoonClass { GVirConfigDomainDeviceClass parent_class; gpointer padding[20]; }; typedef enum { GVIR_CONFIG_DOMAIN_MEMBALLOON_MODEL_NONE, GVIR_CONFIG_DOMAIN_MEMBALLOON_MODEL_VIRTIO, } GVirConfigDomainMemballoonModel; GType gvir_config_domain_memballoon_get_type(void); GVirConfigDomainMemballoon *gvir_config_domain_memballoon_new(void); GVirConfigDomainMemballoon *gvir_config_domain_memballoon_new_from_xml(const gchar *xml, GError **error); void gvir_config_domain_memballoon_set_model(GVirConfigDomainMemballoon *memballoon, GVirConfigDomainMemballoonModel model); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_MEMBALLOON_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-helpers.c0000664000000000000000000001677513004340477020767 00000000000000/* * libvirt-gconfig-helpers.c: libvirt configuration helpers * * Copyright (C) 2010, 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Daniel P. Berrange * Christophe Fergeau */ #include #include #include #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-helpers-private.h" GQuark gvir_config_object_error_quark(void) { return g_quark_from_static_string("gvir-config-object"); } static GError *gvir_config_error_new_literal(GQuark domain, gint code, const gchar *message) { xmlErrorPtr xerr = xmlGetLastError(); if (!xerr) return NULL; if (message) return g_error_new(domain, code, "%s: %s", message, xerr->message); else return g_error_new(domain, code, "%s", xerr->message); } GError *gvir_config_error_new(GQuark domain, gint code, const gchar *format, ...) { GError *err; va_list args; gchar *message; va_start(args, format); message = g_strdup_vprintf(format, args); va_end(args); err = gvir_config_error_new_literal(domain, code, message); g_free(message); return err; } void gvir_config_set_error(GError **err, GQuark domain, gint code, const gchar *format, ...) { va_list args; gchar *message; if (!err) return; va_start(args, format); message = g_strdup_vprintf(format, args); va_end(args); *err = gvir_config_error_new_literal(domain, code, message); g_free(message); } void gvir_config_set_error_literal(GError **err, GQuark domain, gint code, const gchar *message) { if (!err) return; *err = gvir_config_error_new_literal(domain, code, message); } void gvir_config_set_error_valist(GError **err, GQuark domain, gint code, const gchar *format, va_list args) { gchar *message; if (!err) return; message = g_strdup_vprintf(format, args); *err = gvir_config_error_new_literal(domain, code, message); g_free(message); } xmlNodePtr gvir_config_xml_parse(const char *xml, const char *root_node, GError **err) { xmlDocPtr doc; if (!xml) { *err = g_error_new(GVIR_CONFIG_OBJECT_ERROR, 0, "%s", _("No XML document to parse")); return NULL; } doc = xmlParseMemory(xml, strlen(xml)); if (!doc) { gvir_config_set_error_literal(err, GVIR_CONFIG_OBJECT_ERROR, 0, _("Unable to parse configuration")); return NULL; } if ((!doc->children) || ((root_node != NULL) && g_strcmp0((char *)doc->children->name, root_node) != 0)) { g_set_error(err, GVIR_CONFIG_OBJECT_ERROR, 0, _("XML data has no '%s' node"), root_node); xmlFreeDoc(doc); return NULL; } return doc->children; } void gvir_config_xml_foreach_child(xmlNodePtr node, GVirConfigXmlNodeIterator iter_func, gpointer opaque) { xmlNodePtr it; g_return_if_fail(iter_func != NULL); it = node->children; while (it != NULL) { gboolean cont; xmlNodePtr next = it->next; if (!xmlIsBlankNode(it)) { cont = iter_func(it, opaque); if (!cont) break; } it = next; } } /* * gvir_config_xml_get_element is * * Copyright (C) 2006, 2007 OpenedHand Ltd. * * Author: Jorn Baayen */ xmlNode * gvir_config_xml_get_element (xmlNode *node, ...) { va_list var_args; va_start (var_args, node); while (TRUE) { const char *arg; arg = va_arg (var_args, const char *); if (!arg) break; for (node = node->children; node; node = node->next) if (!g_strcmp0 (arg, (char *) node->name)) break; if (!node) break; } va_end (var_args); return node; } G_GNUC_INTERNAL const char * gvir_config_xml_get_child_element_content (xmlNode *node, const char *child_name) { xmlNode *child_node; child_node = gvir_config_xml_get_element(node, child_name, NULL); if (!child_node || !(child_node->children)) return NULL; return (const char *)child_node->children->content; } G_GNUC_INTERNAL const char * gvir_config_xml_get_attribute_content(xmlNodePtr node, const char *attr_name) { xmlAttr *attr; for (attr = node->properties; attr; attr = attr->next) if (g_strcmp0 (attr_name, (char *)attr->name) == 0) return (const char *)attr->children->content; return NULL; } const char *gvir_config_genum_get_nick (GType enum_type, gint value) { GEnumClass *enum_class; GEnumValue *enum_value; g_return_val_if_fail (G_TYPE_IS_ENUM (enum_type), NULL); enum_class = g_type_class_ref(enum_type); enum_value = g_enum_get_value(enum_class, value); g_type_class_unref(enum_class); if (enum_value != NULL) return enum_value->value_nick; g_return_val_if_reached(NULL); } G_GNUC_INTERNAL int gvir_config_genum_get_value (GType enum_type, const char *nick, gint default_value) { GEnumClass *enum_class; GEnumValue *enum_value; g_return_val_if_fail(G_TYPE_IS_ENUM(enum_type), default_value); g_return_val_if_fail(nick != NULL, default_value); enum_class = g_type_class_ref(enum_type); enum_value = g_enum_get_value_by_nick(enum_class, nick); g_type_class_unref(enum_class); if (enum_value != NULL) return enum_value->value; g_return_val_if_reached(default_value); } G_GNUC_INTERNAL char * gvir_config_xml_node_to_string(xmlNodePtr node) { xmlBufferPtr xmlbuf; char *xml; if (node == NULL) return NULL; xmlbuf = xmlBufferCreate(); if (xmlNodeDump(xmlbuf, node->doc, node, 0, 1) < 0) return NULL; else xml = g_strndup((gchar *)xmlBufferContent(xmlbuf), xmlBufferLength(xmlbuf)); xmlBufferFree(xmlbuf); return xml; } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-clock.h0000664000000000000000000000720313004340477021654 00000000000000/* * libvirt-gconfig-domain-clock.h: libvirt domain clock configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_CLOCK_H__ #define __LIBVIRT_GCONFIG_DOMAIN_CLOCK_H__ #include G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_CLOCK (gvir_config_domain_clock_get_type ()) #define GVIR_CONFIG_DOMAIN_CLOCK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_CLOCK, GVirConfigDomainClock)) #define GVIR_CONFIG_DOMAIN_CLOCK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_CLOCK, GVirConfigDomainClockClass)) #define GVIR_CONFIG_IS_DOMAIN_CLOCK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_CLOCK)) #define GVIR_CONFIG_IS_DOMAIN_CLOCK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_CLOCK)) #define GVIR_CONFIG_DOMAIN_CLOCK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_CLOCK, GVirConfigDomainClockClass)) typedef struct _GVirConfigDomainClock GVirConfigDomainClock; typedef struct _GVirConfigDomainClockPrivate GVirConfigDomainClockPrivate; typedef struct _GVirConfigDomainClockClass GVirConfigDomainClockClass; struct _GVirConfigDomainClock { GVirConfigObject parent; GVirConfigDomainClockPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainClockClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; typedef enum { GVIR_CONFIG_DOMAIN_CLOCK_UTC, GVIR_CONFIG_DOMAIN_CLOCK_LOCALTIME, GVIR_CONFIG_DOMAIN_CLOCK_TIMEZONE, GVIR_CONFIG_DOMAIN_CLOCK_VARIABLE } GVirConfigDomainClockOffset; GType gvir_config_domain_clock_get_type(void); GVirConfigDomainClock *gvir_config_domain_clock_new(void); GVirConfigDomainClock *gvir_config_domain_clock_new_from_xml(const gchar *xml, GError **error); GVirConfigDomainClockOffset gvir_config_domain_clock_get_offset(GVirConfigDomainClock *klock); void gvir_config_domain_clock_set_offset(GVirConfigDomainClock *klock, GVirConfigDomainClockOffset offset); const char *gvir_config_domain_clock_get_timezone(GVirConfigDomainClock *klock); void gvir_config_domain_clock_set_timezone(GVirConfigDomainClock *klock, const char *tz); gint gvir_config_domain_clock_get_variable_offset(GVirConfigDomainClock *klock); void gvir_config_domain_clock_set_variable_offset(GVirConfigDomainClock *klock, gint seconds); void gvir_config_domain_clock_add_timer(GVirConfigDomainClock *klock, GVirConfigDomainTimer *timer); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_CLOCK_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-parallel.c0000664000000000000000000000444713004340477022357 00000000000000/* * libvirt-gconfig-domain-parallel.c: libvirt domain parallel configuration * * Copyright (C) 2011-2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #define GVIR_CONFIG_DOMAIN_PARALLEL_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_PARALLEL, GVirConfigDomainParallelPrivate)) struct _GVirConfigDomainParallelPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainParallel, gvir_config_domain_parallel, GVIR_CONFIG_TYPE_DOMAIN_CHARDEV); static void gvir_config_domain_parallel_class_init(GVirConfigDomainParallelClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainParallelPrivate)); } static void gvir_config_domain_parallel_init(GVirConfigDomainParallel *parallel) { parallel->priv = GVIR_CONFIG_DOMAIN_PARALLEL_GET_PRIVATE(parallel); } GVirConfigDomainParallel *gvir_config_domain_parallel_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_PARALLEL, "parallel", NULL); return GVIR_CONFIG_DOMAIN_PARALLEL(object); } GVirConfigDomainParallel *gvir_config_domain_parallel_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_PARALLEL, "parallel", NULL, xml, error); if (object == NULL) return NULL; return GVIR_CONFIG_DOMAIN_PARALLEL(object); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-chardev-source-pty.c0000664000000000000000000001054513004340477024303 00000000000000/* * libvirt-gconfig-domain-chardev-source-pty.c: libvirt domain chardev pty configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #include "libvirt-gconfig/libvirt-gconfig-domain-chardev-source-private.h" #define GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_PTY_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_PTY, GVirConfigDomainChardevSourcePtyPrivate)) struct _GVirConfigDomainChardevSourcePtyPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainChardevSourcePty, gvir_config_domain_chardev_source_pty, GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE); static void gvir_config_domain_chardev_source_pty_class_init(GVirConfigDomainChardevSourcePtyClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainChardevSourcePtyPrivate)); } static void gvir_config_domain_chardev_source_pty_init(GVirConfigDomainChardevSourcePty *source) { source->priv = GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_PTY_GET_PRIVATE(source); } GVirConfigDomainChardevSourcePty *gvir_config_domain_chardev_source_pty_new(void) { GVirConfigObject *object; /* the name of the root node is just a placeholder, it will be * overwritten when the GVirConfigDomainChardevSourcePty is attached to a * GVirConfigDomainChardevSourcePty */ object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_PTY, "dummy", NULL); gvir_config_object_set_attribute(object, "type", "pty", NULL); return GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_PTY(object); } GVirConfigDomainChardevSourcePty *gvir_config_domain_chardev_source_pty_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; /* the name of the root node is just a placeholder, it will be * overwritten when the GVirConfigDomainChardevSourcePty is attached to a * GVirConfigDomainChardevSourcePty */ object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_PTY, "dummy", NULL, xml, error); if (g_strcmp0(gvir_config_object_get_attribute(object, NULL, "type"), "pty") != 0) { g_object_unref(G_OBJECT(object)); g_return_val_if_reached(NULL); } return GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_PTY(object); } GVirConfigDomainChardevSource * gvir_config_domain_chardev_source_pty_new_from_tree(GVirConfigXmlDoc *doc, xmlNodePtr tree) { GVirConfigObject *object; object = gvir_config_object_new_from_tree(GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_PTY, doc, NULL, tree); return GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE(object); } void gvir_config_domain_chardev_source_pty_set_path(GVirConfigDomainChardevSourcePty *pty, const char *path) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_CHARDEV_SOURCE_PTY(pty)); gvir_config_object_replace_child_with_attribute(GVIR_CONFIG_OBJECT(pty), "source", "path", path); } const gchar * gvir_config_domain_chardev_source_pty_get_path(GVirConfigDomainChardevSourcePty *pty) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_CHARDEV_SOURCE_PTY(pty), NULL); return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(pty), "source", "path"); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-cpu-topology.h0000664000000000000000000000742113004340477024406 00000000000000/* * libvirt-gconfig-capabilities-cpu-topology.h: libvirt CPU topology capabilities * * Copyright (C) 2010-2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Zeeshan Ali * Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_CAPABILITIES_CPU_TOPOLOGY_H__ #define __LIBVIRT_GCONFIG_CAPABILITIES_CPU_TOPOLOGY_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_CAPABILITIES_CPU_TOPOLOGY (gvir_config_capabilities_cpu_topology_get_type ()) #define GVIR_CONFIG_CAPABILITIES_CPU_TOPOLOGY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_CPU_TOPOLOGY, GVirConfigCapabilitiesCpuTopology)) #define GVIR_CONFIG_CAPABILITIES_CPU_TOPOLOGY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_CPU_TOPOLOGY, GVirConfigCapabilitiesCpuTopologyClass)) #define GVIR_CONFIG_IS_CAPABILITIES_CPU_TOPOLOGY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_CPU_TOPOLOGY)) #define GVIR_CONFIG_IS_CAPABILITIES_CPU_TOPOLOGY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_CPU_TOPOLOGY)) #define GVIR_CONFIG_CAPABILITIES_CPU_TOPOLOGY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_CPU_TOPOLOGY, GVirConfigCapabilitiesCpuTopologyClass)) typedef struct _GVirConfigCapabilitiesCpuTopology GVirConfigCapabilitiesCpuTopology; typedef struct _GVirConfigCapabilitiesCpuTopologyPrivate GVirConfigCapabilitiesCpuTopologyPrivate; typedef struct _GVirConfigCapabilitiesCpuTopologyClass GVirConfigCapabilitiesCpuTopologyClass; struct _GVirConfigCapabilitiesCpuTopology { GVirConfigObject parent; GVirConfigCapabilitiesCpuTopologyPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigCapabilitiesCpuTopologyClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; GType gvir_config_capabilities_cpu_topology_get_type(void); GVirConfigCapabilitiesCpuTopology *gvir_config_capabilities_cpu_topology_new(void); GVirConfigCapabilitiesCpuTopology * gvir_config_capabilities_cpu_topology_new_from_xml(const gchar *xml, GError **error); guint64 gvir_config_capabilities_cpu_topology_get_sockets(GVirConfigCapabilitiesCpuTopology *topology); void gvir_config_capabilities_cpu_topology_set_sockets(GVirConfigCapabilitiesCpuTopology *topology, guint64 sockets); guint64 gvir_config_capabilities_cpu_topology_get_cores(GVirConfigCapabilitiesCpuTopology *topology); void gvir_config_capabilities_cpu_topology_set_cores(GVirConfigCapabilitiesCpuTopology *topology, guint64 cores); guint64 gvir_config_capabilities_cpu_topology_get_threads(GVirConfigCapabilitiesCpuTopology *topology); void gvir_config_capabilities_cpu_topology_set_threads(GVirConfigCapabilitiesCpuTopology *topology, guint64 threads); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_CAPABILITIES_CPU_TOPOLOGY_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-storage-pool-source.h0000664000000000000000000001143113004340477023223 00000000000000/* * libvirt-gconfig-storage-pool-target.c: libvirt storage pool target configuration * * Copyright (C) 2010-2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_STORAGE_POOL_SOURCE_H__ #define __LIBVIRT_GCONFIG_STORAGE_POOL_SOURCE_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_STORAGE_POOL_SOURCE (gvir_config_storage_pool_source_get_type ()) #define GVIR_CONFIG_STORAGE_POOL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_STORAGE_POOL_SOURCE, GVirConfigStoragePoolSource)) #define GVIR_CONFIG_STORAGE_POOL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_STORAGE_POOL_SOURCE, GVirConfigStoragePoolSourceClass)) #define GVIR_CONFIG_IS_STORAGE_POOL_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_STORAGE_POOL_SOURCE)) #define GVIR_CONFIG_IS_STORAGE_POOL_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_STORAGE_POOL_SOURCE)) #define GVIR_CONFIG_STORAGE_POOL_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_STORAGE_POOL_SOURCE, GVirConfigStoragePoolSourceClass)) typedef struct _GVirConfigStoragePoolSource GVirConfigStoragePoolSource; typedef struct _GVirConfigStoragePoolSourcePrivate GVirConfigStoragePoolSourcePrivate; typedef struct _GVirConfigStoragePoolSourceClass GVirConfigStoragePoolSourceClass; struct _GVirConfigStoragePoolSource { GVirConfigObject parent; GVirConfigStoragePoolSourcePrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigStoragePoolSourceClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; GType gvir_config_storage_pool_source_get_type(void); GVirConfigStoragePoolSource *gvir_config_storage_pool_source_new(void); GVirConfigStoragePoolSource *gvir_config_storage_pool_source_new_from_xml(const gchar *xml, GError **error); const char *gvir_config_storage_pool_source_get_adapter(GVirConfigStoragePoolSource *source); void gvir_config_storage_pool_source_set_adapter(GVirConfigStoragePoolSource *source, const char *adapter); const char *gvir_config_storage_pool_source_get_device_path(GVirConfigStoragePoolSource *source); void gvir_config_storage_pool_source_set_device_path(GVirConfigStoragePoolSource *source, const char *device_path); const char *gvir_config_storage_pool_source_get_directory(GVirConfigStoragePoolSource *source); void gvir_config_storage_pool_source_set_directory(GVirConfigStoragePoolSource *source, const char *directory); const char *gvir_config_storage_pool_source_get_format(GVirConfigStoragePoolSource *source); void gvir_config_storage_pool_source_set_format(GVirConfigStoragePoolSource *source, const char *format); const char *gvir_config_storage_pool_source_get_host(GVirConfigStoragePoolSource *source); void gvir_config_storage_pool_source_set_host(GVirConfigStoragePoolSource *source, const char *host); const char *gvir_config_storage_pool_source_get_name(GVirConfigStoragePoolSource *source); void gvir_config_storage_pool_source_set_name(GVirConfigStoragePoolSource *source, const char *name); const char *gvir_config_storage_pool_source_get_product(GVirConfigStoragePoolSource *source); void gvir_config_storage_pool_source_set_product(GVirConfigStoragePoolSource *source, const char *product); const char *gvir_config_storage_pool_source_get_vendor(GVirConfigStoragePoolSource *source); void gvir_config_storage_pool_source_set_vendor(GVirConfigStoragePoolSource *source, const char *vendor); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_STORAGE_POOL_SOURCE_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-smartcard-passthrough.c0000664000000000000000000001015713004340477025103 00000000000000/* * libvirt-gconfig-domain-smartcard-passthrough.c: libvirt domain smartcard passthrough configuration * * Copyright (C) 2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Alexander Larsson */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_SMARTCARD_PASSTHROUGH_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD_PASSTHROUGH, GVirConfigDomainSmartcardPassthroughPrivate)) struct _GVirConfigDomainSmartcardPassthroughPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainSmartcardPassthrough, gvir_config_domain_smartcard_passthrough, GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD); static void gvir_config_domain_smartcard_passthrough_class_init(GVirConfigDomainSmartcardPassthroughClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainSmartcardPassthroughPrivate)); } static void gvir_config_domain_smartcard_passthrough_init(GVirConfigDomainSmartcardPassthrough *smartcard) { smartcard->priv = GVIR_CONFIG_DOMAIN_SMARTCARD_PASSTHROUGH_GET_PRIVATE(smartcard); } GVirConfigDomainSmartcardPassthrough *gvir_config_domain_smartcard_passthrough_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD_PASSTHROUGH, "smartcard", NULL); gvir_config_object_set_attribute(object, "mode", "passthrough", NULL); return GVIR_CONFIG_DOMAIN_SMARTCARD_PASSTHROUGH(object); } GVirConfigDomainSmartcardPassthrough *gvir_config_domain_smartcard_passthrough_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD_PASSTHROUGH, "smartcard", NULL, xml, error); if (g_strcmp0(gvir_config_object_get_attribute(object, NULL, "mode"), "passthrough") != 0) { g_object_unref(G_OBJECT(object)); return NULL; } return GVIR_CONFIG_DOMAIN_SMARTCARD_PASSTHROUGH(object); } static void prepend_prop(xmlNodePtr node, xmlAttrPtr prop) { if (node->properties == NULL) { node->properties = prop; } else { prop->next = node->properties; node->properties->prev = prop; node->properties = prop; } } void gvir_config_domain_smartcard_passthrough_set_source(GVirConfigDomainSmartcardPassthrough *smartcard, GVirConfigDomainChardevSource *source) { xmlNodePtr smartcard_node; xmlNodePtr source_node; xmlNodePtr child; xmlAttrPtr attr; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_SMARTCARD_PASSTHROUGH(smartcard)); g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_CHARDEV_SOURCE(source)); smartcard_node = gvir_config_object_get_xml_node(GVIR_CONFIG_OBJECT(smartcard)); source_node = gvir_config_object_get_xml_node(GVIR_CONFIG_OBJECT(source)); g_return_if_fail((smartcard_node != NULL) && (source_node != NULL)); for (child = source_node->children; child != NULL; child = child->next) { xmlUnlinkNode(child); xmlAddChild(smartcard_node, child); } for (attr = source_node->properties; attr != NULL; attr = attr->next) { xmlAttrPtr new_attr; new_attr = xmlCopyProp(smartcard_node, attr); prepend_prop(smartcard_node, new_attr); } } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-graphics.h0000664000000000000000000000474213004340477022366 00000000000000/* * libvirt-gconfig-domain-graphics.h: libvirt domain graphics configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_GRAPHICS_H__ #define __LIBVIRT_GCONFIG_DOMAIN_GRAPHICS_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS (gvir_config_domain_graphics_get_type ()) #define GVIR_CONFIG_DOMAIN_GRAPHICS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS, GVirConfigDomainGraphics)) #define GVIR_CONFIG_DOMAIN_GRAPHICS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS, GVirConfigDomainGraphicsClass)) #define GVIR_CONFIG_IS_DOMAIN_GRAPHICS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS)) #define GVIR_CONFIG_IS_DOMAIN_GRAPHICS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS)) #define GVIR_CONFIG_DOMAIN_GRAPHICS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS, GVirConfigDomainGraphicsClass)) typedef struct _GVirConfigDomainGraphics GVirConfigDomainGraphics; typedef struct _GVirConfigDomainGraphicsPrivate GVirConfigDomainGraphicsPrivate; typedef struct _GVirConfigDomainGraphicsClass GVirConfigDomainGraphicsClass; struct _GVirConfigDomainGraphics { GVirConfigDomainDevice parent; GVirConfigDomainGraphicsPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainGraphicsClass { GVirConfigDomainDeviceClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_graphics_get_type(void); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_GRAPHICS_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-address.h0000664000000000000000000000467013004340477022213 00000000000000/* * libvirt-gconfig-domain-address.h: libvirt device address configuration * * Copyright (C) 2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_ADDRESS_H__ #define __LIBVIRT_GCONFIG_DOMAIN_ADDRESS_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_ADDRESS (gvir_config_domain_address_get_type ()) #define GVIR_CONFIG_DOMAIN_ADDRESS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_ADDRESS, GVirConfigDomainAddress)) #define GVIR_CONFIG_DOMAIN_ADDRESS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_ADDRESS, GVirConfigDomainAddressClass)) #define GVIR_CONFIG_IS_DOMAIN_ADDRESS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_ADDRESS)) #define GVIR_CONFIG_IS_DOMAIN_ADDRESS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_ADDRESS)) #define GVIR_CONFIG_DOMAIN_ADDRESS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_ADDRESS, GVirConfigDomainAddressClass)) typedef struct _GVirConfigDomainAddress GVirConfigDomainAddress; typedef struct _GVirConfigDomainAddressPrivate GVirConfigDomainAddressPrivate; typedef struct _GVirConfigDomainAddressClass GVirConfigDomainAddressClass; struct _GVirConfigDomainAddress { GVirConfigObject parent; GVirConfigDomainAddressPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainAddressClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_address_get_type(void); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_ADDRESS_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-interface-bridge.c0000664000000000000000000000637413004340477023756 00000000000000/* * libvirt-gconfig-domain-interface-bridge.c: libvirt domain interface configuration * * Copyright (C) 2008 Daniel P. Berrange * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange * Author: Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-helpers-private.h" #include "libvirt-gconfig/libvirt-gconfig-object-private.h" #define GVIR_CONFIG_DOMAIN_INTERFACE_BRIDGE_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_BRIDGE, GVirConfigDomainInterfaceBridgePrivate)) struct _GVirConfigDomainInterfaceBridgePrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainInterfaceBridge, gvir_config_domain_interface_bridge, GVIR_CONFIG_TYPE_DOMAIN_INTERFACE); static void gvir_config_domain_interface_bridge_class_init(GVirConfigDomainInterfaceBridgeClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainInterfaceBridgePrivate)); } static void gvir_config_domain_interface_bridge_init(GVirConfigDomainInterfaceBridge *bridge) { bridge->priv = GVIR_CONFIG_DOMAIN_INTERFACE_BRIDGE_GET_PRIVATE(bridge); } GVirConfigDomainInterfaceBridge *gvir_config_domain_interface_bridge_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_BRIDGE, "interface", NULL); gvir_config_object_set_attribute(object, "type", "bridge", NULL); return GVIR_CONFIG_DOMAIN_INTERFACE_BRIDGE(object); } GVirConfigDomainInterfaceBridge *gvir_config_domain_interface_bridge_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_BRIDGE, "interface", NULL, xml, error); if (g_strcmp0(gvir_config_object_get_attribute(object, NULL, "type"), "bridge") != 0) { g_object_unref(G_OBJECT(object)); return NULL; } return GVIR_CONFIG_DOMAIN_INTERFACE_BRIDGE(object); } void gvir_config_domain_interface_bridge_set_source(GVirConfigDomainInterfaceBridge *interface, const char *brname) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_INTERFACE_BRIDGE(interface)); gvir_config_object_replace_child_with_attribute(GVIR_CONFIG_OBJECT(interface), "source", "bridge", brname); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-graphics-spice.c0000664000000000000000000001435713004340477023465 00000000000000/* * libvirt-gconfig-domain-graphics-spice.c: libvirt domain SPICE configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Christophe Fergeau * Zeeshan Ali (Khattak) */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_GRAPHICS_SPICE_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_SPICE, GVirConfigDomainGraphicsSpicePrivate)) struct _GVirConfigDomainGraphicsSpicePrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainGraphicsSpice, gvir_config_domain_graphics_spice, GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS); static void gvir_config_domain_graphics_spice_class_init(GVirConfigDomainGraphicsSpiceClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainGraphicsSpicePrivate)); } static void gvir_config_domain_graphics_spice_init(GVirConfigDomainGraphicsSpice *graphics_spice) { graphics_spice->priv = GVIR_CONFIG_DOMAIN_GRAPHICS_SPICE_GET_PRIVATE(graphics_spice); } GVirConfigDomainGraphicsSpice *gvir_config_domain_graphics_spice_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_SPICE, "graphics", NULL); gvir_config_object_set_attribute(object, "type", "spice", NULL); return GVIR_CONFIG_DOMAIN_GRAPHICS_SPICE(object); } GVirConfigDomainGraphicsSpice * gvir_config_domain_graphics_spice_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_SPICE, "graphics", NULL, xml, error); if (g_strcmp0(gvir_config_object_get_attribute(object, NULL, "type"), "spice") != 0) { g_object_unref(G_OBJECT(object)); return NULL; } return GVIR_CONFIG_DOMAIN_GRAPHICS_SPICE(object); } void gvir_config_domain_graphics_spice_set_autoport(GVirConfigDomainGraphicsSpice *graphics, gboolean autoport) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_GRAPHICS_SPICE(graphics)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(graphics), "autoport", G_TYPE_BOOLEAN, autoport, NULL); } void gvir_config_domain_graphics_spice_set_password(GVirConfigDomainGraphicsSpice *graphics, const char *password) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_GRAPHICS_SPICE(graphics)); gvir_config_object_set_attribute(GVIR_CONFIG_OBJECT(graphics), "passwd", password, NULL); } int gvir_config_domain_graphics_spice_get_port(GVirConfigDomainGraphicsSpice *graphics) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_GRAPHICS_SPICE(graphics), 0); return gvir_config_object_get_attribute_uint64(GVIR_CONFIG_OBJECT(graphics), NULL, "port", 0); } void gvir_config_domain_graphics_spice_set_port(GVirConfigDomainGraphicsSpice *graphics, int port) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_GRAPHICS_SPICE(graphics)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(graphics), "port", G_TYPE_INT, port, NULL); } void gvir_config_domain_graphics_spice_set_tls_port(GVirConfigDomainGraphicsSpice *graphics, int port) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_GRAPHICS_SPICE(graphics)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(graphics), "tlsPort", G_TYPE_INT, port, NULL); } /** * gvir_config_domain_graphics_spice_get_image_compression: * @graphics: a #GVirConfigDomainGraphicsSpice * * Returns: (type GVirConfigDomainGraphicsSpiceImageCompression): image * compression configuration of @graphics */ int gvir_config_domain_graphics_spice_get_image_compression(GVirConfigDomainGraphicsSpice *graphics) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_GRAPHICS_SPICE(graphics), GVIR_CONFIG_DOMAIN_GRAPHICS_SPICE_IMAGE_COMPRESSION_OFF); return gvir_config_object_get_attribute_genum (GVIR_CONFIG_OBJECT(graphics), "image", "compression", GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_SPICE_IMAGE_COMPRESSION, GVIR_CONFIG_DOMAIN_GRAPHICS_SPICE_IMAGE_COMPRESSION_GLZ); } void gvir_config_domain_graphics_spice_set_image_compression (GVirConfigDomainGraphicsSpice *graphics, GVirConfigDomainGraphicsSpiceImageCompression compression) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_GRAPHICS_SPICE(graphics)); gvir_config_object_replace_child_with_attribute_enum (GVIR_CONFIG_OBJECT(graphics), "image", "compression", GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_SPICE_IMAGE_COMPRESSION, compression); } void gvir_config_domain_graphics_spice_set_gl(GVirConfigDomainGraphicsSpice *graphics, gboolean gl) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_GRAPHICS_SPICE(graphics)); gvir_config_object_replace_child_with_attribute_enum (GVIR_CONFIG_OBJECT(graphics), "gl", "enable", G_TYPE_BOOLEAN, gl); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-storage-vol.h0000664000000000000000000000660213004340477021560 00000000000000/* * libvirt-gconfig-storage-vol.c: libvirt storage volume configuration * * Copyright (C) 2010-2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_STORAGE_VOL_H__ #define __LIBVIRT_GCONFIG_STORAGE_VOL_H__ #include #include G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_STORAGE_VOL (gvir_config_storage_vol_get_type ()) #define GVIR_CONFIG_STORAGE_VOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_STORAGE_VOL, GVirConfigStorageVol)) #define GVIR_CONFIG_STORAGE_VOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_STORAGE_VOL, GVirConfigStorageVolClass)) #define GVIR_CONFIG_IS_STORAGE_VOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_STORAGE_VOL)) #define GVIR_CONFIG_IS_STORAGE_VOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_STORAGE_VOL)) #define GVIR_CONFIG_STORAGE_VOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_STORAGE_VOL, GVirConfigStorageVolClass)) typedef struct _GVirConfigStorageVol GVirConfigStorageVol; typedef struct _GVirConfigStorageVolPrivate GVirConfigStorageVolPrivate; typedef struct _GVirConfigStorageVolClass GVirConfigStorageVolClass; struct _GVirConfigStorageVol { GVirConfigObject parent; GVirConfigStorageVolPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigStorageVolClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; GType gvir_config_storage_vol_get_type(void); GVirConfigStorageVol *gvir_config_storage_vol_new(void); GVirConfigStorageVol *gvir_config_storage_vol_new_from_xml(const gchar *xml, GError **error); void gvir_config_storage_vol_set_allocation(GVirConfigStorageVol *vol, guint64 allocation); void gvir_config_storage_vol_set_backing_store(GVirConfigStorageVol *vol, GVirConfigStorageVolBackingStore *backing_store); void gvir_config_storage_vol_set_capacity(GVirConfigStorageVol *vol, guint64 capacity); void gvir_config_storage_vol_set_name(GVirConfigStorageVol *vol, const char *name); void gvir_config_storage_vol_set_target(GVirConfigStorageVol *vol, GVirConfigStorageVolTarget *target); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_STORAGE_VOL_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-disk-driver.c0000664000000000000000000002334613004340477023005 00000000000000/* * libvirt-gconfig-domain-disk-driver.c: libvirt domain disk driver configuration * * Copyright (C) 2011, 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_DISK_DRIVER_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_DISK_DRIVER, GVirConfigDomainDiskDriverPrivate)) struct _GVirConfigDomainDiskDriverPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainDiskDriver, gvir_config_domain_disk_driver, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_domain_disk_driver_class_init(GVirConfigDomainDiskDriverClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainDiskDriverPrivate)); } static void gvir_config_domain_disk_driver_init(GVirConfigDomainDiskDriver *driver) { driver->priv = GVIR_CONFIG_DOMAIN_DISK_DRIVER_GET_PRIVATE(driver); } GVirConfigDomainDiskDriver *gvir_config_domain_disk_driver_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_DISK_DRIVER, "driver", NULL); return GVIR_CONFIG_DOMAIN_DISK_DRIVER(object); } GVirConfigDomainDiskDriver *gvir_config_domain_disk_driver_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_DISK_DRIVER, "driver", NULL, xml, error); return GVIR_CONFIG_DOMAIN_DISK_DRIVER(object); } void gvir_config_domain_disk_driver_set_cache(GVirConfigDomainDiskDriver *driver, GVirConfigDomainDiskCacheType cache_type) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK_DRIVER(driver)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(driver), "cache", GVIR_CONFIG_TYPE_DOMAIN_DISK_CACHE_TYPE, cache_type, NULL); } GVirConfigDomainDiskCacheType gvir_config_domain_disk_driver_get_cache(GVirConfigDomainDiskDriver *driver) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK_DRIVER(driver), GVIR_CONFIG_DOMAIN_DISK_CACHE_DEFAULT); return gvir_config_object_get_attribute_genum(GVIR_CONFIG_OBJECT(driver), NULL, "cache", GVIR_CONFIG_TYPE_DOMAIN_DISK_CACHE_TYPE, GVIR_CONFIG_DOMAIN_DISK_CACHE_DEFAULT); } void gvir_config_domain_disk_driver_set_name(GVirConfigDomainDiskDriver *driver, const char *name) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK_DRIVER(driver)); gvir_config_object_set_attribute(GVIR_CONFIG_OBJECT(driver), "name", name, NULL); } const char *gvir_config_domain_disk_driver_get_name(GVirConfigDomainDiskDriver *driver) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK_DRIVER(driver), NULL); return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(driver), NULL, "name"); } void gvir_config_domain_disk_driver_set_error_policy(GVirConfigDomainDiskDriver *driver, GVirConfigDomainDiskDriverErrorPolicy policy) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK_DRIVER(driver)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(driver), "error_policy", GVIR_CONFIG_TYPE_DOMAIN_DISK_DRIVER_ERROR_POLICY, policy, NULL); } GVirConfigDomainDiskDriverErrorPolicy gvir_config_domain_disk_driver_get_error_policy(GVirConfigDomainDiskDriver *driver) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK_DRIVER(driver), GVIR_CONFIG_DOMAIN_DISK_DRIVER_ERROR_POLICY_REPORT); return gvir_config_object_get_attribute_genum(GVIR_CONFIG_OBJECT(driver), NULL, "error_policy", GVIR_CONFIG_TYPE_DOMAIN_DISK_DRIVER_ERROR_POLICY, GVIR_CONFIG_DOMAIN_DISK_DRIVER_ERROR_POLICY_REPORT); } void gvir_config_domain_disk_driver_set_format(GVirConfigDomainDiskDriver *driver, GVirConfigDomainDiskFormat format) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK_DRIVER(driver)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(driver), "type", GVIR_CONFIG_TYPE_DOMAIN_DISK_FORMAT, format, NULL); } GVirConfigDomainDiskFormat gvir_config_domain_disk_driver_get_format(GVirConfigDomainDiskDriver *driver) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK_DRIVER(driver), GVIR_CONFIG_DOMAIN_DISK_FORMAT_RAW); return gvir_config_object_get_attribute_genum(GVIR_CONFIG_OBJECT(driver), NULL, "type", GVIR_CONFIG_TYPE_DOMAIN_DISK_FORMAT, GVIR_CONFIG_DOMAIN_DISK_FORMAT_RAW); } void gvir_config_domain_disk_driver_set_io_policy(GVirConfigDomainDiskDriver *driver, GVirConfigDomainDiskDriverIoPolicy policy) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK_DRIVER(driver)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(driver), "io", GVIR_CONFIG_TYPE_DOMAIN_DISK_DRIVER_IO_POLICY, policy, NULL); } GVirConfigDomainDiskDriverIoPolicy gvir_config_domain_disk_driver_get_io_policy(GVirConfigDomainDiskDriver *driver) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK_DRIVER(driver), GVIR_CONFIG_DOMAIN_DISK_DRIVER_IO_POLICY_THREADS); return gvir_config_object_get_attribute_genum(GVIR_CONFIG_OBJECT(driver), NULL, "io", GVIR_CONFIG_TYPE_DOMAIN_DISK_DRIVER_IO_POLICY, GVIR_CONFIG_DOMAIN_DISK_DRIVER_IO_POLICY_THREADS); } void gvir_config_domain_disk_driver_set_copy_on_read(GVirConfigDomainDiskDriver *driver, gboolean copy_on_read) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK_DRIVER(driver)); /* gvir_config_object_set_attribute_with_type(..., G_TYPE_BOOLEAN, ...) * cannot be used here as it translates into "yes"/"no", but what we * want is "on"/"off" */ gvir_config_object_set_attribute(GVIR_CONFIG_OBJECT(driver), "copy_on_read", copy_on_read?"on":"off", NULL); } gboolean gvir_config_domain_disk_driver_get_copy_on_read(GVirConfigDomainDiskDriver *driver) { const char *copy_on_read; g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK_DRIVER(driver), FALSE); copy_on_read = gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(driver), NULL, "copy_on_read"); return (g_strcmp0(copy_on_read, "on") == 0); } void gvir_config_domain_disk_driver_set_discard(GVirConfigDomainDiskDriver *driver, GVirConfigDomainDiskDriverDiscard discard) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK_DRIVER(driver)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(driver), "discard", GVIR_CONFIG_TYPE_DOMAIN_DISK_DRIVER_DISCARD, discard, NULL); } GVirConfigDomainDiskDriverDiscard gvir_config_domain_disk_driver_get_discard(GVirConfigDomainDiskDriver *driver) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_DISK_DRIVER(driver), GVIR_CONFIG_DOMAIN_DISK_DRIVER_DISCARD_IGNORE); return gvir_config_object_get_attribute_genum(GVIR_CONFIG_OBJECT(driver), NULL, "discard", GVIR_CONFIG_TYPE_DOMAIN_DISK_DRIVER_DISCARD, GVIR_CONFIG_DOMAIN_DISK_DRIVER_DISCARD_IGNORE); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-cpu-model.h0000664000000000000000000000531513004340477022450 00000000000000/* * libvirt-gconfig-domain-cpu-model.h: libvirt domain CPU model * * Copyright (C) 2014 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Zeeshan Ali */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_CPU_MODEL_H__ #define __LIBVIRT_GCONFIG_DOMAIN_CPU_MODEL_H__ #include "libvirt-gconfig-capabilities-cpu-model.h" G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_CPU_MODEL (gvir_config_domain_cpu_model_get_type ()) #define GVIR_CONFIG_DOMAIN_CPU_MODEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_CPU_MODEL, GVirConfigDomainCpuModel)) #define GVIR_CONFIG_DOMAIN_CPU_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_CPU_MODEL, GVirConfigDomainCpuModelClass)) #define GVIR_CONFIG_IS_DOMAIN_CPU_MODEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_CPU_MODEL)) #define GVIR_CONFIG_IS_DOMAIN_CPU_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_CPU_MODEL)) #define GVIR_CONFIG_DOMAIN_CPU_MODEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_CPU_MODEL, GVirConfigDomainCpuModelClass)) typedef struct _GVirConfigDomainCpuModel GVirConfigDomainCpuModel; typedef struct _GVirConfigDomainCpuModelPrivate GVirConfigDomainCpuModelPrivate; typedef struct _GVirConfigDomainCpuModelClass GVirConfigDomainCpuModelClass; struct _GVirConfigDomainCpuModel { GVirConfigCapabilitiesCpuModel parent; GVirConfigDomainCpuModelPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainCpuModelClass { GVirConfigCapabilitiesCpuModelClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_cpu_model_get_type(void); GVirConfigDomainCpuModel *gvir_config_domain_cpu_model_new(void); GVirConfigDomainCpuModel * gvir_config_domain_cpu_model_new_from_xml(const gchar *xml, GError **error); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_CPU_MODEL_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-os.h0000664000000000000000000001050113004340477021175 00000000000000/* * libvirt-gconfig-domain-os.c: libvirt domain OS configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_OS_H__ #define __LIBVIRT_GCONFIG_DOMAIN_OS_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_OS (gvir_config_domain_os_get_type ()) #define GVIR_CONFIG_DOMAIN_OS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_OS, GVirConfigDomainOs)) #define GVIR_CONFIG_DOMAIN_OS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_OS, GVirConfigDomainOsClass)) #define GVIR_CONFIG_IS_DOMAIN_OS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_OS)) #define GVIR_CONFIG_IS_DOMAIN_OS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_OS)) #define GVIR_CONFIG_DOMAIN_OS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_OS, GVirConfigDomainOsClass)) typedef struct _GVirConfigDomainOs GVirConfigDomainOs; typedef struct _GVirConfigDomainOsPrivate GVirConfigDomainOsPrivate; typedef struct _GVirConfigDomainOsClass GVirConfigDomainOsClass; struct _GVirConfigDomainOs { GVirConfigObject parent; GVirConfigDomainOsPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainOsClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; typedef enum { GVIR_CONFIG_DOMAIN_OS_TYPE_HVM, GVIR_CONFIG_DOMAIN_OS_TYPE_LINUX, GVIR_CONFIG_DOMAIN_OS_TYPE_EXE, GVIR_CONFIG_DOMAIN_OS_TYPE_XEN, GVIR_CONFIG_DOMAIN_OS_TYPE_UML } GVirConfigDomainOsType; typedef enum { GVIR_CONFIG_DOMAIN_OS_SMBIOS_MODE_EMULATE, GVIR_CONFIG_DOMAIN_OS_SMBIOS_MODE_HOST, GVIR_CONFIG_DOMAIN_OS_SMBIOS_MODE_SYSINFO } GVirConfigDomainOsSmBiosMode; typedef enum { GVIR_CONFIG_DOMAIN_OS_BOOT_DEVICE_FD, GVIR_CONFIG_DOMAIN_OS_BOOT_DEVICE_HD, GVIR_CONFIG_DOMAIN_OS_BOOT_DEVICE_CDROM, GVIR_CONFIG_DOMAIN_OS_BOOT_DEVICE_NETWORK } GVirConfigDomainOsBootDevice; GType gvir_config_domain_os_get_type(void); GVirConfigDomainOs *gvir_config_domain_os_new(void); GVirConfigDomainOs *gvir_config_domain_os_new_from_xml(const gchar *xml, GError **error); void gvir_config_domain_os_set_os_type(GVirConfigDomainOs *os, GVirConfigDomainOsType type); GVirConfigDomainOsType gvir_config_domain_os_get_os_type(GVirConfigDomainOs *os); const char *gvir_config_domain_os_get_arch(GVirConfigDomainOs *os); void gvir_config_domain_os_set_arch(GVirConfigDomainOs *os, const char *arch); GList *gvir_config_domain_os_get_boot_devices(GVirConfigDomainOs *os); void gvir_config_domain_os_set_boot_devices(GVirConfigDomainOs *os, GList *boot_devices); void gvir_config_domain_os_set_kernel(GVirConfigDomainOs *os, const char *kernel); void gvir_config_domain_os_set_ramdisk(GVirConfigDomainOs *os, const char *ramdisk); void gvir_config_domain_os_set_cmdline(GVirConfigDomainOs *os, const char *cmdline); void gvir_config_domain_os_set_init(GVirConfigDomainOs *os, const char *init); void gvir_config_domain_os_set_loader(GVirConfigDomainOs *os, const char * loader); void gvir_config_domain_os_set_machine(GVirConfigDomainOs *os, const char *machine); void gvir_config_domain_os_set_smbios_mode(GVirConfigDomainOs *os, GVirConfigDomainOsSmBiosMode mode); void gvir_config_domain_os_enable_boot_menu(GVirConfigDomainOs *os, gboolean enable); void gvir_config_domain_os_bios_enable_serial(GVirConfigDomainOs *os, gboolean enable); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_OS_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-timer-rtc.h0000664000000000000000000000531413004340477022470 00000000000000/* * libvirt-gconfig-domain-timer-rtc.h: libvirt domain RTC timer configuration * * Copyright (C) 2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_TIMER_RTC_H__ #define __LIBVIRT_GCONFIG_DOMAIN_TIMER_RTC_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_TIMER_RTC (gvir_config_domain_timer_rtc_get_type ()) #define GVIR_CONFIG_DOMAIN_TIMER_RTC(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_TIMER_RTC, GVirConfigDomainTimerRtc)) #define GVIR_CONFIG_DOMAIN_TIMER_RTC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_TIMER_RTC, GVirConfigDomainTimerRtcClass)) #define GVIR_CONFIG_IS_DOMAIN_TIMER_RTC(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_TIMER_RTC)) #define GVIR_CONFIG_IS_DOMAIN_TIMER_RTC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_TIMER_RTC)) #define GVIR_CONFIG_DOMAIN_TIMER_RTC_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_TIMER_RTC, GVirConfigDomainTimerRtcClass)) typedef struct _GVirConfigDomainTimerRtc GVirConfigDomainTimerRtc; typedef struct _GVirConfigDomainTimerRtcPrivate GVirConfigDomainTimerRtcPrivate; typedef struct _GVirConfigDomainTimerRtcClass GVirConfigDomainTimerRtcClass; struct _GVirConfigDomainTimerRtc { GVirConfigDomainTimer parent; GVirConfigDomainTimerRtcPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainTimerRtcClass { GVirConfigDomainTimerClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_timer_rtc_get_type(void); GVirConfigDomainTimerRtc *gvir_config_domain_timer_rtc_new(void); GVirConfigDomainTimerRtc *gvir_config_domain_timer_rtc_new_from_xml(const gchar *xml, GError **error); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_TIMER_RTC_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-cpu.h0000664000000000000000000000670713004340477022542 00000000000000/* * libvirt-gconfig-capabilities-cpu.h: libvirt CPU capabilities * * Copyright (C) 2010-2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Zeeshan Ali * Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_CAPABILITIES_CPU_H__ #define __LIBVIRT_GCONFIG_CAPABILITIES_CPU_H__ #include "libvirt-gconfig-capabilities-cpu-topology.h" #include "libvirt-gconfig-capabilities-cpu-feature.h" #include "libvirt-gconfig-capabilities-cpu-model.h" G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_CAPABILITIES_CPU (gvir_config_capabilities_cpu_get_type ()) #define GVIR_CONFIG_CAPABILITIES_CPU(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_CPU, GVirConfigCapabilitiesCpu)) #define GVIR_CONFIG_CAPABILITIES_CPU_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_CPU, GVirConfigCapabilitiesCpuClass)) #define GVIR_CONFIG_IS_CAPABILITIES_CPU(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_CPU)) #define GVIR_CONFIG_IS_CAPABILITIES_CPU_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_CPU)) #define GVIR_CONFIG_CAPABILITIES_CPU_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_CPU, GVirConfigCapabilitiesCpuClass)) typedef struct _GVirConfigCapabilitiesCpu GVirConfigCapabilitiesCpu; typedef struct _GVirConfigCapabilitiesCpuPrivate GVirConfigCapabilitiesCpuPrivate; typedef struct _GVirConfigCapabilitiesCpuClass GVirConfigCapabilitiesCpuClass; struct _GVirConfigCapabilitiesCpu { GVirConfigObject parent; GVirConfigCapabilitiesCpuPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigCapabilitiesCpuClass { GVirConfigObjectClass parent_class; GList *(*get_features)(GVirConfigCapabilitiesCpu *cpu); gpointer padding[19]; }; GType gvir_config_capabilities_cpu_get_type(void); const gchar * gvir_config_capabilities_cpu_get_arch(GVirConfigCapabilitiesCpu *cpu); void gvir_config_capabilities_cpu_add_feature(GVirConfigCapabilitiesCpu *cpu, GVirConfigCapabilitiesCpuFeature *feature); GList * gvir_config_capabilities_cpu_get_features(GVirConfigCapabilitiesCpu *cpu); GVirConfigCapabilitiesCpuTopology * gvir_config_capabilities_cpu_get_topology(GVirConfigCapabilitiesCpu *cpu); void gvir_config_capabilities_cpu_set_topology(GVirConfigCapabilitiesCpu *cpu, GVirConfigCapabilitiesCpuTopology *topology); GVirConfigCapabilitiesCpuModel * gvir_config_capabilities_cpu_get_model(GVirConfigCapabilitiesCpu *cpu); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_CAPABILITIES_CPU_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-helpers-private.h0000664000000000000000000000560513004340477022432 00000000000000/* * libvirt-gconfig-helpers-private.h: libvirt configuration helpers * * Copyright (C) 2010, 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Daniel P. Berrange * Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_HELPERS_PRIVATE_H__ #define __LIBVIRT_GCONFIG_HELPERS_PRIVATE_H__ G_BEGIN_DECLS GError *gvir_config_error_new(GQuark domain, gint code, const gchar *format, ...) G_GNUC_PRINTF(3, 4); void gvir_config_set_error(GError **err, GQuark domain, gint code, const gchar *format, ...) G_GNUC_PRINTF(4, 5); void gvir_config_set_error_literal(GError **err, GQuark domain, gint code, const gchar *message); void gvir_config_set_error_valist(GError **err, GQuark domain, gint code, const gchar *format, va_list args) G_GNUC_PRINTF(4, 0); xmlNodePtr gvir_config_xml_parse(const char *xml, const char *root_node, GError **err); typedef gboolean (*GVirConfigXmlNodeIterator)(xmlNodePtr node, gpointer opaque); void gvir_config_xml_foreach_child(xmlNodePtr node, GVirConfigXmlNodeIterator iter_func, gpointer opaque); xmlNode * gvir_config_xml_get_element (xmlNode *node, ...) G_GNUC_NULL_TERMINATED; const char * gvir_config_xml_get_child_element_content (xmlNode *node, const char *child_name); const char *gvir_config_xml_get_attribute_content(xmlNodePtr node, const char *attr_name); char *gvir_config_xml_node_to_string(xmlNodePtr node); const char *gvir_config_genum_get_nick (GType enum_type, gint value); int gvir_config_genum_get_value (GType enum_type, const char *nick, gint default_value); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_HELPERS_PRIVATE_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-storage-permissions.h0000664000000000000000000000734113004340477023334 00000000000000/* * libvirt-gconfig-storage-permissions.h: libvirt storage permissions configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_STORAGE_PERMISSIONS_H__ #define __LIBVIRT_GCONFIG_STORAGE_PERMISSIONS_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_STORAGE_PERMISSIONS (gvir_config_storage_permissions_get_type ()) #define GVIR_CONFIG_STORAGE_PERMISSIONS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_STORAGE_PERMISSIONS, GVirConfigStoragePermissions)) #define GVIR_CONFIG_STORAGE_PERMISSIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_STORAGE_PERMISSIONS, GVirConfigStoragePermissionsClass)) #define GVIR_CONFIG_IS_STORAGE_PERMISSIONS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_STORAGE_PERMISSIONS)) #define GVIR_CONFIG_IS_STORAGE_PERMISSIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_STORAGE_PERMISSIONS)) #define GVIR_CONFIG_STORAGE_PERMISSIONS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_STORAGE_PERMISSIONS, GVirConfigStoragePermissionsClass)) typedef struct _GVirConfigStoragePermissions GVirConfigStoragePermissions; typedef struct _GVirConfigStoragePermissionsPrivate GVirConfigStoragePermissionsPrivate; typedef struct _GVirConfigStoragePermissionsClass GVirConfigStoragePermissionsClass; struct _GVirConfigStoragePermissions { GVirConfigObject parent; GVirConfigStoragePermissionsPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigStoragePermissionsClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; GType gvir_config_storage_permissions_get_type(void); GVirConfigStoragePermissions *gvir_config_storage_permissions_new(void); GVirConfigStoragePermissions *gvir_config_storage_permissions_new_from_xml(const gchar *xml, GError **error); guint gvir_config_storage_permissions_get_group(GVirConfigStoragePermissions *perms); void gvir_config_storage_permissions_set_group(GVirConfigStoragePermissions *perms, guint group); const char *gvir_config_storage_permissions_get_label(GVirConfigStoragePermissions *perms); void gvir_config_storage_permissions_set_label(GVirConfigStoragePermissions *perms, const char *label); guint gvir_config_storage_permissions_get_mode(GVirConfigStoragePermissions *perms); void gvir_config_storage_permissions_set_mode(GVirConfigStoragePermissions *perms, guint mode); guint gvir_config_storage_permissions_get_owner(GVirConfigStoragePermissions *perms); void gvir_config_storage_permissions_set_owner(GVirConfigStoragePermissions *perms, guint owner); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_STORAGE_PERMISSIONS_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-chardev-source.h0000664000000000000000000000517413004340477023500 00000000000000/* * libvirt-gconfig-domain-chardev-source.h: libvirt domain chardev source base class * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_CHARDEV_SOURCE_H__ #define __LIBVIRT_GCONFIG_DOMAIN_CHARDEV_SOURCE_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE (gvir_config_domain_chardev_source_get_type ()) #define GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE, GVirConfigDomainChardevSource)) #define GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE, GVirConfigDomainChardevSourceClass)) #define GVIR_CONFIG_IS_DOMAIN_CHARDEV_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE)) #define GVIR_CONFIG_IS_DOMAIN_CHARDEV_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE)) #define GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE, GVirConfigDomainChardevSourceClass)) typedef struct _GVirConfigDomainChardevSource GVirConfigDomainChardevSource; typedef struct _GVirConfigDomainChardevSourcePrivate GVirConfigDomainChardevSourcePrivate; typedef struct _GVirConfigDomainChardevSourceClass GVirConfigDomainChardevSourceClass; struct _GVirConfigDomainChardevSource { GVirConfigObject parent; GVirConfigDomainChardevSourcePrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainChardevSourceClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_chardev_source_get_type(void); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_CHARDEV_SOURCE_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-seclabel.h0000664000000000000000000000624713004340477022342 00000000000000/* * libvirt-gconfig-domain-seclabel.h: libvirt domain security label configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_SECLABEL_H__ #define __LIBVIRT_GCONFIG_DOMAIN_SECLABEL_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_SECLABEL (gvir_config_domain_seclabel_get_type ()) #define GVIR_CONFIG_DOMAIN_SECLABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_SECLABEL, GVirConfigDomainSeclabel)) #define GVIR_CONFIG_DOMAIN_SECLABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_SECLABEL, GVirConfigDomainSeclabelClass)) #define GVIR_CONFIG_IS_DOMAIN_SECLABEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_SECLABEL)) #define GVIR_CONFIG_IS_DOMAIN_SECLABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_SECLABEL)) #define GVIR_CONFIG_DOMAIN_SECLABEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_SECLABEL, GVirConfigDomainSeclabelClass)) typedef struct _GVirConfigDomainSeclabel GVirConfigDomainSeclabel; typedef struct _GVirConfigDomainSeclabelPrivate GVirConfigDomainSeclabelPrivate; typedef struct _GVirConfigDomainSeclabelClass GVirConfigDomainSeclabelClass; struct _GVirConfigDomainSeclabel { GVirConfigObject parent; GVirConfigDomainSeclabelPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainSeclabelClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; typedef enum { GVIR_CONFIG_DOMAIN_SECLABEL_DYNAMIC, GVIR_CONFIG_DOMAIN_SECLABEL_STATIC } GVirConfigDomainSeclabelType; GType gvir_config_domain_seclabel_get_type(void); GVirConfigDomainSeclabel *gvir_config_domain_seclabel_new(void); GVirConfigDomainSeclabel *gvir_config_domain_seclabel_new_from_xml(const gchar *xml, GError **error); void gvir_config_domain_seclabel_set_type(GVirConfigDomainSeclabel *seclabel, GVirConfigDomainSeclabelType type); void gvir_config_domain_seclabel_set_model(GVirConfigDomainSeclabel *seclabel, const gchar *model); void gvir_config_domain_seclabel_set_baselabel(GVirConfigDomainSeclabel *seclabel, const gchar *label); void gvir_config_domain_seclabel_set_label(GVirConfigDomainSeclabel *seclabel, const gchar *label); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_SECLABEL_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-storage-pool-source.c0000664000000000000000000002551313004340477023224 00000000000000/* * libvirt-gconfig-storage-pool-source.c: libvirt storage pool source configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_STORAGE_POOL_SOURCE_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_STORAGE_POOL_SOURCE, GVirConfigStoragePoolSourcePrivate)) struct _GVirConfigStoragePoolSourcePrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigStoragePoolSource, gvir_config_storage_pool_source, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_storage_pool_source_class_init(GVirConfigStoragePoolSourceClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigStoragePoolSourcePrivate)); } static void gvir_config_storage_pool_source_init(GVirConfigStoragePoolSource *source) { source->priv = GVIR_CONFIG_STORAGE_POOL_SOURCE_GET_PRIVATE(source); } GVirConfigStoragePoolSource *gvir_config_storage_pool_source_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_STORAGE_POOL_SOURCE, "source", NULL); return GVIR_CONFIG_STORAGE_POOL_SOURCE(object); } GVirConfigStoragePoolSource *gvir_config_storage_pool_source_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_STORAGE_POOL_SOURCE, "source", NULL, xml, error); return GVIR_CONFIG_STORAGE_POOL_SOURCE(object); } /** * gvir_config_storage_pool_source_get_adapter: * @source: a #GVirConfigStoragePoolSource * * For pools backed by a SCSI adapter, returns the SCSI adapter name * * Returns: the SCSI adapter name. */ const char *gvir_config_storage_pool_source_get_adapter(GVirConfigStoragePoolSource *source) { g_return_val_if_fail(GVIR_CONFIG_IS_STORAGE_POOL_SOURCE(source), NULL); return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(source), "adapter", "name"); } void gvir_config_storage_pool_source_set_adapter(GVirConfigStoragePoolSource *source, const char *adapter) { GVirConfigObject *node; g_return_if_fail(GVIR_CONFIG_IS_STORAGE_POOL_SOURCE(source)); node = gvir_config_object_replace_child(GVIR_CONFIG_OBJECT(source), "adapter"); g_return_if_fail(GVIR_CONFIG_IS_OBJECT(node)); gvir_config_object_set_attribute(node, "name", adapter, NULL); g_object_unref(G_OBJECT(node)); } /** * gvir_config_storage_pool_source_get_device_path: * @source: a #GVirConfigStoragePoolSource * * For pools backed by a physical device, returns the path to the block * device node * * Returns: fully qualified path to the block device node. */ const char *gvir_config_storage_pool_source_get_device_path(GVirConfigStoragePoolSource *source) { g_return_val_if_fail(GVIR_CONFIG_IS_STORAGE_POOL_SOURCE(source), NULL); return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(source), "device", "path"); } void gvir_config_storage_pool_source_set_device_path(GVirConfigStoragePoolSource *source, const char *device_path) { GVirConfigObject *node; g_return_if_fail(GVIR_CONFIG_IS_STORAGE_POOL_SOURCE(source)); node = gvir_config_object_add_child(GVIR_CONFIG_OBJECT(source), "device"); g_return_if_fail(GVIR_CONFIG_IS_OBJECT(node)); gvir_config_object_set_attribute(node, "path", device_path, NULL); g_object_unref(G_OBJECT(node)); } /** * gvir_config_storage_pool_source_get_directory: * @source: a #GVirConfigStoragePoolSource * * For pools backed by a directory, returns the path to the backing directory * * Returns: path to the directory backing directory. */ const char *gvir_config_storage_pool_source_get_directory(GVirConfigStoragePoolSource *source) { g_return_val_if_fail(GVIR_CONFIG_IS_STORAGE_POOL_SOURCE(source), NULL); return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(source), "directory", "path"); } void gvir_config_storage_pool_source_set_directory(GVirConfigStoragePoolSource *source, const char *directory) { GVirConfigObject *node; g_return_if_fail(GVIR_CONFIG_IS_STORAGE_POOL_SOURCE(source)); node = gvir_config_object_replace_child(GVIR_CONFIG_OBJECT(source), "directory"); g_return_if_fail(GVIR_CONFIG_IS_OBJECT(node)); gvir_config_object_set_attribute(node, "path", directory, NULL); g_object_unref(G_OBJECT(node)); } /** * gvir_config_storage_pool_source_get_format: * @source: a #GVirConfigStoragePoolSource * * Provides information about the format of the pool. This format is * backend-specific but is typically used to indicate filesystem type, or * network filesystem type, or partition table type, or LVM metadata type. * * Returns: the storage pool format. */ const char *gvir_config_storage_pool_source_get_format(GVirConfigStoragePoolSource *source) { g_return_val_if_fail(GVIR_CONFIG_IS_STORAGE_POOL_SOURCE(source), NULL); return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(source), "format", "type"); } void gvir_config_storage_pool_source_set_format(GVirConfigStoragePoolSource *source, const char *format) { GVirConfigObject *node; g_return_if_fail(GVIR_CONFIG_IS_STORAGE_POOL_SOURCE(source)); node = gvir_config_object_replace_child(GVIR_CONFIG_OBJECT(source), "format"); g_return_if_fail(GVIR_CONFIG_IS_OBJECT(node)); gvir_config_object_set_attribute(node, "type", format, NULL); g_object_unref(G_OBJECT(node)); } /** * gvir_config_storage_pool_source_get_host: * @source: a #GVirConfigStoragePoolSource * * For pools backed by storage from remote server, returns the hostname * of the remote server. * * Returns: hostname or IP address of the remote server. */ const char *gvir_config_storage_pool_source_get_host(GVirConfigStoragePoolSource *source) { g_return_val_if_fail(GVIR_CONFIG_IS_STORAGE_POOL_SOURCE(source), NULL); return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(source), "host", "name"); } void gvir_config_storage_pool_source_set_host(GVirConfigStoragePoolSource *source, const char *host) { GVirConfigObject *node; g_return_if_fail(GVIR_CONFIG_IS_STORAGE_POOL_SOURCE(source)); node = gvir_config_object_replace_child(GVIR_CONFIG_OBJECT(source), "host"); g_return_if_fail(GVIR_CONFIG_IS_OBJECT(node)); gvir_config_object_set_attribute(node, "name", host, NULL); g_object_unref(G_OBJECT(node)); } /** * gvir_config_storage_pool_source_get_name: * @source: a #GVirConfigStoragePoolSource * * For pools backed by storage from a named element (for example, LV * groups), returns the name of the element * * Returns: name of the element used by @source */ const char *gvir_config_storage_pool_source_get_name(GVirConfigStoragePoolSource *source) { g_return_val_if_fail(GVIR_CONFIG_IS_STORAGE_POOL_SOURCE(source), NULL); return gvir_config_object_get_node_content(GVIR_CONFIG_OBJECT(source), "name"); } /** * gvir_config_storage_pool_source_set_name: * @name: (allow-none): */ void gvir_config_storage_pool_source_set_name(GVirConfigStoragePoolSource *source, const char *name) { g_return_if_fail(GVIR_CONFIG_IS_STORAGE_POOL_SOURCE(source)); gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(source), "name", name); } /** * gvir_config_storage_pool_source_get_product: * @source: a #GVirConfigStoragePoolSource * * Gets the product name of the storage device. * * Returns: product name of the storage device. */ const char *gvir_config_storage_pool_source_get_product(GVirConfigStoragePoolSource *source) { g_return_val_if_fail(GVIR_CONFIG_IS_STORAGE_POOL_SOURCE(source), NULL); return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(source), "product", "name"); } void gvir_config_storage_pool_source_set_product(GVirConfigStoragePoolSource *source, const char *product) { GVirConfigObject *node; g_return_if_fail(GVIR_CONFIG_IS_STORAGE_POOL_SOURCE(source)); node = gvir_config_object_replace_child(GVIR_CONFIG_OBJECT(source), "product"); g_return_if_fail(GVIR_CONFIG_IS_OBJECT(node)); gvir_config_object_set_attribute(node, "name", product, NULL); g_object_unref(G_OBJECT(node)); } /** * gvir_config_storage_pool_source_get_vendor: * @source: a #GVirConfigStoragePoolSource * * Gets the vendor name of the storage device. * * Returns: vendor name of the storage device. */ const char *gvir_config_storage_pool_source_get_vendor(GVirConfigStoragePoolSource *source) { g_return_val_if_fail(GVIR_CONFIG_IS_STORAGE_POOL_SOURCE(source), NULL); return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(source), "vendor", "name"); } void gvir_config_storage_pool_source_set_vendor(GVirConfigStoragePoolSource *source, const char *vendor) { GVirConfigObject *node; g_return_if_fail(GVIR_CONFIG_IS_STORAGE_POOL_SOURCE(source)); node = gvir_config_object_replace_child(GVIR_CONFIG_OBJECT(source), "vendor"); g_return_if_fail(GVIR_CONFIG_IS_OBJECT(node)); gvir_config_object_set_attribute(node, "name", vendor, NULL); g_object_unref(G_OBJECT(node)); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-interface-filterref.c0000664000000000000000000001341213004340477024473 00000000000000/* * libvirt-gconfig-domain-interface-network-filterref.c: * libvirt filter reference config. * * Copyright (C) 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Ian Main */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_INTERFACE_FILTERREF_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_FILTERREF, GVirConfigDomainInterfaceFilterrefPrivate)) struct _GVirConfigDomainInterfaceFilterrefPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainInterfaceFilterref, gvir_config_domain_interface_filterref, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_domain_interface_filterref_class_init(GVirConfigDomainInterfaceFilterrefClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainInterfaceFilterrefPrivate)); } static void gvir_config_domain_interface_filterref_init(GVirConfigDomainInterfaceFilterref *filterref) { filterref->priv = GVIR_CONFIG_DOMAIN_INTERFACE_FILTERREF_GET_PRIVATE(filterref); } GVirConfigDomainInterfaceFilterref *gvir_config_domain_interface_filterref_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_FILTERREF, "filterref", NULL); return GVIR_CONFIG_DOMAIN_INTERFACE_FILTERREF(object); } GVirConfigDomainInterfaceFilterref *gvir_config_domain_interface_filterref_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_FILTERREF, "filterref", NULL, xml, error); if (gvir_config_object_get_attribute(object, NULL, "filter") == NULL) { g_object_unref(G_OBJECT(object)); return NULL; } return GVIR_CONFIG_DOMAIN_INTERFACE_FILTERREF(object); } void gvir_config_domain_interface_filterref_set_name(GVirConfigDomainInterfaceFilterref *filterref, const char *filter) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_INTERFACE_FILTERREF(filterref)); gvir_config_object_set_attribute(GVIR_CONFIG_OBJECT(filterref), "filter", filter, NULL); } const char *gvir_config_domain_interface_filterref_get_name(GVirConfigDomainInterfaceFilterref *filterref) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_INTERFACE_FILTERREF(filterref), NULL); return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(filterref), NULL, "filter"); } void gvir_config_domain_interface_filterref_add_parameter(GVirConfigDomainInterfaceFilterref *filterref, GVirConfigDomainInterfaceFilterrefParameter *parameter) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_INTERFACE_FILTERREF(filterref)); g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_INTERFACE_FILTERREF_PARAMETER(parameter)); gvir_config_object_attach_add(GVIR_CONFIG_OBJECT(filterref), GVIR_CONFIG_OBJECT(parameter)); } struct GetParameterData { GVirConfigXmlDoc *doc; GList *parameters; }; static gboolean add_filterref_parameter(xmlNodePtr node, gpointer opaque) { struct GetParameterData* data = (struct GetParameterData*)opaque; GVirConfigObject *parameter; if (g_strcmp0((const gchar *)node->name, "parameter") != 0) { g_debug("unexpected node %s", node->name); return TRUE; } parameter = gvir_config_object_new_from_tree(GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_FILTERREF_PARAMETER, data->doc, NULL, node); if (parameter != NULL) data->parameters = g_list_append(data->parameters, parameter); else g_debug("Failed to parse %s node", node->name); return TRUE; } /** * gvir_config_domain_interface_filterref_get_parameters: * @filterref: a #GVirConfigDomainInterfaceFilterref * * Gets the list of parameters attached to @filterref. The returned list should be * freed with g_list_free(), after its elements have been unreffed with * g_object_unref(). * * Returns: (element-type LibvirtGConfig.DomainInterfaceFilterrefParameter) (transfer full): * a newly allocated #GList of #GVirConfigDomainInterfaceFilterrefParameter. */ GList *gvir_config_domain_interface_filterref_get_parameters(GVirConfigDomainInterfaceFilterref *filterref) { struct GetParameterData data; g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_INTERFACE_FILTERREF(filterref), NULL); g_object_get(G_OBJECT(filterref), "doc", &data.doc, NULL); data.parameters = NULL; gvir_config_object_foreach_child(GVIR_CONFIG_OBJECT(filterref), NULL, add_filterref_parameter, &data); if (data.doc != NULL) { g_object_unref(G_OBJECT(data.doc)); } return data.parameters; } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-host-secmodel.h0000664000000000000000000000600313004340477024506 00000000000000/* * libvirt-gconfig-capabilities-host-secmodel.h: libvirt security model capabilities * * Copyright (C) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Cédric Bosdonnat */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_CAPABILITIES_HOST_SECMODEL_H__ #define __LIBVIRT_GCONFIG_CAPABILITIES_HOST_SECMODEL_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_CAPABILITIES_HOST_SECMODEL (gvir_config_capabilities_host_secmodel_get_type ()) #define GVIR_CONFIG_CAPABILITIES_HOST_SECMODEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_HOST_SECMODEL, GVirConfigCapabilitiesHostSecModel)) #define GVIR_CONFIG_CAPABILITIES_HOST_SECMODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_HOST_SECMODEL, GVirConfigCapabilitiesHostSecModelClass)) #define GVIR_CONFIG_IS_CAPABILITIES_HOST_SECMODEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_HOST_SECMODEL)) #define GVIR_CONFIG_IS_CAPABILITIES_HOST_SECMODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_HOST_SECMODEL)) #define GVIR_CONFIG_CAPABILITIES_HOST_SECMODEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_HOST_SECMODEL, GVirConfigCapabilitiesHostSecModelClass)) typedef struct _GVirConfigCapabilitiesHostSecModel GVirConfigCapabilitiesHostSecModel; typedef struct _GVirConfigCapabilitiesHostSecModelPrivate GVirConfigCapabilitiesHostSecModelPrivate; typedef struct _GVirConfigCapabilitiesHostSecModelClass GVirConfigCapabilitiesHostSecModelClass; struct _GVirConfigCapabilitiesHostSecModel { GVirConfigObject parent; GVirConfigCapabilitiesHostSecModelPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigCapabilitiesHostSecModelClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; GType gvir_config_capabilities_host_secmodel_get_type(void); const gchar * gvir_config_capabilities_host_secmodel_get_model(GVirConfigCapabilitiesHostSecModel *secmodel); const gchar * gvir_config_capabilities_host_secmodel_get_doi(GVirConfigCapabilitiesHostSecModel *secmodel); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_CAPABILITIES_HOST_SECMODEL_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-guest-feature.c0000664000000000000000000000417213004340477024520 00000000000000/* * libvirt-gconfig-capabilities-guest-feature.c: libvirt guest feature capabilities * * Copyright (C) 2008 Daniel P. Berrange * Copyright (C) 2010-2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Zeeshan Ali * Daniel P. Berrange */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_CAPABILITIES_GUEST_FEATURE_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_FEATURE, GVirConfigCapabilitiesGuestFeaturePrivate)) struct _GVirConfigCapabilitiesGuestFeaturePrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigCapabilitiesGuestFeature, gvir_config_capabilities_guest_feature, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_capabilities_guest_feature_class_init(GVirConfigCapabilitiesGuestFeatureClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigCapabilitiesGuestFeaturePrivate)); } static void gvir_config_capabilities_guest_feature_init(GVirConfigCapabilitiesGuestFeature *feature) { feature->priv = GVIR_CONFIG_CAPABILITIES_GUEST_FEATURE_GET_PRIVATE(feature); } const gchar * gvir_config_capabilities_guest_feature_get_name(GVirConfigCapabilitiesGuestFeature *feature) { xmlNodePtr node; node = gvir_config_object_get_xml_node(GVIR_CONFIG_OBJECT(feature)); g_return_val_if_fail(node != NULL, NULL); return (const gchar *)node->name; } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-timer-pit.h0000664000000000000000000000534013004340477022473 00000000000000/* * libvirt-gconfig-domain-timer-pit.h: libvirt domain PIT timer configuration * * Copyright (C) 2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_TIMER_PIT_H__ #define __LIBVIRT_GCONFIG_DOMAIN_TIMER_PIT_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_TIMER_PIT (gvir_config_domain_timer_pit_get_type ()) #define GVIR_CONFIG_DOMAIN_TIMER_PIT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_TIMER_PIT, GVirConfigDomainTimerPit)) #define GVIR_CONFIG_DOMAIN_TIMER_PIT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_TIMER_PIT, GVirConfigDomainTimerPitClass)) #define GVIR_CONFIG_IS_DOMAIN_TIMER_PIT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_TIMER_PIT)) #define GVIR_CONFIG_IS_DOMAIN_TIMER_PIT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_TIMER_PIT)) #define GVIR_CONFIG_DOMAIN_TIMER_PIT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_TIMER_PIT, GVirConfigDomainTimerPitClass)) typedef struct _GVirConfigDomainTimerPit GVirConfigDomainTimerPit; typedef struct _GVirConfigDomainTimerPitPrivate GVirConfigDomainTimerPitPrivate; typedef struct _GVirConfigDomainTimerPitClass GVirConfigDomainTimerPitClass; struct _GVirConfigDomainTimerPit { GVirConfigDomainTimer parent; GVirConfigDomainTimerPitPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainTimerPitClass { GVirConfigDomainTimerClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_timer_pit_get_type(void); GVirConfigDomainTimerPit *gvir_config_domain_timer_pit_new(void); GVirConfigDomainTimerPit *gvir_config_domain_timer_pit_new_from_xml(const gchar *xml, GError **error); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_TIMER_PIT_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-guest.h0000664000000000000000000000574213004340477023100 00000000000000/* * libvirt-gconfig-capabilities-guest.h: libvirt guest capabilities * * Copyright (C) 2010-2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Zeeshan Ali * Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_CAPABILITIES_GUEST_H__ #define __LIBVIRT_GCONFIG_CAPABILITIES_GUEST_H__ #include "libvirt-gconfig-domain-os.h" #include "libvirt-gconfig-capabilities-guest-arch.h" G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_CAPABILITIES_GUEST (gvir_config_capabilities_guest_get_type ()) #define GVIR_CONFIG_CAPABILITIES_GUEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST, GVirConfigCapabilitiesGuest)) #define GVIR_CONFIG_CAPABILITIES_GUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST, GVirConfigCapabilitiesGuestClass)) #define GVIR_CONFIG_IS_CAPABILITIES_GUEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST)) #define GVIR_CONFIG_IS_CAPABILITIES_GUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST)) #define GVIR_CONFIG_CAPABILITIES_GUEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST, GVirConfigCapabilitiesGuestClass)) typedef struct _GVirConfigCapabilitiesGuest GVirConfigCapabilitiesGuest; typedef struct _GVirConfigCapabilitiesGuestPrivate GVirConfigCapabilitiesGuestPrivate; typedef struct _GVirConfigCapabilitiesGuestClass GVirConfigCapabilitiesGuestClass; struct _GVirConfigCapabilitiesGuest { GVirConfigObject parent; GVirConfigCapabilitiesGuestPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigCapabilitiesGuestClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; GType gvir_config_capabilities_guest_get_type(void); GVirConfigDomainOsType gvir_config_capabilities_guest_get_os_type(GVirConfigCapabilitiesGuest *guest); GVirConfigCapabilitiesGuestArch * gvir_config_capabilities_guest_get_arch(GVirConfigCapabilitiesGuest *guest); GList * gvir_config_capabilities_guest_get_features(GVirConfigCapabilitiesGuest *guest); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_CAPABILITIES_GUEST_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-power-management.h0000664000000000000000000000656013004340477024034 00000000000000/* * libvirt-gconfig-domain-power-management.h: libvirt domain power management configuration * * Copyright (C) 2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Zeeshan Ali (Khattak) * Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_POWER_MANAGEMENT_H__ #define __LIBVIRT_GCONFIG_DOMAIN_POWER_MANAGEMENT_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_POWER_MANAGEMENT (gvir_config_domain_power_management_get_type ()) #define GVIR_CONFIG_DOMAIN_POWER_MANAGEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_POWER_MANAGEMENT, GVirConfigDomainPowerManagement)) #define GVIR_CONFIG_DOMAIN_POWER_MANAGEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_POWER_MANAGEMENT, GVirConfigDomainPowerManagementClass)) #define GVIR_CONFIG_IS_DOMAIN_POWER_MANAGEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_POWER_MANAGEMENT)) #define GVIR_CONFIG_IS_DOMAIN_POWER_MANAGEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_POWER_MANAGEMENT)) #define GVIR_CONFIG_DOMAIN_POWER_MANAGEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_POWER_MANAGEMENT, GVirConfigDomainPowerManagementClass)) typedef struct _GVirConfigDomainPowerManagement GVirConfigDomainPowerManagement; typedef struct _GVirConfigDomainPowerManagementPrivate GVirConfigDomainPowerManagementPrivate; typedef struct _GVirConfigDomainPowerManagementClass GVirConfigDomainPowerManagementClass; struct _GVirConfigDomainPowerManagement { GVirConfigObject parent; GVirConfigDomainPowerManagementPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainPowerManagementClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_power_management_get_type(void); GVirConfigDomainPowerManagement *gvir_config_domain_power_management_new(void); GVirConfigDomainPowerManagement *gvir_config_domain_power_management_new_from_xml(const gchar *xml, GError **error); void gvir_config_domain_power_management_set_mem_suspend_enabled(GVirConfigDomainPowerManagement *pm, gboolean enabled); void gvir_config_domain_power_management_set_disk_suspend_enabled(GVirConfigDomainPowerManagement *pm, gboolean enabled); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_POWER_MANAGEMENT_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-timer-hpet.c0000664000000000000000000000504613004340477022635 00000000000000/* * libvirt-gconfig-domain-timer-hpet.c: libvirt domain HPET timer configuration * * Copyright (C) 2012, 2014 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_TIMER_HPET_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_TIMER_HPET, GVirConfigDomainTimerHpetPrivate)) struct _GVirConfigDomainTimerHpetPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainTimerHpet, gvir_config_domain_timer_hpet, GVIR_CONFIG_TYPE_DOMAIN_TIMER); static void gvir_config_domain_timer_hpet_class_init(GVirConfigDomainTimerHpetClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainTimerHpetPrivate)); } static void gvir_config_domain_timer_hpet_init(GVirConfigDomainTimerHpet *timer) { timer->priv = GVIR_CONFIG_DOMAIN_TIMER_HPET_GET_PRIVATE(timer); } GVirConfigDomainTimerHpet *gvir_config_domain_timer_hpet_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_TIMER_HPET, "timer", NULL); gvir_config_object_set_attribute(object, "name", "hpet", NULL); return GVIR_CONFIG_DOMAIN_TIMER_HPET(object); } GVirConfigDomainTimerHpet *gvir_config_domain_timer_hpet_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_TIMER_HPET, "timer", NULL, xml, error); if (g_strcmp0(gvir_config_object_get_attribute(object, NULL, "type"), "hpet") != 0) { g_object_unref(G_OBJECT(object)); g_return_val_if_reached(NULL); } return GVIR_CONFIG_DOMAIN_TIMER_HPET(object); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-seclabel.c0000664000000000000000000000760213004340477022331 00000000000000/* * libvirt-gconfig-domain-seclabel.c: libvirt domain security label configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPSECLABELE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_SECLABEL_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_SECLABEL, GVirConfigDomainSeclabelPrivate)) struct _GVirConfigDomainSeclabelPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainSeclabel, gvir_config_domain_seclabel, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_domain_seclabel_class_init(GVirConfigDomainSeclabelClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainSeclabelPrivate)); } static void gvir_config_domain_seclabel_init(GVirConfigDomainSeclabel *seclabel) { seclabel->priv = GVIR_CONFIG_DOMAIN_SECLABEL_GET_PRIVATE(seclabel); } GVirConfigDomainSeclabel *gvir_config_domain_seclabel_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_SECLABEL, "seclabel", NULL); return GVIR_CONFIG_DOMAIN_SECLABEL(object); } GVirConfigDomainSeclabel *gvir_config_domain_seclabel_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_SECLABEL, "seclabel", NULL, xml, error); return GVIR_CONFIG_DOMAIN_SECLABEL(object); } void gvir_config_domain_seclabel_set_type(GVirConfigDomainSeclabel *seclabel, GVirConfigDomainSeclabelType type) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_SECLABEL(seclabel)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(seclabel), "type", GVIR_CONFIG_TYPE_DOMAIN_SECLABEL_TYPE, type, NULL); } void gvir_config_domain_seclabel_set_model(GVirConfigDomainSeclabel *seclabel, const gchar *model) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_SECLABEL(seclabel)); gvir_config_object_set_attribute(GVIR_CONFIG_OBJECT(seclabel), "model", model, NULL); } /** * gvir_config_domain_seclabel_set_baselabel: * @label: (allow-none): */ void gvir_config_domain_seclabel_set_baselabel(GVirConfigDomainSeclabel *seclabel, const char *label) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_SECLABEL(seclabel)); gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(seclabel), "baselabel", label); } /** * gvir_config_domain_seclabel_set_label: * @label: (allow-none): */ void gvir_config_domain_seclabel_set_label(GVirConfigDomainSeclabel *seclabel, const char *label) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_SECLABEL(seclabel)); gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(seclabel), "label", label); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-interface-bridge.h0000664000000000000000000000622713004340477023760 00000000000000/* * libvirt-gconfig-domain-interface-bridge.c: libvirt domain interface configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange * Author: Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_INTERFACE_BRIDGE_H__ #define __LIBVIRT_GCONFIG_DOMAIN_INTERFACE_BRIDGE_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_BRIDGE (gvir_config_domain_interface_bridge_get_type ()) #define GVIR_CONFIG_DOMAIN_INTERFACE_BRIDGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE, GVirConfigDomainInterfaceBridge)) #define GVIR_CONFIG_DOMAIN_INTERFACE_BRIDGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE, GVirConfigDomainInterfaceBridgeClass)) #define GVIR_CONFIG_IS_DOMAIN_INTERFACE_BRIDGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE)) #define GVIR_CONFIG_IS_DOMAIN_INTERFACE_BRIDGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE)) #define GVIR_CONFIG_DOMAIN_INTERFACE_BRIDGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE, GVirConfigDomainInterfaceBridgeClass)) typedef struct _GVirConfigDomainInterfaceBridge GVirConfigDomainInterfaceBridge; typedef struct _GVirConfigDomainInterfaceBridgePrivate GVirConfigDomainInterfaceBridgePrivate; typedef struct _GVirConfigDomainInterfaceBridgeClass GVirConfigDomainInterfaceBridgeClass; struct _GVirConfigDomainInterfaceBridge { GVirConfigDomainInterface parent; GVirConfigDomainInterfaceBridgePrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainInterfaceBridgeClass { GVirConfigDomainInterfaceClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_interface_bridge_get_type(void); GVirConfigDomainInterfaceBridge *gvir_config_domain_interface_bridge_new(void); GVirConfigDomainInterfaceBridge *gvir_config_domain_interface_bridge_new_from_xml(const gchar *xml, GError **error); void gvir_config_domain_interface_bridge_set_source(GVirConfigDomainInterfaceBridge *interface, const char *brname); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_INTERFACE_BRIDGE_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/Makefile.in0000664000000000000000000055462213007136323016135 00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @HAVE_INTROSPECTION_TRUE@am__append_1 = LibvirtGConfig-1.0.gir @HAVE_INTROSPECTION_TRUE@am__append_2 = $(gir_DATA) $(typelib_DATA) subdir = libvirt-gconfig ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/glibtests.m4 \ $(top_srcdir)/m4/intltool.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/manywarnings.m4 \ $(top_srcdir)/m4/virt-compile-warnings.m4 \ $(top_srcdir)/m4/virt-gettext.m4 $(top_srcdir)/m4/warnings.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(libvirt_gconfig_1_0_la_HEADERS) \ $(noinst_HEADERS) $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(girdir)" \ "$(DESTDIR)$(typelibdir)" \ "$(DESTDIR)$(libvirt_gconfig_1_0_ladir)" \ "$(DESTDIR)$(libvirt_gconfig_1_0_ladir)" LTLIBRARIES = $(lib_LTLIBRARIES) am__DEPENDENCIES_1 = am__objects_1 = am__objects_2 = $(am__objects_1) am__objects_3 = libvirt_gconfig_1_0_la-libvirt-gconfig-object.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-main.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-host.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-feature.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-model.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-topology.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-arch.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-domain.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-feature.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-host-secmodel.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address-pci.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address-usb.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-channel.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-pty.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-spiceport.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-spicevmc.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-unix.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-clock.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-console.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-controller.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-controller-usb.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu-feature.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu-model.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-device.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-disk.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-disk-driver.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-filesys.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-desktop.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-rdp.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-sdl.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-spice.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-vnc.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-hostdev.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-hostdev-pci.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-input.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-bridge.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-filterref.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-filterref-parameter.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-network.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-user.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-memballoon.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-os.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-parallel.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-power-management.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-redirdev.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-seclabel.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-serial.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard-host.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard-host-certificates.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard-passthrough.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-snapshot.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-snapshot-disk.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-sound.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer-hpet.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer-pit.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer-rtc.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-domain-video.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-helpers.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-interface.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-network.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-network-filter.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-node-device.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-secret.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-storage-permissions.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool-source.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool-target.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol-backing-store.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol-target.lo \ libvirt_gconfig_1_0_la-libvirt-gconfig-xml-doc.lo am_libvirt_gconfig_1_0_la_OBJECTS = $(am__objects_2) $(am__objects_3) am__objects_4 = libvirt_gconfig_1_0_la-libvirt-gconfig-enum-types.lo nodist_libvirt_gconfig_1_0_la_OBJECTS = $(am__objects_4) libvirt_gconfig_1_0_la_OBJECTS = $(am_libvirt_gconfig_1_0_la_OBJECTS) \ $(nodist_libvirt_gconfig_1_0_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = libvirt_gconfig_1_0_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) \ $(libvirt_gconfig_1_0_la_LDFLAGS) $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libvirt_gconfig_1_0_la_SOURCES) \ $(nodist_libvirt_gconfig_1_0_la_SOURCES) DIST_SOURCES = $(libvirt_gconfig_1_0_la_SOURCES) RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac DATA = $(gir_DATA) $(typelib_DATA) HEADERS = $(libvirt_gconfig_1_0_la_HEADERS) \ $(nodist_libvirt_gconfig_1_0_la_HEADERS) $(noinst_HEADERS) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in \ $(top_srcdir)/build-aux/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ COVERAGE_CFLAGS = @COVERAGE_CFLAGS@ COVERAGE_LDFLAGS = @COVERAGE_LDFLAGS@ COV_FLAGS = @COV_FLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ CYGWIN_EXTRA_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@ CYGWIN_EXTRA_LIBADD = @CYGWIN_EXTRA_LIBADD@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GIO2_CFLAGS = @GIO2_CFLAGS@ GIO2_LIBS = @GIO2_LIBS@ GLIB2_CFLAGS = @GLIB2_CFLAGS@ GLIB2_LIBS = @GLIB2_LIBS@ GLIB2_REQUIRED = @GLIB2_REQUIRED@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GOBJECT2_CFLAGS = @GOBJECT2_CFLAGS@ GOBJECT2_LIBS = @GOBJECT2_LIBS@ GREP = @GREP@ GTHREAD2_CFLAGS = @GTHREAD2_CFLAGS@ GTHREAD2_LIBS = @GTHREAD2_LIBS@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBVIRT_CFLAGS = @LIBVIRT_CFLAGS@ LIBVIRT_GLIB_MAJOR_VERSION = @LIBVIRT_GLIB_MAJOR_VERSION@ LIBVIRT_GLIB_MICRO_VERSION = @LIBVIRT_GLIB_MICRO_VERSION@ LIBVIRT_GLIB_MINOR_VERSION = @LIBVIRT_GLIB_MINOR_VERSION@ LIBVIRT_GLIB_VERSION = @LIBVIRT_GLIB_VERSION@ LIBVIRT_GLIB_VERSION_INFO = @LIBVIRT_GLIB_VERSION_INFO@ LIBVIRT_GLIB_VERSION_NUMBER = @LIBVIRT_GLIB_VERSION_NUMBER@ LIBVIRT_LIBS = @LIBVIRT_LIBS@ LIBVIRT_REQUIRED = @LIBVIRT_REQUIRED@ LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ LIBXML2_LIBS = @LIBXML2_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MINGW_EXTRA_LDFLAGS = @MINGW_EXTRA_LDFLAGS@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VAPIGEN = @VAPIGEN@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ installed_test_metadir = @installed_test_metadir@ installed_testdir = @installed_testdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = . tests EXTRA_DIST = \ libvirt-gconfig.sym \ libvirt-gconfig-enum-types.h.template \ libvirt-gconfig-enum-types.c.template lib_LTLIBRARIES = libvirt-gconfig-1.0.la GCONFIG_HEADER_FILES = \ libvirt-gconfig.h \ libvirt-gconfig-main.h \ libvirt-gconfig-object.h \ libvirt-gconfig-capabilities.h \ libvirt-gconfig-capabilities-host.h \ libvirt-gconfig-capabilities-cpu.h \ libvirt-gconfig-capabilities-cpu-feature.h \ libvirt-gconfig-capabilities-cpu-model.h \ libvirt-gconfig-capabilities-cpu-topology.h \ libvirt-gconfig-capabilities-guest.h \ libvirt-gconfig-capabilities-guest-arch.h \ libvirt-gconfig-capabilities-guest-domain.h \ libvirt-gconfig-capabilities-guest-feature.h \ libvirt-gconfig-capabilities-host-secmodel.h \ libvirt-gconfig-domain.h \ libvirt-gconfig-domain-address.h \ libvirt-gconfig-domain-address-pci.h \ libvirt-gconfig-domain-address-usb.h \ libvirt-gconfig-domain-channel.h \ libvirt-gconfig-domain-chardev.h \ libvirt-gconfig-domain-chardev-source.h \ libvirt-gconfig-domain-chardev-source-pty.h \ libvirt-gconfig-domain-chardev-source-spiceport.h \ libvirt-gconfig-domain-chardev-source-spicevmc.h \ libvirt-gconfig-domain-chardev-source-unix.h \ libvirt-gconfig-domain-clock.h \ libvirt-gconfig-domain-console.h \ libvirt-gconfig-domain-controller.h \ libvirt-gconfig-domain-controller-usb.h \ libvirt-gconfig-domain-cpu.h \ libvirt-gconfig-domain-cpu-feature.h \ libvirt-gconfig-domain-cpu-model.h \ libvirt-gconfig-domain-device.h \ libvirt-gconfig-domain-disk.h \ libvirt-gconfig-domain-disk-driver.h \ libvirt-gconfig-domain-filesys.h \ libvirt-gconfig-domain-graphics.h \ libvirt-gconfig-domain-graphics-desktop.h \ libvirt-gconfig-domain-graphics-rdp.h \ libvirt-gconfig-domain-graphics-sdl.h \ libvirt-gconfig-domain-graphics-spice.h \ libvirt-gconfig-domain-graphics-vnc.h \ libvirt-gconfig-domain-hostdev.h \ libvirt-gconfig-domain-hostdev-pci.h \ libvirt-gconfig-domain-input.h \ libvirt-gconfig-domain-interface.h \ libvirt-gconfig-domain-interface-bridge.h \ libvirt-gconfig-domain-interface-filterref.h \ libvirt-gconfig-domain-interface-filterref-parameter.h \ libvirt-gconfig-domain-interface-network.h \ libvirt-gconfig-domain-interface-user.h \ libvirt-gconfig-domain-memballoon.h \ libvirt-gconfig-domain-os.h \ libvirt-gconfig-domain-parallel.h \ libvirt-gconfig-domain-power-management.h \ libvirt-gconfig-domain-redirdev.h \ libvirt-gconfig-domain-seclabel.h \ libvirt-gconfig-domain-serial.h \ libvirt-gconfig-domain-smartcard.h \ libvirt-gconfig-domain-smartcard-host.h \ libvirt-gconfig-domain-smartcard-host-certificates.h \ libvirt-gconfig-domain-smartcard-passthrough.h \ libvirt-gconfig-domain-snapshot.h \ libvirt-gconfig-domain-snapshot-disk.h \ libvirt-gconfig-domain-sound.h \ libvirt-gconfig-domain-timer.h \ libvirt-gconfig-domain-timer-hpet.h \ libvirt-gconfig-domain-timer-pit.h \ libvirt-gconfig-domain-timer-rtc.h \ libvirt-gconfig-domain-video.h \ libvirt-gconfig-helpers.h \ libvirt-gconfig-interface.h \ libvirt-gconfig-network.h \ libvirt-gconfig-network-filter.h \ libvirt-gconfig-node-device.h \ libvirt-gconfig-secret.h \ libvirt-gconfig-storage-permissions.h \ libvirt-gconfig-storage-pool.h \ libvirt-gconfig-storage-pool-source.h \ libvirt-gconfig-storage-pool-target.h \ libvirt-gconfig-storage-vol.h \ libvirt-gconfig-storage-vol-backing-store.h \ libvirt-gconfig-storage-vol-target.h noinst_HEADERS = \ libvirt-gconfig-private.h \ libvirt-gconfig-capabilities-cpu-private.h \ libvirt-gconfig-compat.h \ libvirt-gconfig-domain-chardev-source-private.h \ libvirt-gconfig-domain-device-private.h \ libvirt-gconfig-domain-snapshot-private.h \ libvirt-gconfig-helpers-private.h \ libvirt-gconfig-object-private.h \ libvirt-gconfig-xml-doc.h GCONFIG_SOURCE_FILES = \ libvirt-gconfig-object.c \ libvirt-gconfig-main.c \ libvirt-gconfig-capabilities.c \ libvirt-gconfig-capabilities-host.c \ libvirt-gconfig-capabilities-cpu.c \ libvirt-gconfig-capabilities-cpu-feature.c \ libvirt-gconfig-capabilities-cpu-model.c \ libvirt-gconfig-capabilities-cpu-topology.c \ libvirt-gconfig-capabilities-guest.c \ libvirt-gconfig-capabilities-guest-arch.c \ libvirt-gconfig-capabilities-guest-domain.c \ libvirt-gconfig-capabilities-guest-feature.c \ libvirt-gconfig-capabilities-host-secmodel.c \ libvirt-gconfig-domain.c \ libvirt-gconfig-domain-address.c \ libvirt-gconfig-domain-address-pci.c \ libvirt-gconfig-domain-address-usb.c \ libvirt-gconfig-domain-channel.c \ libvirt-gconfig-domain-chardev.c \ libvirt-gconfig-domain-chardev-source.c \ libvirt-gconfig-domain-chardev-source-pty.c \ libvirt-gconfig-domain-chardev-source-spiceport.c \ libvirt-gconfig-domain-chardev-source-spicevmc.c \ libvirt-gconfig-domain-chardev-source-unix.c \ libvirt-gconfig-domain-clock.c \ libvirt-gconfig-domain-console.c \ libvirt-gconfig-domain-controller.c \ libvirt-gconfig-domain-controller-usb.c \ libvirt-gconfig-domain-cpu.c \ libvirt-gconfig-domain-cpu-feature.c \ libvirt-gconfig-domain-cpu-model.c \ libvirt-gconfig-domain-device.c \ libvirt-gconfig-domain-disk.c \ libvirt-gconfig-domain-disk-driver.c \ libvirt-gconfig-domain-filesys.c \ libvirt-gconfig-domain-graphics.c \ libvirt-gconfig-domain-graphics-desktop.c \ libvirt-gconfig-domain-graphics-rdp.c \ libvirt-gconfig-domain-graphics-sdl.c \ libvirt-gconfig-domain-graphics-spice.c \ libvirt-gconfig-domain-graphics-vnc.c \ libvirt-gconfig-domain-hostdev.c \ libvirt-gconfig-domain-hostdev-pci.c \ libvirt-gconfig-domain-input.c \ libvirt-gconfig-domain-interface.c \ libvirt-gconfig-domain-interface-bridge.c \ libvirt-gconfig-domain-interface-filterref.c \ libvirt-gconfig-domain-interface-filterref-parameter.c \ libvirt-gconfig-domain-interface-network.c \ libvirt-gconfig-domain-interface-user.c \ libvirt-gconfig-domain-memballoon.c \ libvirt-gconfig-domain-os.c \ libvirt-gconfig-domain-parallel.c \ libvirt-gconfig-domain-power-management.c \ libvirt-gconfig-domain-redirdev.c \ libvirt-gconfig-domain-seclabel.c \ libvirt-gconfig-domain-serial.c \ libvirt-gconfig-domain-smartcard.c \ libvirt-gconfig-domain-smartcard-host.c \ libvirt-gconfig-domain-smartcard-host-certificates.c \ libvirt-gconfig-domain-smartcard-passthrough.c \ libvirt-gconfig-domain-snapshot.c \ libvirt-gconfig-domain-snapshot-disk.c \ libvirt-gconfig-domain-sound.c \ libvirt-gconfig-domain-timer.c \ libvirt-gconfig-domain-timer-hpet.c \ libvirt-gconfig-domain-timer-pit.c \ libvirt-gconfig-domain-timer-rtc.c \ libvirt-gconfig-domain-video.c \ libvirt-gconfig-helpers.c \ libvirt-gconfig-interface.c \ libvirt-gconfig-network.c \ libvirt-gconfig-network-filter.c \ libvirt-gconfig-node-device.c \ libvirt-gconfig-secret.c \ libvirt-gconfig-storage-permissions.c \ libvirt-gconfig-storage-pool.c \ libvirt-gconfig-storage-pool-source.c \ libvirt-gconfig-storage-pool-target.c \ libvirt-gconfig-storage-vol.c \ libvirt-gconfig-storage-vol-backing-store.c \ libvirt-gconfig-storage-vol-target.c \ libvirt-gconfig-xml-doc.c GCONFIG_GENERATED_FILES = \ libvirt-gconfig-enum-types.c \ libvirt-gconfig-enum-types.h libvirt_gconfig_1_0_ladir = $(includedir)/libvirt-gconfig-1.0/libvirt-gconfig libvirt_gconfig_1_0_la_HEADERS = \ $(GCONFIG_HEADER_FILES) nodist_libvirt_gconfig_1_0_la_HEADERS = \ $(builddir)/libvirt-gconfig-enum-types.h libvirt_gconfig_1_0_la_SOURCES = \ $(libvirt_gconfig_1_0_la_HEADERS) \ $(GCONFIG_SOURCE_FILES) nodist_libvirt_gconfig_1_0_la_SOURCES = \ $(GCONFIG_GENERATED_FILES) libvirt_gconfig_1_0_la_CFLAGS = \ -DG_LOG_DOMAIN="\"Libvirt.GConfig\"" \ -DDATADIR="\"$(datadir)\"" \ -DLIBVIRT_GCONFIG_BUILD \ $(COVERAGE_CFLAGS) \ -I$(top_srcdir) \ -I$(top_builddir) \ $(GOBJECT2_CFLAGS) \ $(LIBXML2_CFLAGS) \ $(WARN_CFLAGS) libvirt_gconfig_1_0_la_LIBADD = \ $(GOBJECT2_LIBS) \ $(LIBXML2_LIBS) \ $(CYGWIN_EXTRA_LIBADD) libvirt_gconfig_1_0_la_DEPENDENCIES = \ libvirt-gconfig.sym libvirt_gconfig_1_0_la_LDFLAGS = \ $(COVERAGE_CFLAGS:-f%=-Wc,f%) \ $(CYGWIN_EXTRA_LDFLAGS) $(MINGW_EXTRA_LDFLAGS) \ -Wl,--version-script=$(srcdir)/libvirt-gconfig.sym \ -version-info $(LIBVIRT_GLIB_VERSION_INFO) BUILT_SOURCES = $(GCONFIG_GENERATED_FILES) CLEANFILES = $(BUILT_SOURCES) $(am__append_2) INTROSPECTION_GIRS = $(am__append_1) @HAVE_INTROSPECTION_TRUE@LibvirtGConfig_1_0_gir_INCLUDES = GObject-2.0 @HAVE_INTROSPECTION_TRUE@LibvirtGConfig_1_0_gir_PACKAGES = gobject-2.0 @HAVE_INTROSPECTION_TRUE@LibvirtGConfig_1_0_gir_EXPORT_PACKAGES = libvirt-gconfig-1.0 @HAVE_INTROSPECTION_TRUE@LibvirtGConfig_1_0_gir_LIBS = libvirt-gconfig-1.0.la @HAVE_INTROSPECTION_TRUE@LibvirtGConfig_1_0_gir_FILES = \ @HAVE_INTROSPECTION_TRUE@ $(GCONFIG_SOURCE_FILES) \ @HAVE_INTROSPECTION_TRUE@ $(GCONFIG_HEADER_FILES) \ @HAVE_INTROSPECTION_TRUE@ $(GCONFIG_GENERATED_FILES) \ @HAVE_INTROSPECTION_TRUE@ $(NULL) @HAVE_INTROSPECTION_TRUE@LibvirtGConfig_1_0_gir_CFLAGS = $(libvirt_gconfig_1_0_la_CFLAGS) @HAVE_INTROSPECTION_TRUE@LibvirtGConfig_1_0_gir_SCANNERFLAGS = \ @HAVE_INTROSPECTION_TRUE@ --identifier-prefix=GVirConfig \ @HAVE_INTROSPECTION_TRUE@ --symbol-prefix=gvir_config \ @HAVE_INTROSPECTION_TRUE@ --c-include="libvirt-gconfig/libvirt-gconfig.h" \ @HAVE_INTROSPECTION_TRUE@ --warn-all \ @HAVE_INTROSPECTION_TRUE@ $(NULL) @HAVE_INTROSPECTION_TRUE@girdir = $(datadir)/gir-1.0 @HAVE_INTROSPECTION_TRUE@gir_DATA = LibvirtGConfig-1.0.gir @HAVE_INTROSPECTION_TRUE@typelibdir = $(libdir)/girepository-1.0 @HAVE_INTROSPECTION_TRUE@typelib_DATA = LibvirtGConfig-1.0.typelib all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libvirt-gconfig/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu libvirt-gconfig/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ } uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libvirt-gconfig-1.0.la: $(libvirt_gconfig_1_0_la_OBJECTS) $(libvirt_gconfig_1_0_la_DEPENDENCIES) $(EXTRA_libvirt_gconfig_1_0_la_DEPENDENCIES) $(AM_V_CCLD)$(libvirt_gconfig_1_0_la_LINK) -rpath $(libdir) $(libvirt_gconfig_1_0_la_OBJECTS) $(libvirt_gconfig_1_0_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-feature.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-model.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-topology.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-arch.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-domain.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-feature.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-host-secmodel.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-host.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address-pci.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address-usb.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-channel.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-pty.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-spiceport.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-spicevmc.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-unix.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-clock.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-console.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-controller-usb.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-controller.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu-feature.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu-model.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-device.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-disk-driver.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-disk.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-filesys.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-desktop.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-rdp.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-sdl.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-spice.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-vnc.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-hostdev-pci.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-hostdev.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-input.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-bridge.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-filterref-parameter.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-filterref.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-network.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-user.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-memballoon.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-os.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-parallel.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-power-management.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-redirdev.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-seclabel.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-serial.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard-host-certificates.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard-host.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard-passthrough.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-snapshot-disk.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-snapshot.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-sound.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer-hpet.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer-pit.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer-rtc.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-video.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-enum-types.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-helpers.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-interface.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-main.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-network-filter.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-network.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-node-device.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-object.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-secret.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-permissions.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool-source.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool-target.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol-backing-store.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol-target.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-xml-doc.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< libvirt_gconfig_1_0_la-libvirt-gconfig-object.lo: libvirt-gconfig-object.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-object.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-object.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-object.lo `test -f 'libvirt-gconfig-object.c' || echo '$(srcdir)/'`libvirt-gconfig-object.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-object.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-object.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-object.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-object.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-object.lo `test -f 'libvirt-gconfig-object.c' || echo '$(srcdir)/'`libvirt-gconfig-object.c libvirt_gconfig_1_0_la-libvirt-gconfig-main.lo: libvirt-gconfig-main.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-main.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-main.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-main.lo `test -f 'libvirt-gconfig-main.c' || echo '$(srcdir)/'`libvirt-gconfig-main.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-main.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-main.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-main.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-main.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-main.lo `test -f 'libvirt-gconfig-main.c' || echo '$(srcdir)/'`libvirt-gconfig-main.c libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities.lo: libvirt-gconfig-capabilities.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities.lo `test -f 'libvirt-gconfig-capabilities.c' || echo '$(srcdir)/'`libvirt-gconfig-capabilities.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-capabilities.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities.lo `test -f 'libvirt-gconfig-capabilities.c' || echo '$(srcdir)/'`libvirt-gconfig-capabilities.c libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-host.lo: libvirt-gconfig-capabilities-host.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-host.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-host.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-host.lo `test -f 'libvirt-gconfig-capabilities-host.c' || echo '$(srcdir)/'`libvirt-gconfig-capabilities-host.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-host.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-host.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-capabilities-host.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-host.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-host.lo `test -f 'libvirt-gconfig-capabilities-host.c' || echo '$(srcdir)/'`libvirt-gconfig-capabilities-host.c libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu.lo: libvirt-gconfig-capabilities-cpu.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu.lo `test -f 'libvirt-gconfig-capabilities-cpu.c' || echo '$(srcdir)/'`libvirt-gconfig-capabilities-cpu.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-capabilities-cpu.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu.lo `test -f 'libvirt-gconfig-capabilities-cpu.c' || echo '$(srcdir)/'`libvirt-gconfig-capabilities-cpu.c libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-feature.lo: libvirt-gconfig-capabilities-cpu-feature.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-feature.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-feature.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-feature.lo `test -f 'libvirt-gconfig-capabilities-cpu-feature.c' || echo '$(srcdir)/'`libvirt-gconfig-capabilities-cpu-feature.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-feature.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-feature.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-capabilities-cpu-feature.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-feature.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-feature.lo `test -f 'libvirt-gconfig-capabilities-cpu-feature.c' || echo '$(srcdir)/'`libvirt-gconfig-capabilities-cpu-feature.c libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-model.lo: libvirt-gconfig-capabilities-cpu-model.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-model.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-model.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-model.lo `test -f 'libvirt-gconfig-capabilities-cpu-model.c' || echo '$(srcdir)/'`libvirt-gconfig-capabilities-cpu-model.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-model.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-model.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-capabilities-cpu-model.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-model.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-model.lo `test -f 'libvirt-gconfig-capabilities-cpu-model.c' || echo '$(srcdir)/'`libvirt-gconfig-capabilities-cpu-model.c libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-topology.lo: libvirt-gconfig-capabilities-cpu-topology.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-topology.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-topology.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-topology.lo `test -f 'libvirt-gconfig-capabilities-cpu-topology.c' || echo '$(srcdir)/'`libvirt-gconfig-capabilities-cpu-topology.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-topology.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-topology.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-capabilities-cpu-topology.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-topology.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-topology.lo `test -f 'libvirt-gconfig-capabilities-cpu-topology.c' || echo '$(srcdir)/'`libvirt-gconfig-capabilities-cpu-topology.c libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest.lo: libvirt-gconfig-capabilities-guest.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest.lo `test -f 'libvirt-gconfig-capabilities-guest.c' || echo '$(srcdir)/'`libvirt-gconfig-capabilities-guest.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-capabilities-guest.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest.lo `test -f 'libvirt-gconfig-capabilities-guest.c' || echo '$(srcdir)/'`libvirt-gconfig-capabilities-guest.c libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-arch.lo: libvirt-gconfig-capabilities-guest-arch.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-arch.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-arch.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-arch.lo `test -f 'libvirt-gconfig-capabilities-guest-arch.c' || echo '$(srcdir)/'`libvirt-gconfig-capabilities-guest-arch.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-arch.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-arch.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-capabilities-guest-arch.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-arch.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-arch.lo `test -f 'libvirt-gconfig-capabilities-guest-arch.c' || echo '$(srcdir)/'`libvirt-gconfig-capabilities-guest-arch.c libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-domain.lo: libvirt-gconfig-capabilities-guest-domain.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-domain.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-domain.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-domain.lo `test -f 'libvirt-gconfig-capabilities-guest-domain.c' || echo '$(srcdir)/'`libvirt-gconfig-capabilities-guest-domain.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-domain.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-domain.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-capabilities-guest-domain.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-domain.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-domain.lo `test -f 'libvirt-gconfig-capabilities-guest-domain.c' || echo '$(srcdir)/'`libvirt-gconfig-capabilities-guest-domain.c libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-feature.lo: libvirt-gconfig-capabilities-guest-feature.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-feature.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-feature.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-feature.lo `test -f 'libvirt-gconfig-capabilities-guest-feature.c' || echo '$(srcdir)/'`libvirt-gconfig-capabilities-guest-feature.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-feature.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-feature.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-capabilities-guest-feature.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-feature.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-feature.lo `test -f 'libvirt-gconfig-capabilities-guest-feature.c' || echo '$(srcdir)/'`libvirt-gconfig-capabilities-guest-feature.c libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-host-secmodel.lo: libvirt-gconfig-capabilities-host-secmodel.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-host-secmodel.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-host-secmodel.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-host-secmodel.lo `test -f 'libvirt-gconfig-capabilities-host-secmodel.c' || echo '$(srcdir)/'`libvirt-gconfig-capabilities-host-secmodel.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-host-secmodel.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-host-secmodel.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-capabilities-host-secmodel.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-host-secmodel.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-host-secmodel.lo `test -f 'libvirt-gconfig-capabilities-host-secmodel.c' || echo '$(srcdir)/'`libvirt-gconfig-capabilities-host-secmodel.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain.lo: libvirt-gconfig-domain.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain.lo `test -f 'libvirt-gconfig-domain.c' || echo '$(srcdir)/'`libvirt-gconfig-domain.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain.lo `test -f 'libvirt-gconfig-domain.c' || echo '$(srcdir)/'`libvirt-gconfig-domain.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address.lo: libvirt-gconfig-domain-address.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address.lo `test -f 'libvirt-gconfig-domain-address.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-address.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-address.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address.lo `test -f 'libvirt-gconfig-domain-address.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-address.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address-pci.lo: libvirt-gconfig-domain-address-pci.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address-pci.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address-pci.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address-pci.lo `test -f 'libvirt-gconfig-domain-address-pci.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-address-pci.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address-pci.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address-pci.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-address-pci.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address-pci.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address-pci.lo `test -f 'libvirt-gconfig-domain-address-pci.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-address-pci.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address-usb.lo: libvirt-gconfig-domain-address-usb.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address-usb.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address-usb.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address-usb.lo `test -f 'libvirt-gconfig-domain-address-usb.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-address-usb.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address-usb.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address-usb.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-address-usb.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address-usb.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address-usb.lo `test -f 'libvirt-gconfig-domain-address-usb.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-address-usb.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-channel.lo: libvirt-gconfig-domain-channel.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-channel.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-channel.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-channel.lo `test -f 'libvirt-gconfig-domain-channel.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-channel.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-channel.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-channel.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-channel.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-channel.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-channel.lo `test -f 'libvirt-gconfig-domain-channel.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-channel.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev.lo: libvirt-gconfig-domain-chardev.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev.lo `test -f 'libvirt-gconfig-domain-chardev.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-chardev.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-chardev.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev.lo `test -f 'libvirt-gconfig-domain-chardev.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-chardev.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source.lo: libvirt-gconfig-domain-chardev-source.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source.lo `test -f 'libvirt-gconfig-domain-chardev-source.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-chardev-source.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-chardev-source.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source.lo `test -f 'libvirt-gconfig-domain-chardev-source.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-chardev-source.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-pty.lo: libvirt-gconfig-domain-chardev-source-pty.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-pty.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-pty.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-pty.lo `test -f 'libvirt-gconfig-domain-chardev-source-pty.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-chardev-source-pty.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-pty.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-pty.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-chardev-source-pty.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-pty.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-pty.lo `test -f 'libvirt-gconfig-domain-chardev-source-pty.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-chardev-source-pty.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-spiceport.lo: libvirt-gconfig-domain-chardev-source-spiceport.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-spiceport.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-spiceport.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-spiceport.lo `test -f 'libvirt-gconfig-domain-chardev-source-spiceport.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-chardev-source-spiceport.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-spiceport.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-spiceport.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-chardev-source-spiceport.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-spiceport.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-spiceport.lo `test -f 'libvirt-gconfig-domain-chardev-source-spiceport.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-chardev-source-spiceport.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-spicevmc.lo: libvirt-gconfig-domain-chardev-source-spicevmc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-spicevmc.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-spicevmc.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-spicevmc.lo `test -f 'libvirt-gconfig-domain-chardev-source-spicevmc.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-chardev-source-spicevmc.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-spicevmc.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-spicevmc.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-chardev-source-spicevmc.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-spicevmc.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-spicevmc.lo `test -f 'libvirt-gconfig-domain-chardev-source-spicevmc.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-chardev-source-spicevmc.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-unix.lo: libvirt-gconfig-domain-chardev-source-unix.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-unix.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-unix.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-unix.lo `test -f 'libvirt-gconfig-domain-chardev-source-unix.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-chardev-source-unix.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-unix.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-unix.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-chardev-source-unix.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-unix.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-chardev-source-unix.lo `test -f 'libvirt-gconfig-domain-chardev-source-unix.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-chardev-source-unix.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-clock.lo: libvirt-gconfig-domain-clock.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-clock.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-clock.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-clock.lo `test -f 'libvirt-gconfig-domain-clock.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-clock.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-clock.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-clock.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-clock.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-clock.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-clock.lo `test -f 'libvirt-gconfig-domain-clock.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-clock.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-console.lo: libvirt-gconfig-domain-console.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-console.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-console.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-console.lo `test -f 'libvirt-gconfig-domain-console.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-console.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-console.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-console.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-console.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-console.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-console.lo `test -f 'libvirt-gconfig-domain-console.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-console.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-controller.lo: libvirt-gconfig-domain-controller.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-controller.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-controller.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-controller.lo `test -f 'libvirt-gconfig-domain-controller.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-controller.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-controller.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-controller.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-controller.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-controller.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-controller.lo `test -f 'libvirt-gconfig-domain-controller.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-controller.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-controller-usb.lo: libvirt-gconfig-domain-controller-usb.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-controller-usb.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-controller-usb.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-controller-usb.lo `test -f 'libvirt-gconfig-domain-controller-usb.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-controller-usb.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-controller-usb.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-controller-usb.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-controller-usb.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-controller-usb.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-controller-usb.lo `test -f 'libvirt-gconfig-domain-controller-usb.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-controller-usb.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu.lo: libvirt-gconfig-domain-cpu.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu.lo `test -f 'libvirt-gconfig-domain-cpu.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-cpu.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-cpu.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu.lo `test -f 'libvirt-gconfig-domain-cpu.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-cpu.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu-feature.lo: libvirt-gconfig-domain-cpu-feature.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu-feature.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu-feature.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu-feature.lo `test -f 'libvirt-gconfig-domain-cpu-feature.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-cpu-feature.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu-feature.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu-feature.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-cpu-feature.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu-feature.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu-feature.lo `test -f 'libvirt-gconfig-domain-cpu-feature.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-cpu-feature.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu-model.lo: libvirt-gconfig-domain-cpu-model.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu-model.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu-model.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu-model.lo `test -f 'libvirt-gconfig-domain-cpu-model.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-cpu-model.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu-model.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu-model.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-cpu-model.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu-model.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu-model.lo `test -f 'libvirt-gconfig-domain-cpu-model.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-cpu-model.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-device.lo: libvirt-gconfig-domain-device.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-device.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-device.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-device.lo `test -f 'libvirt-gconfig-domain-device.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-device.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-device.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-device.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-device.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-device.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-device.lo `test -f 'libvirt-gconfig-domain-device.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-device.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-disk.lo: libvirt-gconfig-domain-disk.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-disk.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-disk.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-disk.lo `test -f 'libvirt-gconfig-domain-disk.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-disk.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-disk.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-disk.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-disk.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-disk.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-disk.lo `test -f 'libvirt-gconfig-domain-disk.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-disk.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-disk-driver.lo: libvirt-gconfig-domain-disk-driver.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-disk-driver.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-disk-driver.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-disk-driver.lo `test -f 'libvirt-gconfig-domain-disk-driver.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-disk-driver.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-disk-driver.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-disk-driver.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-disk-driver.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-disk-driver.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-disk-driver.lo `test -f 'libvirt-gconfig-domain-disk-driver.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-disk-driver.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-filesys.lo: libvirt-gconfig-domain-filesys.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-filesys.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-filesys.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-filesys.lo `test -f 'libvirt-gconfig-domain-filesys.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-filesys.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-filesys.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-filesys.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-filesys.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-filesys.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-filesys.lo `test -f 'libvirt-gconfig-domain-filesys.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-filesys.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics.lo: libvirt-gconfig-domain-graphics.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics.lo `test -f 'libvirt-gconfig-domain-graphics.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-graphics.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-graphics.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics.lo `test -f 'libvirt-gconfig-domain-graphics.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-graphics.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-desktop.lo: libvirt-gconfig-domain-graphics-desktop.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-desktop.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-desktop.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-desktop.lo `test -f 'libvirt-gconfig-domain-graphics-desktop.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-graphics-desktop.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-desktop.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-desktop.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-graphics-desktop.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-desktop.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-desktop.lo `test -f 'libvirt-gconfig-domain-graphics-desktop.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-graphics-desktop.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-rdp.lo: libvirt-gconfig-domain-graphics-rdp.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-rdp.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-rdp.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-rdp.lo `test -f 'libvirt-gconfig-domain-graphics-rdp.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-graphics-rdp.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-rdp.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-rdp.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-graphics-rdp.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-rdp.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-rdp.lo `test -f 'libvirt-gconfig-domain-graphics-rdp.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-graphics-rdp.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-sdl.lo: libvirt-gconfig-domain-graphics-sdl.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-sdl.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-sdl.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-sdl.lo `test -f 'libvirt-gconfig-domain-graphics-sdl.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-graphics-sdl.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-sdl.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-sdl.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-graphics-sdl.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-sdl.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-sdl.lo `test -f 'libvirt-gconfig-domain-graphics-sdl.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-graphics-sdl.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-spice.lo: libvirt-gconfig-domain-graphics-spice.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-spice.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-spice.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-spice.lo `test -f 'libvirt-gconfig-domain-graphics-spice.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-graphics-spice.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-spice.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-spice.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-graphics-spice.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-spice.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-spice.lo `test -f 'libvirt-gconfig-domain-graphics-spice.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-graphics-spice.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-vnc.lo: libvirt-gconfig-domain-graphics-vnc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-vnc.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-vnc.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-vnc.lo `test -f 'libvirt-gconfig-domain-graphics-vnc.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-graphics-vnc.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-vnc.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-vnc.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-graphics-vnc.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-vnc.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-graphics-vnc.lo `test -f 'libvirt-gconfig-domain-graphics-vnc.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-graphics-vnc.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-hostdev.lo: libvirt-gconfig-domain-hostdev.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-hostdev.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-hostdev.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-hostdev.lo `test -f 'libvirt-gconfig-domain-hostdev.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-hostdev.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-hostdev.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-hostdev.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-hostdev.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-hostdev.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-hostdev.lo `test -f 'libvirt-gconfig-domain-hostdev.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-hostdev.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-hostdev-pci.lo: libvirt-gconfig-domain-hostdev-pci.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-hostdev-pci.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-hostdev-pci.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-hostdev-pci.lo `test -f 'libvirt-gconfig-domain-hostdev-pci.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-hostdev-pci.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-hostdev-pci.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-hostdev-pci.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-hostdev-pci.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-hostdev-pci.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-hostdev-pci.lo `test -f 'libvirt-gconfig-domain-hostdev-pci.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-hostdev-pci.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-input.lo: libvirt-gconfig-domain-input.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-input.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-input.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-input.lo `test -f 'libvirt-gconfig-domain-input.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-input.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-input.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-input.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-input.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-input.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-input.lo `test -f 'libvirt-gconfig-domain-input.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-input.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface.lo: libvirt-gconfig-domain-interface.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface.lo `test -f 'libvirt-gconfig-domain-interface.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-interface.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-interface.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface.lo `test -f 'libvirt-gconfig-domain-interface.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-interface.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-bridge.lo: libvirt-gconfig-domain-interface-bridge.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-bridge.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-bridge.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-bridge.lo `test -f 'libvirt-gconfig-domain-interface-bridge.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-interface-bridge.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-bridge.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-bridge.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-interface-bridge.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-bridge.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-bridge.lo `test -f 'libvirt-gconfig-domain-interface-bridge.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-interface-bridge.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-filterref.lo: libvirt-gconfig-domain-interface-filterref.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-filterref.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-filterref.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-filterref.lo `test -f 'libvirt-gconfig-domain-interface-filterref.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-interface-filterref.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-filterref.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-filterref.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-interface-filterref.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-filterref.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-filterref.lo `test -f 'libvirt-gconfig-domain-interface-filterref.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-interface-filterref.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-filterref-parameter.lo: libvirt-gconfig-domain-interface-filterref-parameter.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-filterref-parameter.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-filterref-parameter.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-filterref-parameter.lo `test -f 'libvirt-gconfig-domain-interface-filterref-parameter.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-interface-filterref-parameter.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-filterref-parameter.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-filterref-parameter.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-interface-filterref-parameter.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-filterref-parameter.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-filterref-parameter.lo `test -f 'libvirt-gconfig-domain-interface-filterref-parameter.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-interface-filterref-parameter.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-network.lo: libvirt-gconfig-domain-interface-network.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-network.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-network.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-network.lo `test -f 'libvirt-gconfig-domain-interface-network.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-interface-network.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-network.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-network.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-interface-network.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-network.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-network.lo `test -f 'libvirt-gconfig-domain-interface-network.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-interface-network.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-user.lo: libvirt-gconfig-domain-interface-user.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-user.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-user.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-user.lo `test -f 'libvirt-gconfig-domain-interface-user.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-interface-user.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-user.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-user.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-interface-user.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-user.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-interface-user.lo `test -f 'libvirt-gconfig-domain-interface-user.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-interface-user.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-memballoon.lo: libvirt-gconfig-domain-memballoon.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-memballoon.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-memballoon.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-memballoon.lo `test -f 'libvirt-gconfig-domain-memballoon.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-memballoon.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-memballoon.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-memballoon.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-memballoon.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-memballoon.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-memballoon.lo `test -f 'libvirt-gconfig-domain-memballoon.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-memballoon.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-os.lo: libvirt-gconfig-domain-os.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-os.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-os.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-os.lo `test -f 'libvirt-gconfig-domain-os.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-os.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-os.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-os.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-os.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-os.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-os.lo `test -f 'libvirt-gconfig-domain-os.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-os.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-parallel.lo: libvirt-gconfig-domain-parallel.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-parallel.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-parallel.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-parallel.lo `test -f 'libvirt-gconfig-domain-parallel.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-parallel.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-parallel.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-parallel.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-parallel.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-parallel.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-parallel.lo `test -f 'libvirt-gconfig-domain-parallel.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-parallel.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-power-management.lo: libvirt-gconfig-domain-power-management.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-power-management.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-power-management.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-power-management.lo `test -f 'libvirt-gconfig-domain-power-management.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-power-management.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-power-management.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-power-management.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-power-management.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-power-management.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-power-management.lo `test -f 'libvirt-gconfig-domain-power-management.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-power-management.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-redirdev.lo: libvirt-gconfig-domain-redirdev.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-redirdev.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-redirdev.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-redirdev.lo `test -f 'libvirt-gconfig-domain-redirdev.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-redirdev.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-redirdev.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-redirdev.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-redirdev.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-redirdev.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-redirdev.lo `test -f 'libvirt-gconfig-domain-redirdev.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-redirdev.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-seclabel.lo: libvirt-gconfig-domain-seclabel.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-seclabel.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-seclabel.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-seclabel.lo `test -f 'libvirt-gconfig-domain-seclabel.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-seclabel.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-seclabel.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-seclabel.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-seclabel.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-seclabel.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-seclabel.lo `test -f 'libvirt-gconfig-domain-seclabel.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-seclabel.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-serial.lo: libvirt-gconfig-domain-serial.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-serial.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-serial.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-serial.lo `test -f 'libvirt-gconfig-domain-serial.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-serial.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-serial.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-serial.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-serial.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-serial.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-serial.lo `test -f 'libvirt-gconfig-domain-serial.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-serial.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard.lo: libvirt-gconfig-domain-smartcard.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard.lo `test -f 'libvirt-gconfig-domain-smartcard.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-smartcard.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-smartcard.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard.lo `test -f 'libvirt-gconfig-domain-smartcard.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-smartcard.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard-host.lo: libvirt-gconfig-domain-smartcard-host.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard-host.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard-host.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard-host.lo `test -f 'libvirt-gconfig-domain-smartcard-host.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-smartcard-host.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard-host.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard-host.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-smartcard-host.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard-host.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard-host.lo `test -f 'libvirt-gconfig-domain-smartcard-host.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-smartcard-host.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard-host-certificates.lo: libvirt-gconfig-domain-smartcard-host-certificates.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard-host-certificates.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard-host-certificates.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard-host-certificates.lo `test -f 'libvirt-gconfig-domain-smartcard-host-certificates.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-smartcard-host-certificates.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard-host-certificates.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard-host-certificates.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-smartcard-host-certificates.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard-host-certificates.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard-host-certificates.lo `test -f 'libvirt-gconfig-domain-smartcard-host-certificates.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-smartcard-host-certificates.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard-passthrough.lo: libvirt-gconfig-domain-smartcard-passthrough.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard-passthrough.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard-passthrough.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard-passthrough.lo `test -f 'libvirt-gconfig-domain-smartcard-passthrough.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-smartcard-passthrough.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard-passthrough.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard-passthrough.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-smartcard-passthrough.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard-passthrough.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-smartcard-passthrough.lo `test -f 'libvirt-gconfig-domain-smartcard-passthrough.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-smartcard-passthrough.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-snapshot.lo: libvirt-gconfig-domain-snapshot.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-snapshot.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-snapshot.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-snapshot.lo `test -f 'libvirt-gconfig-domain-snapshot.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-snapshot.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-snapshot.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-snapshot.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-snapshot.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-snapshot.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-snapshot.lo `test -f 'libvirt-gconfig-domain-snapshot.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-snapshot.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-snapshot-disk.lo: libvirt-gconfig-domain-snapshot-disk.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-snapshot-disk.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-snapshot-disk.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-snapshot-disk.lo `test -f 'libvirt-gconfig-domain-snapshot-disk.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-snapshot-disk.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-snapshot-disk.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-snapshot-disk.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-snapshot-disk.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-snapshot-disk.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-snapshot-disk.lo `test -f 'libvirt-gconfig-domain-snapshot-disk.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-snapshot-disk.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-sound.lo: libvirt-gconfig-domain-sound.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-sound.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-sound.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-sound.lo `test -f 'libvirt-gconfig-domain-sound.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-sound.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-sound.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-sound.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-sound.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-sound.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-sound.lo `test -f 'libvirt-gconfig-domain-sound.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-sound.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer.lo: libvirt-gconfig-domain-timer.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer.lo `test -f 'libvirt-gconfig-domain-timer.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-timer.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-timer.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer.lo `test -f 'libvirt-gconfig-domain-timer.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-timer.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer-hpet.lo: libvirt-gconfig-domain-timer-hpet.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer-hpet.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer-hpet.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer-hpet.lo `test -f 'libvirt-gconfig-domain-timer-hpet.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-timer-hpet.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer-hpet.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer-hpet.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-timer-hpet.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer-hpet.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer-hpet.lo `test -f 'libvirt-gconfig-domain-timer-hpet.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-timer-hpet.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer-pit.lo: libvirt-gconfig-domain-timer-pit.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer-pit.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer-pit.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer-pit.lo `test -f 'libvirt-gconfig-domain-timer-pit.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-timer-pit.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer-pit.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer-pit.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-timer-pit.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer-pit.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer-pit.lo `test -f 'libvirt-gconfig-domain-timer-pit.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-timer-pit.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer-rtc.lo: libvirt-gconfig-domain-timer-rtc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer-rtc.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer-rtc.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer-rtc.lo `test -f 'libvirt-gconfig-domain-timer-rtc.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-timer-rtc.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer-rtc.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer-rtc.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-timer-rtc.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer-rtc.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-timer-rtc.lo `test -f 'libvirt-gconfig-domain-timer-rtc.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-timer-rtc.c libvirt_gconfig_1_0_la-libvirt-gconfig-domain-video.lo: libvirt-gconfig-domain-video.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-video.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-video.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-video.lo `test -f 'libvirt-gconfig-domain-video.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-video.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-video.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-video.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-domain-video.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-video.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-video.lo `test -f 'libvirt-gconfig-domain-video.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-video.c libvirt_gconfig_1_0_la-libvirt-gconfig-helpers.lo: libvirt-gconfig-helpers.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-helpers.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-helpers.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-helpers.lo `test -f 'libvirt-gconfig-helpers.c' || echo '$(srcdir)/'`libvirt-gconfig-helpers.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-helpers.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-helpers.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-helpers.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-helpers.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-helpers.lo `test -f 'libvirt-gconfig-helpers.c' || echo '$(srcdir)/'`libvirt-gconfig-helpers.c libvirt_gconfig_1_0_la-libvirt-gconfig-interface.lo: libvirt-gconfig-interface.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-interface.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-interface.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-interface.lo `test -f 'libvirt-gconfig-interface.c' || echo '$(srcdir)/'`libvirt-gconfig-interface.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-interface.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-interface.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-interface.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-interface.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-interface.lo `test -f 'libvirt-gconfig-interface.c' || echo '$(srcdir)/'`libvirt-gconfig-interface.c libvirt_gconfig_1_0_la-libvirt-gconfig-network.lo: libvirt-gconfig-network.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-network.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-network.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-network.lo `test -f 'libvirt-gconfig-network.c' || echo '$(srcdir)/'`libvirt-gconfig-network.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-network.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-network.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-network.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-network.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-network.lo `test -f 'libvirt-gconfig-network.c' || echo '$(srcdir)/'`libvirt-gconfig-network.c libvirt_gconfig_1_0_la-libvirt-gconfig-network-filter.lo: libvirt-gconfig-network-filter.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-network-filter.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-network-filter.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-network-filter.lo `test -f 'libvirt-gconfig-network-filter.c' || echo '$(srcdir)/'`libvirt-gconfig-network-filter.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-network-filter.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-network-filter.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-network-filter.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-network-filter.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-network-filter.lo `test -f 'libvirt-gconfig-network-filter.c' || echo '$(srcdir)/'`libvirt-gconfig-network-filter.c libvirt_gconfig_1_0_la-libvirt-gconfig-node-device.lo: libvirt-gconfig-node-device.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-node-device.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-node-device.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-node-device.lo `test -f 'libvirt-gconfig-node-device.c' || echo '$(srcdir)/'`libvirt-gconfig-node-device.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-node-device.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-node-device.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-node-device.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-node-device.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-node-device.lo `test -f 'libvirt-gconfig-node-device.c' || echo '$(srcdir)/'`libvirt-gconfig-node-device.c libvirt_gconfig_1_0_la-libvirt-gconfig-secret.lo: libvirt-gconfig-secret.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-secret.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-secret.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-secret.lo `test -f 'libvirt-gconfig-secret.c' || echo '$(srcdir)/'`libvirt-gconfig-secret.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-secret.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-secret.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-secret.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-secret.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-secret.lo `test -f 'libvirt-gconfig-secret.c' || echo '$(srcdir)/'`libvirt-gconfig-secret.c libvirt_gconfig_1_0_la-libvirt-gconfig-storage-permissions.lo: libvirt-gconfig-storage-permissions.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-storage-permissions.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-permissions.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-storage-permissions.lo `test -f 'libvirt-gconfig-storage-permissions.c' || echo '$(srcdir)/'`libvirt-gconfig-storage-permissions.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-permissions.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-permissions.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-storage-permissions.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-storage-permissions.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-storage-permissions.lo `test -f 'libvirt-gconfig-storage-permissions.c' || echo '$(srcdir)/'`libvirt-gconfig-storage-permissions.c libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool.lo: libvirt-gconfig-storage-pool.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool.lo `test -f 'libvirt-gconfig-storage-pool.c' || echo '$(srcdir)/'`libvirt-gconfig-storage-pool.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-storage-pool.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool.lo `test -f 'libvirt-gconfig-storage-pool.c' || echo '$(srcdir)/'`libvirt-gconfig-storage-pool.c libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool-source.lo: libvirt-gconfig-storage-pool-source.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool-source.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool-source.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool-source.lo `test -f 'libvirt-gconfig-storage-pool-source.c' || echo '$(srcdir)/'`libvirt-gconfig-storage-pool-source.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool-source.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool-source.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-storage-pool-source.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool-source.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool-source.lo `test -f 'libvirt-gconfig-storage-pool-source.c' || echo '$(srcdir)/'`libvirt-gconfig-storage-pool-source.c libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool-target.lo: libvirt-gconfig-storage-pool-target.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool-target.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool-target.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool-target.lo `test -f 'libvirt-gconfig-storage-pool-target.c' || echo '$(srcdir)/'`libvirt-gconfig-storage-pool-target.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool-target.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool-target.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-storage-pool-target.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool-target.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool-target.lo `test -f 'libvirt-gconfig-storage-pool-target.c' || echo '$(srcdir)/'`libvirt-gconfig-storage-pool-target.c libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol.lo: libvirt-gconfig-storage-vol.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol.lo `test -f 'libvirt-gconfig-storage-vol.c' || echo '$(srcdir)/'`libvirt-gconfig-storage-vol.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-storage-vol.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol.lo `test -f 'libvirt-gconfig-storage-vol.c' || echo '$(srcdir)/'`libvirt-gconfig-storage-vol.c libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol-backing-store.lo: libvirt-gconfig-storage-vol-backing-store.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol-backing-store.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol-backing-store.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol-backing-store.lo `test -f 'libvirt-gconfig-storage-vol-backing-store.c' || echo '$(srcdir)/'`libvirt-gconfig-storage-vol-backing-store.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol-backing-store.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol-backing-store.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-storage-vol-backing-store.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol-backing-store.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol-backing-store.lo `test -f 'libvirt-gconfig-storage-vol-backing-store.c' || echo '$(srcdir)/'`libvirt-gconfig-storage-vol-backing-store.c libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol-target.lo: libvirt-gconfig-storage-vol-target.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol-target.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol-target.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol-target.lo `test -f 'libvirt-gconfig-storage-vol-target.c' || echo '$(srcdir)/'`libvirt-gconfig-storage-vol-target.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol-target.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol-target.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-storage-vol-target.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol-target.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol-target.lo `test -f 'libvirt-gconfig-storage-vol-target.c' || echo '$(srcdir)/'`libvirt-gconfig-storage-vol-target.c libvirt_gconfig_1_0_la-libvirt-gconfig-xml-doc.lo: libvirt-gconfig-xml-doc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-xml-doc.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-xml-doc.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-xml-doc.lo `test -f 'libvirt-gconfig-xml-doc.c' || echo '$(srcdir)/'`libvirt-gconfig-xml-doc.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-xml-doc.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-xml-doc.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-xml-doc.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-xml-doc.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-xml-doc.lo `test -f 'libvirt-gconfig-xml-doc.c' || echo '$(srcdir)/'`libvirt-gconfig-xml-doc.c libvirt_gconfig_1_0_la-libvirt-gconfig-enum-types.lo: libvirt-gconfig-enum-types.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-enum-types.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-enum-types.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-enum-types.lo `test -f 'libvirt-gconfig-enum-types.c' || echo '$(srcdir)/'`libvirt-gconfig-enum-types.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-enum-types.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-enum-types.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libvirt-gconfig-enum-types.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-enum-types.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-enum-types.lo `test -f 'libvirt-gconfig-enum-types.c' || echo '$(srcdir)/'`libvirt-gconfig-enum-types.c mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-girDATA: $(gir_DATA) @$(NORMAL_INSTALL) @list='$(gir_DATA)'; test -n "$(girdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(girdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(girdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(girdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(girdir)" || exit $$?; \ done uninstall-girDATA: @$(NORMAL_UNINSTALL) @list='$(gir_DATA)'; test -n "$(girdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(girdir)'; $(am__uninstall_files_from_dir) install-typelibDATA: $(typelib_DATA) @$(NORMAL_INSTALL) @list='$(typelib_DATA)'; test -n "$(typelibdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(typelibdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(typelibdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(typelibdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(typelibdir)" || exit $$?; \ done uninstall-typelibDATA: @$(NORMAL_UNINSTALL) @list='$(typelib_DATA)'; test -n "$(typelibdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(typelibdir)'; $(am__uninstall_files_from_dir) install-libvirt_gconfig_1_0_laHEADERS: $(libvirt_gconfig_1_0_la_HEADERS) @$(NORMAL_INSTALL) @list='$(libvirt_gconfig_1_0_la_HEADERS)'; test -n "$(libvirt_gconfig_1_0_ladir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(libvirt_gconfig_1_0_ladir)'"; \ $(MKDIR_P) "$(DESTDIR)$(libvirt_gconfig_1_0_ladir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(libvirt_gconfig_1_0_ladir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(libvirt_gconfig_1_0_ladir)" || exit $$?; \ done uninstall-libvirt_gconfig_1_0_laHEADERS: @$(NORMAL_UNINSTALL) @list='$(libvirt_gconfig_1_0_la_HEADERS)'; test -n "$(libvirt_gconfig_1_0_ladir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(libvirt_gconfig_1_0_ladir)'; $(am__uninstall_files_from_dir) install-nodist_libvirt_gconfig_1_0_laHEADERS: $(nodist_libvirt_gconfig_1_0_la_HEADERS) @$(NORMAL_INSTALL) @list='$(nodist_libvirt_gconfig_1_0_la_HEADERS)'; test -n "$(libvirt_gconfig_1_0_ladir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(libvirt_gconfig_1_0_ladir)'"; \ $(MKDIR_P) "$(DESTDIR)$(libvirt_gconfig_1_0_ladir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(libvirt_gconfig_1_0_ladir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(libvirt_gconfig_1_0_ladir)" || exit $$?; \ done uninstall-nodist_libvirt_gconfig_1_0_laHEADERS: @$(NORMAL_UNINSTALL) @list='$(nodist_libvirt_gconfig_1_0_la_HEADERS)'; test -n "$(libvirt_gconfig_1_0_ladir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(libvirt_gconfig_1_0_ladir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am $(MAKE) $(AM_MAKEFLAGS) check-local check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-recursive all-am: Makefile $(LTLIBRARIES) $(DATA) $(HEADERS) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(girdir)" "$(DESTDIR)$(typelibdir)" "$(DESTDIR)$(libvirt_gconfig_1_0_ladir)" "$(DESTDIR)$(libvirt_gconfig_1_0_ladir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) clean: clean-recursive clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ mostlyclean-am distclean: distclean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-girDATA install-libvirt_gconfig_1_0_laHEADERS \ install-nodist_libvirt_gconfig_1_0_laHEADERS \ install-typelibDATA install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-libLTLIBRARIES install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-girDATA uninstall-libLTLIBRARIES \ uninstall-libvirt_gconfig_1_0_laHEADERS \ uninstall-nodist_libvirt_gconfig_1_0_laHEADERS \ uninstall-typelibDATA .MAKE: $(am__recursive_targets) all check check-am install install-am \ install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ check-am check-local clean clean-generic clean-libLTLIBRARIES \ clean-libtool cscopelist-am ctags ctags-am distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-girDATA \ install-html install-html-am install-info install-info-am \ install-libLTLIBRARIES install-libvirt_gconfig_1_0_laHEADERS \ install-man install-nodist_libvirt_gconfig_1_0_laHEADERS \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip install-typelibDATA installcheck installcheck-am \ installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am uninstall-girDATA \ uninstall-libLTLIBRARIES \ uninstall-libvirt_gconfig_1_0_laHEADERS \ uninstall-nodist_libvirt_gconfig_1_0_laHEADERS \ uninstall-typelibDATA .PRECIOUS: Makefile libvirt-gconfig-enum-types.h: $(GCONFIG_HEADER_FILES) libvirt-gconfig-enum-types.h.template $(AM_V_GEN) ( $(GLIB_MKENUMS) --template $(srcdir)/libvirt-gconfig-enum-types.h.template $(GCONFIG_HEADER_FILES:%=$(srcdir)/%) ) | \ sed -e "s/G_TYPE_VIR_CONFIG/GVIR_CONFIG_TYPE/" -e "s/g_vir/gvir/" > libvirt-gconfig-enum-types.h libvirt-gconfig-enum-types.c: $(GCONFIG_HEADER_FILES) libvirt-gconfig-enum-types.c.template $(AM_V_GEN) ( $(GLIB_MKENUMS) --template $(srcdir)/libvirt-gconfig-enum-types.c.template $(GCONFIG_HEADER_FILES:%=$(srcdir)/%) ) | \ sed -e "s/G_TYPE_VIR_CONFIG/GVIR_CONFIG_TYPE/" -e "s/g_vir/gvir/" > libvirt-gconfig-enum-types.c # .libs/libvirt-gconfig.so is built by libtool as a side-effect of the Makefile # rule for libosvirt-gconfig.la. However, checking symbols relies on Linux ELF layout @WITH_LINUX_TRUE@check-symfile: libvirt-gconfig.sym libvirt-gconfig-1.0.la @WITH_LINUX_TRUE@ $(AM_V_GEN)$(PERL) $(top_srcdir)/build-aux/check-symfile.pl $(srcdir)/libvirt-gconfig.sym \ @WITH_LINUX_TRUE@ .libs/libvirt-gconfig-1.0.so @WITH_LINUX_FALSE@check-symfile: check-symsorting: $(AM_V_GEN)$(PERL) $(top_srcdir)/build-aux/check-symsorting.pl \ $(srcdir)/libvirt-gconfig.sym check-local: check-symfile check-symsorting -include $(INTROSPECTION_MAKEFILE) @HAVE_INTROSPECTION_TRUE@LibvirtGConfig-1.0.gir: libvirt-gconfig-1.0.la # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-cpu.h0000664000000000000000000000711113004340477021346 00000000000000/* * libvirt-gconfig-domain-cpu.h: libvirt Domain CPU * * Copyright (C) 2010-2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Zeeshan Ali * Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_CPU_H__ #define __LIBVIRT_GCONFIG_DOMAIN_CPU_H__ #include G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_CPU (gvir_config_domain_cpu_get_type ()) #define GVIR_CONFIG_DOMAIN_CPU(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_CPU, GVirConfigDomainCpu)) #define GVIR_CONFIG_DOMAIN_CPU_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_CPU, GVirConfigDomainCpuClass)) #define GVIR_CONFIG_IS_DOMAIN_CPU(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_CPU)) #define GVIR_CONFIG_IS_DOMAIN_CPU_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_CPU)) #define GVIR_CONFIG_DOMAIN_CPU_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_CPU, GVirConfigDomainCpuClass)) typedef struct _GVirConfigDomainCpu GVirConfigDomainCpu; typedef struct _GVirConfigDomainCpuPrivate GVirConfigDomainCpuPrivate; typedef struct _GVirConfigDomainCpuClass GVirConfigDomainCpuClass; struct _GVirConfigDomainCpu { GVirConfigCapabilitiesCpu parent; GVirConfigDomainCpuPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainCpuClass { GVirConfigCapabilitiesCpuClass parent_class; gpointer padding[20]; }; typedef enum { GVIR_CONFIG_DOMAIN_CPU_MATCH_POLICY_MINIMUM, GVIR_CONFIG_DOMAIN_CPU_MATCH_POLICY_EXACT, GVIR_CONFIG_DOMAIN_CPU_MATCH_POLICY_STRICT } GVirConfigDomainCpuMatchPolicy; typedef enum { GVIR_CONFIG_DOMAIN_CPU_MODE_CUSTOM, GVIR_CONFIG_DOMAIN_CPU_MODE_HOST_MODEL, GVIR_CONFIG_DOMAIN_CPU_MODE_HOST_PASSTHROUGH } GVirConfigDomainCpuMode; GType gvir_config_domain_cpu_get_type(void); GVirConfigDomainCpu *gvir_config_domain_cpu_new(void); GVirConfigDomainCpu *gvir_config_domain_cpu_new_from_xml(const gchar *xml, GError **error); void gvir_config_domain_cpu_set_match_policy(GVirConfigDomainCpu *cpu, GVirConfigDomainCpuMatchPolicy policy); GVirConfigDomainCpuMatchPolicy gvir_config_domain_cpu_get_match_policy(GVirConfigDomainCpu *cpu); void gvir_config_domain_cpu_set_mode(GVirConfigDomainCpu *cpu, GVirConfigDomainCpuMode mode); void gvir_config_domain_cpu_set_model(GVirConfigDomainCpu *cpu, GVirConfigDomainCpuModel *model); GVirConfigDomainCpuMode gvir_config_domain_cpu_get_mode(GVirConfigDomainCpu *cpu); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_CPU_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-smartcard.h0000664000000000000000000000524113004340477022541 00000000000000/* * libvirt-gconfig-domain-smartcard.h: libvirt domain smartcard configuration * * Copyright (C) 2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Alexander Larsson */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_SMARTCARD_H__ #define __LIBVIRT_GCONFIG_DOMAIN_SMARTCARD_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD (gvir_config_domain_smartcard_get_type ()) #define GVIR_CONFIG_DOMAIN_SMARTCARD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD, GVirConfigDomainSmartcard)) #define GVIR_CONFIG_DOMAIN_SMARTCARD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD, GVirConfigDomainSmartcardClass)) #define GVIR_CONFIG_IS_DOMAIN_SMARTCARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD)) #define GVIR_CONFIG_IS_DOMAIN_SMARTCARD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD)) #define GVIR_CONFIG_DOMAIN_SMARTCARD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD, GVirConfigDomainSmartcardClass)) typedef struct _GVirConfigDomainSmartcard GVirConfigDomainSmartcard; typedef struct _GVirConfigDomainSmartcardPrivate GVirConfigDomainSmartcardPrivate; typedef struct _GVirConfigDomainSmartcardClass GVirConfigDomainSmartcardClass; struct _GVirConfigDomainSmartcard { GVirConfigDomainDevice parent; GVirConfigDomainSmartcardPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainSmartcardClass { GVirConfigDomainDeviceClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_smartcard_get_type(void); void gvir_config_domain_smartcard_set_address(GVirConfigDomainRedirdev *redirdev, GVirConfigDomainAddress *address); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_SMARTCARD_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-node-device.h0000664000000000000000000000506713004340477021504 00000000000000/* * libvirt-gconfig-node-device.h: libvirt node device configuration * * Copyright (C) 2010-2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_NODE_DEVICE_H__ #define __LIBVIRT_GCONFIG_NODE_DEVICE_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_NODE_DEVICE (gvir_config_node_device_get_type ()) #define GVIR_CONFIG_NODE_DEVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_NODE_DEVICE, GVirConfigNodeDevice)) #define GVIR_CONFIG_NODE_DEVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_NODE_DEVICE, GVirConfigNodeDeviceClass)) #define GVIR_CONFIG_IS_NODE_DEVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_NODE_DEVICE)) #define GVIR_CONFIG_IS_NODE_DEVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_NODE_DEVICE)) #define GVIR_CONFIG_NODE_DEVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_NODE_DEVICE, GVirConfigNodeDeviceClass)) typedef struct _GVirConfigNodeDevice GVirConfigNodeDevice; typedef struct _GVirConfigNodeDevicePrivate GVirConfigNodeDevicePrivate; typedef struct _GVirConfigNodeDeviceClass GVirConfigNodeDeviceClass; struct _GVirConfigNodeDevice { GVirConfigObject parent; GVirConfigNodeDevicePrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigNodeDeviceClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; GType gvir_config_node_device_get_type(void); GVirConfigNodeDevice *gvir_config_node_device_new(void); GVirConfigNodeDevice *gvir_config_node_device_new_from_xml(const gchar *xml, GError **error); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_NODE_DEVICE_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-device.h0000664000000000000000000000475213004340477022026 00000000000000/* * libvirt-gconfig-domain-device.h: libvirt domain device configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_DEVICE_H__ #define __LIBVIRT_GCONFIG_DOMAIN_DEVICE_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_DEVICE (gvir_config_domain_device_get_type ()) #define GVIR_CONFIG_DOMAIN_DEVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_DEVICE, GVirConfigDomainDevice)) #define GVIR_CONFIG_DOMAIN_DEVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_DEVICE, GVirConfigDomainDeviceClass)) #define GVIR_CONFIG_IS_DOMAIN_DEVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_DEVICE)) #define GVIR_CONFIG_IS_DOMAIN_DEVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_DEVICE)) #define GVIR_CONFIG_DOMAIN_DEVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_DEVICE, GVirConfigDomainDeviceClass)) typedef struct _GVirConfigDomainDevice GVirConfigDomainDevice; typedef struct _GVirConfigDomainDevicePrivate GVirConfigDomainDevicePrivate; typedef struct _GVirConfigDomainDeviceClass GVirConfigDomainDeviceClass; struct _GVirConfigDomainDevice { GVirConfigObject parent; GVirConfigDomainDevicePrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainDeviceClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_device_get_type(void); const gchar *gvir_config_domain_device_get_alias(GVirConfigDomainDevice *dev); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_DEVICE_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-main.c0000664000000000000000000000534413004340477020237 00000000000000/* * libvirt-gconfig-main.c: libvirt gconfig integration * * Copyright (C) 2008 Daniel P. Berrange * Copyright (C) 2010-2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #include #include #include #include "libvirt-glib/libvirt-glib.h" #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-compat.h" /** * gvir_config_init: * @argc: (inout): pointer to application's argc * @argv: (inout) (array length=argc) (allow-none) (transfer none): pointer to application's argv */ void gvir_config_init(int *argc, char ***argv) { GError *err = NULL; if (!gvir_config_init_check(argc, argv, &err)) { g_error("Could not initialize libvirt-gconfig: %s\n", err->message); } } static void gvir_log_handler(const gchar *log_domain G_GNUC_UNUSED, GLogLevelFlags log_level G_GNUC_UNUSED, const gchar *message, gpointer user_data) { if (user_data) fprintf(stderr, "%s\n", message); } /** * gvir_config_init_check: * @argc: (inout): pointer to application's argc * @argv: (inout) (array length=argc) (allow-none) (transfer none): pointer to application's argv * @err: pointer to a #GError to which a message will be posted on error */ gboolean gvir_config_init_check(int *argc G_GNUC_UNUSED, char ***argv G_GNUC_UNUSED, GError **err G_GNUC_UNUSED) { g_type_init(); /* GLib >= 2.31.0 debug is off by default, so we need to * enable it. Older versions are on by default, so we need * to disable it. */ #if GLIB_CHECK_VERSION(2, 31, 0) if (getenv("LIBVIRT_GCONFIG_DEBUG")) g_log_set_handler(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, gvir_log_handler, (void*)0x1); #else if (!getenv("LIBVIRT_GCONFIG_DEBUG")) g_log_set_handler(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, gvir_log_handler, NULL); #endif return TRUE; } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-serial.c0000664000000000000000000000435713004340477022042 00000000000000/* * libvirt-gconfig-domain-serial.c: libvirt domain serial configuration * * Copyright (C) 2011-2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #define GVIR_CONFIG_DOMAIN_SERIAL_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_SERIAL, GVirConfigDomainSerialPrivate)) struct _GVirConfigDomainSerialPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainSerial, gvir_config_domain_serial, GVIR_CONFIG_TYPE_DOMAIN_CHARDEV); static void gvir_config_domain_serial_class_init(GVirConfigDomainSerialClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainSerialPrivate)); } static void gvir_config_domain_serial_init(GVirConfigDomainSerial *serial) { serial->priv = GVIR_CONFIG_DOMAIN_SERIAL_GET_PRIVATE(serial); } GVirConfigDomainSerial *gvir_config_domain_serial_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_SERIAL, "serial", NULL); return GVIR_CONFIG_DOMAIN_SERIAL(object); } GVirConfigDomainSerial *gvir_config_domain_serial_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_SERIAL, "serial", NULL, xml, error); if (object == NULL) return NULL; return GVIR_CONFIG_DOMAIN_SERIAL(object); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-graphics-rdp.c0000664000000000000000000001331113004340477023134 00000000000000/* * libvirt-gconfig-domain-graphics-rdp.c: libvirt domain RDP configuration * * Copyright (C) 2011, 2014 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_GRAPHICS_RDP_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_RDP, GVirConfigDomainGraphicsRdpPrivate)) struct _GVirConfigDomainGraphicsRdpPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainGraphicsRdp, gvir_config_domain_graphics_rdp, GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS); static void gvir_config_domain_graphics_rdp_class_init(GVirConfigDomainGraphicsRdpClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainGraphicsRdpPrivate)); } static void gvir_config_domain_graphics_rdp_init(GVirConfigDomainGraphicsRdp *graphics_rdp) { graphics_rdp->priv = GVIR_CONFIG_DOMAIN_GRAPHICS_RDP_GET_PRIVATE(graphics_rdp); } GVirConfigDomainGraphicsRdp *gvir_config_domain_graphics_rdp_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_RDP, "graphics", NULL); gvir_config_object_set_attribute(object, "type", "rdp", NULL); return GVIR_CONFIG_DOMAIN_GRAPHICS_RDP(object); } GVirConfigDomainGraphicsRdp * gvir_config_domain_graphics_rdp_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_RDP, "graphics", NULL, xml, error); if (g_strcmp0(gvir_config_object_get_attribute(object, NULL, "type"), "rdp") != 0) { g_object_unref(G_OBJECT(object)); return NULL; } return GVIR_CONFIG_DOMAIN_GRAPHICS_RDP(object); } void gvir_config_domain_graphics_rdp_set_autoport(GVirConfigDomainGraphicsRdp *graphics, gboolean autoport) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_GRAPHICS_RDP(graphics)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(graphics), "autoport", G_TYPE_BOOLEAN, autoport, NULL); } int gvir_config_domain_graphics_rdp_get_port(GVirConfigDomainGraphicsRdp *graphics) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_GRAPHICS_RDP(graphics), 0); return gvir_config_object_get_attribute_uint64(GVIR_CONFIG_OBJECT(graphics), NULL, "port", 0); } void gvir_config_domain_graphics_rdp_set_port(GVirConfigDomainGraphicsRdp *graphics, int port) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_GRAPHICS_RDP(graphics)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(graphics), "port", G_TYPE_INT, port, NULL); } void gvir_config_domain_graphics_rdp_set_replace_user(GVirConfigDomainGraphicsRdp *graphics, gboolean replace_user) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_GRAPHICS_RDP(graphics)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(graphics), "replaceUser", G_TYPE_BOOLEAN, replace_user, NULL); } gboolean gvir_config_domain_graphics_rdp_get_replace_user(GVirConfigDomainGraphicsRdp *graphics) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_GRAPHICS_RDP(graphics), FALSE); return gvir_config_object_get_attribute_boolean(GVIR_CONFIG_OBJECT(graphics), NULL, "replaceUser", FALSE); } void gvir_config_domain_graphics_rdp_set_multi_user(GVirConfigDomainGraphicsRdp *graphics, gboolean multi_user) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_GRAPHICS_RDP(graphics)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(graphics), "multiUser", G_TYPE_BOOLEAN, multi_user, NULL); } gboolean gvir_config_domain_graphics_rdp_get_multi_user(GVirConfigDomainGraphicsRdp *graphics) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_GRAPHICS_RDP(graphics), FALSE); return gvir_config_object_get_attribute_boolean(GVIR_CONFIG_OBJECT(graphics), NULL, "multiUser", FALSE); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-host.c0000664000000000000000000001043513004340477022714 00000000000000/* * libvirt-gconfig-capabilities-host.c: libvirt host capabilities * * Copyright (C) 2008 Daniel P. Berrange * Copyright (C) 2010-2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Zeeshan Ali * Daniel P. Berrange */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_CAPABILITIES_HOST_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_CAPABILITIES_HOST, GVirConfigCapabilitiesHostPrivate)) struct _GVirConfigCapabilitiesHostPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigCapabilitiesHost, gvir_config_capabilities_host, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_capabilities_host_class_init(GVirConfigCapabilitiesHostClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigCapabilitiesHostPrivate)); } static void gvir_config_capabilities_host_init(GVirConfigCapabilitiesHost *host) { host->priv = GVIR_CONFIG_CAPABILITIES_HOST_GET_PRIVATE(host); } const gchar * gvir_config_capabilities_host_get_uuid(GVirConfigCapabilitiesHost *host) { return gvir_config_object_get_node_content(GVIR_CONFIG_OBJECT(host), "uuid"); } /** * gvir_config_capabilities_host_get_cpu: * * Gets the CPU capabilities of the host. * * Returns: (transfer full): a new #GVirConfigCapabilitiesCpu. */ GVirConfigCapabilitiesCpu * gvir_config_capabilities_host_get_cpu(GVirConfigCapabilitiesHost *host) { GVirConfigObject *object; g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES_HOST(host), NULL); object = gvir_config_object_get_child_with_type (GVIR_CONFIG_OBJECT(host), "cpu", GVIR_CONFIG_TYPE_CAPABILITIES_CPU); return GVIR_CONFIG_CAPABILITIES_CPU(object); } struct GetSecModelData { GVirConfigXmlDoc *doc; const gchar *schema; GList *secmodels; GType type; }; static gboolean add_secmodel(xmlNodePtr node, gpointer opaque) { struct GetSecModelData* data = (struct GetSecModelData*)opaque; GVirConfigObject *secmodel; if (g_strcmp0((const gchar *)node->name, "secmodel") != 0) return TRUE; secmodel = gvir_config_object_new_from_tree (data->type, data->doc, data->schema, node); if (secmodel != NULL) data->secmodels = g_list_append(data->secmodels, secmodel); else g_debug("Failed to parse %s node", node->name); return TRUE; } /** * gvir_config_capabilities_host_get_secmodels: * @host: a #GVirConfigCapabilitiesHost * * Get the security models listed in @host capabilities. * * Returns: (element-type LibvirtGConfig.CapabilitiesHostSecModel) (transfer full): * a newly allocated #GList of #GVirConfigCapabilitiesHostSecModel. */ GList * gvir_config_capabilities_host_get_secmodels(GVirConfigCapabilitiesHost *host) { struct GetSecModelData data; g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES_HOST(host), NULL); data.schema = gvir_config_object_get_schema(GVIR_CONFIG_OBJECT(host)); g_object_get(G_OBJECT(host), "doc", &data.doc, NULL); g_return_val_if_fail(data.doc != NULL, NULL); data.secmodels = NULL; data.type = GVIR_CONFIG_TYPE_CAPABILITIES_HOST_SECMODEL; gvir_config_object_foreach_child(GVIR_CONFIG_OBJECT(host), NULL, add_secmodel, &data); g_clear_object(&data.doc); return data.secmodels; } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-guest-arch.c0000664000000000000000000001017213004340477023777 00000000000000/* * libvirt-gconfig-capabilities-cpu-arch.c: libvirt guest architecture capabilities * * Copyright (C) 2008 Daniel P. Berrange * Copyright (C) 2010-2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Zeeshan Ali * Daniel P. Berrange */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_CAPABILITIES_GUEST_ARCH_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_ARCH, GVirConfigCapabilitiesGuestArchPrivate)) struct _GVirConfigCapabilitiesGuestArchPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigCapabilitiesGuestArch, gvir_config_capabilities_guest_arch, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_capabilities_guest_arch_class_init(GVirConfigCapabilitiesGuestArchClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigCapabilitiesGuestArchPrivate)); } static void gvir_config_capabilities_guest_arch_init(GVirConfigCapabilitiesGuestArch *arch) { arch->priv = GVIR_CONFIG_CAPABILITIES_GUEST_ARCH_GET_PRIVATE(arch); } const gchar * gvir_config_capabilities_guest_arch_get_name(GVirConfigCapabilitiesGuestArch *arch) { g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES_GUEST_ARCH(arch), NULL); return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(arch), NULL, "name"); } struct GetDomainData { GVirConfigXmlDoc *doc; const gchar *schema; GList *domains; }; static gboolean add_domain(xmlNodePtr node, gpointer opaque) { struct GetDomainData* data = (struct GetDomainData*)opaque; GVirConfigObject *object; if (g_strcmp0((const gchar *)node->name, "domain") != 0) return TRUE; object = gvir_config_object_new_from_tree (GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_DOMAIN, data->doc, data->schema, node); if (object != NULL) data->domains = g_list_append(data->domains, object); else g_debug("Failed to parse %s node", node->name); return TRUE; } /** * gvir_config_capabilities_guest_arch_get_domains: * * Gets the possible domains for this architecture. * * Returns: (element-type LibvirtGConfig.CapabilitiesGuestDomain) (transfer full): * a newly allocated #GList of #GVirConfigCapabilitiesGuestDomain. */ GList * gvir_config_capabilities_guest_arch_get_domains(GVirConfigCapabilitiesGuestArch *arch) { struct GetDomainData data; g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES_GUEST_ARCH(arch), NULL); g_object_get(G_OBJECT(arch), "doc", &data.doc, NULL); g_return_val_if_fail(data.doc != NULL, NULL); data.schema = gvir_config_object_get_schema(GVIR_CONFIG_OBJECT(arch)); data.domains = NULL; gvir_config_object_foreach_child(GVIR_CONFIG_OBJECT(arch), NULL, add_domain, &data); g_clear_object(&data.doc); return data.domains; } const gchar * gvir_config_capabilities_guest_arch_get_emulator(GVirConfigCapabilitiesGuestArch *arch) { g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES_GUEST_ARCH(arch), NULL); return gvir_config_object_get_node_content(GVIR_CONFIG_OBJECT(arch), "emulator"); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-interface.h0000664000000000000000000000477613004340477021270 00000000000000/* * libvirt-gconfig-interface.c: libvirt interface configuration * * Copyright (C) 2010-2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_INTERFACE_H__ #define __LIBVIRT_GCONFIG_INTERFACE_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_INTERFACE (gvir_config_interface_get_type ()) #define GVIR_CONFIG_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_INTERFACE, GVirConfigInterface)) #define GVIR_CONFIG_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_INTERFACE, GVirConfigInterfaceClass)) #define GVIR_CONFIG_IS_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_INTERFACE)) #define GVIR_CONFIG_IS_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_INTERFACE)) #define GVIR_CONFIG_INTERFACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_INTERFACE, GVirConfigInterfaceClass)) typedef struct _GVirConfigInterface GVirConfigInterface; typedef struct _GVirConfigInterfacePrivate GVirConfigInterfacePrivate; typedef struct _GVirConfigInterfaceClass GVirConfigInterfaceClass; struct _GVirConfigInterface { GVirConfigObject parent; GVirConfigInterfacePrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigInterfaceClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; GType gvir_config_interface_get_type(void); GVirConfigInterface *gvir_config_interface_new(void); GVirConfigInterface *gvir_config_interface_new_from_xml(const gchar *xml, GError **error); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_INTERFACE_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-controller-usb.h0000664000000000000000000000757113004340477023543 00000000000000/* * libvirt-gconfig-domain-controller-usb.h: libvirt domain USB controller configuration * * Copyright (C) 2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_CONTROLLER_USB_H__ #define __LIBVIRT_GCONFIG_DOMAIN_CONTROLLER_USB_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_CONTROLLER_USB (gvir_config_domain_controller_usb_get_type ()) #define GVIR_CONFIG_DOMAIN_CONTROLLER_USB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_CONTROLLER_USB, GVirConfigDomainControllerUsb)) #define GVIR_CONFIG_DOMAIN_CONTROLLER_USB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_CONTROLLER_USB, GVirConfigDomainControllerUsbClass)) #define GVIR_CONFIG_IS_DOMAIN_CONTROLLER_USB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_CONTROLLER_USB)) #define GVIR_CONFIG_IS_DOMAIN_CONTROLLER_USB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_CONTROLLER_USB)) #define GVIR_CONFIG_DOMAIN_CONTROLLER_USB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_CONTROLLER_USB, GVirConfigDomainControllerUsbClass)) typedef struct _GVirConfigDomainControllerUsb GVirConfigDomainControllerUsb; typedef struct _GVirConfigDomainControllerUsbPrivate GVirConfigDomainControllerUsbPrivate; typedef struct _GVirConfigDomainControllerUsbClass GVirConfigDomainControllerUsbClass; struct _GVirConfigDomainControllerUsb { GVirConfigDomainController parent; GVirConfigDomainControllerUsbPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainControllerUsbClass { GVirConfigDomainControllerClass parent_class; gpointer padding[20]; }; typedef enum { GVIR_CONFIG_DOMAIN_CONTROLLER_USB_MODEL_PIIX3_UHCI, GVIR_CONFIG_DOMAIN_CONTROLLER_USB_MODEL_PIIX4_UHCI, GVIR_CONFIG_DOMAIN_CONTROLLER_USB_MODEL_EHCI, GVIR_CONFIG_DOMAIN_CONTROLLER_USB_MODEL_ICH9_EHCI1, GVIR_CONFIG_DOMAIN_CONTROLLER_USB_MODEL_ICH9_UHCI1, GVIR_CONFIG_DOMAIN_CONTROLLER_USB_MODEL_ICH9_UHCI2, GVIR_CONFIG_DOMAIN_CONTROLLER_USB_MODEL_ICH9_UHCI3, GVIR_CONFIG_DOMAIN_CONTROLLER_USB_MODEL_VT82C686B_UHCI, GVIR_CONFIG_DOMAIN_CONTROLLER_USB_MODEL_PCI_OHCI } GVirConfigDomainControllerUsbModel; GType gvir_config_domain_controller_usb_get_type(void); GVirConfigDomainControllerUsb *gvir_config_domain_controller_usb_new(void); GVirConfigDomainControllerUsb *gvir_config_domain_controller_usb_new_from_xml(const gchar *xml, GError **error); void gvir_config_domain_controller_usb_set_model(GVirConfigDomainControllerUsb *controller, GVirConfigDomainControllerUsbModel model); void gvir_config_domain_controller_usb_set_master(GVirConfigDomainControllerUsb *controller, GVirConfigDomainControllerUsb *master, guint startport); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_CONTROLLER_USB_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-sound.c0000664000000000000000000000526513004340477021712 00000000000000/* * libvirt-gconfig-domain-sound.c: libvirt domain sound configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_SOUND_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_SOUND, GVirConfigDomainSoundPrivate)) struct _GVirConfigDomainSoundPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainSound, gvir_config_domain_sound, GVIR_CONFIG_TYPE_DOMAIN_DEVICE); static void gvir_config_domain_sound_class_init(GVirConfigDomainSoundClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainSoundPrivate)); } static void gvir_config_domain_sound_init(GVirConfigDomainSound *sound) { sound->priv = GVIR_CONFIG_DOMAIN_SOUND_GET_PRIVATE(sound); } GVirConfigDomainSound *gvir_config_domain_sound_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_SOUND, "sound", NULL); return GVIR_CONFIG_DOMAIN_SOUND(object); } GVirConfigDomainSound *gvir_config_domain_sound_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_SOUND, "sound", NULL, xml, error); return GVIR_CONFIG_DOMAIN_SOUND(object); } void gvir_config_domain_sound_set_model(GVirConfigDomainSound *sound, GVirConfigDomainSoundModel model) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_SOUND(sound)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(sound), "model", GVIR_CONFIG_TYPE_DOMAIN_SOUND_MODEL, model, NULL); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-address-pci.h0000664000000000000000000000771413004340477022766 00000000000000/* * libvirt-gconfig-domain-address-pci.h: libvirt PCI device address configuration * * Copyright (C) 2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_ADDRESS_PCI_H__ #define __LIBVIRT_GCONFIG_DOMAIN_ADDRESS_PCI_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_ADDRESS_PCI (gvir_config_domain_address_pci_get_type ()) #define GVIR_CONFIG_DOMAIN_ADDRESS_PCI(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_ADDRESS_PCI, GVirConfigDomainAddressPci)) #define GVIR_CONFIG_DOMAIN_ADDRESS_PCI_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_ADDRESS_PCI, GVirConfigDomainAddressPciClass)) #define GVIR_CONFIG_IS_DOMAIN_ADDRESS_PCI(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_ADDRESS_PCI)) #define GVIR_CONFIG_IS_DOMAIN_ADDRESS_PCI_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_ADDRESS_PCI)) #define GVIR_CONFIG_DOMAIN_ADDRESS_PCI_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_ADDRESS_PCI, GVirConfigDomainAddressPciClass)) typedef struct _GVirConfigDomainAddressPci GVirConfigDomainAddressPci; typedef struct _GVirConfigDomainAddressPciPrivate GVirConfigDomainAddressPciPrivate; typedef struct _GVirConfigDomainAddressPciClass GVirConfigDomainAddressPciClass; struct _GVirConfigDomainAddressPci { GVirConfigDomainAddress parent; GVirConfigDomainAddressPciPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainAddressPciClass { GVirConfigDomainAddressClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_address_pci_get_type(void); GVirConfigDomainAddressPci *gvir_config_domain_address_pci_new(void); GVirConfigDomainAddressPci *gvir_config_domain_address_pci_new_from_xml(const gchar *xml, GError **error); int gvir_config_domain_address_pci_get_domain(GVirConfigDomainAddressPci *address); void gvir_config_domain_address_pci_set_domain(GVirConfigDomainAddressPci *address, guint16 pci_domain); int gvir_config_domain_address_pci_get_bus(GVirConfigDomainAddressPci *address); void gvir_config_domain_address_pci_set_bus(GVirConfigDomainAddressPci *address, guchar bus); int gvir_config_domain_address_pci_get_slot(GVirConfigDomainAddressPci *address); void gvir_config_domain_address_pci_set_slot(GVirConfigDomainAddressPci *address, guchar slot); int gvir_config_domain_address_pci_get_function(GVirConfigDomainAddressPci *address); void gvir_config_domain_address_pci_set_function(GVirConfigDomainAddressPci *address, guchar function); gboolean gvir_config_domain_address_pci_get_multifunction(GVirConfigDomainAddressPci *address); void gvir_config_domain_address_pci_set_multifunction(GVirConfigDomainAddressPci *address, gboolean multifunction); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_ADDRESS_PCI_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-device-private.h0000664000000000000000000000434513004340477023474 00000000000000/* * libvirt-gconfig-domain-device-private.h: libvirt domain device configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #ifndef __LIBVIRT_GCONFIG_DOMAIN_DEVICE_PRIVATE_H__ #define __LIBVIRT_GCONFIG_DOMAIN_DEVICE_PRIVATE_H__ #include G_BEGIN_DECLS GVirConfigDomainDevice * gvir_config_domain_device_new_from_tree(GVirConfigXmlDoc *doc, xmlNodePtr tree); GVirConfigDomainDevice * gvir_config_domain_controller_new_from_tree(GVirConfigXmlDoc *doc, xmlNodePtr tree); GVirConfigDomainDevice * gvir_config_domain_disk_new_from_tree(GVirConfigXmlDoc *doc, xmlNodePtr tree); GVirConfigDomainDevice * gvir_config_domain_filesys_new_from_tree(GVirConfigXmlDoc *doc, xmlNodePtr tree); GVirConfigDomainDevice * gvir_config_domain_graphics_new_from_tree(GVirConfigXmlDoc *doc, xmlNodePtr tree); GVirConfigDomainDevice * gvir_config_domain_hostdev_new_from_tree(GVirConfigXmlDoc *doc, xmlNodePtr tree); GVirConfigDomainDevice * gvir_config_domain_interface_new_from_tree(GVirConfigXmlDoc *doc, xmlNodePtr tree); GVirConfigDomainDevice * gvir_config_domain_smartcard_new_from_tree(GVirConfigXmlDoc *doc, xmlNodePtr tree); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-power-management.c0000664000000000000000000000711613004340477024025 00000000000000/* * libvirt-gconfig-domain-power-management.c: libvirt domain power management configuration * * Copyright (C) 2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: * * Zeeshan Ali (Khattak) * Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_POWER_MANAGEMENT_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), \ GVIR_CONFIG_TYPE_DOMAIN_POWER_MANAGEMENT, \ GVirConfigDomainPowerManagementPrivate)) struct _GVirConfigDomainPowerManagementPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainPowerManagement, gvir_config_domain_power_management, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_domain_power_management_class_init (GVirConfigDomainPowerManagementClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainPowerManagementPrivate)); } static void gvir_config_domain_power_management_init(GVirConfigDomainPowerManagement *pm) { pm->priv = GVIR_CONFIG_DOMAIN_POWER_MANAGEMENT_GET_PRIVATE(pm); } GVirConfigDomainPowerManagement *gvir_config_domain_power_management_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_POWER_MANAGEMENT, "pm", NULL); return GVIR_CONFIG_DOMAIN_POWER_MANAGEMENT(object); } GVirConfigDomainPowerManagement *gvir_config_domain_power_management_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_POWER_MANAGEMENT, "pm", NULL, xml, error); return GVIR_CONFIG_DOMAIN_POWER_MANAGEMENT(object); } void gvir_config_domain_power_management_set_mem_suspend_enabled(GVirConfigDomainPowerManagement *pm, gboolean enabled) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_POWER_MANAGEMENT(pm)); gvir_config_object_add_child_with_attribute(GVIR_CONFIG_OBJECT(pm), "suspend-to-mem", "enabled", enabled? "yes" : "no"); } void gvir_config_domain_power_management_set_disk_suspend_enabled(GVirConfigDomainPowerManagement *pm, gboolean enabled) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_POWER_MANAGEMENT(pm)); gvir_config_object_add_child_with_attribute(GVIR_CONFIG_OBJECT(pm), "suspend-to-disk", "enabled", enabled? "yes" : "no"); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-graphics-rdp.h0000664000000000000000000000735713004340477023156 00000000000000/* * libvirt-gconfig-domain-graphics-rdp.h: libvirt domain RDP graphics configuration * * Copyright (C) 2011, 2014 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_GRAPHICS_RDP_H__ #define __LIBVIRT_GCONFIG_DOMAIN_GRAPHICS_RDP_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_RDP (gvir_config_domain_graphics_rdp_get_type ()) #define GVIR_CONFIG_DOMAIN_GRAPHICS_RDP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_RDP, GVirConfigDomainGraphicsRdp)) #define GVIR_CONFIG_DOMAIN_GRAPHICS_RDP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_RDP, GVirConfigDomainGraphicsRdpClass)) #define GVIR_CONFIG_IS_DOMAIN_GRAPHICS_RDP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_RDP)) #define GVIR_CONFIG_IS_DOMAIN_GRAPHICS_RDP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_RDP)) #define GVIR_CONFIG_DOMAIN_GRAPHICS_RDP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_RDP, GVirConfigDomainGraphicsRdpClass)) typedef struct _GVirConfigDomainGraphicsRdp GVirConfigDomainGraphicsRdp; typedef struct _GVirConfigDomainGraphicsRdpPrivate GVirConfigDomainGraphicsRdpPrivate; typedef struct _GVirConfigDomainGraphicsRdpClass GVirConfigDomainGraphicsRdpClass; struct _GVirConfigDomainGraphicsRdp { GVirConfigDomainGraphics parent; GVirConfigDomainGraphicsRdpPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainGraphicsRdpClass { GVirConfigDomainGraphicsClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_graphics_rdp_get_type(void); GVirConfigDomainGraphicsRdp *gvir_config_domain_graphics_rdp_new(void); GVirConfigDomainGraphicsRdp *gvir_config_domain_graphics_rdp_new_from_xml(const gchar *xml, GError **error); void gvir_config_domain_graphics_rdp_set_autoport(GVirConfigDomainGraphicsRdp *graphics, gboolean autoport); int gvir_config_domain_graphics_rdp_get_port(GVirConfigDomainGraphicsRdp *graphics); void gvir_config_domain_graphics_rdp_set_port(GVirConfigDomainGraphicsRdp *graphics, int port); gboolean gvir_config_domain_graphics_rdp_get_multi_user(GVirConfigDomainGraphicsRdp *graphics); void gvir_config_domain_graphics_rdp_set_multi_user(GVirConfigDomainGraphicsRdp *graphics, gboolean multi_user); gboolean gvir_config_domain_graphics_rdp_get_replace_user(GVirConfigDomainGraphicsRdp *graphics); void gvir_config_domain_graphics_rdp_set_replace_user(GVirConfigDomainGraphicsRdp *graphics, gboolean replace_user); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_GRAPHICS_RDP_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-address-usb.h0000664000000000000000000000611113004340477022772 00000000000000/* * libvirt-gconfig-domain-address-usb.h: libvirt USB device address configuration * * Copyright (C) 2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_ADDRESS_USB_H__ #define __LIBVIRT_GCONFIG_DOMAIN_ADDRESS_USB_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_ADDRESS_USB (gvir_config_domain_address_usb_get_type ()) #define GVIR_CONFIG_DOMAIN_ADDRESS_USB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_ADDRESS_USB, GVirConfigDomainAddressUsb)) #define GVIR_CONFIG_DOMAIN_ADDRESS_USB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_ADDRESS_USB, GVirConfigDomainAddressUsbClass)) #define GVIR_CONFIG_IS_DOMAIN_ADDRESS_USB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_ADDRESS_USB)) #define GVIR_CONFIG_IS_DOMAIN_ADDRESS_USB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_ADDRESS_USB)) #define GVIR_CONFIG_DOMAIN_ADDRESS_USB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_ADDRESS_USB, GVirConfigDomainAddressUsbClass)) typedef struct _GVirConfigDomainAddressUsb GVirConfigDomainAddressUsb; typedef struct _GVirConfigDomainAddressUsbPrivate GVirConfigDomainAddressUsbPrivate; typedef struct _GVirConfigDomainAddressUsbClass GVirConfigDomainAddressUsbClass; struct _GVirConfigDomainAddressUsb { GVirConfigDomainAddress parent; GVirConfigDomainAddressUsbPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainAddressUsbClass { GVirConfigDomainAddressClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_address_usb_get_type(void); GVirConfigDomainAddressUsb *gvir_config_domain_address_usb_new(void); GVirConfigDomainAddressUsb *gvir_config_domain_address_usb_new_from_xml(const gchar *xml, GError **error); void gvir_config_domain_address_usb_set_bus(GVirConfigDomainAddressUsb *address, guint16 bus); void gvir_config_domain_address_usb_set_port(GVirConfigDomainAddressUsb *address, const char *port); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_ADDRESS_USB_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-input.c0000664000000000000000000001022313004340477021707 00000000000000/* * libvirt-gconfig-device-input.c: libvirt domain input configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_INPUT_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_INPUT, GVirConfigDomainInputPrivate)) struct _GVirConfigDomainInputPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainInput, gvir_config_domain_input, GVIR_CONFIG_TYPE_DOMAIN_DEVICE); static void gvir_config_domain_input_class_init(GVirConfigDomainInputClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainInputPrivate)); } static void gvir_config_domain_input_init(GVirConfigDomainInput *device_input) { device_input->priv = GVIR_CONFIG_DOMAIN_INPUT_GET_PRIVATE(device_input); } GVirConfigDomainInput *gvir_config_domain_input_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_INPUT, "input", NULL); return GVIR_CONFIG_DOMAIN_INPUT(object); } GVirConfigDomainInput *gvir_config_domain_input_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_INPUT, "input", NULL, xml, error); return GVIR_CONFIG_DOMAIN_INPUT(object); } GVirConfigDomainInputDeviceType gvir_config_domain_input_get_device_type(GVirConfigDomainInput *input) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_INPUT(input), GVIR_CONFIG_DOMAIN_INPUT_DEVICE_MOUSE); return gvir_config_object_get_attribute_genum(GVIR_CONFIG_OBJECT(input), NULL, "type", GVIR_CONFIG_TYPE_DOMAIN_INPUT_DEVICE_TYPE, GVIR_CONFIG_DOMAIN_INPUT_DEVICE_MOUSE); } void gvir_config_domain_input_set_device_type(GVirConfigDomainInput *input, GVirConfigDomainInputDeviceType type) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_INPUT(input)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(input), "type", GVIR_CONFIG_TYPE_DOMAIN_INPUT_DEVICE_TYPE, type, NULL); } GVirConfigDomainInputBus gvir_config_domain_input_get_bus(GVirConfigDomainInput *input) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_INPUT(input), GVIR_CONFIG_DOMAIN_INPUT_BUS_PS2); return gvir_config_object_get_attribute_genum(GVIR_CONFIG_OBJECT(input), NULL, "bus", GVIR_CONFIG_TYPE_DOMAIN_INPUT_BUS, GVIR_CONFIG_DOMAIN_INPUT_BUS_PS2); } void gvir_config_domain_input_set_bus(GVirConfigDomainInput *input, GVirConfigDomainInputBus bus) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_INPUT(input)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(input), "bus", GVIR_CONFIG_TYPE_DOMAIN_INPUT_BUS, bus, NULL); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-parallel.h0000664000000000000000000000532413004340477022357 00000000000000/* * libvirt-gconfig-domain-parallel.h: libvirt domain parallel configuration * * Copyright (C) 2011-2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_PARALLEL_H__ #define __LIBVIRT_GCONFIG_DOMAIN_PARALLEL_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_PARALLEL (gvir_config_domain_parallel_get_type ()) #define GVIR_CONFIG_DOMAIN_PARALLEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_PARALLEL, GVirConfigDomainParallel)) #define GVIR_CONFIG_DOMAIN_PARALLEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_PARALLEL, GVirConfigDomainParallelClass)) #define GVIR_CONFIG_IS_DOMAIN_PARALLEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_PARALLEL)) #define GVIR_CONFIG_IS_DOMAIN_PARALLEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_PARALLEL)) #define GVIR_CONFIG_DOMAIN_PARALLEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_PARALLEL, GVirConfigDomainParallelClass)) typedef struct _GVirConfigDomainParallel GVirConfigDomainParallel; typedef struct _GVirConfigDomainParallelPrivate GVirConfigDomainParallelPrivate; typedef struct _GVirConfigDomainParallelClass GVirConfigDomainParallelClass; struct _GVirConfigDomainParallel { GVirConfigDomainChardev parent; GVirConfigDomainParallelPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainParallelClass { GVirConfigDomainChardevClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_parallel_get_type(void); GVirConfigDomainParallel *gvir_config_domain_parallel_new(void); GVirConfigDomainParallel *gvir_config_domain_parallel_new_from_xml(const gchar *xml, GError **error); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_PARALLEL_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-enum-types.h.template0000664000000000000000000000110113004340477023223 00000000000000/*** BEGIN file-header ***/ #ifndef __LIBVIRT_GCONFIG_ENUM_TYPES_H__ #define __LIBVIRT_GCONFIG_ENUM_TYPES_H__ #include G_BEGIN_DECLS /*** END file-header ***/ /*** BEGIN file-production ***/ /* enumerations from "@filename@" */ /*** END file-production ***/ /*** BEGIN value-header ***/ GType @enum_name@_get_type (void) G_GNUC_CONST; #define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type ()) /*** END value-header ***/ /*** BEGIN file-tail ***/ G_END_DECLS #endif /* __LIBVIRT_GCONFIG_ENUM_TYPES_H__ */ /*** END file-tail ***/ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-timer.h0000664000000000000000000000577513004340477021715 00000000000000/* * libvirt-gconfig-domain-timer.h: libvirt domain timer configuration * * Copyright (C) 2011, 2014 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_TIMER_H__ #define __LIBVIRT_GCONFIG_DOMAIN_TIMER_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_TIMER (gvir_config_domain_timer_get_type ()) #define GVIR_CONFIG_DOMAIN_TIMER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_TIMER, GVirConfigDomainTimer)) #define GVIR_CONFIG_DOMAIN_TIMER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_TIMER, GVirConfigDomainTimerClass)) #define GVIR_CONFIG_IS_DOMAIN_TIMER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_TIMER)) #define GVIR_CONFIG_IS_DOMAIN_TIMER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_TIMER)) #define GVIR_CONFIG_DOMAIN_TIMER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_TIMER, GVirConfigDomainTimerClass)) typedef struct _GVirConfigDomainTimer GVirConfigDomainTimer; typedef struct _GVirConfigDomainTimerPrivate GVirConfigDomainTimerPrivate; typedef struct _GVirConfigDomainTimerClass GVirConfigDomainTimerClass; struct _GVirConfigDomainTimer { GVirConfigObject parent; GVirConfigDomainTimerPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainTimerClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; typedef enum { GVIR_CONFIG_DOMAIN_TIMER_TICK_POLICY_DELAY, GVIR_CONFIG_DOMAIN_TIMER_TICK_POLICY_CATCHUP, GVIR_CONFIG_DOMAIN_TIMER_TICK_POLICY_MERGE, GVIR_CONFIG_DOMAIN_TIMER_TICK_POLICY_DISCARD } GVirConfigDomainTimerTickPolicy; GType gvir_config_domain_timer_get_type(void); GVirConfigDomainTimerTickPolicy gvir_config_domain_timer_get_tick_policy(GVirConfigDomainTimer *timer); void gvir_config_domain_timer_set_tick_policy(GVirConfigDomainTimer *timer, GVirConfigDomainTimerTickPolicy policy); gboolean gvir_config_domain_timer_get_present(GVirConfigDomainTimer *timer); void gvir_config_domain_timer_set_present(GVirConfigDomainTimer *timer, gboolean present); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_TIMER_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-guest-arch.h0000664000000000000000000000602113004340477024002 00000000000000/* * libvirt-gconfig-capabilities-guest-arch.h: libvirt guest architecture capabilities * * Copyright (C) 2010-2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Zeeshan Ali * Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_CAPABILITIES_GUEST_ARCH_H__ #define __LIBVIRT_GCONFIG_CAPABILITIES_GUEST_ARCH_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_ARCH (gvir_config_capabilities_guest_arch_get_type ()) #define GVIR_CONFIG_CAPABILITIES_GUEST_ARCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_ARCH, GVirConfigCapabilitiesGuestArch)) #define GVIR_CONFIG_CAPABILITIES_GUEST_ARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_ARCH, GVirConfigCapabilitiesGuestArchClass)) #define GVIR_CONFIG_IS_CAPABILITIES_GUEST_ARCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_ARCH)) #define GVIR_CONFIG_IS_CAPABILITIES_GUEST_ARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_ARCH)) #define GVIR_CONFIG_CAPABILITIES_GUEST_ARCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_ARCH, GVirConfigCapabilitiesGuestArchClass)) typedef struct _GVirConfigCapabilitiesGuestArch GVirConfigCapabilitiesGuestArch; typedef struct _GVirConfigCapabilitiesGuestArchPrivate GVirConfigCapabilitiesGuestArchPrivate; typedef struct _GVirConfigCapabilitiesGuestArchClass GVirConfigCapabilitiesGuestArchClass; struct _GVirConfigCapabilitiesGuestArch { GVirConfigObject parent; GVirConfigCapabilitiesGuestArchPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigCapabilitiesGuestArchClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; GType gvir_config_capabilities_guest_arch_get_type(void); const gchar * gvir_config_capabilities_guest_arch_get_name(GVirConfigCapabilitiesGuestArch *arch); GList * gvir_config_capabilities_guest_arch_get_domains(GVirConfigCapabilitiesGuestArch *arch); const gchar * gvir_config_capabilities_guest_arch_get_emulator(GVirConfigCapabilitiesGuestArch *arch); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_CAPABILITIES_GUEST_ARCH_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-guest-domain.h0000664000000000000000000000604713004340477024344 00000000000000/* * libvirt-gconfig-capabilities-guest-domain.h: libvirt guest domain capabilities * * Copyright (C) 2010-2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Zeeshan Ali * Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_CAPABILITIES_GUEST_DOMAIN_H__ #define __LIBVIRT_GCONFIG_CAPABILITIES_GUEST_DOMAIN_H__ #include "libvirt-gconfig-domain.h" G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_DOMAIN (gvir_config_capabilities_guest_domain_get_type ()) #define GVIR_CONFIG_CAPABILITIES_GUEST_DOMAIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_DOMAIN, GVirConfigCapabilitiesGuestDomain)) #define GVIR_CONFIG_CAPABILITIES_GUEST_DOMAIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_DOMAIN, GVirConfigCapabilitiesGuestDomainClass)) #define GVIR_CONFIG_IS_CAPABILITIES_GUEST_DOMAIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_DOMAIN)) #define GVIR_CONFIG_IS_CAPABILITIES_GUEST_DOMAIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_DOMAIN)) #define GVIR_CONFIG_CAPABILITIES_GUEST_DOMAIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_DOMAIN, GVirConfigCapabilitiesGuestDomainClass)) typedef struct _GVirConfigCapabilitiesGuestDomain GVirConfigCapabilitiesGuestDomain; typedef struct _GVirConfigCapabilitiesGuestDomainPrivate GVirConfigCapabilitiesGuestDomainPrivate; typedef struct _GVirConfigCapabilitiesGuestDomainClass GVirConfigCapabilitiesGuestDomainClass; struct _GVirConfigCapabilitiesGuestDomain { GVirConfigObject parent; GVirConfigCapabilitiesGuestDomainPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigCapabilitiesGuestDomainClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; GType gvir_config_capabilities_guest_domain_get_type(void); const gchar * gvir_config_capabilities_guest_domain_get_emulator(GVirConfigCapabilitiesGuestDomain *domain); GVirConfigDomainVirtType gvir_config_capabilities_guest_domain_get_virt_type(GVirConfigCapabilitiesGuestDomain *domain); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_CAPABILITIES_GUEST_DOMAIN_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-chardev-source-pty.h0000664000000000000000000000644013004340477024307 00000000000000/* * libvirt-gconfig-domain-chardev-source-pty.h: libvirt domain chardev pty configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_CHARDEV_SOURCE_PTY_H__ #define __LIBVIRT_GCONFIG_DOMAIN_CHARDEV_SOURCE_PTY_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_PTY (gvir_config_domain_chardev_source_pty_get_type ()) #define GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_PTY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_PTY, GVirConfigDomainChardevSourcePty)) #define GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_PTY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_PTY, GVirConfigDomainChardevSourcePtyClass)) #define GVIR_CONFIG_IS_DOMAIN_CHARDEV_SOURCE_PTY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_PTY)) #define GVIR_CONFIG_IS_DOMAIN_CHARDEV_SOURCE_PTY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_PTY)) #define GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_PTY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_PTY, GVirConfigDomainChardevSourcePtyClass)) typedef struct _GVirConfigDomainChardevSourcePty GVirConfigDomainChardevSourcePty; typedef struct _GVirConfigDomainChardevSourcePtyPrivate GVirConfigDomainChardevSourcePtyPrivate; typedef struct _GVirConfigDomainChardevSourcePtyClass GVirConfigDomainChardevSourcePtyClass; struct _GVirConfigDomainChardevSourcePty { GVirConfigDomainChardevSource parent; GVirConfigDomainChardevSourcePtyPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainChardevSourcePtyClass { GVirConfigDomainChardevSourceClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_chardev_source_pty_get_type(void); GVirConfigDomainChardevSourcePty *gvir_config_domain_chardev_source_pty_new(void); GVirConfigDomainChardevSourcePty *gvir_config_domain_chardev_source_pty_new_from_xml(const gchar *xml, GError **error); void gvir_config_domain_chardev_source_pty_set_path(GVirConfigDomainChardevSourcePty *pty, const char *path); const gchar * gvir_config_domain_chardev_source_pty_get_path(GVirConfigDomainChardevSourcePty *pty); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_CHARDEV_SOURCE_PTY_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-network-filter.c0000664000000000000000000000467613004340477022276 00000000000000/* * libvirt-gconfig-network-filter.c: libvirt network filter configuration * * Copyright (C) 2008 Daniel P. Berrange * Copyright (C) 2010-2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #define GVIR_CONFIG_NETWORK_FILTER_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_NETWORK_FILTER, GVirConfigNetworkFilterPrivate)) struct _GVirConfigNetworkFilterPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigNetworkFilter, gvir_config_network_filter, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_network_filter_class_init(GVirConfigNetworkFilterClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigNetworkFilterPrivate)); } static void gvir_config_network_filter_init(GVirConfigNetworkFilter *filter) { filter->priv = GVIR_CONFIG_NETWORK_FILTER_GET_PRIVATE(filter); } GVirConfigNetworkFilter *gvir_config_network_filter_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_NETWORK_FILTER, "filter", DATADIR "/libvirt/schemas/nwfilter.rng"); return GVIR_CONFIG_NETWORK_FILTER(object); } GVirConfigNetworkFilter *gvir_config_network_filter_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_NETWORK_FILTER, "filter", DATADIR "/libvirt/schemas/nwfilter.rng", xml, error); return GVIR_CONFIG_NETWORK_FILTER(object); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-hostdev.c0000664000000000000000000001417313004340477022234 00000000000000/* * libvirt-gconfig-domain-hostdev.c: libvirt domain hostdev configuration * * Copyright (C) 2016 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Zeeshan Ali (Khattak) * Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_HOSTDEV_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_HOSTDEV, GVirConfigDomainHostdevPrivate)) struct _GVirConfigDomainHostdevPrivate { gboolean unused; }; G_DEFINE_ABSTRACT_TYPE(GVirConfigDomainHostdev, gvir_config_domain_hostdev, GVIR_CONFIG_TYPE_DOMAIN_DEVICE); static void gvir_config_domain_hostdev_class_init(GVirConfigDomainHostdevClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainHostdevPrivate)); } static void gvir_config_domain_hostdev_init(GVirConfigDomainHostdev *hostdev) { hostdev->priv = GVIR_CONFIG_DOMAIN_HOSTDEV_GET_PRIVATE(hostdev); } G_GNUC_INTERNAL GVirConfigDomainDevice * gvir_config_domain_hostdev_new_from_tree(GVirConfigXmlDoc *doc, xmlNodePtr tree) { const char *type; GType gtype; type = gvir_config_xml_get_attribute_content(tree, "type"); if (type == NULL) return NULL; if (g_str_equal(type, "usb")) { goto unimplemented; } else if (g_str_equal(type, "pci")) { gtype = GVIR_CONFIG_TYPE_DOMAIN_HOSTDEV_PCI; } else if (g_str_equal(type, "scsi")) { goto unimplemented; } else { g_debug("Unknown domain hostdev node: %s", type); return NULL; } return GVIR_CONFIG_DOMAIN_DEVICE(gvir_config_object_new_from_tree(gtype, doc, NULL, tree)); unimplemented: g_debug("Parsing of '%s' domain hostdev nodes is unimplemented", type); return NULL; } /** * gvir_config_domain_hostdev_set_boot_order: * @hostdev: the host device * @order: the boot order * * If a positive integer is passed as @order, @hostdev is marked bootable and * boot order set to @order, otherwise @hostdev is marked to be unbootable. */ void gvir_config_domain_hostdev_set_boot_order(GVirConfigDomainHostdev *hostdev, gint order) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_HOSTDEV(hostdev)); if (order >= 0) { char *order_str = g_strdup_printf("%u", order); gvir_config_object_replace_child_with_attribute(GVIR_CONFIG_OBJECT(hostdev), "boot", "order", order_str); g_free(order_str); } else { gvir_config_object_delete_child(GVIR_CONFIG_OBJECT(hostdev), "boot", NULL); } } /** * gvir_config_domain_hostdev_get_boot_order: * @hostdev: the host device * * Returns: The boot order if @hostdev is bootable, otherwise a negative integer. */ gint gvir_config_domain_hostdev_get_boot_order(GVirConfigDomainHostdev *hostdev) { return gvir_config_object_get_attribute_uint64(GVIR_CONFIG_OBJECT(hostdev), "boot", "order", -1); } /** * gvir_config_domain_hostdev_set_readonly: * @hostdev: the host device * @readonly: the new readonly status * * Set the readonly status of @hostdev to @readonly. */ void gvir_config_domain_hostdev_set_readonly(GVirConfigDomainHostdev *hostdev, gboolean readonly) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_HOSTDEV(hostdev)); if (readonly) { GVirConfigObject *node; node = gvir_config_object_replace_child(GVIR_CONFIG_OBJECT(hostdev), "readonly"); g_object_unref(node); } else { gvir_config_object_delete_child(GVIR_CONFIG_OBJECT(hostdev), "readonly", NULL); } } /** * gvir_config_domain_hostdev_get_readonly: * @hostdev: the host device * * Returns: %TRUE if @hostdev is readonly, %FALSE otherwise. */ gboolean gvir_config_domain_hostdev_get_readonly(GVirConfigDomainHostdev *hostdev) { return gvir_config_object_has_child(GVIR_CONFIG_OBJECT(hostdev), "readonly"); } /** * gvir_config_domain_hostdev_set_shareable: * @hostdev: the host device * @shareable: the new shareable status * * Set whether or not @hostdev is shared between domains. */ void gvir_config_domain_hostdev_set_shareable(GVirConfigDomainHostdev *hostdev, gboolean shareable) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_HOSTDEV(hostdev)); if (shareable) { GVirConfigObject *node; node = gvir_config_object_replace_child(GVIR_CONFIG_OBJECT(hostdev), "shareable"); g_object_unref(node); } else { gvir_config_object_delete_child(GVIR_CONFIG_OBJECT(hostdev), "shareable", NULL); } } /** * gvir_config_domain_hostdev_get_shareable: * @hostdev: the host device * * Returns: %TRUE if @hostdev is shared between domains, %FALSE otherwise. */ gboolean gvir_config_domain_hostdev_get_shareable(GVirConfigDomainHostdev *hostdev) { return gvir_config_object_has_child(GVIR_CONFIG_OBJECT(hostdev), "shareable"); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-console.c0000664000000000000000000000553713004340477022226 00000000000000/* * libvirt-gconfig-domain-console.c: libvirt domain console configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_CONSOLE_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_CONSOLE, GVirConfigDomainConsolePrivate)) struct _GVirConfigDomainConsolePrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainConsole, gvir_config_domain_console, GVIR_CONFIG_TYPE_DOMAIN_CHARDEV); static void gvir_config_domain_console_class_init(GVirConfigDomainConsoleClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainConsolePrivate)); } static void gvir_config_domain_console_init(GVirConfigDomainConsole *console) { console->priv = GVIR_CONFIG_DOMAIN_CONSOLE_GET_PRIVATE(console); } GVirConfigDomainConsole *gvir_config_domain_console_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_CONSOLE, "console", NULL); return GVIR_CONFIG_DOMAIN_CONSOLE(object); } GVirConfigDomainConsole *gvir_config_domain_console_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_CONSOLE, "console", NULL, xml, error); if (object == NULL) return NULL; return GVIR_CONFIG_DOMAIN_CONSOLE(object); } void gvir_config_domain_console_set_target_type(GVirConfigDomainConsole *console, GVirConfigDomainConsoleTargetType type) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_CONSOLE(console)); gvir_config_object_add_child_with_attribute_enum(GVIR_CONFIG_OBJECT(console), "target", "type", GVIR_CONFIG_TYPE_DOMAIN_CONSOLE_TARGET_TYPE, type); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-secret.h0000664000000000000000000000462213004340477020603 00000000000000/* * libvirt-gconfig-secret.h: libvirt secret configuration * * Copyright (C) 2010-2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_SECRET_H__ #define __LIBVIRT_GCONFIG_SECRET_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_SECRET (gvir_config_secret_get_type ()) #define GVIR_CONFIG_SECRET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_SECRET, GVirConfigSecret)) #define GVIR_CONFIG_SECRET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_SECRET, GVirConfigSecretClass)) #define GVIR_CONFIG_IS_SECRET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_SECRET)) #define GVIR_CONFIG_IS_SECRET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_SECRET)) #define GVIR_CONFIG_SECRET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_SECRET, GVirConfigSecretClass)) typedef struct _GVirConfigSecret GVirConfigSecret; typedef struct _GVirConfigSecretPrivate GVirConfigSecretPrivate; typedef struct _GVirConfigSecretClass GVirConfigSecretClass; struct _GVirConfigSecret { GVirConfigObject parent; GVirConfigSecretPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigSecretClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; GType gvir_config_secret_get_type(void); GVirConfigSecret *gvir_config_secret_new(void); GVirConfigSecret *gvir_config_secret_new_from_xml(const gchar *xml, GError **error); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_SECRET_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-memballoon.c0000664000000000000000000000564213004340477022706 00000000000000/* * libvirt-gconfig-domain-memballoon.c: libvirt domain memballoon configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_MEMBALLOON_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_MEMBALLOON, GVirConfigDomainMemballoonPrivate)) struct _GVirConfigDomainMemballoonPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainMemballoon, gvir_config_domain_memballoon, GVIR_CONFIG_TYPE_DOMAIN_DEVICE); static void gvir_config_domain_memballoon_class_init(GVirConfigDomainMemballoonClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainMemballoonPrivate)); } static void gvir_config_domain_memballoon_init(GVirConfigDomainMemballoon *memballoon) { memballoon->priv = GVIR_CONFIG_DOMAIN_MEMBALLOON_GET_PRIVATE(memballoon); } GVirConfigDomainMemballoon *gvir_config_domain_memballoon_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_MEMBALLOON, "memballoon", NULL); return GVIR_CONFIG_DOMAIN_MEMBALLOON(object); } GVirConfigDomainMemballoon *gvir_config_domain_memballoon_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_MEMBALLOON, "memballoon", NULL, xml, error); return GVIR_CONFIG_DOMAIN_MEMBALLOON(object); } void gvir_config_domain_memballoon_set_model(GVirConfigDomainMemballoon *memballoon, GVirConfigDomainMemballoonModel model) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_MEMBALLOON(memballoon)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(memballoon), "model", GVIR_CONFIG_TYPE_DOMAIN_MEMBALLOON_MODEL, model, NULL); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-interface-user.c0000664000000000000000000000535013004340477023471 00000000000000/* * libvirt-gconfig-domain-interface-user.c: libvirt domain interface configuration * * Copyright (C) 2008 Daniel P. Berrange * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange * Author: Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_INTERFACE_USER_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_USER, GVirConfigDomainInterfaceUserPrivate)) struct _GVirConfigDomainInterfaceUserPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainInterfaceUser, gvir_config_domain_interface_user, GVIR_CONFIG_TYPE_DOMAIN_INTERFACE); static void gvir_config_domain_interface_user_class_init(GVirConfigDomainInterfaceUserClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainInterfaceUserPrivate)); } static void gvir_config_domain_interface_user_init(GVirConfigDomainInterfaceUser *iface) { iface->priv = GVIR_CONFIG_DOMAIN_INTERFACE_USER_GET_PRIVATE(iface); } GVirConfigDomainInterfaceUser *gvir_config_domain_interface_user_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_USER, "interface", NULL); gvir_config_object_set_attribute(object, "type", "user", NULL); return GVIR_CONFIG_DOMAIN_INTERFACE_USER(object); } GVirConfigDomainInterfaceUser *gvir_config_domain_interface_user_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_USER, "interface", NULL, xml, error); if (g_strcmp0(gvir_config_object_get_attribute(object, NULL, "type"), "user") != 0) { g_object_unref(G_OBJECT(object)); return NULL; } return GVIR_CONFIG_DOMAIN_INTERFACE_USER(object); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-sound.h0000664000000000000000000000575713004340477021725 00000000000000/* * libvirt-gconfig-domain-sound.h: libvirt domain sound configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_SOUND_H__ #define __LIBVIRT_GCONFIG_DOMAIN_SOUND_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_SOUND (gvir_config_domain_sound_get_type ()) #define GVIR_CONFIG_DOMAIN_SOUND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_SOUND, GVirConfigDomainSound)) #define GVIR_CONFIG_DOMAIN_SOUND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_SOUND, GVirConfigDomainSoundClass)) #define GVIR_CONFIG_IS_DOMAIN_SOUND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_SOUND)) #define GVIR_CONFIG_IS_DOMAIN_SOUND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_SOUND)) #define GVIR_CONFIG_DOMAIN_SOUND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_SOUND, GVirConfigDomainSoundClass)) typedef struct _GVirConfigDomainSound GVirConfigDomainSound; typedef struct _GVirConfigDomainSoundPrivate GVirConfigDomainSoundPrivate; typedef struct _GVirConfigDomainSoundClass GVirConfigDomainSoundClass; struct _GVirConfigDomainSound { GVirConfigDomainDevice parent; GVirConfigDomainSoundPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainSoundClass { GVirConfigDomainDeviceClass parent_class; gpointer padding[20]; }; typedef enum { GVIR_CONFIG_DOMAIN_SOUND_MODEL_SB16, GVIR_CONFIG_DOMAIN_SOUND_MODEL_ES1370, GVIR_CONFIG_DOMAIN_SOUND_MODEL_PCSPK, GVIR_CONFIG_DOMAIN_SOUND_MODEL_AC97, GVIR_CONFIG_DOMAIN_SOUND_MODEL_ICH6 } GVirConfigDomainSoundModel; GType gvir_config_domain_sound_get_type(void); GVirConfigDomainSound *gvir_config_domain_sound_new(void); GVirConfigDomainSound *gvir_config_domain_sound_new_from_xml(const gchar *xml, GError **error); void gvir_config_domain_sound_set_model(GVirConfigDomainSound *sound, GVirConfigDomainSoundModel model); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_SOUND_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-storage-vol-backing-store.h0000664000000000000000000000655513004340477024315 00000000000000/* * libvirt-gconfig-storage-vol-backing-store.c: libvirt storage volume backing store configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_STORAGE_VOL_BACKING_STORE_H__ #define __LIBVIRT_GCONFIG_STORAGE_VOL_BACKING_STORE_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_STORAGE_VOL_BACKING_STORE (gvir_config_storage_vol_backing_store_get_type ()) #define GVIR_CONFIG_STORAGE_VOL_BACKING_STORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_STORAGE_VOL_BACKING_STORE, GVirConfigStorageVolBackingStore)) #define GVIR_CONFIG_STORAGE_VOL_BACKING_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_STORAGE_VOL_BACKING_STORE, GVirConfigStorageVolBackingStoreClass)) #define GVIR_CONFIG_IS_STORAGE_VOL_BACKING_STORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_STORAGE_VOL_BACKING_STORE)) #define GVIR_CONFIG_IS_STORAGE_VOL_BACKING_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_STORAGE_VOL_BACKING_STORE)) #define GVIR_CONFIG_STORAGE_VOL_BACKING_STORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_STORAGE_VOL_BACKING_STORE, GVirConfigStorageVolBackingStoreClass)) typedef struct _GVirConfigStorageVolBackingStore GVirConfigStorageVolBackingStore; typedef struct _GVirConfigStorageVolBackingStorePrivate GVirConfigStorageVolBackingStorePrivate; typedef struct _GVirConfigStorageVolBackingStoreClass GVirConfigStorageVolBackingStoreClass; struct _GVirConfigStorageVolBackingStore { GVirConfigObject parent; GVirConfigStorageVolBackingStorePrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigStorageVolBackingStoreClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; GType gvir_config_storage_vol_backing_store_get_type(void); GVirConfigStorageVolBackingStore *gvir_config_storage_vol_backing_store_new(void); GVirConfigStorageVolBackingStore *gvir_config_storage_vol_backing_store_new_from_xml(const gchar *xml, GError **error); void gvir_config_storage_vol_backing_store_set_format(GVirConfigStorageVolBackingStore *backing_store, const char *format); void gvir_config_storage_vol_backing_store_set_path(GVirConfigStorageVolBackingStore *backing_store, const char *path); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_STORAGE_VOL_BACKING_STORE_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-network.h0000664000000000000000000000466613004340477021017 00000000000000/* * libvirt-gconfig-network.c: libvirt network configuration * * Copyright (C) 2010-2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_NETWORK_H__ #define __LIBVIRT_GCONFIG_NETWORK_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_NETWORK (gvir_config_network_get_type ()) #define GVIR_CONFIG_NETWORK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_NETWORK, GVirConfigNetwork)) #define GVIR_CONFIG_NETWORK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_NETWORK, GVirConfigNetworkClass)) #define GVIR_CONFIG_IS_NETWORK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_NETWORK)) #define GVIR_CONFIG_IS_NETWORK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_NETWORK)) #define GVIR_CONFIG_NETWORK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_NETWORK, GVirConfigNetworkClass)) typedef struct _GVirConfigNetwork GVirConfigNetwork; typedef struct _GVirConfigNetworkPrivate GVirConfigNetworkPrivate; typedef struct _GVirConfigNetworkClass GVirConfigNetworkClass; struct _GVirConfigNetwork { GVirConfigObject parent; GVirConfigNetworkPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigNetworkClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; GType gvir_config_network_get_type(void); GVirConfigNetwork *gvir_config_network_new(void); GVirConfigNetwork *gvir_config_network_new_from_xml(const gchar *xml, GError **error); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_NETWORK_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-storage-vol-target.c0000664000000000000000000000756713004340477023052 00000000000000/* * libvirt-gconfig-storage-vol-target.c: libvirt storage vol target configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_STORAGE_VOL_TARGET_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_STORAGE_VOL_TARGET, GVirConfigStorageVolTargetPrivate)) struct _GVirConfigStorageVolTargetPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigStorageVolTarget, gvir_config_storage_vol_target, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_storage_vol_target_class_init(GVirConfigStorageVolTargetClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigStorageVolTargetPrivate)); } static void gvir_config_storage_vol_target_init(GVirConfigStorageVolTarget *target) { target->priv = GVIR_CONFIG_STORAGE_VOL_TARGET_GET_PRIVATE(target); } GVirConfigStorageVolTarget *gvir_config_storage_vol_target_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_STORAGE_VOL_TARGET, "target", NULL); return GVIR_CONFIG_STORAGE_VOL_TARGET(object); } GVirConfigStorageVolTarget *gvir_config_storage_vol_target_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_STORAGE_VOL_TARGET, "target", NULL, xml, error); return GVIR_CONFIG_STORAGE_VOL_TARGET(object); } void gvir_config_storage_vol_target_set_format(GVirConfigStorageVolTarget *target, const char *format) { GVirConfigObject *node; g_return_if_fail(GVIR_CONFIG_IS_STORAGE_VOL_TARGET(target)); node = gvir_config_object_replace_child(GVIR_CONFIG_OBJECT(target), "format"); g_return_if_fail(GVIR_CONFIG_IS_OBJECT(node)); gvir_config_object_set_attribute(node, "type", format, NULL); g_object_unref(G_OBJECT(node)); } /** * gvir_config_storage_vol_target_set_permissions: * @perms: (allow-none): */ void gvir_config_storage_vol_target_set_permissions(GVirConfigStorageVolTarget *target, GVirConfigStoragePermissions *perms) { g_return_if_fail(GVIR_CONFIG_IS_STORAGE_VOL_TARGET(target)); g_return_if_fail(perms == NULL || GVIR_CONFIG_IS_STORAGE_PERMISSIONS(perms)); gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(target), "permissions", GVIR_CONFIG_OBJECT(perms)); } /** * gvir_config_storage_vol_target_set_compat: * @compat: (allow-none): */ void gvir_config_storage_vol_target_set_compat(GVirConfigStorageVolTarget *target, const char *compat) { g_return_if_fail(GVIR_CONFIG_IS_STORAGE_VOL_TARGET(target)); gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(target), "compat", compat); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain.h0000664000000000000000000001603413004340477020565 00000000000000/* * libvirt-gconfig-domain.h: libvirt domain configuration * * Copyright (C) 2010-2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_H__ #define __LIBVIRT_GCONFIG_DOMAIN_H__ #include #include #include #include #include #include G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN (gvir_config_domain_get_type ()) #define GVIR_CONFIG_DOMAIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN, GVirConfigDomain)) #define GVIR_CONFIG_DOMAIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN, GVirConfigDomainClass)) #define GVIR_CONFIG_IS_DOMAIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN)) #define GVIR_CONFIG_IS_DOMAIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN)) #define GVIR_CONFIG_DOMAIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN, GVirConfigDomainClass)) typedef struct _GVirConfigDomain GVirConfigDomain; typedef struct _GVirConfigDomainPrivate GVirConfigDomainPrivate; typedef struct _GVirConfigDomainClass GVirConfigDomainClass; struct _GVirConfigDomain { GVirConfigObject parent; GVirConfigDomainPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; typedef enum { GVIR_CONFIG_DOMAIN_VIRT_QEMU, GVIR_CONFIG_DOMAIN_VIRT_KQEMU, GVIR_CONFIG_DOMAIN_VIRT_KVM, GVIR_CONFIG_DOMAIN_VIRT_XEN, GVIR_CONFIG_DOMAIN_VIRT_LXC, GVIR_CONFIG_DOMAIN_VIRT_UML, GVIR_CONFIG_DOMAIN_VIRT_OPENVZ, GVIR_CONFIG_DOMAIN_VIRT_VSERVER, GVIR_CONFIG_DOMAIN_VIRT_LDOM, GVIR_CONFIG_DOMAIN_VIRT_TEST, GVIR_CONFIG_DOMAIN_VIRT_VMWARE, GVIR_CONFIG_DOMAIN_VIRT_HYPERV, GVIR_CONFIG_DOMAIN_VIRT_VBOX, GVIR_CONFIG_DOMAIN_VIRT_ONE, GVIR_CONFIG_DOMAIN_VIRT_PHYP } GVirConfigDomainVirtType; typedef enum { GVIR_CONFIG_DOMAIN_LIFECYCLE_ON_POWEROFF, /*< nick=on_poweroff >*/ GVIR_CONFIG_DOMAIN_LIFECYCLE_ON_REBOOT, /*< nick=on_reboot >*/ GVIR_CONFIG_DOMAIN_LIFECYCLE_ON_CRASH /*< nick=on_crash >*/ } GVirConfigDomainLifecycleEvent; typedef enum { GVIR_CONFIG_DOMAIN_LIFECYCLE_DESTROY, GVIR_CONFIG_DOMAIN_LIFECYCLE_RESTART, GVIR_CONFIG_DOMAIN_LIFECYCLE_PRESERVE, GVIR_CONFIG_DOMAIN_LIFECYCLE_RENAME_RESTART, GVIR_CONFIG_DOMAIN_LIFECYCLE_COREDUMP_DESTROY, GVIR_CONFIG_DOMAIN_LIFECYCLE_COREDUMP_RESTART } GVirConfigDomainLifecycleAction; GType gvir_config_domain_get_type(void); GVirConfigDomain *gvir_config_domain_new_from_xml(const gchar *xml, GError **error); GVirConfigDomain *gvir_config_domain_new(void); GVirConfigDomainVirtType gvir_config_domain_get_virt_type(GVirConfigDomain *domain); void gvir_config_domain_set_virt_type(GVirConfigDomain *domain, GVirConfigDomainVirtType type); const char *gvir_config_domain_get_name(GVirConfigDomain *domain); void gvir_config_domain_set_name(GVirConfigDomain *domain, const char *name); const char *gvir_config_domain_get_uuid(GVirConfigDomain *domain); void gvir_config_domain_set_uuid(GVirConfigDomain *domain, const char *uuid); const char *gvir_config_domain_get_description(GVirConfigDomain *domain); void gvir_config_domain_set_description(GVirConfigDomain *domain, const char *description); guint64 gvir_config_domain_get_memory(GVirConfigDomain *domain); void gvir_config_domain_set_memory(GVirConfigDomain *domain, guint64 memory); guint64 gvir_config_domain_get_current_memory(GVirConfigDomain *domain); void gvir_config_domain_set_current_memory(GVirConfigDomain *domain, guint64 memory); guint64 gvir_config_domain_get_vcpus(GVirConfigDomain *domain); void gvir_config_domain_set_vcpus(GVirConfigDomain *domain, guint64 vcpu_count); GStrv gvir_config_domain_get_features(GVirConfigDomain *domain); void gvir_config_domain_set_features(GVirConfigDomain *domain, const GStrv features); GVirConfigDomainClock *gvir_config_domain_get_clock(GVirConfigDomain *domain); void gvir_config_domain_set_clock(GVirConfigDomain *domain, GVirConfigDomainClock *klock); GVirConfigDomainOs *gvir_config_domain_get_os(GVirConfigDomain *domain); void gvir_config_domain_set_os(GVirConfigDomain *domain, GVirConfigDomainOs *os); void gvir_config_domain_set_seclabel(GVirConfigDomain *domain, GVirConfigDomainSeclabel *seclabel); const char *gvir_config_domain_get_title(GVirConfigDomain *domain); void gvir_config_domain_set_title(GVirConfigDomain *domain, const char *title); void gvir_config_domain_set_devices(GVirConfigDomain *domain, GList *devices); void gvir_config_domain_add_device(GVirConfigDomain *domain, GVirConfigDomainDevice *device); GList *gvir_config_domain_get_devices(GVirConfigDomain *domain); void gvir_config_domain_set_lifecycle(GVirConfigDomain *domain, GVirConfigDomainLifecycleEvent event, GVirConfigDomainLifecycleAction action); gboolean gvir_config_domain_set_custom_xml(GVirConfigDomain *domain, const gchar *xml, const gchar *ns, const gchar *ns_uri, GError **error); gchar *gvir_config_domain_get_custom_xml(GVirConfigDomain *domain, const gchar *ns_uri); GVirConfigDomainCpu *gvir_config_domain_get_cpu(GVirConfigDomain *domain); void gvir_config_domain_set_cpu(GVirConfigDomain *domain, GVirConfigDomainCpu *cpu); void gvir_config_domain_set_power_management(GVirConfigDomain *domain, GVirConfigDomainPowerManagement *pm); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-controller.c0000664000000000000000000001047013004340477022737 00000000000000/* * libvirt-gconfig-domain-controller.c: libvirt domain controller configuration * * Copyright (C) 2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_CONTROLLER_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_CONTROLLER, GVirConfigDomainControllerPrivate)) struct _GVirConfigDomainControllerPrivate { gboolean unused; }; G_DEFINE_ABSTRACT_TYPE(GVirConfigDomainController, gvir_config_domain_controller, GVIR_CONFIG_TYPE_DOMAIN_DEVICE); static void gvir_config_domain_controller_class_init(GVirConfigDomainControllerClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainControllerPrivate)); } static void gvir_config_domain_controller_init(GVirConfigDomainController *controller) { controller->priv = GVIR_CONFIG_DOMAIN_CONTROLLER_GET_PRIVATE(controller); } G_GNUC_INTERNAL GVirConfigDomainDevice * gvir_config_domain_controller_new_from_tree(GVirConfigXmlDoc *doc, xmlNodePtr tree) { const char *type; GType gtype; type = gvir_config_xml_get_attribute_content(tree, "type"); if (type == NULL) return NULL; if (g_str_equal(type, "ide")) { goto unimplemented; } else if (g_str_equal(type, "fdc")) { goto unimplemented; } else if (g_str_equal(type, "scsi")) { goto unimplemented; } else if (g_str_equal(type, "sata")) { goto unimplemented; } else if (g_str_equal(type, "usb")) { gtype = GVIR_CONFIG_TYPE_DOMAIN_CONTROLLER_USB;; } else if (g_str_equal(type, "ccid")) { goto unimplemented; } else if (g_str_equal(type, "virtio-serial")) { goto unimplemented; } else { g_debug("Unknown domain controller node: %s", type); return NULL; } return GVIR_CONFIG_DOMAIN_DEVICE(gvir_config_object_new_from_tree(gtype, doc, NULL, tree)); unimplemented: g_debug("Parsing of '%s' domain controller nodes is unimplemented", type); return NULL; } void gvir_config_domain_controller_set_index(GVirConfigDomainController *controller, guint index) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_CONTROLLER(controller)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(controller), "index", G_TYPE_UINT, index, NULL); } guint gvir_config_domain_controller_get_index(GVirConfigDomainController *controller) { const char *index_str; char *end; guint index; g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_CONTROLLER(controller), 0); index_str = gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(controller), NULL, "index"); if (index_str == 0) return 0; index = strtoul(index_str, &end, 0); g_return_val_if_fail(*end == '\0', 0); return index; } /** * gvir_config_domain_controller_set_address: * @address: (allow-none): */ void gvir_config_domain_controller_set_address(GVirConfigDomainController *controller, GVirConfigDomainAddress *address) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_CONTROLLER(controller)); g_return_if_fail(address == NULL || GVIR_CONFIG_IS_DOMAIN_ADDRESS(address)); gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(controller), "address", GVIR_CONFIG_OBJECT(address)); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-xml-doc.c0000664000000000000000000001004313004340477020646 00000000000000/* * libvirt-gconfig-xml-doc.c: libvirt XML document management * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #include #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-xml-doc.h" extern gboolean debugFlag; #define GVIR_CONFIG_XML_DOC_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_XML_DOC, GVirConfigXmlDocPrivate)) struct _GVirConfigXmlDocPrivate { xmlDocPtr doc; }; G_DEFINE_TYPE(GVirConfigXmlDoc, gvir_config_xml_doc, G_TYPE_OBJECT); enum { PROP_0, PROP_DOC }; static void gvir_config_xml_doc_get_property(GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) { GVirConfigXmlDoc *xml_doc = GVIR_CONFIG_XML_DOC(object); switch (prop_id) { case PROP_DOC: g_value_set_pointer(value, xml_doc->priv->doc); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec); } } static void gvir_config_xml_doc_set_property(GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) { GVirConfigXmlDoc *doc = GVIR_CONFIG_XML_DOC(object); switch (prop_id) { case PROP_DOC: doc->priv->doc = g_value_get_pointer(value); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec); } } static void gvir_config_xml_doc_finalize(GObject *object) { GVirConfigXmlDoc *doc = GVIR_CONFIG_XML_DOC(object); GVirConfigXmlDocPrivate *priv = doc->priv; xmlFreeDoc(priv->doc); G_OBJECT_CLASS(gvir_config_xml_doc_parent_class)->finalize(object); } static void gvir_config_xml_doc_class_init(GVirConfigXmlDocClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS(klass); g_type_class_add_private(klass, sizeof(GVirConfigXmlDocPrivate)); object_class->finalize = gvir_config_xml_doc_finalize; object_class->get_property = gvir_config_xml_doc_get_property; object_class->set_property = gvir_config_xml_doc_set_property; g_object_class_install_property(object_class, PROP_DOC, g_param_spec_pointer("doc", "XML Doc", "The XML doc this config object corresponds to", G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); } static void gvir_config_xml_doc_init(GVirConfigXmlDoc *xml_doc) { GVirConfigXmlDocPrivate *priv; priv = xml_doc->priv = GVIR_CONFIG_XML_DOC_GET_PRIVATE(xml_doc); memset(priv, 0, sizeof(*priv)); } GVirConfigXmlDoc *gvir_config_xml_doc_new(xmlDocPtr doc) { if (doc == NULL) { doc = xmlNewDoc((xmlChar *)"1.0"); } return GVIR_CONFIG_XML_DOC(g_object_new(GVIR_CONFIG_TYPE_XML_DOC, "doc", doc, NULL)); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-video.h0000664000000000000000000000742513004340477021675 00000000000000/* * libvirt-gconfig-domain-video.h: libvirt domain video configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_VIDEO_H__ #define __LIBVIRT_GCONFIG_DOMAIN_VIDEO_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_VIDEO (gvir_config_domain_video_get_type ()) #define GVIR_CONFIG_DOMAIN_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_VIDEO, GVirConfigDomainVideo)) #define GVIR_CONFIG_DOMAIN_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_VIDEO, GVirConfigDomainVideoClass)) #define GVIR_CONFIG_IS_DOMAIN_VIDEO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_VIDEO)) #define GVIR_CONFIG_IS_DOMAIN_VIDEO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_VIDEO)) #define GVIR_CONFIG_DOMAIN_VIDEO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_VIDEO, GVirConfigDomainVideoClass)) typedef struct _GVirConfigDomainVideo GVirConfigDomainVideo; typedef struct _GVirConfigDomainVideoPrivate GVirConfigDomainVideoPrivate; typedef struct _GVirConfigDomainVideoClass GVirConfigDomainVideoClass; struct _GVirConfigDomainVideo { GVirConfigDomainDevice parent; GVirConfigDomainVideoPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainVideoClass { GVirConfigDomainDeviceClass parent_class; gpointer padding[20]; }; typedef enum { GVIR_CONFIG_DOMAIN_VIDEO_MODEL_VGA, GVIR_CONFIG_DOMAIN_VIDEO_MODEL_CIRRUS, GVIR_CONFIG_DOMAIN_VIDEO_MODEL_VMVGA, GVIR_CONFIG_DOMAIN_VIDEO_MODEL_XEN, GVIR_CONFIG_DOMAIN_VIDEO_MODEL_VBOX, GVIR_CONFIG_DOMAIN_VIDEO_MODEL_QXL, GVIR_CONFIG_DOMAIN_VIDEO_MODEL_VIRTIO } GVirConfigDomainVideoModel; GType gvir_config_domain_video_get_type(void); GVirConfigDomainVideo *gvir_config_domain_video_new(void); GVirConfigDomainVideo *gvir_config_domain_video_new_from_xml(const gchar *xml, GError **error); GVirConfigDomainVideoModel gvir_config_domain_video_get_model(GVirConfigDomainVideo *video); void gvir_config_domain_video_set_model(GVirConfigDomainVideo *video, GVirConfigDomainVideoModel model); void gvir_config_domain_video_set_vram(GVirConfigDomainVideo *video, guint kbytes); void gvir_config_domain_video_set_ram(GVirConfigDomainVideo *video, guint kbytes); void gvir_config_domain_video_set_vgamem(GVirConfigDomainVideo *video, guint kbytes); void gvir_config_domain_video_set_heads(GVirConfigDomainVideo *video, guint head_count); void gvir_config_domain_video_set_accel3d(GVirConfigDomainVideo *video, gboolean accel3d); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_VIDEO_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-smartcard.c0000664000000000000000000000605313004340477022536 00000000000000/* * libvirt-gconfig-domain-smartcard.c: libvirt domain smartcard configuration * * Copyright (C) 2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Alexander Larsson */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_SMARTCARD_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD, GVirConfigDomainSmartcardPrivate)) struct _GVirConfigDomainSmartcardPrivate { gboolean unused; }; G_DEFINE_ABSTRACT_TYPE(GVirConfigDomainSmartcard, gvir_config_domain_smartcard, GVIR_CONFIG_TYPE_DOMAIN_DEVICE); static void gvir_config_domain_smartcard_class_init(GVirConfigDomainSmartcardClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainSmartcardPrivate)); } static void gvir_config_domain_smartcard_init(GVirConfigDomainSmartcard *smartcard) { smartcard->priv = GVIR_CONFIG_DOMAIN_SMARTCARD_GET_PRIVATE(smartcard); } /** * gvir_config_domain_smartcard_set_address: * @address: (allow-none): */ void gvir_config_domain_smartcard_set_address(GVirConfigDomainRedirdev *redirdev, GVirConfigDomainAddress *address) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_REDIRDEV(redirdev)); g_return_if_fail(address == NULL || GVIR_CONFIG_IS_DOMAIN_ADDRESS(address)); gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(redirdev), "address", GVIR_CONFIG_OBJECT(address)); } G_GNUC_INTERNAL GVirConfigDomainDevice * gvir_config_domain_smartcard_new_from_tree(GVirConfigXmlDoc *doc, xmlNodePtr tree) { const char *mode; GType gtype; mode = gvir_config_xml_get_attribute_content(tree, "mode"); if (mode == NULL) return NULL; if (g_str_equal(mode, "host")) { gtype = GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD_HOST; } else if (g_str_equal(mode, "host-certificates")) { gtype = GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD_HOST_CERTIFICATES; } else if (g_str_equal(mode, "passthrough")) { gtype = GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD_PASSTHROUGH; } else { g_debug("Unknown domain smartcard node: %s", mode); return NULL; } return GVIR_CONFIG_DOMAIN_DEVICE(gvir_config_object_new_from_tree(gtype, doc, NULL, tree)); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-snapshot-disk.c0000664000000000000000000001500313004340477023340 00000000000000/* * libvirt-gconfig-secret.c: libvirt secret configuration * * Copyright (C) 2008 Daniel P. Berrange * Copyright (C) 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_SNAPSHOT_DISK_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_SNAPSHOT_DISK, GVirConfigDomainSnapshotDiskPrivate)) struct _GVirConfigDomainSnapshotDiskPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainSnapshotDisk, gvir_config_domain_snapshot_disk, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_domain_snapshot_disk_class_init(GVirConfigDomainSnapshotDiskClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainSnapshotDiskPrivate)); } static void gvir_config_domain_snapshot_disk_init(GVirConfigDomainSnapshotDisk *disk) { disk->priv = GVIR_CONFIG_DOMAIN_SNAPSHOT_DISK_GET_PRIVATE(disk); } GVirConfigDomainSnapshotDisk *gvir_config_domain_snapshot_disk_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_SNAPSHOT_DISK, "disk", DATADIR "/libvirt/schemas/domainsnapshot.rng"); return GVIR_CONFIG_DOMAIN_SNAPSHOT_DISK(object); } GVirConfigDomainSnapshotDisk *gvir_config_domain_snapshot_disk_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_SNAPSHOT_DISK, "disk", DATADIR "/libvirt/schemas/domainsnapshot.rng", xml, error); return GVIR_CONFIG_DOMAIN_SNAPSHOT_DISK(object); } GVirConfigDomainSnapshotDisk * gvir_config_domain_snapshot_disk_new_from_tree(GVirConfigXmlDoc *doc, xmlNodePtr tree) { GVirConfigObject *object; object = gvir_config_object_new_from_tree(GVIR_CONFIG_TYPE_DOMAIN_SNAPSHOT_DISK, doc, NULL, tree); return GVIR_CONFIG_DOMAIN_SNAPSHOT_DISK(object); } const char *gvir_config_domain_snapshot_disk_get_name(GVirConfigDomainSnapshotDisk *disk) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_SNAPSHOT_DISK(disk), NULL); return gvir_config_object_get_node_content(GVIR_CONFIG_OBJECT(disk), "name"); } void gvir_config_domain_snapshot_disk_set_name(GVirConfigDomainSnapshotDisk *disk, const char *name) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_SNAPSHOT_DISK(disk)); gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(disk), "name", name); } GVirConfigDomainDiskSnapshotType gvir_config_domain_snapshot_disk_get_snapshot_type(GVirConfigDomainSnapshotDisk *disk) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_SNAPSHOT_DISK(disk), GVIR_CONFIG_DOMAIN_DISK_SNAPSHOT_NO); return gvir_config_object_get_attribute_genum(GVIR_CONFIG_OBJECT(disk), NULL, "snapshot", GVIR_CONFIG_TYPE_DOMAIN_DISK_SNAPSHOT_TYPE, GVIR_CONFIG_DOMAIN_DISK_SNAPSHOT_NO); } void gvir_config_domain_snapshot_disk_set_snapshot_type(GVirConfigDomainSnapshotDisk *disk, GVirConfigDomainDiskSnapshotType type) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_SNAPSHOT_DISK(disk)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(disk), "snapshot", GVIR_CONFIG_TYPE_DOMAIN_DISK_SNAPSHOT_TYPE, type, NULL); } const char *gvir_config_domain_snapshot_disk_get_source_file(GVirConfigDomainSnapshotDisk *disk) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_SNAPSHOT_DISK(disk), NULL); return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(disk), "source", "file"); } void gvir_config_domain_snapshot_disk_set_source_file(GVirConfigDomainSnapshotDisk *disk, const char *filename) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_SNAPSHOT_DISK(disk)); gvir_config_object_add_child_with_attribute(GVIR_CONFIG_OBJECT(disk), "source", "file", filename); } GVirConfigDomainDiskFormat gvir_config_domain_snapshot_disk_get_driver_format(GVirConfigDomainSnapshotDisk *disk) { g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_SNAPSHOT_DISK(disk), GVIR_CONFIG_DOMAIN_DISK_FORMAT_RAW); return gvir_config_object_get_attribute_genum(GVIR_CONFIG_OBJECT(disk), "driver", "type", GVIR_CONFIG_TYPE_DOMAIN_DISK_FORMAT, GVIR_CONFIG_DOMAIN_DISK_FORMAT_RAW); } void gvir_config_domain_snapshot_disk_set_driver_format(GVirConfigDomainSnapshotDisk *disk, GVirConfigDomainDiskFormat format) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_SNAPSHOT_DISK(disk)); gvir_config_object_add_child_with_attribute_enum(GVIR_CONFIG_OBJECT(disk), "driver", "type", GVIR_CONFIG_TYPE_DOMAIN_DISK_FORMAT, format); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-cpu-private.h0000664000000000000000000000234513004340477024204 00000000000000/* * libvirt-gconfig-capabilities-cpu-private.h: libvirt CPU capabilities * * Copyright (C) 2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Zeeshan Ali (Khattak) */ #ifndef __LIBVIRT_GCONFIG_CAPABILITIES_CPU_PRIVATE_H__ #define __LIBVIRT_GCONFIG_CAPABILITIES_CPU_PRIVATE_H__ G_BEGIN_DECLS #include GList * gvir_config_capabilities_cpu_get_features_with_type(GVirConfigCapabilitiesCpu *cpu, GType type); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_CAPABILITIES_CPU_PRIVATE_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-graphics.c0000664000000000000000000000515613004340477022361 00000000000000/* * libvirt-gconfig-domain-graphics.c: libvirt domain graphics configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_GRAPHICS_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS, GVirConfigDomainGraphicsPrivate)) struct _GVirConfigDomainGraphicsPrivate { gboolean unused; }; G_DEFINE_ABSTRACT_TYPE(GVirConfigDomainGraphics, gvir_config_domain_graphics, GVIR_CONFIG_TYPE_DOMAIN_DEVICE); static void gvir_config_domain_graphics_class_init(GVirConfigDomainGraphicsClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainGraphicsPrivate)); } static void gvir_config_domain_graphics_init(GVirConfigDomainGraphics *graphics) { graphics->priv = GVIR_CONFIG_DOMAIN_GRAPHICS_GET_PRIVATE(graphics); } G_GNUC_INTERNAL GVirConfigDomainDevice * gvir_config_domain_graphics_new_from_tree(GVirConfigXmlDoc *doc, xmlNodePtr tree) { const char *type; GType gtype; type = gvir_config_xml_get_attribute_content(tree, "type"); if (type == NULL) return NULL; if (g_str_equal(type, "sdl")) { gtype = GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_SDL; } else if (g_str_equal(type, "vnc")) { gtype = GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_VNC; } else if (g_str_equal(type, "spice")) { gtype = GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_SPICE; } else if (g_str_equal(type, "rdp")) { gtype = GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_RDP; } else if (g_str_equal(type, "desktop")) { gtype = GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_DESKTOP; } else { g_debug("Unknown graphics node: %s", type); return NULL; } return GVIR_CONFIG_DOMAIN_DEVICE(gvir_config_object_new_from_tree(gtype, doc, NULL, tree)); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-hostdev-pci.h0000664000000000000000000000752013004340477023010 00000000000000/* * libvirt-gconfig-domain-hostdev.h: libvirt domain hostdev configuration * * Copyright (C) 2016 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Zeeshan Ali (Khattak) * Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_HOSTDEV_PCI_H__ #define __LIBVIRT_GCONFIG_DOMAIN_HOSTDEV_PCI_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_HOSTDEV_PCI (gvir_config_domain_hostdev_pci_get_type ()) #define GVIR_CONFIG_DOMAIN_HOSTDEV_PCI(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_HOSTDEV_PCI, GVirConfigDomainHostdevPci)) #define GVIR_CONFIG_DOMAIN_HOSTDEV_PCI_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_HOSTDEV_PCI, GVirConfigDomainHostdevPciClass)) #define GVIR_CONFIG_IS_DOMAIN_HOSTDEV_PCI(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_HOSTDEV_PCI)) #define GVIR_CONFIG_IS_DOMAIN_HOSTDEV_PCI_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_HOSTDEV_PCI)) #define GVIR_CONFIG_DOMAIN_HOSTDEV_PCI_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_HOSTDEV_PCI, GVirConfigDomainHostdevPciClass)) typedef struct _GVirConfigDomainHostdevPci GVirConfigDomainHostdevPci; typedef struct _GVirConfigDomainHostdevPciPrivate GVirConfigDomainHostdevPciPrivate; typedef struct _GVirConfigDomainHostdevPciClass GVirConfigDomainHostdevPciClass; struct _GVirConfigDomainHostdevPci { GVirConfigDomainHostdev parent; GVirConfigDomainHostdevPciPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainHostdevPciClass { GVirConfigDomainHostdevClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_hostdev_pci_get_type(void); GVirConfigDomainHostdevPci *gvir_config_domain_hostdev_pci_new(void); GVirConfigDomainHostdevPci *gvir_config_domain_hostdev_pci_new_from_xml(const gchar *xml, GError **error); void gvir_config_domain_hostdev_pci_set_address(GVirConfigDomainHostdevPci *hostdev, GVirConfigDomainAddressPci *address); GVirConfigDomainAddressPci *gvir_config_domain_hostdev_pci_get_address(GVirConfigDomainHostdevPci *hostdev); void gvir_config_domain_hostdev_pci_set_managed(GVirConfigDomainHostdevPci *hostdev, gboolean managed); gboolean gvir_config_domain_hostdev_pci_get_managed(GVirConfigDomainHostdevPci *hostdev); void gvir_config_domain_hostdev_pci_set_rom_file(GVirConfigDomainHostdevPci *hostdev, const gchar *file); const gchar *gvir_config_domain_hostdev_pci_get_rom_file(GVirConfigDomainHostdevPci *hostdev); void gvir_config_domain_hostdev_pci_set_rom_bar(GVirConfigDomainHostdevPci *hostdev, gboolean bar); gboolean gvir_config_domain_hostdev_pci_get_rom_bar(GVirConfigDomainHostdevPci *hostdev); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_HOSTDEV_PCI_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-address.c0000664000000000000000000000316213004340477022201 00000000000000/* * libvirt-gconfig-domain-address.c: libvirt domain address configuration * * Copyright (C) 2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_ADDRESS_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_ADDRESS, GVirConfigDomainAddressPrivate)) struct _GVirConfigDomainAddressPrivate { gboolean unused; }; G_DEFINE_ABSTRACT_TYPE(GVirConfigDomainAddress, gvir_config_domain_address, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_domain_address_class_init(GVirConfigDomainAddressClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainAddressPrivate)); } static void gvir_config_domain_address_init(GVirConfigDomainAddress *address) { address->priv = GVIR_CONFIG_DOMAIN_ADDRESS_GET_PRIVATE(address); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-input.h0000664000000000000000000000663713004340477021732 00000000000000/* * libvirt-gconfig-domain-input.c: libvirt domain input configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_INPUT_H__ #define __LIBVIRT_GCONFIG_DOMAIN_INPUT_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_INPUT (gvir_config_domain_input_get_type ()) #define GVIR_CONFIG_DOMAIN_INPUT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_INPUT, GVirConfigDomainInput)) #define GVIR_CONFIG_DOMAIN_INPUT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_INPUT, GVirConfigDomainInputClass)) #define GVIR_CONFIG_IS_DOMAIN_INPUT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_INPUT)) #define GVIR_CONFIG_IS_DOMAIN_INPUT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_INPUT)) #define GVIR_CONFIG_DOMAIN_INPUT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_INPUT, GVirConfigDomainInputClass)) typedef struct _GVirConfigDomainInput GVirConfigDomainInput; typedef struct _GVirConfigDomainInputPrivate GVirConfigDomainInputPrivate; typedef struct _GVirConfigDomainInputClass GVirConfigDomainInputClass; struct _GVirConfigDomainInput { GVirConfigDomainDevice parent; GVirConfigDomainInputPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainInputClass { GVirConfigDomainDeviceClass parent_class; gpointer padding[20]; }; typedef enum { GVIR_CONFIG_DOMAIN_INPUT_DEVICE_MOUSE, GVIR_CONFIG_DOMAIN_INPUT_DEVICE_TABLET, GVIR_CONFIG_DOMAIN_INPUT_DEVICE_KEYBOARD } GVirConfigDomainInputDeviceType; typedef enum { GVIR_CONFIG_DOMAIN_INPUT_BUS_PS2, GVIR_CONFIG_DOMAIN_INPUT_BUS_USB, GVIR_CONFIG_DOMAIN_INPUT_BUS_XEN } GVirConfigDomainInputBus; GType gvir_config_domain_input_get_type(void); GVirConfigDomainInput *gvir_config_domain_input_new(void); GVirConfigDomainInput *gvir_config_domain_input_new_from_xml(const gchar *xml, GError **error); GVirConfigDomainInputDeviceType gvir_config_domain_input_get_device_type(GVirConfigDomainInput *input); void gvir_config_domain_input_set_device_type(GVirConfigDomainInput *input, GVirConfigDomainInputDeviceType type); GVirConfigDomainInputBus gvir_config_domain_input_get_bus(GVirConfigDomainInput *input); void gvir_config_domain_input_set_bus(GVirConfigDomainInput *input, GVirConfigDomainInputBus bus); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_INPUT_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-object-private.h0000664000000000000000000001643513004340477022241 00000000000000/* * libvirt-gconfig-object-private.h: base object for XML configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #ifndef __LIBVIRT_GCONFIG_OBJECT_PRIVATE_H__ #define __LIBVIRT_GCONFIG_OBJECT_PRIVATE_H__ G_BEGIN_DECLS #include GVirConfigObject *gvir_config_object_new_from_tree(GType type, GVirConfigXmlDoc *doc, const char *schema, xmlNodePtr tree); GVirConfigXmlDoc *gvir_config_object_get_xml_doc(GVirConfigObject *config); xmlNodePtr gvir_config_object_get_xml_node(GVirConfigObject *config); const char *gvir_config_object_get_node_content(GVirConfigObject *object, const char *node_name); guint64 gvir_config_object_get_node_content_uint64(GVirConfigObject *object, const char *node_name); gint gvir_config_object_get_node_content_genum(GVirConfigObject *object, const char *node_name, GType enum_type, gint default_value); const char *gvir_config_object_get_attribute(GVirConfigObject *object, const char *node_name, const char *attr_name); guint64 gvir_config_object_get_attribute_uint64(GVirConfigObject *object, const char *node_name, const char *attr_name, guint64 default_value); gint gvir_config_object_get_attribute_genum(GVirConfigObject *object, const char *node_name, const char *attr_name, GType enum_type, gint default_value); gboolean gvir_config_object_get_attribute_boolean(GVirConfigObject *object, const char *node_name, const char *attr_name, gboolean default_value); void gvir_config_object_set_node_content(GVirConfigObject *object, const char *node_name, const char *value); void gvir_config_object_set_node_content_uint64(GVirConfigObject *object, const char *node_name, guint64 value); GVirConfigObject *gvir_config_object_add_child(GVirConfigObject *object, const char *child_name); void gvir_config_object_add_child_with_attribute(GVirConfigObject *object, const char *child_name, const char *attr_name, const char *attr_value); void gvir_config_object_add_child_with_attribute_enum(GVirConfigObject *object, const char *child_name, const char *attr_name, GType attr_type, unsigned int attr_value); GVirConfigObject *gvir_config_object_replace_child(GVirConfigObject *object, const char *child_name); void gvir_config_object_replace_child_with_attribute(GVirConfigObject *object, const char *child_name, const char *attr_name, const char *attr_value); void gvir_config_object_replace_child_with_attribute_enum(GVirConfigObject *object, const char *child_name, const char *attr_name, GType attr_type, unsigned int attr_value); void gvir_config_object_delete_child(GVirConfigObject *object, const char *child_name, const char *ns_href); void gvir_config_object_delete_children(GVirConfigObject *object, const char *child_name, const char *ns_href); void gvir_config_object_set_child(GVirConfigObject *object, xmlNodePtr child); void gvir_config_object_attach_add(GVirConfigObject *parent, GVirConfigObject *child); void gvir_config_object_attach_replace(GVirConfigObject *parent, const char *child_name, GVirConfigObject *child); void gvir_config_object_set_attribute(GVirConfigObject *object, ...) G_GNUC_NULL_TERMINATED; void gvir_config_object_set_attribute_with_type(GVirConfigObject *object, ...) G_GNUC_NULL_TERMINATED; void gvir_config_object_remove_attribute(GVirConfigObject *object, const char *attr_name); void gvir_config_object_foreach_child(GVirConfigObject *object, const char *parent_name, GVirConfigXmlNodeIterator iter_func, gpointer opaque); gboolean gvir_config_object_set_namespace(GVirConfigObject *object, const char *ns, const char *ns_uri); GVirConfigObject *gvir_config_object_get_child(GVirConfigObject *object, const gchar *child_name); GVirConfigObject *gvir_config_object_get_child_with_type(GVirConfigObject *object, const gchar *child_name, GType child_type); gboolean gvir_config_object_has_child(GVirConfigObject *object, const gchar *child_name); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_OBJECT_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-interface-network.c0000664000000000000000000000631413004340477024205 00000000000000/* * libvirt-gconfig-domain-interface-network.c: libvirt domain interface configuration * * Copyright (C) 2008 Daniel P. Berrange * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange * Author: Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_INTERFACE_NETWORK_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_NETWORK, GVirConfigDomainInterfaceNetworkPrivate)) struct _GVirConfigDomainInterfaceNetworkPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainInterfaceNetwork, gvir_config_domain_interface_network, GVIR_CONFIG_TYPE_DOMAIN_INTERFACE); static void gvir_config_domain_interface_network_class_init(GVirConfigDomainInterfaceNetworkClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainInterfaceNetworkPrivate)); } static void gvir_config_domain_interface_network_init(GVirConfigDomainInterfaceNetwork *iface) { iface->priv = GVIR_CONFIG_DOMAIN_INTERFACE_NETWORK_GET_PRIVATE(iface); } GVirConfigDomainInterfaceNetwork *gvir_config_domain_interface_network_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_NETWORK, "interface", NULL); gvir_config_object_set_attribute(object, "type", "network", NULL); return GVIR_CONFIG_DOMAIN_INTERFACE_NETWORK(object); } GVirConfigDomainInterfaceNetwork *gvir_config_domain_interface_network_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_NETWORK, "interface", NULL, xml, error); if (g_strcmp0(gvir_config_object_get_attribute(object, NULL, "type"), "network") != 0) { g_object_unref(G_OBJECT(object)); return NULL; } return GVIR_CONFIG_DOMAIN_INTERFACE_NETWORK(object); } void gvir_config_domain_interface_network_set_source(GVirConfigDomainInterfaceNetwork *interface, const char *source) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_INTERFACE_NETWORK(interface)); gvir_config_object_replace_child_with_attribute(GVIR_CONFIG_OBJECT(interface), "source", "network", source); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-host-secmodel.c0000664000000000000000000000441313004340477024504 00000000000000/* * libvirt-gconfig-capabilities-host-secmodel.c: libvirt security model capabilities * * Copyright (C) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Cédric Bosdonnat */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_CAPABILITIES_HOST_SECMODEL_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_CAPABILITIES_HOST_SECMODEL, GVirConfigCapabilitiesHostSecModelPrivate)) struct _GVirConfigCapabilitiesHostSecModelPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigCapabilitiesHostSecModel, gvir_config_capabilities_host_secmodel, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_capabilities_host_secmodel_class_init(GVirConfigCapabilitiesHostSecModelClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigCapabilitiesHostSecModelPrivate)); } static void gvir_config_capabilities_host_secmodel_init(GVirConfigCapabilitiesHostSecModel *secmodel) { secmodel->priv = GVIR_CONFIG_CAPABILITIES_HOST_SECMODEL_GET_PRIVATE(secmodel); } const gchar * gvir_config_capabilities_host_secmodel_get_model(GVirConfigCapabilitiesHostSecModel *secmodel) { return gvir_config_object_get_node_content(GVIR_CONFIG_OBJECT(secmodel), "model"); } const gchar * gvir_config_capabilities_host_secmodel_get_doi(GVirConfigCapabilitiesHostSecModel *secmodel) { return gvir_config_object_get_node_content(GVIR_CONFIG_OBJECT(secmodel), "doi"); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-disk.h0000664000000000000000000001641613004340477021521 00000000000000/* * libvirt-gconfig-domain-disk.h: libvirt domain disk configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_DISK_H__ #define __LIBVIRT_GCONFIG_DOMAIN_DISK_H__ G_BEGIN_DECLS #include #define GVIR_CONFIG_TYPE_DOMAIN_DISK (gvir_config_domain_disk_get_type ()) #define GVIR_CONFIG_DOMAIN_DISK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_DISK, GVirConfigDomainDisk)) #define GVIR_CONFIG_DOMAIN_DISK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_DISK, GVirConfigDomainDiskClass)) #define GVIR_CONFIG_IS_DOMAIN_DISK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_DISK)) #define GVIR_CONFIG_IS_DOMAIN_DISK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_DISK)) #define GVIR_CONFIG_DOMAIN_DISK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_DISK, GVirConfigDomainDiskClass)) typedef struct _GVirConfigDomainDisk GVirConfigDomainDisk; typedef struct _GVirConfigDomainDiskPrivate GVirConfigDomainDiskPrivate; typedef struct _GVirConfigDomainDiskClass GVirConfigDomainDiskClass; struct _GVirConfigDomainDisk { GVirConfigDomainDevice parent; GVirConfigDomainDiskPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainDiskClass { GVirConfigDomainDeviceClass parent_class; gpointer padding[20]; }; typedef enum { GVIR_CONFIG_DOMAIN_DISK_FILE, GVIR_CONFIG_DOMAIN_DISK_BLOCK, GVIR_CONFIG_DOMAIN_DISK_DIR, GVIR_CONFIG_DOMAIN_DISK_NETWORK } GVirConfigDomainDiskType; typedef enum { GVIR_CONFIG_DOMAIN_DISK_BUS_IDE, GVIR_CONFIG_DOMAIN_DISK_BUS_FDC, GVIR_CONFIG_DOMAIN_DISK_BUS_SCSI, GVIR_CONFIG_DOMAIN_DISK_BUS_VIRTIO, GVIR_CONFIG_DOMAIN_DISK_BUS_XEN, GVIR_CONFIG_DOMAIN_DISK_BUS_USB, GVIR_CONFIG_DOMAIN_DISK_BUS_UML, GVIR_CONFIG_DOMAIN_DISK_BUS_SATA } GVirConfigDomainDiskBus; typedef enum { GVIR_CONFIG_DOMAIN_DISK_GUEST_DEVICE_DISK, GVIR_CONFIG_DOMAIN_DISK_GUEST_DEVICE_FLOPPY, GVIR_CONFIG_DOMAIN_DISK_GUEST_DEVICE_CDROM } GVirConfigDomainDiskGuestDeviceType; typedef enum { GVIR_CONFIG_DOMAIN_DISK_SNAPSHOT_NO, GVIR_CONFIG_DOMAIN_DISK_SNAPSHOT_INTERNAL, GVIR_CONFIG_DOMAIN_DISK_SNAPSHOT_EXTERNAL } GVirConfigDomainDiskSnapshotType; typedef enum { GVIR_CONFIG_DOMAIN_DISK_STARTUP_POLICY_MANDATORY, GVIR_CONFIG_DOMAIN_DISK_STARTUP_POLICY_REQUISITE, GVIR_CONFIG_DOMAIN_DISK_STARTUP_POLICY_OPTIONAL } GVirConfigDomainDiskStartupPolicy; /* backward compatibility */ #define GVIR_CONFIG_DOMAIN_DISK_FORMAT_AIO GVIR_CONFIG_DOMAIN_DISK_FORMAT_RAW; GType gvir_config_domain_disk_get_type(void); GVirConfigDomainDisk *gvir_config_domain_disk_new(void); GVirConfigDomainDisk *gvir_config_domain_disk_new_from_xml(const gchar *xml, GError **error); void gvir_config_domain_disk_set_type(GVirConfigDomainDisk *disk, GVirConfigDomainDiskType type); void gvir_config_domain_disk_set_guest_device_type(GVirConfigDomainDisk *disk, GVirConfigDomainDiskGuestDeviceType type); void gvir_config_domain_disk_set_snapshot_type(GVirConfigDomainDisk *disk, GVirConfigDomainDiskSnapshotType type); void gvir_config_domain_disk_set_startup_policy(GVirConfigDomainDisk *disk, GVirConfigDomainDiskStartupPolicy policy); void gvir_config_domain_disk_set_source(GVirConfigDomainDisk *disk, const char *source); G_DEPRECATED_FOR(gvir_config_domain_disk_driver_set_cache) void gvir_config_domain_disk_set_driver_cache(GVirConfigDomainDisk *disk, GVirConfigDomainDiskCacheType cache_type); G_DEPRECATED_FOR(gvir_config_domain_disk_driver_set_name) void gvir_config_domain_disk_set_driver_name(GVirConfigDomainDisk *disk, const char *driver_name); G_DEPRECATED_FOR(gvir_config_domain_disk_driver_set_format) void gvir_config_domain_disk_set_driver_type(GVirConfigDomainDisk *disk, const char *driver_type); G_DEPRECATED_FOR(gvir_config_domain_disk_driver_set_format) void gvir_config_domain_disk_set_driver_format(GVirConfigDomainDisk *disk, GVirConfigDomainDiskFormat format); void gvir_config_domain_disk_set_target_bus(GVirConfigDomainDisk *disk, GVirConfigDomainDiskBus bus); void gvir_config_domain_disk_set_target_dev(GVirConfigDomainDisk *disk, const char *dev); void gvir_config_domain_disk_set_driver(GVirConfigDomainDisk *disk, GVirConfigDomainDiskDriver *driver); GVirConfigDomainDiskDriver *gvir_config_domain_disk_get_driver(GVirConfigDomainDisk *disk); GVirConfigDomainDiskType gvir_config_domain_disk_get_disk_type(GVirConfigDomainDisk *disk); GVirConfigDomainDiskGuestDeviceType gvir_config_domain_disk_get_guest_device_type(GVirConfigDomainDisk *disk); GVirConfigDomainDiskSnapshotType gvir_config_domain_disk_get_snapshot_type(GVirConfigDomainDisk *disk); GVirConfigDomainDiskStartupPolicy gvir_config_domain_disk_get_startup_policy(GVirConfigDomainDisk *disk); const char *gvir_config_domain_disk_get_source(GVirConfigDomainDisk *disk); G_DEPRECATED_FOR(gvir_config_domain_disk_driver_get_cache) GVirConfigDomainDiskCacheType gvir_config_domain_disk_get_driver_cache(GVirConfigDomainDisk *disk); G_DEPRECATED_FOR(gvir_config_domain_disk_driver_get_name) const char *gvir_config_domain_disk_get_driver_name(GVirConfigDomainDisk *disk); G_DEPRECATED_FOR(gvir_config_domain_disk_driver_get_format) const char *gvir_config_domain_disk_get_driver_type(GVirConfigDomainDisk *disk); G_DEPRECATED_FOR(gvir_config_domain_disk_driver_get_format) GVirConfigDomainDiskFormat gvir_config_domain_disk_get_driver_format(GVirConfigDomainDisk *disk); GVirConfigDomainDiskBus gvir_config_domain_disk_get_target_bus(GVirConfigDomainDisk *disk); const char *gvir_config_domain_disk_get_target_dev(GVirConfigDomainDisk *disk); void gvir_config_domain_disk_set_readonly(GVirConfigDomainDisk *disk, gboolean readonly); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_DISK_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-guest-domain.c0000664000000000000000000000524613004340477024337 00000000000000/* * libvirt-gconfig-capabilities-guest-domain.c: libvirt guest domain capabilities * * Copyright (C) 2008 Daniel P. Berrange * Copyright (C) 2010-2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Zeeshan Ali * Daniel P. Berrange */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_CAPABILITIES_GUEST_DOMAIN_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_DOMAIN, GVirConfigCapabilitiesGuestDomainPrivate)) struct _GVirConfigCapabilitiesGuestDomainPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigCapabilitiesGuestDomain, gvir_config_capabilities_guest_domain, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_capabilities_guest_domain_class_init(GVirConfigCapabilitiesGuestDomainClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigCapabilitiesGuestDomainPrivate)); } static void gvir_config_capabilities_guest_domain_init(GVirConfigCapabilitiesGuestDomain *domain) { domain->priv = GVIR_CONFIG_CAPABILITIES_GUEST_DOMAIN_GET_PRIVATE(domain); } const gchar * gvir_config_capabilities_guest_domain_get_emulator(GVirConfigCapabilitiesGuestDomain *domain) { g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES_GUEST_DOMAIN(domain), NULL); return gvir_config_object_get_node_content(GVIR_CONFIG_OBJECT(domain), "emulator"); } GVirConfigDomainVirtType gvir_config_capabilities_guest_domain_get_virt_type(GVirConfigCapabilitiesGuestDomain *domain) { g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES_GUEST_DOMAIN(domain), GVIR_CONFIG_DOMAIN_VIRT_QEMU); return gvir_config_object_get_attribute_genum (GVIR_CONFIG_OBJECT(domain), NULL, "type", GVIR_CONFIG_TYPE_DOMAIN_VIRT_TYPE, GVIR_CONFIG_DOMAIN_VIRT_QEMU); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-filesys.c0000664000000000000000000002010113004340477022222 00000000000000/* * libvirt-gconfig-domain-filesys.c: libvirt domain filesystem configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_FILESYS_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_FILESYS, GVirConfigDomainFilesysPrivate)) struct _GVirConfigDomainFilesysPrivate { GVirConfigDomainFilesysType type; }; G_DEFINE_TYPE(GVirConfigDomainFilesys, gvir_config_domain_filesys, GVIR_CONFIG_TYPE_DOMAIN_DEVICE); static void gvir_config_domain_filesys_class_init(GVirConfigDomainFilesysClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainFilesysPrivate)); } static void gvir_config_domain_filesys_init(GVirConfigDomainFilesys *filesys) { filesys->priv = GVIR_CONFIG_DOMAIN_FILESYS_GET_PRIVATE(filesys); } GVirConfigDomainFilesys *gvir_config_domain_filesys_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_FILESYS, "filesystem", NULL); return GVIR_CONFIG_DOMAIN_FILESYS(object); } GVirConfigDomainFilesys *gvir_config_domain_filesys_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_FILESYS, "filesystem", NULL, xml, error); return GVIR_CONFIG_DOMAIN_FILESYS(object); } GVirConfigDomainDevice * gvir_config_domain_filesys_new_from_tree(GVirConfigXmlDoc *doc, xmlNodePtr tree) { GVirConfigObject *object; GVirConfigDomainFilesys *filesys; GVirConfigDomainFilesysType type; const char *type_str; type_str = gvir_config_xml_get_attribute_content(tree, "type"); if (type_str == NULL) return NULL; type = gvir_config_genum_get_value(GVIR_CONFIG_TYPE_DOMAIN_FILESYS_TYPE, type_str, GVIR_CONFIG_DOMAIN_FILESYS_FILE); object = gvir_config_object_new_from_tree(GVIR_CONFIG_TYPE_DOMAIN_FILESYS, doc, NULL, tree); filesys = GVIR_CONFIG_DOMAIN_FILESYS(object); filesys->priv->type = type; return GVIR_CONFIG_DOMAIN_DEVICE(object); } void gvir_config_domain_filesys_set_type(GVirConfigDomainFilesys *filesys, GVirConfigDomainFilesysType type) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_FILESYS(filesys)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(filesys), "type", GVIR_CONFIG_TYPE_DOMAIN_FILESYS_TYPE, type, NULL); filesys->priv->type = type; } void gvir_config_domain_filesys_set_access_type(GVirConfigDomainFilesys *filesys, GVirConfigDomainFilesysAccessType type) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_FILESYS(filesys)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(filesys), "accessmode", GVIR_CONFIG_TYPE_DOMAIN_FILESYS_ACCESS_TYPE, type, NULL); } void gvir_config_domain_filesys_set_driver_type(GVirConfigDomainFilesys *filesys, GVirConfigDomainFilesysDriverType type) { GVirConfigObject *node; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_FILESYS(filesys)); node = gvir_config_object_add_child(GVIR_CONFIG_OBJECT(filesys), "driver"); g_return_if_fail(GVIR_CONFIG_IS_OBJECT(node)); if (type != GVIR_CONFIG_DOMAIN_FILESYS_DRIVER_DEFAULT) gvir_config_object_set_attribute_with_type( node, "type", GVIR_CONFIG_TYPE_DOMAIN_FILESYS_DRIVER_TYPE, type, NULL); else gvir_config_object_remove_attribute(node, "type"); g_object_unref(G_OBJECT(node)); } void gvir_config_domain_filesys_set_driver_format(GVirConfigDomainFilesys *filesys, GVirConfigDomainDiskFormat format) { GVirConfigObject *node; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_FILESYS(filesys)); node = gvir_config_object_add_child(GVIR_CONFIG_OBJECT(filesys), "driver"); g_return_if_fail(GVIR_CONFIG_IS_OBJECT(node)); gvir_config_object_set_attribute_with_type( node, "format", GVIR_CONFIG_TYPE_DOMAIN_DISK_FORMAT, format, NULL); g_object_unref(G_OBJECT(node)); } void gvir_config_domain_filesys_set_source(GVirConfigDomainFilesys *filesys, const char *source) { const char *attribute_name; g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_FILESYS(filesys)); switch (filesys->priv->type) { case GVIR_CONFIG_DOMAIN_FILESYS_MOUNT: case GVIR_CONFIG_DOMAIN_FILESYS_BIND: attribute_name = "dir"; break; case GVIR_CONFIG_DOMAIN_FILESYS_FILE: attribute_name = "file"; break; case GVIR_CONFIG_DOMAIN_FILESYS_BLOCK: attribute_name = "dev"; break; case GVIR_CONFIG_DOMAIN_FILESYS_TEMPLATE: attribute_name = "name"; break; case GVIR_CONFIG_DOMAIN_FILESYS_RAM: g_return_if_reached(); default: g_return_if_reached(); } gvir_config_object_replace_child_with_attribute(GVIR_CONFIG_OBJECT(filesys), "source", attribute_name, source); } void gvir_config_domain_filesys_set_ram_usage(GVirConfigDomainFilesys *filesys, guint64 bytes) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_FILESYS(filesys)); g_return_if_fail(filesys->priv->type == GVIR_CONFIG_DOMAIN_FILESYS_RAM); GVirConfigObject *src; src = gvir_config_object_replace_child(GVIR_CONFIG_OBJECT(filesys), "source"); gvir_config_object_set_attribute_with_type(src, "usage", G_TYPE_UINT64, bytes, "units", G_TYPE_STRING, "bytes", NULL); g_object_unref(G_OBJECT(src)); } void gvir_config_domain_filesys_set_target(GVirConfigDomainFilesys *filesys, const char *path) { g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_FILESYS(filesys)); gvir_config_object_add_child_with_attribute(GVIR_CONFIG_OBJECT(filesys), "target", "dir", path); } void gvir_config_domain_filesys_set_readonly(GVirConfigDomainFilesys *filesys, gboolean readonly) { if (readonly) { GVirConfigObject *node = gvir_config_object_replace_child(GVIR_CONFIG_OBJECT(filesys), "readonly"); g_object_unref(node); } else { gvir_config_object_delete_child(GVIR_CONFIG_OBJECT(filesys), "readonly", NULL); } } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-storage-permissions.c0000664000000000000000000001344013004340477023324 00000000000000/* * libvirt-gconfig-storage-permissions.c: libvirt storage permissions configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_STORAGE_PERMISSIONS_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_STORAGE_PERMISSIONS, GVirConfigStoragePermissionsPrivate)) struct _GVirConfigStoragePermissionsPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigStoragePermissions, gvir_config_storage_permissions, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_storage_permissions_class_init(GVirConfigStoragePermissionsClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigStoragePermissionsPrivate)); } static void gvir_config_storage_permissions_init(GVirConfigStoragePermissions *perms) { perms->priv = GVIR_CONFIG_STORAGE_PERMISSIONS_GET_PRIVATE(perms); } GVirConfigStoragePermissions *gvir_config_storage_permissions_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_STORAGE_PERMISSIONS, "permissions", NULL); return GVIR_CONFIG_STORAGE_PERMISSIONS(object); } GVirConfigStoragePermissions *gvir_config_storage_permissions_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_STORAGE_PERMISSIONS, "permissions", NULL, xml, error); return GVIR_CONFIG_STORAGE_PERMISSIONS(object); } /** * gvir_config_storage_permissions_get_group: * @perms: a #GVirConfigStoragePermissions * * Gets the numeric group ID associated with @perms. * * Returns: numeric group ID */ guint gvir_config_storage_permissions_get_group(GVirConfigStoragePermissions *perms) { g_return_val_if_fail(GVIR_CONFIG_IS_STORAGE_PERMISSIONS(perms), 0); return gvir_config_object_get_node_content_uint64(GVIR_CONFIG_OBJECT(perms), "group"); } void gvir_config_storage_permissions_set_group(GVirConfigStoragePermissions *perms, guint group) { g_return_if_fail(GVIR_CONFIG_IS_STORAGE_PERMISSIONS(perms)); gvir_config_object_set_node_content_uint64(GVIR_CONFIG_OBJECT(perms), "group", group); } /** * gvir_config_storage_permissions_get_label: * @perms: a #GVirConfigStoragePermissions * * Gets the MAC label string associated with @perms. * * Returns: MAC label string. */ const char *gvir_config_storage_permissions_get_label(GVirConfigStoragePermissions *perms) { g_return_val_if_fail(GVIR_CONFIG_IS_STORAGE_PERMISSIONS(perms), NULL); return gvir_config_object_get_node_content(GVIR_CONFIG_OBJECT(perms), "label"); } /** * gvir_config_storage_permissions_set_label: * @label: (allow-none): */ void gvir_config_storage_permissions_set_label(GVirConfigStoragePermissions *perms, const char *label) { g_return_if_fail(GVIR_CONFIG_IS_STORAGE_PERMISSIONS(perms)); gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(perms), "label", label); } /** * gvir_config_storage_permissions_get_mode: * @perms: a #GVirConfigStoragePermissions * * Gets the octal permission set associated with @perms. * * Returns: permission set */ guint gvir_config_storage_permissions_get_mode(GVirConfigStoragePermissions *perms) { g_return_val_if_fail(GVIR_CONFIG_IS_STORAGE_PERMISSIONS(perms), 0); return gvir_config_object_get_node_content_uint64(GVIR_CONFIG_OBJECT(perms), "mode"); } void gvir_config_storage_permissions_set_mode(GVirConfigStoragePermissions *perms, guint mode) { g_return_if_fail(GVIR_CONFIG_IS_STORAGE_PERMISSIONS(perms)); gvir_config_object_set_node_content_uint64(GVIR_CONFIG_OBJECT(perms), "mode", mode); } /** * gvir_config_storage_permissions_get_owner: * @perms: a #GVirConfigStoragePermissions * * Gets the numeric user ID associated with @perms. * * Returns: numeric user ID. */ guint gvir_config_storage_permissions_get_owner(GVirConfigStoragePermissions *perms) { g_return_val_if_fail(GVIR_CONFIG_IS_STORAGE_PERMISSIONS(perms), 0); return gvir_config_object_get_node_content_uint64(GVIR_CONFIG_OBJECT(perms), "owner"); } void gvir_config_storage_permissions_set_owner(GVirConfigStoragePermissions *perms, guint owner) { g_return_if_fail(GVIR_CONFIG_IS_STORAGE_PERMISSIONS(perms)); gvir_config_object_set_node_content_uint64(GVIR_CONFIG_OBJECT(perms), "owner", owner); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-chardev-source.c0000664000000000000000000000460213004340477023466 00000000000000/* * libvirt-gconfig-domain-chardev-source.c: libvirt domain chardev source base class * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #include "libvirt-gconfig/libvirt-gconfig-domain-chardev-source-private.h" #define GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE, GVirConfigDomainChardevSourcePrivate)) struct _GVirConfigDomainChardevSourcePrivate { gboolean unused; }; G_DEFINE_ABSTRACT_TYPE(GVirConfigDomainChardevSource, gvir_config_domain_chardev_source, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_domain_chardev_source_class_init(GVirConfigDomainChardevSourceClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainChardevSourcePrivate)); } static void gvir_config_domain_chardev_source_init(GVirConfigDomainChardevSource *source) { source->priv = GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_GET_PRIVATE(source); } G_GNUC_INTERNAL GVirConfigDomainChardevSource * gvir_config_domain_chardev_source_new_from_tree(GVirConfigXmlDoc *doc, xmlNodePtr tree) { const gchar *type; g_return_val_if_fail(GVIR_CONFIG_IS_XML_DOC(doc), NULL); g_return_val_if_fail(tree != NULL, NULL); g_return_val_if_fail(tree->name != NULL, NULL); type = gvir_config_xml_get_attribute_content(tree, "type"); if (g_str_equal(type, "pty")) return gvir_config_domain_chardev_source_pty_new_from_tree(doc, tree); g_debug("Unknown chardev source type: %s", type); return NULL; } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-console.h0000664000000000000000000000622713004340477022230 00000000000000/* * libvirt-gconfig-domain-console.h: libvirt domain console configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_CONSOLE_H__ #define __LIBVIRT_GCONFIG_DOMAIN_CONSOLE_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_CONSOLE (gvir_config_domain_console_get_type ()) #define GVIR_CONFIG_DOMAIN_CONSOLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_CONSOLE, GVirConfigDomainConsole)) #define GVIR_CONFIG_DOMAIN_CONSOLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_CONSOLE, GVirConfigDomainConsoleClass)) #define GVIR_CONFIG_IS_DOMAIN_CONSOLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_CONSOLE)) #define GVIR_CONFIG_IS_DOMAIN_CONSOLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_CONSOLE)) #define GVIR_CONFIG_DOMAIN_CONSOLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_CONSOLE, GVirConfigDomainConsoleClass)) typedef struct _GVirConfigDomainConsole GVirConfigDomainConsole; typedef struct _GVirConfigDomainConsolePrivate GVirConfigDomainConsolePrivate; typedef struct _GVirConfigDomainConsoleClass GVirConfigDomainConsoleClass; struct _GVirConfigDomainConsole { GVirConfigDomainChardev parent; GVirConfigDomainConsolePrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainConsoleClass { GVirConfigDomainChardevClass parent_class; gpointer padding[20]; }; typedef enum { GVIR_CONFIG_DOMAIN_CONSOLE_TARGET_XEN, GVIR_CONFIG_DOMAIN_CONSOLE_TARGET_SERIAL, GVIR_CONFIG_DOMAIN_CONSOLE_TARGET_UML, GVIR_CONFIG_DOMAIN_CONSOLE_TARGET_VIRTIO, GVIR_CONFIG_DOMAIN_CONSOLE_TARGET_LXC, GVIR_CONFIG_DOMAIN_CONSOLE_TARGET_OPENVZ, } GVirConfigDomainConsoleTargetType; GType gvir_config_domain_console_get_type(void); GVirConfigDomainConsole *gvir_config_domain_console_new(void); GVirConfigDomainConsole *gvir_config_domain_console_new_from_xml(const gchar *xml, GError **error); void gvir_config_domain_console_set_target_type(GVirConfigDomainConsole *console, GVirConfigDomainConsoleTargetType type); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_CONSOLE_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-capabilities-cpu-topology.c0000664000000000000000000001213013004340477024372 00000000000000/* * libvirt-gconfig-capabilities-cpu-topology.c: libvirt CPU topology capabilities * * Copyright (C) 2008 Daniel P. Berrange * Copyright (C) 2010-2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Zeeshan Ali * Daniel P. Berrange */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_CAPABILITIES_CPU_TOPOLOGY_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_CAPABILITIES_CPU_TOPOLOGY, GVirConfigCapabilitiesCpuTopologyPrivate)) struct _GVirConfigCapabilitiesCpuTopologyPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigCapabilitiesCpuTopology, gvir_config_capabilities_cpu_topology, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_capabilities_cpu_topology_class_init(GVirConfigCapabilitiesCpuTopologyClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigCapabilitiesCpuTopologyPrivate)); } static void gvir_config_capabilities_cpu_topology_init(GVirConfigCapabilitiesCpuTopology *topology) { topology->priv = GVIR_CONFIG_CAPABILITIES_CPU_TOPOLOGY_GET_PRIVATE(topology); } GVirConfigCapabilitiesCpuTopology *gvir_config_capabilities_cpu_topology_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_CAPABILITIES_CPU_TOPOLOGY, "topology", NULL); return GVIR_CONFIG_CAPABILITIES_CPU_TOPOLOGY(object); } GVirConfigCapabilitiesCpuTopology * gvir_config_capabilities_cpu_topology_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_CAPABILITIES_CPU_TOPOLOGY, "topology", NULL, xml, error); return GVIR_CONFIG_CAPABILITIES_CPU_TOPOLOGY(object); } guint64 gvir_config_capabilities_cpu_topology_get_sockets(GVirConfigCapabilitiesCpuTopology *topology) { g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES_CPU_TOPOLOGY(topology), 0); return gvir_config_object_get_attribute_uint64(GVIR_CONFIG_OBJECT(topology), NULL, "sockets", 0); } void gvir_config_capabilities_cpu_topology_set_sockets(GVirConfigCapabilitiesCpuTopology *topology, guint64 sockets) { gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(topology), "sockets", G_TYPE_UINT64, sockets, NULL); } guint64 gvir_config_capabilities_cpu_topology_get_cores(GVirConfigCapabilitiesCpuTopology *topology) { g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES_CPU_TOPOLOGY(topology), 0); return gvir_config_object_get_attribute_uint64(GVIR_CONFIG_OBJECT(topology), NULL, "cores", 0); } void gvir_config_capabilities_cpu_topology_set_cores(GVirConfigCapabilitiesCpuTopology *topology, guint64 cores) { gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(topology), "cores", G_TYPE_UINT64, cores, NULL); } guint64 gvir_config_capabilities_cpu_topology_get_threads(GVirConfigCapabilitiesCpuTopology *topology) { g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES_CPU_TOPOLOGY(topology), 0); return gvir_config_object_get_attribute_uint64(GVIR_CONFIG_OBJECT(topology), NULL, "threads", 0); } void gvir_config_capabilities_cpu_topology_set_threads(GVirConfigCapabilitiesCpuTopology *topology, guint64 threads) { gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(topology), "threads", G_TYPE_UINT64, threads, NULL); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-chardev-source-spicevmc.c0000664000000000000000000000633313004340477025300 00000000000000/* * libvirt-gconfig-domain-chardev-source-spicevmc.c: libvirt domain chardev spicevmc configuration * * Copyright (C) 2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_SPICE_VMC_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_SPICE_VMC, GVirConfigDomainChardevSourceSpiceVmcPrivate)) struct _GVirConfigDomainChardevSourceSpiceVmcPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainChardevSourceSpiceVmc, gvir_config_domain_chardev_source_spicevmc, GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE); static void gvir_config_domain_chardev_source_spicevmc_class_init(GVirConfigDomainChardevSourceSpiceVmcClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainChardevSourceSpiceVmcPrivate)); } static void gvir_config_domain_chardev_source_spicevmc_init(GVirConfigDomainChardevSourceSpiceVmc *source) { source->priv = GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_SPICE_VMC_GET_PRIVATE(source); } GVirConfigDomainChardevSourceSpiceVmc *gvir_config_domain_chardev_source_spicevmc_new(void) { GVirConfigObject *object; /* the name of the root node is just a placeholder, it will be * overwritten when the GVirConfigDomainChardevSourceSpiceVmc is attached to a * GVirConfigDomainChardevSourceSpiceVmc */ object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_SPICE_VMC, "dummy", NULL); gvir_config_object_set_attribute(object, "type", "spicevmc", NULL); return GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_SPICE_VMC(object); } GVirConfigDomainChardevSourceSpiceVmc *gvir_config_domain_chardev_source_spicevmc_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; /* the name of the root node is just a placeholder, it will be * overwritten when the GVirConfigDomainChardevSourceSpiceVmc is attached to a * GVirConfigDomainChardevSourceSpiceVmc */ object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_SPICE_VMC, "dummy", NULL, xml, error); if (g_strcmp0(gvir_config_object_get_attribute(object, NULL, "type"), "spicevmc") != 0) { g_object_unref(G_OBJECT(object)); g_return_val_if_reached(NULL); } return GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_SPICE_VMC(object); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-storage-pool.c0000664000000000000000000002417113004340477021725 00000000000000/* * libvirt-gconfig-storage-pool.c: libvirt storage pool configuration * * Copyright (C) 2008 Daniel P. Berrange * Copyright (C) 2010-2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Daniel P. Berrange * Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_STORAGE_POOL_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_STORAGE_POOL, GVirConfigStoragePoolPrivate)) struct _GVirConfigStoragePoolPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigStoragePool, gvir_config_storage_pool, GVIR_CONFIG_TYPE_OBJECT); static void gvir_config_storage_pool_class_init(GVirConfigStoragePoolClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigStoragePoolPrivate)); } static void gvir_config_storage_pool_init(GVirConfigStoragePool *pool) { pool->priv = GVIR_CONFIG_STORAGE_POOL_GET_PRIVATE(pool); } GVirConfigStoragePool *gvir_config_storage_pool_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_STORAGE_POOL, "pool", DATADIR "/libvirt/schemas/storagepool.rng"); return GVIR_CONFIG_STORAGE_POOL(object); } GVirConfigStoragePool *gvir_config_storage_pool_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_STORAGE_POOL, "pool", DATADIR "/libvirt/schemas/storagepool.rng", xml, error); return GVIR_CONFIG_STORAGE_POOL(object); } /** * gvir_config_storage_pool_get_pool_type: * @pool: a #GVirConfigStoragePool * * Gets the type of the pool. * * Returns: #Gname of @pool. */ GVirConfigStoragePoolType gvir_config_storage_pool_get_pool_type(GVirConfigStoragePool *pool) { g_return_val_if_fail(GVIR_CONFIG_IS_STORAGE_POOL(pool), GVIR_CONFIG_STORAGE_POOL_TYPE_DIR); return gvir_config_object_get_attribute_genum(GVIR_CONFIG_OBJECT(pool), NULL, "type", GVIR_CONFIG_TYPE_STORAGE_POOL_TYPE, GVIR_CONFIG_STORAGE_POOL_TYPE_DIR); } void gvir_config_storage_pool_set_pool_type(GVirConfigStoragePool *pool, GVirConfigStoragePoolType type) { g_return_if_fail(GVIR_CONFIG_IS_STORAGE_POOL(pool)); gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(pool), "type", GVIR_CONFIG_TYPE_STORAGE_POOL_TYPE, type, NULL); } /** * gvir_config_storage_pool_get_name: * @pool: a #GVirConfigStoragePool * * Gets the name of the pool. * * Returns: name of @pool. */ const char *gvir_config_storage_pool_get_name(GVirConfigStoragePool *pool) { g_return_val_if_fail(GVIR_CONFIG_IS_STORAGE_POOL(pool), NULL); return gvir_config_object_get_node_content(GVIR_CONFIG_OBJECT(pool), "name"); } /** * gvir_config_storage_pool_set_name: * @name: (allow-none): */ void gvir_config_storage_pool_set_name(GVirConfigStoragePool *pool, const char *name) { g_return_if_fail(GVIR_CONFIG_IS_STORAGE_POOL(pool)); gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(pool), "name", name); } /** * gvir_config_storage_pool_get_uuid: * @pool: a #GVirConfigStoragePool * * Gets the unique identifier for @pool. * * Returns: unique identifier for @pool. */ const char *gvir_config_storage_pool_get_uuid(GVirConfigStoragePool *pool) { g_return_val_if_fail(GVIR_CONFIG_IS_STORAGE_POOL(pool), NULL); return gvir_config_object_get_node_content(GVIR_CONFIG_OBJECT(pool), "uuid"); } /** * gvir_config_storage_pool_set_uuid: * @uuid: (allow-none): */ void gvir_config_storage_pool_set_uuid(GVirConfigStoragePool *pool, const char *uuid) { g_return_if_fail(GVIR_CONFIG_IS_STORAGE_POOL(pool)); gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(pool), "uuid", uuid); } /** * gvir_config_storage_pool_get_capacity: * @pool: a #GVirConfigStoragePool * * Gets the total storage capacity for the pool. * * Returns: total storage capacity in bytes. */ guint64 gvir_config_storage_pool_get_capacity(GVirConfigStoragePool *pool) { g_return_val_if_fail(GVIR_CONFIG_IS_STORAGE_POOL(pool), 0); return gvir_config_object_get_node_content_uint64(GVIR_CONFIG_OBJECT(pool), "capacity"); } void gvir_config_storage_pool_set_capacity(GVirConfigStoragePool *pool, guint64 capacity) { g_return_if_fail(GVIR_CONFIG_IS_STORAGE_POOL(pool)); gvir_config_object_set_node_content_uint64(GVIR_CONFIG_OBJECT(pool), "capacity", capacity); } /** * gvir_config_storage_pool_get_allocation: * @pool: a #GVirConfigStoragePool * * Gets the total storage allocation for the pool. * * Returns: total storage allocation in bytes. */ guint64 gvir_config_storage_pool_get_allocation(GVirConfigStoragePool *pool) { g_return_val_if_fail(GVIR_CONFIG_IS_STORAGE_POOL(pool), 0); return gvir_config_object_get_node_content_uint64(GVIR_CONFIG_OBJECT(pool), "allocation"); } void gvir_config_storage_pool_set_allocation(GVirConfigStoragePool *pool, guint64 allocation) { g_return_if_fail(GVIR_CONFIG_IS_STORAGE_POOL(pool)); gvir_config_object_set_node_content_uint64(GVIR_CONFIG_OBJECT(pool), "allocation", allocation); } /** * gvir_config_storage_pool_get_available: * @pool: a #GVirConfigStoragePool * * Gets the free space available for allocating new volumes in the pool. * * Returns: free space available in bytes. */ guint64 gvir_config_storage_pool_get_available(GVirConfigStoragePool *pool) { g_return_val_if_fail(GVIR_CONFIG_IS_STORAGE_POOL(pool), 0); return gvir_config_object_get_node_content_uint64(GVIR_CONFIG_OBJECT(pool), "available"); } void gvir_config_storage_pool_set_available(GVirConfigStoragePool *pool, guint64 available) { g_return_if_fail(GVIR_CONFIG_IS_STORAGE_POOL(pool)); gvir_config_object_set_node_content_uint64(GVIR_CONFIG_OBJECT(pool), "available", available); } /** * gvir_config_storage_pool_get_source: * @pool: a #GVirConfigStoragePool * * Gets the source for @pool * * Returns: (transfer full): a new #GVirConfigStoragePoolSource instance. */ GVirConfigStoragePoolSource *gvir_config_storage_pool_get_source(GVirConfigStoragePool *pool) { GVirConfigObject *object; g_return_val_if_fail(GVIR_CONFIG_IS_STORAGE_POOL(pool), NULL); object = gvir_config_object_get_child_with_type (GVIR_CONFIG_OBJECT(pool), "source", GVIR_CONFIG_TYPE_STORAGE_POOL_SOURCE); return GVIR_CONFIG_STORAGE_POOL_SOURCE(object); } /** * gvir_config_storage_pool_set_source: * @source: (allow-none): */ void gvir_config_storage_pool_set_source(GVirConfigStoragePool *pool, GVirConfigStoragePoolSource *source) { g_return_if_fail(GVIR_CONFIG_IS_STORAGE_POOL(pool)); g_return_if_fail(source == NULL || GVIR_CONFIG_IS_STORAGE_POOL_SOURCE(source)); gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(pool), "source", GVIR_CONFIG_OBJECT(source)); } /** * gvir_config_storage_pool_get_target: * @pool: a #GVirConfigStoragePool * * Gets the target for @pool * * Returns: (transfer full): a new #GVirConfigStoragePoolTarget instance. */ GVirConfigStoragePoolTarget *gvir_config_storage_pool_get_target(GVirConfigStoragePool *pool) { GVirConfigObject *object; g_return_val_if_fail(GVIR_CONFIG_IS_STORAGE_POOL(pool), NULL); object = gvir_config_object_get_child_with_type (GVIR_CONFIG_OBJECT(pool), "target", GVIR_CONFIG_TYPE_STORAGE_POOL_TARGET); return GVIR_CONFIG_STORAGE_POOL_TARGET(object); } /** * gvir_config_storage_pool_set_target: * @target: (allow-none): */ void gvir_config_storage_pool_set_target(GVirConfigStoragePool *pool, GVirConfigStoragePoolTarget *target) { g_return_if_fail(GVIR_CONFIG_IS_STORAGE_POOL(pool)); g_return_if_fail(target == NULL || GVIR_CONFIG_IS_STORAGE_POOL_TARGET(target)); gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(pool), "target", GVIR_CONFIG_OBJECT(target)); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-timer-pit.c0000664000000000000000000000501013004340477022460 00000000000000/* * libvirt-gconfig-domain-timer-pit.c: libvirt domain PIT timer configuration * * Copyright (C) 2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_TIMER_PIT_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_TIMER_PIT, GVirConfigDomainTimerPitPrivate)) struct _GVirConfigDomainTimerPitPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainTimerPit, gvir_config_domain_timer_pit, GVIR_CONFIG_TYPE_DOMAIN_TIMER); static void gvir_config_domain_timer_pit_class_init(GVirConfigDomainTimerPitClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainTimerPitPrivate)); } static void gvir_config_domain_timer_pit_init(GVirConfigDomainTimerPit *timer) { timer->priv = GVIR_CONFIG_DOMAIN_TIMER_PIT_GET_PRIVATE(timer); } GVirConfigDomainTimerPit *gvir_config_domain_timer_pit_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_TIMER_PIT, "timer", NULL); gvir_config_object_set_attribute(object, "name", "pit", NULL); return GVIR_CONFIG_DOMAIN_TIMER_PIT(object); } GVirConfigDomainTimerPit *gvir_config_domain_timer_pit_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_TIMER_PIT, "timer", NULL, xml, error); if (g_strcmp0(gvir_config_object_get_attribute(object, NULL, "type"), "pit") != 0) { g_object_unref(G_OBJECT(object)); g_return_val_if_reached(NULL); } return GVIR_CONFIG_DOMAIN_TIMER_PIT(object); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-interface-network.h0000664000000000000000000000625313004340477024214 00000000000000/* * libvirt-gconfig-domain-interface-network.c: libvirt domain interface configuration * * Copyright (C) 2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange * Author: Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_INTERFACE_NETWORK_H__ #define __LIBVIRT_GCONFIG_DOMAIN_INTERFACE_NETWORK_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_NETWORK (gvir_config_domain_interface_network_get_type ()) #define GVIR_CONFIG_DOMAIN_INTERFACE_NETWORK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE, GVirConfigDomainInterfaceNetwork)) #define GVIR_CONFIG_DOMAIN_INTERFACE_NETWORK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE, GVirConfigDomainInterfaceNetworkClass)) #define GVIR_CONFIG_IS_DOMAIN_INTERFACE_NETWORK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE)) #define GVIR_CONFIG_IS_DOMAIN_INTERFACE_NETWORK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE)) #define GVIR_CONFIG_DOMAIN_INTERFACE_NETWORK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_INTERFACE, GVirConfigDomainInterfaceNetworkClass)) typedef struct _GVirConfigDomainInterfaceNetwork GVirConfigDomainInterfaceNetwork; typedef struct _GVirConfigDomainInterfaceNetworkPrivate GVirConfigDomainInterfaceNetworkPrivate; typedef struct _GVirConfigDomainInterfaceNetworkClass GVirConfigDomainInterfaceNetworkClass; struct _GVirConfigDomainInterfaceNetwork { GVirConfigDomainInterface parent; GVirConfigDomainInterfaceNetworkPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainInterfaceNetworkClass { GVirConfigDomainInterfaceClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_interface_network_get_type(void); GVirConfigDomainInterfaceNetwork *gvir_config_domain_interface_network_new(void); GVirConfigDomainInterfaceNetwork *gvir_config_domain_interface_network_new_from_xml(const gchar *xml, GError **error); void gvir_config_domain_interface_network_set_source(GVirConfigDomainInterfaceNetwork *interface, const char *source); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_INTERFACE_NETWORK_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-cpu-feature.h0000664000000000000000000000652613004340477023010 00000000000000/* * libvirt-gconfig-domain-cpu-feature.h: libvirt domain CPU feature * * Copyright (C) 2010-2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Zeeshan Ali * Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_CPU_FEATURE_H__ #define __LIBVIRT_GCONFIG_DOMAIN_CPU_FEATURE_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_CPU_FEATURE (gvir_config_domain_cpu_feature_get_type ()) #define GVIR_CONFIG_DOMAIN_CPU_FEATURE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_CPU_FEATURE, GVirConfigDomainCpuFeature)) #define GVIR_CONFIG_DOMAIN_CPU_FEATURE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_CPU_FEATURE, GVirConfigDomainCpuFeatureClass)) #define GVIR_CONFIG_IS_DOMAIN_CPU_FEATURE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_CPU_FEATURE)) #define GVIR_CONFIG_IS_DOMAIN_CPU_FEATURE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_CPU_FEATURE)) #define GVIR_CONFIG_DOMAIN_CPU_FEATURE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_CPU_FEATURE, GVirConfigDomainCpuFeatureClass)) typedef struct _GVirConfigDomainCpuFeature GVirConfigDomainCpuFeature; typedef struct _GVirConfigDomainCpuFeaturePrivate GVirConfigDomainCpuFeaturePrivate; typedef struct _GVirConfigDomainCpuFeatureClass GVirConfigDomainCpuFeatureClass; struct _GVirConfigDomainCpuFeature { GVirConfigCapabilitiesCpu parent; GVirConfigDomainCpuFeaturePrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainCpuFeatureClass { GVirConfigCapabilitiesCpuClass parent_class; gpointer padding[20]; }; typedef enum { GVIR_CONFIG_DOMAIN_CPU_FEATURE_POLICY_FORCE, GVIR_CONFIG_DOMAIN_CPU_FEATURE_POLICY_REQUIRE, GVIR_CONFIG_DOMAIN_CPU_FEATURE_POLICY_OPTIONAL, GVIR_CONFIG_DOMAIN_CPU_FEATURE_POLICY_DISABLE, GVIR_CONFIG_DOMAIN_CPU_FEATURE_POLICY_FORBID } GVirConfigDomainCpuFeaturePolicy; GType gvir_config_domain_cpu_feature_get_type(void); GVirConfigDomainCpuFeature *gvir_config_domain_cpu_feature_new(void); GVirConfigDomainCpuFeature * gvir_config_domain_cpu_feature_new_from_xml(const gchar *xml, GError **error); void gvir_config_domain_cpu_feature_set_policy(GVirConfigDomainCpuFeature *feature, GVirConfigDomainCpuFeaturePolicy policy); GVirConfigDomainCpuFeaturePolicy gvir_config_domain_cpu_feature_get_policy(GVirConfigDomainCpuFeature *feature); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_CPU_FEATURE_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-disk-driver.h0000664000000000000000000001431513004340477023006 00000000000000/* * libvirt-gconfig-domain-disk-driver.h: libvirt disk driver configuration * * Copyright (C) 2011, 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_DISK_DRIVER_H__ #define __LIBVIRT_GCONFIG_DOMAIN_DISK_DRIVER_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_DISK_DRIVER (gvir_config_domain_disk_driver_get_type ()) #define GVIR_CONFIG_DOMAIN_DISK_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_DISK_DRIVER, GVirConfigDomainDiskDriver)) #define GVIR_CONFIG_DOMAIN_DISK_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_DISK_DRIVER, GVirConfigDomainDiskDriverClass)) #define GVIR_CONFIG_IS_DOMAIN_DISK_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_DISK_DRIVER)) #define GVIR_CONFIG_IS_DOMAIN_DISK_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_DISK_DRIVER)) #define GVIR_CONFIG_DOMAIN_DISK_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_DISK_DRIVER, GVirConfigDomainDiskDriverClass)) typedef struct _GVirConfigDomainDiskDriver GVirConfigDomainDiskDriver; typedef struct _GVirConfigDomainDiskDriverPrivate GVirConfigDomainDiskDriverPrivate; typedef struct _GVirConfigDomainDiskDriverClass GVirConfigDomainDiskDriverClass; struct _GVirConfigDomainDiskDriver { GVirConfigObject parent; GVirConfigDomainDiskDriverPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainDiskDriverClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; typedef enum { GVIR_CONFIG_DOMAIN_DISK_CACHE_DEFAULT, GVIR_CONFIG_DOMAIN_DISK_CACHE_NONE, GVIR_CONFIG_DOMAIN_DISK_CACHE_WRITETHROUGH, GVIR_CONFIG_DOMAIN_DISK_CACHE_WRITEBACK, GVIR_CONFIG_DOMAIN_DISK_CACHE_DIRECTSYNC, GVIR_CONFIG_DOMAIN_DISK_CACHE_UNSAFE } GVirConfigDomainDiskCacheType; typedef enum { GVIR_CONFIG_DOMAIN_DISK_FORMAT_RAW, GVIR_CONFIG_DOMAIN_DISK_FORMAT_DIR, GVIR_CONFIG_DOMAIN_DISK_FORMAT_BOCHS, GVIR_CONFIG_DOMAIN_DISK_FORMAT_CLOOP, GVIR_CONFIG_DOMAIN_DISK_FORMAT_COW, GVIR_CONFIG_DOMAIN_DISK_FORMAT_DMG, GVIR_CONFIG_DOMAIN_DISK_FORMAT_ISO, GVIR_CONFIG_DOMAIN_DISK_FORMAT_QCOW, GVIR_CONFIG_DOMAIN_DISK_FORMAT_QCOW2, GVIR_CONFIG_DOMAIN_DISK_FORMAT_QED, GVIR_CONFIG_DOMAIN_DISK_FORMAT_VMDK, GVIR_CONFIG_DOMAIN_DISK_FORMAT_VPC, GVIR_CONFIG_DOMAIN_DISK_FORMAT_FAT, GVIR_CONFIG_DOMAIN_DISK_FORMAT_VHD, } GVirConfigDomainDiskFormat; typedef enum { GVIR_CONFIG_DOMAIN_DISK_DRIVER_ERROR_POLICY_STOP, GVIR_CONFIG_DOMAIN_DISK_DRIVER_ERROR_POLICY_REPORT, GVIR_CONFIG_DOMAIN_DISK_DRIVER_ERROR_POLICY_IGNORE, GVIR_CONFIG_DOMAIN_DISK_DRIVER_ERROR_POLICY_ENOSPACE } GVirConfigDomainDiskDriverErrorPolicy; typedef enum { GVIR_CONFIG_DOMAIN_DISK_DRIVER_IO_POLICY_THREADS, GVIR_CONFIG_DOMAIN_DISK_DRIVER_IO_POLICY_NATIVE } GVirConfigDomainDiskDriverIoPolicy; typedef enum { GVIR_CONFIG_DOMAIN_DISK_DRIVER_DISCARD_UNMAP, GVIR_CONFIG_DOMAIN_DISK_DRIVER_DISCARD_IGNORE } GVirConfigDomainDiskDriverDiscard; GType gvir_config_domain_disk_driver_get_type(void); GVirConfigDomainDiskDriver *gvir_config_domain_disk_driver_new(void); GVirConfigDomainDiskDriver *gvir_config_domain_disk_driver_new_from_xml(const gchar *xml, GError **error); void gvir_config_domain_disk_driver_set_cache(GVirConfigDomainDiskDriver *driver, GVirConfigDomainDiskCacheType cache_type); GVirConfigDomainDiskCacheType gvir_config_domain_disk_driver_get_cache(GVirConfigDomainDiskDriver *driver); void gvir_config_domain_disk_driver_set_name(GVirConfigDomainDiskDriver *driver, const char *name); const char *gvir_config_domain_disk_driver_get_name(GVirConfigDomainDiskDriver *driver); void gvir_config_domain_disk_driver_set_error_policy(GVirConfigDomainDiskDriver *driver, GVirConfigDomainDiskDriverErrorPolicy policy); GVirConfigDomainDiskDriverErrorPolicy gvir_config_domain_disk_driver_get_error_policy(GVirConfigDomainDiskDriver *driver); void gvir_config_domain_disk_driver_set_format(GVirConfigDomainDiskDriver *driver, GVirConfigDomainDiskFormat format); GVirConfigDomainDiskFormat gvir_config_domain_disk_driver_get_format(GVirConfigDomainDiskDriver *driver); void gvir_config_domain_disk_driver_set_io_policy(GVirConfigDomainDiskDriver *driver, GVirConfigDomainDiskDriverIoPolicy policy); GVirConfigDomainDiskDriverIoPolicy gvir_config_domain_disk_driver_get_io_policy(GVirConfigDomainDiskDriver *driver); void gvir_config_domain_disk_driver_set_copy_on_read(GVirConfigDomainDiskDriver *driver, gboolean copy_on_read); gboolean gvir_config_domain_disk_driver_get_copy_on_read(GVirConfigDomainDiskDriver *driver); void gvir_config_domain_disk_driver_set_discard(GVirConfigDomainDiskDriver *driver, GVirConfigDomainDiskDriverDiscard discard); GVirConfigDomainDiskDriverDiscard gvir_config_domain_disk_driver_get_discard(GVirConfigDomainDiskDriver *driver); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_DISK_DRIVER_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-serial.h0000664000000000000000000000521613004340477022042 00000000000000/* * libvirt-gconfig-domain-serial.h: libvirt domain serial configuration * * Copyright (C) 2011-2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_SERIAL_H__ #define __LIBVIRT_GCONFIG_DOMAIN_SERIAL_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_SERIAL (gvir_config_domain_serial_get_type ()) #define GVIR_CONFIG_DOMAIN_SERIAL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_SERIAL, GVirConfigDomainSerial)) #define GVIR_CONFIG_DOMAIN_SERIAL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_SERIAL, GVirConfigDomainSerialClass)) #define GVIR_CONFIG_IS_DOMAIN_SERIAL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_SERIAL)) #define GVIR_CONFIG_IS_DOMAIN_SERIAL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_SERIAL)) #define GVIR_CONFIG_DOMAIN_SERIAL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_SERIAL, GVirConfigDomainSerialClass)) typedef struct _GVirConfigDomainSerial GVirConfigDomainSerial; typedef struct _GVirConfigDomainSerialPrivate GVirConfigDomainSerialPrivate; typedef struct _GVirConfigDomainSerialClass GVirConfigDomainSerialClass; struct _GVirConfigDomainSerial { GVirConfigDomainChardev parent; GVirConfigDomainSerialPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainSerialClass { GVirConfigDomainChardevClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_serial_get_type(void); GVirConfigDomainSerial *gvir_config_domain_serial_new(void); GVirConfigDomainSerial *gvir_config_domain_serial_new_from_xml(const gchar *xml, GError **error); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_SERIAL_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-chardev-source-private.h0000664000000000000000000000271113004340477025142 00000000000000/* * libvirt-gconfig-domain-chardev-source-private.h: libvirt domain chardev configuration * * Copyright (C) 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #ifndef __LIBVIRT_GCONFIG_DOMAIN_CHARDEV_SOURCE_PRIVATE_H__ #define __LIBVIRT_GCONFIG_DOMAIN_CHARDEV_SOURCE_PRIVATE_H__ #include G_BEGIN_DECLS GVirConfigDomainChardevSource * gvir_config_domain_chardev_source_new_from_tree(GVirConfigXmlDoc *doc, xmlNodePtr tree); GVirConfigDomainChardevSource * gvir_config_domain_chardev_source_pty_new_from_tree(GVirConfigXmlDoc *doc, xmlNodePtr tree); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_CHARDEV_SOURCE_PRIVATE_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-snapshot-disk.h0000664000000000000000000000770213004340477023354 00000000000000/* * libvirt-gconfig-domain-snapshot-disk.h: libvirt snapshot disk configuration * * Copyright (C) 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_SNAPSHOT_DISK_H__ #define __LIBVIRT_GCONFIG_DOMAIN_SNAPSHOT_DISK_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_SNAPSHOT_DISK (gvir_config_domain_snapshot_disk_get_type ()) #define GVIR_CONFIG_DOMAIN_SNAPSHOT_DISK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_SNAPSHOT_DISK, GVirConfigDomainSnapshotDisk)) #define GVIR_CONFIG_DOMAIN_SNAPSHOT_DISK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_SNAPSHOT_DISK, GVirConfigDomainSnapshotDiskClass)) #define GVIR_CONFIG_IS_DOMAIN_SNAPSHOT_DISK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_SNAPSHOT_DISK)) #define GVIR_CONFIG_IS_DOMAIN_SNAPSHOT_DISK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_SNAPSHOT_DISK)) #define GVIR_CONFIG_DOMAIN_SNAPSHOT_DISK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_SNAPSHOT_DISK, GVirConfigDomainSnapshotDiskClass)) typedef struct _GVirConfigDomainSnapshotDisk GVirConfigDomainSnapshotDisk; typedef struct _GVirConfigDomainSnapshotDiskPrivate GVirConfigDomainSnapshotDiskPrivate; typedef struct _GVirConfigDomainSnapshotDiskClass GVirConfigDomainSnapshotDiskClass; struct _GVirConfigDomainSnapshotDisk { GVirConfigObject parent; GVirConfigDomainSnapshotDiskPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainSnapshotDiskClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_snapshot_disk_get_type(void); GVirConfigDomainSnapshotDisk *gvir_config_domain_snapshot_disk_new(void); GVirConfigDomainSnapshotDisk *gvir_config_domain_snapshot_disk_new_from_xml(const gchar *xml, GError **error); const char *gvir_config_domain_snapshot_disk_get_name(GVirConfigDomainSnapshotDisk *disk); void gvir_config_domain_snapshot_disk_set_name(GVirConfigDomainSnapshotDisk *disk, const char *name); GVirConfigDomainDiskSnapshotType gvir_config_domain_snapshot_disk_get_snapshot_type(GVirConfigDomainSnapshotDisk *disk); void gvir_config_domain_snapshot_disk_set_snapshot_type(GVirConfigDomainSnapshotDisk *disk, GVirConfigDomainDiskSnapshotType type); const char *gvir_config_domain_snapshot_disk_get_source_file(GVirConfigDomainSnapshotDisk *disk); void gvir_config_domain_snapshot_disk_set_source_file(GVirConfigDomainSnapshotDisk *disk, const char *filename); GVirConfigDomainDiskFormat gvir_config_domain_snapshot_disk_get_driver_format(GVirConfigDomainSnapshotDisk *disk); void gvir_config_domain_snapshot_disk_set_driver_format(GVirConfigDomainSnapshotDisk *disk, GVirConfigDomainDiskFormat format); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_SNAPSHOT_DISK_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-chardev-source-spiceport.h0000664000000000000000000000674713004340477025515 00000000000000/* * libvirt-gconfig-domain-chardev-source-spiceport.h: libvirt domain chardev spiceport configuration * * Copyright (C) 2014 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_CHARDEV_SOURCE_SPICE_PORT_H__ #define __LIBVIRT_GCONFIG_DOMAIN_CHARDEV_SOURCE_SPICE_PORT_H__ G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_SPICE_PORT (gvir_config_domain_chardev_source_spiceport_get_type ()) #define GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_SPICE_PORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_SPICE_PORT, GVirConfigDomainChardevSourceSpicePort)) #define GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_SPICE_PORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_SPICE_PORT, GVirConfigDomainChardevSourceSpicePortClass)) #define GVIR_CONFIG_IS_DOMAIN_CHARDEV_SOURCE_SPICE_PORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_SPICE_PORT)) #define GVIR_CONFIG_IS_DOMAIN_CHARDEV_SOURCE_SPICE_PORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_SPICE_PORT)) #define GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_SPICE_PORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_SPICE_PORT, GVirConfigDomainChardevSourceSpicePortClass)) typedef struct _GVirConfigDomainChardevSourceSpicePort GVirConfigDomainChardevSourceSpicePort; typedef struct _GVirConfigDomainChardevSourceSpicePortPrivate GVirConfigDomainChardevSourceSpicePortPrivate; typedef struct _GVirConfigDomainChardevSourceSpicePortClass GVirConfigDomainChardevSourceSpicePortClass; struct _GVirConfigDomainChardevSourceSpicePort { GVirConfigDomainChardevSource parent; GVirConfigDomainChardevSourceSpicePortPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainChardevSourceSpicePortClass { GVirConfigDomainChardevSourceClass parent_class; gpointer padding[20]; }; GType gvir_config_domain_chardev_source_spiceport_get_type(void); GVirConfigDomainChardevSourceSpicePort *gvir_config_domain_chardev_source_spiceport_new(void); GVirConfigDomainChardevSourceSpicePort *gvir_config_domain_chardev_source_spiceport_new_from_xml(const gchar *xml, GError **error); void gvir_config_domain_chardev_source_spiceport_set_channel(GVirConfigDomainChardevSourceSpicePort *port, const char *channel); const gchar * gvir_config_domain_chardev_source_spiceport_get_channel(GVirConfigDomainChardevSourceSpicePort *port); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_CHARDEV_SOURCE_SPICE_PORT_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-cpu-model.c0000664000000000000000000000464013004340477022443 00000000000000/* * libvirt-gconfig-domain-cpu-model.c: libvirt domain CPU model * * Copyright (C) 2014 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Authors: Zeeshan Ali */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_CPU_MODEL_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_CPU_MODEL, GVirConfigDomainCpuModelPrivate)) struct _GVirConfigDomainCpuModelPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainCpuModel, gvir_config_domain_cpu_model, GVIR_CONFIG_TYPE_CAPABILITIES_CPU_MODEL); static void gvir_config_domain_cpu_model_class_init(GVirConfigDomainCpuModelClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainCpuModelPrivate)); } static void gvir_config_domain_cpu_model_init(GVirConfigDomainCpuModel *model) { model->priv = GVIR_CONFIG_DOMAIN_CPU_MODEL_GET_PRIVATE(model); } GVirConfigDomainCpuModel *gvir_config_domain_cpu_model_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_CPU_MODEL, "model", NULL); return GVIR_CONFIG_DOMAIN_CPU_MODEL(object); } GVirConfigDomainCpuModel * gvir_config_domain_cpu_model_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_CPU_MODEL, "model", NULL, xml, error); return GVIR_CONFIG_DOMAIN_CPU_MODEL(object); } libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-snapshot.h0000664000000000000000000001337113004340477022423 00000000000000/* * libvirt-gconfig-domain-snapshot.h: libvirt domain snapshot configuration * * Copyright (C) 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange * Christophe Fergeau */ #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD) #error "Only can be included directly." #endif #ifndef __LIBVIRT_GCONFIG_DOMAIN_SNAPSHOT_H__ #define __LIBVIRT_GCONFIG_DOMAIN_SNAPSHOT_H__ #include #include G_BEGIN_DECLS #define GVIR_CONFIG_TYPE_DOMAIN_SNAPSHOT (gvir_config_domain_snapshot_get_type ()) #define GVIR_CONFIG_DOMAIN_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_SNAPSHOT, GVirConfigDomainSnapshot)) #define GVIR_CONFIG_DOMAIN_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_SNAPSHOT, GVirConfigDomainSnapshotClass)) #define GVIR_CONFIG_IS_DOMAIN_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_SNAPSHOT)) #define GVIR_CONFIG_IS_DOMAIN_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_SNAPSHOT)) #define GVIR_CONFIG_DOMAIN_SNAPSHOT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_SNAPSHOT, GVirConfigDomainSnapshotClass)) typedef struct _GVirConfigDomainSnapshot GVirConfigDomainSnapshot; typedef struct _GVirConfigDomainSnapshotPrivate GVirConfigDomainSnapshotPrivate; typedef struct _GVirConfigDomainSnapshotClass GVirConfigDomainSnapshotClass; struct _GVirConfigDomainSnapshot { GVirConfigObject parent; GVirConfigDomainSnapshotPrivate *priv; /* Do not add fields to this struct */ }; struct _GVirConfigDomainSnapshotClass { GVirConfigObjectClass parent_class; gpointer padding[20]; }; typedef enum { GVIR_CONFIG_DOMAIN_SNAPSHOT_DOMAIN_STATE_NOSTATE = 0, /* no state */ GVIR_CONFIG_DOMAIN_SNAPSHOT_DOMAIN_STATE_RUNNING = 1, /* the domain is running */ GVIR_CONFIG_DOMAIN_SNAPSHOT_DOMAIN_STATE_BLOCKED = 2, /* the domain is blocked on resource */ GVIR_CONFIG_DOMAIN_SNAPSHOT_DOMAIN_STATE_PAUSED = 3, /* the domain is paused by user */ GVIR_CONFIG_DOMAIN_SNAPSHOT_DOMAIN_STATE_SHUTDOWN= 4, /* the domain is being shut down */ GVIR_CONFIG_DOMAIN_SNAPSHOT_DOMAIN_STATE_SHUTOFF = 5, /* the domain is shut off */ GVIR_CONFIG_DOMAIN_SNAPSHOT_DOMAIN_STATE_CRASHED = 6, /* the domain is crashed */ GVIR_CONFIG_DOMAIN_SNAPSHOT_DOMAIN_STATE_PMSUSPENDED = 7, /* the domain is suspended by guest power management */ GVIR_CONFIG_DOMAIN_SNAPSHOT_DOMAIN_STATE_DISK_SNAPSHOT = 100 } GVirConfigDomainSnapshotDomainState; typedef enum { GVIR_CONFIG_DOMAIN_SNAPSHOT_MEMORY_STATE_NONE, GVIR_CONFIG_DOMAIN_SNAPSHOT_MEMORY_STATE_INTERNAL, GVIR_CONFIG_DOMAIN_SNAPSHOT_MEMORY_STATE_EXTERNAL, } GVirConfigDomainSnapshotMemoryState; GType gvir_config_domain_snapshot_get_type(void); GVirConfigDomainSnapshot *gvir_config_domain_snapshot_new(void); GVirConfigDomainSnapshot *gvir_config_domain_snapshot_new_from_xml(const gchar *xml, GError **error); const char *gvir_config_domain_snapshot_get_name(GVirConfigDomainSnapshot *snapshot); void gvir_config_domain_snapshot_set_name(GVirConfigDomainSnapshot *snapshot, const char *name); const char *gvir_config_domain_snapshot_get_description(GVirConfigDomainSnapshot *snapshot); void gvir_config_domain_snapshot_set_description(GVirConfigDomainSnapshot *snapshot, const char *description); GVirConfigDomainSnapshotMemoryState gvir_config_domain_snapshot_get_memory_state(GVirConfigDomainSnapshot *snapshot); void gvir_config_domain_snapshot_set_memory_state(GVirConfigDomainSnapshot *snapshot, GVirConfigDomainSnapshotMemoryState state); const char *gvir_config_domain_snapshot_get_memory_file(GVirConfigDomainSnapshot *snapshot); void gvir_config_domain_snapshot_set_memory_file(GVirConfigDomainSnapshot *snapshot, const char *filename); time_t gvir_config_domain_snapshot_get_creation_time(GVirConfigDomainSnapshot *snapshot); GVirConfigDomainSnapshotDomainState gvir_config_domain_snapshot_get_state(GVirConfigDomainSnapshot *snapshot); const char *gvir_config_domain_snapshot_get_parent(GVirConfigDomainSnapshot *snapshot); GVirConfigDomain *gvir_config_domain_snapshot_get_domain(GVirConfigDomainSnapshot *snapshot); void gvir_config_domain_snapshot_set_disks(GVirConfigDomainSnapshot *snapshot, GList *disks); void gvir_config_domain_snapshot_add_disk(GVirConfigDomainSnapshot *snapshot, GVirConfigDomainSnapshotDisk *disk); GList *gvir_config_domain_snapshot_get_disks(GVirConfigDomainSnapshot *snapshot); G_END_DECLS #endif /* __LIBVIRT_GCONFIG_DOMAIN_SNAPSHOT_H__ */ libvirt-glib-1.0.0/libvirt-gconfig/libvirt-gconfig-domain-smartcard-host.c0000664000000000000000000000523013004340477023505 00000000000000/* * libvirt-gconfig-domain-smartcard-host.c: libvirt domain smartcard host configuration * * Copyright (C) 2012 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Alexander Larsson */ #include #include "libvirt-gconfig/libvirt-gconfig.h" #include "libvirt-gconfig/libvirt-gconfig-private.h" #define GVIR_CONFIG_DOMAIN_SMARTCARD_HOST_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD_HOST, GVirConfigDomainSmartcardHostPrivate)) struct _GVirConfigDomainSmartcardHostPrivate { gboolean unused; }; G_DEFINE_TYPE(GVirConfigDomainSmartcardHost, gvir_config_domain_smartcard_host, GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD); static void gvir_config_domain_smartcard_host_class_init(GVirConfigDomainSmartcardHostClass *klass) { g_type_class_add_private(klass, sizeof(GVirConfigDomainSmartcardHostPrivate)); } static void gvir_config_domain_smartcard_host_init(GVirConfigDomainSmartcardHost *smartcard) { smartcard->priv = GVIR_CONFIG_DOMAIN_SMARTCARD_HOST_GET_PRIVATE(smartcard); } GVirConfigDomainSmartcardHost *gvir_config_domain_smartcard_host_new(void) { GVirConfigObject *object; object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD_HOST, "smartcard", NULL); gvir_config_object_set_attribute(object, "mode", "host", NULL); return GVIR_CONFIG_DOMAIN_SMARTCARD_HOST(object); } GVirConfigDomainSmartcardHost *gvir_config_domain_smartcard_host_new_from_xml(const gchar *xml, GError **error) { GVirConfigObject *object; object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD_HOST, "smartcard", NULL, xml, error); if (g_strcmp0(gvir_config_object_get_attribute(object, NULL, "mode"), "host") != 0) { g_object_unref(G_OBJECT(object)); return NULL; } return GVIR_CONFIG_DOMAIN_SMARTCARD_HOST(object); } libvirt-glib-1.0.0/vapi/0000775000000000000000000000000013007136424012006 500000000000000libvirt-glib-1.0.0/vapi/Makefile.am0000664000000000000000000000227013004340477013765 00000000000000NULL = if WITH_VALA vapidir = $(datadir)/vala/vapi vapi_DATA = \ libvirt-gconfig-1.0.vapi \ libvirt-glib-1.0.vapi \ libvirt-gobject-1.0.deps \ libvirt-gobject-1.0.vapi \ $(NULL) libvirt-glib-1.0.vapi: $(top_builddir)/libvirt-glib/LibvirtGLib-1.0.gir $(AM_V_GEN)$(VAPIGEN) \ --vapidir=$(builddir) \ --pkg gobject-2.0 \ --pkg gio-2.0 \ --library libvirt-glib-1.0 \ $< libvirt-gobject-1.0.vapi: $(top_builddir)/libvirt-gobject/LibvirtGObject-1.0.gir libvirt-gconfig-1.0.vapi libvirt-glib-1.0.vapi $(AM_V_GEN)$(VAPIGEN) \ --vapidir=$(builddir) \ --pkg gobject-2.0 \ --pkg gio-2.0 \ --pkg libvirt-glib-1.0 \ --library libvirt-gobject-1.0 \ --metadatadir=$(srcdir) \ --girdir=$(top_builddir)/libvirt-glib \ --girdir=$(top_builddir)/libvirt-gconfig \ $< libvirt-gconfig-1.0.vapi: $(top_builddir)/libvirt-gconfig/LibvirtGConfig-1.0.gir $(AM_V_GEN)$(VAPIGEN) \ --vapidir=$(builddir) \ --pkg gobject-2.0 \ --library libvirt-gconfig-1.0 \ $< endif CLEANFILES = \ libvirt-gconfig-1.0.vapi \ libvirt-glib-1.0.vapi \ libvirt-gobject-1.0.vapi \ $(NULL) EXTRA_DIST = libvirt-gobject-1.0.deps libvirt-glib-1.0.0/vapi/Makefile.in0000664000000000000000000004411213007136324013774 00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = vapi ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/glibtests.m4 \ $(top_srcdir)/m4/intltool.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/manywarnings.m4 \ $(top_srcdir)/m4/virt-compile-warnings.m4 \ $(top_srcdir)/m4/virt-gettext.m4 $(top_srcdir)/m4/warnings.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(vapidir)" DATA = $(vapi_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ COVERAGE_CFLAGS = @COVERAGE_CFLAGS@ COVERAGE_LDFLAGS = @COVERAGE_LDFLAGS@ COV_FLAGS = @COV_FLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ CYGWIN_EXTRA_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@ CYGWIN_EXTRA_LIBADD = @CYGWIN_EXTRA_LIBADD@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GIO2_CFLAGS = @GIO2_CFLAGS@ GIO2_LIBS = @GIO2_LIBS@ GLIB2_CFLAGS = @GLIB2_CFLAGS@ GLIB2_LIBS = @GLIB2_LIBS@ GLIB2_REQUIRED = @GLIB2_REQUIRED@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GOBJECT2_CFLAGS = @GOBJECT2_CFLAGS@ GOBJECT2_LIBS = @GOBJECT2_LIBS@ GREP = @GREP@ GTHREAD2_CFLAGS = @GTHREAD2_CFLAGS@ GTHREAD2_LIBS = @GTHREAD2_LIBS@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBVIRT_CFLAGS = @LIBVIRT_CFLAGS@ LIBVIRT_GLIB_MAJOR_VERSION = @LIBVIRT_GLIB_MAJOR_VERSION@ LIBVIRT_GLIB_MICRO_VERSION = @LIBVIRT_GLIB_MICRO_VERSION@ LIBVIRT_GLIB_MINOR_VERSION = @LIBVIRT_GLIB_MINOR_VERSION@ LIBVIRT_GLIB_VERSION = @LIBVIRT_GLIB_VERSION@ LIBVIRT_GLIB_VERSION_INFO = @LIBVIRT_GLIB_VERSION_INFO@ LIBVIRT_GLIB_VERSION_NUMBER = @LIBVIRT_GLIB_VERSION_NUMBER@ LIBVIRT_LIBS = @LIBVIRT_LIBS@ LIBVIRT_REQUIRED = @LIBVIRT_REQUIRED@ LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ LIBXML2_LIBS = @LIBXML2_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MINGW_EXTRA_LDFLAGS = @MINGW_EXTRA_LDFLAGS@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VAPIGEN = @VAPIGEN@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ installed_test_metadir = @installed_test_metadir@ installed_testdir = @installed_testdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ NULL = @WITH_VALA_TRUE@vapidir = $(datadir)/vala/vapi @WITH_VALA_TRUE@vapi_DATA = \ @WITH_VALA_TRUE@ libvirt-gconfig-1.0.vapi \ @WITH_VALA_TRUE@ libvirt-glib-1.0.vapi \ @WITH_VALA_TRUE@ libvirt-gobject-1.0.deps \ @WITH_VALA_TRUE@ libvirt-gobject-1.0.vapi \ @WITH_VALA_TRUE@ $(NULL) CLEANFILES = \ libvirt-gconfig-1.0.vapi \ libvirt-glib-1.0.vapi \ libvirt-gobject-1.0.vapi \ $(NULL) EXTRA_DIST = libvirt-gobject-1.0.deps all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu vapi/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu vapi/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-vapiDATA: $(vapi_DATA) @$(NORMAL_INSTALL) @list='$(vapi_DATA)'; test -n "$(vapidir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(vapidir)'"; \ $(MKDIR_P) "$(DESTDIR)$(vapidir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(vapidir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(vapidir)" || exit $$?; \ done uninstall-vapiDATA: @$(NORMAL_UNINSTALL) @list='$(vapi_DATA)'; test -n "$(vapidir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(vapidir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(vapidir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-vapiDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-vapiDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip install-vapiDATA installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags-am uninstall uninstall-am uninstall-vapiDATA .PRECIOUS: Makefile @WITH_VALA_TRUE@libvirt-glib-1.0.vapi: $(top_builddir)/libvirt-glib/LibvirtGLib-1.0.gir @WITH_VALA_TRUE@ $(AM_V_GEN)$(VAPIGEN) \ @WITH_VALA_TRUE@ --vapidir=$(builddir) \ @WITH_VALA_TRUE@ --pkg gobject-2.0 \ @WITH_VALA_TRUE@ --pkg gio-2.0 \ @WITH_VALA_TRUE@ --library libvirt-glib-1.0 \ @WITH_VALA_TRUE@ $< @WITH_VALA_TRUE@libvirt-gobject-1.0.vapi: $(top_builddir)/libvirt-gobject/LibvirtGObject-1.0.gir libvirt-gconfig-1.0.vapi libvirt-glib-1.0.vapi @WITH_VALA_TRUE@ $(AM_V_GEN)$(VAPIGEN) \ @WITH_VALA_TRUE@ --vapidir=$(builddir) \ @WITH_VALA_TRUE@ --pkg gobject-2.0 \ @WITH_VALA_TRUE@ --pkg gio-2.0 \ @WITH_VALA_TRUE@ --pkg libvirt-glib-1.0 \ @WITH_VALA_TRUE@ --library libvirt-gobject-1.0 \ @WITH_VALA_TRUE@ --metadatadir=$(srcdir) \ @WITH_VALA_TRUE@ --girdir=$(top_builddir)/libvirt-glib \ @WITH_VALA_TRUE@ --girdir=$(top_builddir)/libvirt-gconfig \ @WITH_VALA_TRUE@ $< @WITH_VALA_TRUE@libvirt-gconfig-1.0.vapi: $(top_builddir)/libvirt-gconfig/LibvirtGConfig-1.0.gir @WITH_VALA_TRUE@ $(AM_V_GEN)$(VAPIGEN) \ @WITH_VALA_TRUE@ --vapidir=$(builddir) \ @WITH_VALA_TRUE@ --pkg gobject-2.0 \ @WITH_VALA_TRUE@ --library libvirt-gconfig-1.0 \ @WITH_VALA_TRUE@ $< # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libvirt-glib-1.0.0/vapi/libvirt-gobject-1.0.deps0000664000000000000000000000002413004340477016163 00000000000000libvirt-gconfig-1.0 libvirt-glib-1.0.0/NEWS0000664000000000000000000002662213007070151011470 00000000000000 libvirt-glib News ================= 1.0.0 - Nov 4, 2016 ==================== - Switch to new release numbering scheme, major digit incremented each year, minor for each release, micro for stable branches (if any) - Fix Libs.private variable in pkg-config file - Fix git introspection warnings - Add ability to set SPICE gl property - Add support for virtio video model - Add support for 3d accel property - Add support for querying video model - Add support for host device config for PCI devs - Add docs for more APIs - Avoid unused variable warnings - Fix check for libvirt optional features to use pkg-config - Delete manually written python binding. All apps should use PyGObject with gobjection introspection. - Add schema to be NULL on config objects - Preserve unknown devices listed in XML - Add further test coverage 0.2.3 - Dec 16, 2015 ==================== - Require libvirt >= 1.1.1 - Require glib2 >= 2.36.0 - Require gobject-introspection >= 1.36.0 - Fix memory leak setting ram usage - Fix memory leaks in test suite - Document intended deployment targets - Fix misc docs - Add wrapper for virDOmainSetTime - Port more code to use GTask instead of GSimpleAsyncResult - Drop unused finalize functions - Drop unused variables - Drop overly verbose debug calls for object lifecycle 0.2.2 - Jul 21, 2015 ==================== - Add API for getting interface MAC address - Simplify implementation of object listing APIs - Fix memory leaks of virConnect objects - Port to use GTask instead of GSimpleAsyncResult - Add API to get list of physical network interfaces - Add API to get list of virtual networks - Add API to get DHCP address of virtual networks - Avoid overwriting filesystem type when setting format - Include XML data for tests in dist - Add support for UNIX chardev sources - Fix test linking on platforms with strict linker deps - Add ability to set video ram + vgamem 0.2.1 - Jun 16, 2015 ==================== - Fix libtoolize detection in autogen.sh - Allow storage volume format compatibility level to be set - Add pre-condition checks to more public API entry points - Don't try to return a value from void functions - Add API for controlling storage pool autostart flag - Add API for filesystem image format - Add loop, nbd and ploop filesystem types - Fix setting of driver type when called more than once 0.2.0 - Dec 15, 2014 ==================== - Support keyboard input device config - Annotate some unused parameters - Add support for new graphics attach API 0.1.9 - Aug 20, 2014 ==================== - Require glib2 >= 2.36.0 - Add support for spiceport chardev - Misc fixes to build system - Fix ref counting of snapshot devices - Add API for deleting snapshots - Fix RPM layout for vala files - Fix race in build of vala code - Add API for getting security models - Add classes for dealing with CPU models - Fix enum generation - Add API for fetching snapshots 0.1.8 - Feb 21, 2014 ==================== - Add getter/setter for UUID in domain config - Remove dead code / unused variables - Add missing symbol exports - Add support for setting nwfilters in domain config - Switch to standard gobject introspection autotools macros - Fix typo preventing removal of clock config - Add getter/setters for disk driver type - Add unit tests based on glib tap harness - Add test for validating symbol file exports - Add getters for domain graphics config params - Add more getters for domain timer config - Add support for hpet timer type - Fix event loop impl on win32 - Fix parent class/object of pit timer class - Fix misc API doc bugs - Add more getters for domain clock config - Fix removal of domain CPU feature flags - Fix removal of capabilities CPU topology - Misc fixes to glib event loop integration 0.1.7 - Jul 8, 2013 ==================== - Fix memory leaks in domain memory setters - Add APIs for configuration sdl/rdp/desktop graphics modes - Add getter APIs for domain channel devices - Add getter APIs for storage pools - Add API for getting/setting virt type - Add getter APIs for storage pool schema - Add base framework for i18n of error messages - Fix annotation of gvir_init_object - Add getter/setter APIs for disk driver format - Add APIs for domain snapshot schema - Add APIs to access domain chardev source - Add API to access domain device aliases 0.1.6 - Mar 18, 2013 ==================== - Prefer g_strlcpy over strncpy - Fix potential crashes in some error handling cases - Fix typo in gvir_config_init docs which broke vala binding - Use 'transfer none' for argv parameter in all init functions - Ensure stream data parameters are annotated to be guint8 arrays, not gchar, since they're not NULL terminated strings. - Replace FSF address with URL in copyright headers - Add API for changing Spice compression parameters. 0.1.5 - Jan 14, 2013 ==================== - Add support for bridge interface types in guest XML - Add API to open a read-only connection - Add support for smartcard devices in guest XML - Remove storage volume from pool list after deleteing it 0.1.4 - Nov 16, 2012 ==================== - Add support for configuring power management config - Add API binding for updating device config - Avoid SEGV when querying storage volune with NULL name - Avoid reference count leak when constructing wrapped libvirt objects - Avoid calling g_type_init for newer glib - Add flags for domain reboot API - Fix leak with GMutex compatibility wrappers - Don't use storage volumes before the pool refresh finishes - Add binding for destroying storage pools - Add binding for defining storage pools 0.1.3 - Oct 8, 2012 ==================== - Improve documentation for set_memory method in GVirConfigDomain - Handle size units for memory attributes - Add API for current memory - Fix python example to specify virt type - Use 1 GB of RAM in python example instead 1 TB ! - Add API to get hypervisor name and version - Avoid NULL format string for g_set_error - Fix XXX_new_with_xml constructors for config objects - Add misc getters for VNC/SPICE config attributes - Add handling of PMSUSPENDED state - Add handling of WAKEUP events - Require libvirt 0.10.2 minimum - Add API for domain PM wakeup 0.1.2 - Aug 20, 2012 ==================== - Add async binding for virDomainResume - Fix deadlock in event loop handle/timer removal 0.1.1 - Aug 06, 2012 ==================== - Add bindings for virDomainSnapshotCreate*(). - Add bindings for virDomainRestore*(). - Add GVir.DomainShutdownFlags() binding. - Add GVir.DomainXMLFlags binding. 0.1.0 - Jul 16, 2012 ==================== - Add setters for capabilities CPU config object - Add constructor for capabilities CPU config object - Add config object for domain CPU schema - Add bindings for domain save APIs - Add bindings for storage volume upload/download 0.0.9 - Jun 25, 2012 ==================== - Full API docs for libvirt-glib library - Add API for getting domain OS config - Add API for getting domain OS boot devices - Add APIs for querying host capabilities - Add missing domain OS type enum values - Add API for getting domain virt type - Add comprehensive API arg checking - Add API for getting domain arch - Allow zero timeouts in timer - Fix build with newer glibc-headers and -O0 - Fix generation of filesystem source element - Port to use Mingw64 toolchain for automated builds - Add async API for starting domains - Fix thread safety of event loop timeouts/watches - Add support for filesystem type=bind|ram 0.0.8 - Apr 27, 2012 ==================== - Fix build of test suites with Debian's libtool - Add API for disk source startup policy - Add API for domain controller devices - Add APIs for USB controllers - Add APIs for USB / PCI device addressing schemes - Add APIs for USB redirection devices - Add ASync API for fetching domain info - Add APIs for domain timer configuration 0.0.7 - Mar 30, 2012 ==================== - Fix typo in filesystem access mode constant - Remove incorrect encoding of XML attributes - Add support for USB redirection devices - Add support for SPICE agent device - Fix typo in channel device target constant - Make all string getters return a const string - Keep list of devices sorted in original XML order 0.0.6 - Mar 05, 2012 ==================== - Add binding for virDomainBlockResize(): gvir_domain_disk_resize(). - Set correct target node attribute for domain interface. gvir_config_domain_interface_set_ifname() should be setting 'dev' attribute under 'target', not 'device'. - Getter for the associated domain of a domain device. - Getters for GVirConfigDomainInterface attributes. - GVirDomainDevice now has an associated GVirConfigDomainDevice. - Remove now redundant 'path' property from GVirDomainDevice subclasses. - Add gvir_domain_get_devices(). - Empty statistics for user-mode interfaces. One of the limitations of user-mode networking of libvirt is that you can't get statistics for it (not yet, at least). Instead of erroring-out in that case, simply return empty statistics result and spit a debug message. - Fix a GVirStream leak. - Also distribute GNUmakefile, cfg.mk and maint.mk files. 0.0.5 - Feb 20, 2012 ==================== - Require libvirt >= 0.9.10 - Fix error after finishing a stream - Use G_PARAM_STATIC_STRINGS - Add config for readonly disks - Add config for description/metadata - Fix type when creating storage volumes - Remove some bogus g_error usage - Import GNULIB's compiler warning flags support & fix problems - Add API for resizing storage volumes - Add API to check if a domain is saved - Add config for disk cache method - Add APIs to get node information - Add flags for deleting domains 0.0.4 - Jan 12, 2012 ==================== - Add support for configuring sound, serial, parallel and channel devices - Add support for newer libvirt shutdown event - Add support for setting SPICE/VNC passwords - Fix storage pool annotations - Improve docs for memory APIs - Fix problem with duplicated attributes - Many internal XML helper API cleanups/additions - Add API for retrieving list of all devices - Fix mixup between g_new0/g_slice_free - Change namespace for GVirConfig APIs (breaks ABI and API) - New APIs for save/suspend 0.0.3 - Dec 19, 2011 ==================== - Flesh out API in libvirt-gconfig to allow basic domain configuration - Don't memset private data fields, since glib already ensures this - Fix VPATH builds - Add syntax-check rules ensuring coding style compliance - Describe coding style in HACKING file - Expand libvirt-gobject API to allow watches on streams - Simplify debug system with new glib - Fix libvirt-gobject pkg-config file - Fix domain event handlig wrt transient guests - Don't crash if given a NULL uri to connect to - Expand libvirt-gobject API for storage pools & volumes - Fix some crashes in error paths where GError instance was NULL - Add vala files to the RPM - Add binding for open domain consoles & graphics 0.0.2 - Nov 22, 2011 ==================== - Add API to redefine an existing domain. - Expicitely call virInitialize() to avoid connection races. - Adjust example to latest pygobject-3.0. - Add missing deps on libxml2-devel & libtool. - Add support for writing to streams - Add API for creating transient domains - Change all flags parameters to be guint - Uncomment & fix code for returning object config - Ensure pools & domains hashes are non-NULL to avoid SEGV - Don't de-reference GError instances which are NULL - Update COPYING file to have latest FSF address - Update RPM specfile to include Fedora review feedback 0.0.1 - Nov 16, 2011 ==================== First public release. libvirt-glib-1.0.0/tap-test0000775000000000000000000000012413004340477012455 00000000000000#! /bin/sh # run a GTest in tap mode. The test binary is passed as $1 $1 -k --tap libvirt-glib-1.0.0/docs/0000775000000000000000000000000013007136424011777 500000000000000libvirt-glib-1.0.0/docs/Makefile.am0000664000000000000000000000006713004340477013760 00000000000000SUBDIRS = libvirt-glib libvirt-gobject libvirt-gconfig libvirt-glib-1.0.0/docs/libvirt-gconfig/0000775000000000000000000000000013007136424015064 500000000000000libvirt-glib-1.0.0/docs/libvirt-gconfig/Makefile.am0000664000000000000000000000121113004340477017035 00000000000000 DOC_MODULE=Libvirt-gconfig DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.xml DOC_SOURCE_DIR=$(top_srcdir)/libvirt-gconfig SCANGOBJ_OPTIONS= SCAN_OPTIONS=--rebuild-sections --rebuild-types MKDB_OPTIONS=--sgml-mode --output-format=xml MKTMPL_OPTIONS= MKHTML_OPTIONS= FIXXREF_OPTIONS= HFILE_GLOB=$(top_srcdir)/libvirt-gconfig/*.h CFILE_GLOB=$(top_srcdir)/libvirt-gconfig/*.c IGNORE_HFILES= HTML_IMAGES= content_files= expand_content_files= GTKDOC_CFLAGS= \ $(GOBJECT2_CFLAGS) \ $(LIBXML2_CFLAGS) GTKDOC_LIBS = \ $(GOBJECT2_LIBS) \ $(LIBXML2_LIBS) \ $(top_builddir)/libvirt-gconfig/libvirt-gconfig-1.0.la include $(top_srcdir)/gtk-doc.make libvirt-glib-1.0.0/docs/libvirt-gconfig/Libvirt-gconfig.types0000664000000000000000000000621413007136424021122 00000000000000gvir_config_capabilities_cpu_feature_get_type gvir_config_capabilities_cpu_get_type gvir_config_capabilities_cpu_model_get_type gvir_config_capabilities_cpu_topology_get_type gvir_config_capabilities_get_type gvir_config_capabilities_guest_arch_get_type gvir_config_capabilities_guest_domain_get_type gvir_config_capabilities_guest_feature_get_type gvir_config_capabilities_guest_get_type gvir_config_capabilities_host_get_type gvir_config_capabilities_host_secmodel_get_type gvir_config_domain_address_get_type gvir_config_domain_address_pci_get_type gvir_config_domain_address_usb_get_type gvir_config_domain_channel_get_type gvir_config_domain_chardev_get_type gvir_config_domain_chardev_source_get_type gvir_config_domain_chardev_source_pty_get_type gvir_config_domain_chardev_source_spiceport_get_type gvir_config_domain_chardev_source_spicevmc_get_type gvir_config_domain_chardev_source_unix_get_type gvir_config_domain_clock_get_type gvir_config_domain_console_get_type gvir_config_domain_controller_get_type gvir_config_domain_controller_usb_get_type gvir_config_domain_cpu_feature_get_type gvir_config_domain_cpu_get_type gvir_config_domain_cpu_model_get_type gvir_config_domain_device_get_type gvir_config_domain_disk_driver_get_type gvir_config_domain_disk_get_type gvir_config_domain_filesys_get_type gvir_config_domain_get_type gvir_config_domain_graphics_desktop_get_type gvir_config_domain_graphics_get_type gvir_config_domain_graphics_rdp_get_type gvir_config_domain_graphics_sdl_get_type gvir_config_domain_graphics_spice_get_type gvir_config_domain_graphics_vnc_get_type gvir_config_domain_hostdev_get_type gvir_config_domain_hostdev_pci_get_type gvir_config_domain_input_get_type gvir_config_domain_interface_bridge_get_type gvir_config_domain_interface_filterref_get_type gvir_config_domain_interface_filterref_parameter_get_type gvir_config_domain_interface_get_type gvir_config_domain_interface_network_get_type gvir_config_domain_interface_user_get_type gvir_config_domain_memballoon_get_type gvir_config_domain_os_get_type gvir_config_domain_parallel_get_type gvir_config_domain_power_management_get_type gvir_config_domain_redirdev_get_type gvir_config_domain_seclabel_get_type gvir_config_domain_serial_get_type gvir_config_domain_smartcard_get_type gvir_config_domain_smartcard_host_certificates_get_type gvir_config_domain_smartcard_host_get_type gvir_config_domain_smartcard_passthrough_get_type gvir_config_domain_snapshot_disk_get_type gvir_config_domain_snapshot_get_type gvir_config_domain_sound_get_type gvir_config_domain_timer_get_type gvir_config_domain_timer_hpet_get_type gvir_config_domain_timer_pit_get_type gvir_config_domain_timer_rtc_get_type gvir_config_domain_video_get_type gvir_config_interface_get_type gvir_config_network_filter_get_type gvir_config_network_get_type gvir_config_node_device_get_type gvir_config_object_get_type gvir_config_secret_get_type gvir_config_storage_permissions_get_type gvir_config_storage_pool_get_type gvir_config_storage_pool_source_get_type gvir_config_storage_pool_target_get_type gvir_config_storage_vol_backing_store_get_type gvir_config_storage_vol_get_type gvir_config_storage_vol_target_get_type gvir_config_xml_doc_get_type libvirt-glib-1.0.0/docs/libvirt-gconfig/html/0000775000000000000000000000000013007136424016030 500000000000000libvirt-glib-1.0.0/docs/libvirt-gconfig/html/right.png0000644000000000000000000000040513007136424017570 00000000000000‰PNG  IHDRóÿabKGDÿÿÿ ½§“ pHYs × ×B(›xtIMEÝ!ÜG’IDAT8ËÕÒ¯aÇñ?›M´½IdErš,¾Ù-¸ÑhîAâIl’Í ¯r’äy§ž}¿ç·s¿X6èæ ö!9¢Ÿ#èD‚ Œr$-¬BrÃ$GÒÀ"$”¹;™á‰æŸÍú—WZêä&–!¸cš·±øŠq \`ðÃÔ軀Oä¾ò=QouføòIEND®B`‚libvirt-glib-1.0.0/docs/libvirt-gconfig/html/right-insensitive.png0000644000000000000000000000056513007136424022135 00000000000000‰PNG  IHDRóÿabKGDÿÿÿ ½§“ pHYs × ×B(›xtIMEÝ ¥­^IDAT8ËÍ’±JÃ`…¿ ‚“‹³«/ S’_$ÄÁÁAqrÐÙW(>€“à‚®©“m¥"]\œ„è(‘49.NÚdÒ3¸ß9Ü{á¯eM#MSI‡Î¹·E¯iHz|3{̲l½3 ,K˜k’ž†ÃáV'@EŸEQlwÀŠçyišî·Äqüçù‘™]KÀíh4:mµÄ¦²,;“t˜¤sç\aƒÆR5/¬7'¹W×õp”’Žs×­I’,Kº1³=àËÌÂ0´j0Wg³ÙØ>€Ý ¦­¯PUÕýïð»¤0 §]?qCÒ«™ùιgþ½~œÉkÄAâ…_IEND®B`‚libvirt-glib-1.0.0/docs/libvirt-gconfig/html/index.html0000664000000000000000000000551713007136424017755 00000000000000 Libvirt-gconfig Reference Manual: Libvirt-gconfig Reference Manual libvirt-glib-1.0.0/docs/libvirt-gconfig/html/GVirConfigDomainSnapshot.html0000664000000000000000000007007213007136424023511 00000000000000 GVirConfigDomainSnapshot: Libvirt-gconfig Reference Manual

GVirConfigDomainSnapshot

GVirConfigDomainSnapshot

Object Hierarchy

    GObject
    ╰── GVirConfigObject
        ╰── GVirConfigDomainSnapshot

Description

Functions

gvir_config_domain_snapshot_new ()

GVirConfigDomainSnapshot *
gvir_config_domain_snapshot_new (void);

gvir_config_domain_snapshot_new_from_xml ()

GVirConfigDomainSnapshot *
gvir_config_domain_snapshot_new_from_xml
                               (const gchar *xml,
                                GError **error);

gvir_config_domain_snapshot_get_name ()

const char *
gvir_config_domain_snapshot_get_name (GVirConfigDomainSnapshot *snapshot);

gvir_config_domain_snapshot_set_name ()

void
gvir_config_domain_snapshot_set_name (GVirConfigDomainSnapshot *snapshot,
                                      const char *name);

gvir_config_domain_snapshot_get_description ()

const char *
gvir_config_domain_snapshot_get_description
                               (GVirConfigDomainSnapshot *snapshot);

gvir_config_domain_snapshot_set_description ()

void
gvir_config_domain_snapshot_set_description
                               (GVirConfigDomainSnapshot *snapshot,
                                const char *description);

gvir_config_domain_snapshot_get_memory_state ()

GVirConfigDomainSnapshotMemoryState
gvir_config_domain_snapshot_get_memory_state
                               (GVirConfigDomainSnapshot *snapshot);

gvir_config_domain_snapshot_set_memory_state ()

void
gvir_config_domain_snapshot_set_memory_state
                               (GVirConfigDomainSnapshot *snapshot,
                                GVirConfigDomainSnapshotMemoryState state);

gvir_config_domain_snapshot_get_memory_file ()

const char *
gvir_config_domain_snapshot_get_memory_file
                               (GVirConfigDomainSnapshot *snapshot);

gvir_config_domain_snapshot_set_memory_file ()

void
gvir_config_domain_snapshot_set_memory_file
                               (GVirConfigDomainSnapshot *snapshot,
                                const char *filename);

gvir_config_domain_snapshot_get_creation_time ()

time_t
gvir_config_domain_snapshot_get_creation_time
                               (GVirConfigDomainSnapshot *snapshot);

gvir_config_domain_snapshot_get_state ()

GVirConfigDomainSnapshotDomainState
gvir_config_domain_snapshot_get_state (GVirConfigDomainSnapshot *snapshot);

gvir_config_domain_snapshot_get_parent ()

const char *
gvir_config_domain_snapshot_get_parent
                               (GVirConfigDomainSnapshot *snapshot);

gvir_config_domain_snapshot_get_domain ()

GVirConfigDomain *
gvir_config_domain_snapshot_get_domain
                               (GVirConfigDomainSnapshot *snapshot);

Gets the configuration of the domain snapshot is a snapshot of.

Parameters

snapshot

a GVirConfigDomainSnapshot

 

Returns

A GVirConfigDomain. The returned object should be unreffed with g_object_unref() when no longer needed.

[transfer full]


gvir_config_domain_snapshot_set_disks ()

void
gvir_config_domain_snapshot_set_disks (GVirConfigDomainSnapshot *snapshot,
                                       GList *disks);

Parameters

snapshot

a GVirConfigDomainSnapshot

 

disks

.

[in][element-type LibvirtGConfig.DomainSnapshotDisk]

gvir_config_domain_snapshot_add_disk ()

void
gvir_config_domain_snapshot_add_disk (GVirConfigDomainSnapshot *snapshot,
                                      GVirConfigDomainSnapshotDisk *disk);

gvir_config_domain_snapshot_get_disks ()

GList *
gvir_config_domain_snapshot_get_disks (GVirConfigDomainSnapshot *snapshot);

Gets the list of disks attached to snapshot . The returned list should be freed with g_list_free(), after its elements have been unreffed with g_object_unref().

Parameters

snapshot

a GVirConfigDomainSnapshot

 

Returns

a newly allocated GList of GVirConfigDomainSnapshotDisk.

[element-type LibvirtGConfig.DomainSnapshotDisk][transfer full]

Types and Values

struct GVirConfigDomainSnapshot

struct GVirConfigDomainSnapshot;

struct GVirConfigDomainSnapshotClass

struct GVirConfigDomainSnapshotClass {
    GVirConfigObjectClass parent_class;

    gpointer padding[20];
};

enum GVirConfigDomainSnapshotDomainState

Members

GVIR_CONFIG_DOMAIN_SNAPSHOT_DOMAIN_STATE_NOSTATE

   

GVIR_CONFIG_DOMAIN_SNAPSHOT_DOMAIN_STATE_RUNNING

   

GVIR_CONFIG_DOMAIN_SNAPSHOT_DOMAIN_STATE_BLOCKED

   

GVIR_CONFIG_DOMAIN_SNAPSHOT_DOMAIN_STATE_PAUSED

   

GVIR_CONFIG_DOMAIN_SNAPSHOT_DOMAIN_STATE_SHUTDOWN

   

GVIR_CONFIG_DOMAIN_SNAPSHOT_DOMAIN_STATE_SHUTOFF

   

GVIR_CONFIG_DOMAIN_SNAPSHOT_DOMAIN_STATE_CRASHED

   

GVIR_CONFIG_DOMAIN_SNAPSHOT_DOMAIN_STATE_PMSUSPENDED

   

GVIR_CONFIG_DOMAIN_SNAPSHOT_DOMAIN_STATE_DISK_SNAPSHOT

   

enum GVirConfigDomainSnapshotMemoryState

Members

GVIR_CONFIG_DOMAIN_SNAPSHOT_MEMORY_STATE_NONE

   

GVIR_CONFIG_DOMAIN_SNAPSHOT_MEMORY_STATE_INTERNAL

   

GVIR_CONFIG_DOMAIN_SNAPSHOT_MEMORY_STATE_EXTERNAL

   

GVirConfigDomainSnapshotPrivate

typedef struct _GVirConfigDomainSnapshotPrivate GVirConfigDomainSnapshotPrivate;
libvirt-glib-1.0.0/docs/libvirt-gconfig/html/GVirConfigSecret.html0000664000000000000000000001435113007136424022005 00000000000000 GVirConfigSecret: Libvirt-gconfig Reference Manual

GVirConfigSecret

GVirConfigSecret

Types and Values

Object Hierarchy

    GObject
    ╰── GVirConfigObject
        ╰── GVirConfigSecret

Description

Functions

gvir_config_secret_new ()

GVirConfigSecret *
gvir_config_secret_new (void);

gvir_config_secret_new_from_xml ()

GVirConfigSecret *
gvir_config_secret_new_from_xml (const gchar *xml,
                                 GError **error);

Types and Values

struct GVirConfigSecret

struct GVirConfigSecret;

struct GVirConfigSecretClass

struct GVirConfigSecretClass {
    GVirConfigObjectClass parent_class;

    gpointer padding[20];
};

GVirConfigSecretPrivate

typedef struct _GVirConfigSecretPrivate GVirConfigSecretPrivate;
libvirt-glib-1.0.0/docs/libvirt-gconfig/html/Libvirt-gconfig.devhelp20000664000000000000000000006611613007136424022442 00000000000000 libvirt-glib-1.0.0/docs/libvirt-gconfig/html/GVirConfigDomain.html0000664000000000000000000017405713007136424022001 00000000000000 GVirConfigDomain: Libvirt-gconfig Reference Manual

GVirConfigDomain

GVirConfigDomain

Functions

GVirConfigDomain * gvir_config_domain_new_from_xml ()
GVirConfigDomain * gvir_config_domain_new ()
GVirConfigDomainVirtType gvir_config_domain_get_virt_type ()
void gvir_config_domain_set_virt_type ()
const char * gvir_config_domain_get_name ()
void gvir_config_domain_set_name ()
const char * gvir_config_domain_get_uuid ()
void gvir_config_domain_set_uuid ()
const char * gvir_config_domain_get_description ()
void gvir_config_domain_set_description ()
guint64 gvir_config_domain_get_memory ()
void gvir_config_domain_set_memory ()
guint64 gvir_config_domain_get_current_memory ()
void gvir_config_domain_set_current_memory ()
guint64 gvir_config_domain_get_vcpus ()
void gvir_config_domain_set_vcpus ()
GStrv gvir_config_domain_get_features ()
void gvir_config_domain_set_features ()
GVirConfigDomainClock * gvir_config_domain_get_clock ()
void gvir_config_domain_set_clock ()
GVirConfigDomainOs * gvir_config_domain_get_os ()
void gvir_config_domain_set_os ()
void gvir_config_domain_set_seclabel ()
const char * gvir_config_domain_get_title ()
void gvir_config_domain_set_title ()
void gvir_config_domain_set_devices ()
void gvir_config_domain_add_device ()
GList * gvir_config_domain_get_devices ()
void gvir_config_domain_set_lifecycle ()
gboolean gvir_config_domain_set_custom_xml ()
gchar * gvir_config_domain_get_custom_xml ()
GVirConfigDomainCpu * gvir_config_domain_get_cpu ()
void gvir_config_domain_set_cpu ()
void gvir_config_domain_set_power_management ()

Properties

guint64 current-memory Read / Write
gchar * description Read / Write
GStrv features Read / Write
guint64 memory Read / Write
gchar * name Read / Write
gchar * title Read / Write
gchar * uuid Read / Write
guint64 vcpu Read / Write

Object Hierarchy

    GObject
    ╰── GVirConfigObject
        ╰── GVirConfigDomain

Description

Functions

gvir_config_domain_new_from_xml ()

GVirConfigDomain *
gvir_config_domain_new_from_xml (const gchar *xml,
                                 GError **error);

gvir_config_domain_new ()

GVirConfigDomain *
gvir_config_domain_new (void);

gvir_config_domain_get_virt_type ()

GVirConfigDomainVirtType
gvir_config_domain_get_virt_type (GVirConfigDomain *domain);

gvir_config_domain_set_virt_type ()

void
gvir_config_domain_set_virt_type (GVirConfigDomain *domain,
                                  GVirConfigDomainVirtType type);

gvir_config_domain_get_name ()

const char *
gvir_config_domain_get_name (GVirConfigDomain *domain);

gvir_config_domain_set_name ()

void
gvir_config_domain_set_name (GVirConfigDomain *domain,
                             const char *name);

Parameters

domain

a GVirConfigDomain

 

name

.

[allow-none]

gvir_config_domain_get_uuid ()

const char *
gvir_config_domain_get_uuid (GVirConfigDomain *domain);

gvir_config_domain_set_uuid ()

void
gvir_config_domain_set_uuid (GVirConfigDomain *domain,
                             const char *uuid);

Parameters

domain

a GVirConfigDomain

 

uuid

.

[allow-none]

gvir_config_domain_get_description ()

const char *
gvir_config_domain_get_description (GVirConfigDomain *domain);

gvir_config_domain_set_description ()

void
gvir_config_domain_set_description (GVirConfigDomain *domain,
                                    const char *description);

Parameters

domain

a GVirConfigDomain

 

description

.

[allow-none]

gvir_config_domain_get_memory ()

guint64
gvir_config_domain_get_memory (GVirConfigDomain *domain);

Parameters

domain

a GVirConfigDomain

 

Returns

maximum amount of RAM in kilobytes (i.e. blocks of 1024 bytes).


gvir_config_domain_set_memory ()

void
gvir_config_domain_set_memory (GVirConfigDomain *domain,
                               guint64 memory);

Sets the maximum amount of RAM allocated to domain in kilobytes (i.e. blocks of 1024 bytes).

Parameters

domain

a GVirConfigDomain

 

memory

The maximum amount of RAM in kilobytes.

 

gvir_config_domain_get_current_memory ()

guint64
gvir_config_domain_get_current_memory (GVirConfigDomain *domain);

Parameters

domain

a GVirConfigDomain

 

Returns

current amount of RAM in kilobytes (i.e. blocks of 1024 bytes).


gvir_config_domain_set_current_memory ()

void
gvir_config_domain_set_current_memory (GVirConfigDomain *domain,
                                       guint64 memory);

Sets the current amount of RAM allocated to domain in kilobytes (i.e. blocks of 1024 bytes). This can be set to less than the maximum domain memory to allow to balloon the guest memory on the fly. Be aware that libvirt will set it automatically if it's not explictly set, which means you may need to set this value in addition to 'memory' if you want to change the available domain memory after creation.

Parameters

domain

a GVirConfigDomain

 

memory

The current amount of RAM in kilobytes.

 

gvir_config_domain_get_vcpus ()

guint64
gvir_config_domain_get_vcpus (GVirConfigDomain *domain);

gvir_config_domain_set_vcpus ()

void
gvir_config_domain_set_vcpus (GVirConfigDomain *domain,
                              guint64 vcpu_count);

gvir_config_domain_get_features ()

GStrv
gvir_config_domain_get_features (GVirConfigDomain *domain);

Parameters

domain

a GVirConfigDomain

 

Returns

The returned list should be freed with g_strfreev() when no longer needed.

[transfer full]


gvir_config_domain_set_features ()

void
gvir_config_domain_set_features (GVirConfigDomain *domain,
                                 const GStrv features);

gvir_config_domain_get_clock ()

GVirConfigDomainClock *
gvir_config_domain_get_clock (GVirConfigDomain *domain);

Gets the clock configuration of domain

Parameters

domain

a GVirConfigDomain

 

Returns

A GVirConfigDomainClock. The returned object should be unreffed with g_object_unref() when no longer needed.

[transfer full]


gvir_config_domain_set_clock ()

void
gvir_config_domain_set_clock (GVirConfigDomain *domain,
                              GVirConfigDomainClock *klock);

Parameters

domain

a GVirConfigDomain

 

klock

.

[allow-none]

gvir_config_domain_get_os ()

GVirConfigDomainOs *
gvir_config_domain_get_os (GVirConfigDomain *domain);

Gets the operating system configuration of domain

Parameters

domain

a GVirConfigDomain

 

Returns

A GVirConfigDomainOs. The returned object should be unreffed with g_object_unref() when no longer needed.

[transfer full]


gvir_config_domain_set_os ()

void
gvir_config_domain_set_os (GVirConfigDomain *domain,
                           GVirConfigDomainOs *os);

Parameters

domain

a GVirConfigDomain

 

os

the os configuration to set.

[allow-none]

gvir_config_domain_set_seclabel ()

void
gvir_config_domain_set_seclabel (GVirConfigDomain *domain,
                                 GVirConfigDomainSeclabel *seclabel);

Parameters

domain

a GVirConfigDomain

 

seclabel

the security label configuration to set.

[allow-none]

gvir_config_domain_get_title ()

const char *
gvir_config_domain_get_title (GVirConfigDomain *domain);

gvir_config_domain_set_title ()

void
gvir_config_domain_set_title (GVirConfigDomain *domain,
                              const char *title);

Sets the title of the domain. This is an optional short textual description of the domain. Passing a NULL title unsets the current domain title.

Parameters

domain

a GVirConfigDomain

 

title

title of the domain.

[allow-none]

gvir_config_domain_set_devices ()

void
gvir_config_domain_set_devices (GVirConfigDomain *domain,
                                GList *devices);

Parameters

domain

a GVirConfigDomain

 

devices

.

[in][element-type LibvirtGConfig.DomainDevice]

gvir_config_domain_add_device ()

void
gvir_config_domain_add_device (GVirConfigDomain *domain,
                               GVirConfigDomainDevice *device);

gvir_config_domain_get_devices ()

GList *
gvir_config_domain_get_devices (GVirConfigDomain *domain);

Gets the list of devices attached to domain . The returned list should be freed with g_list_free(), after its elements have been unreffed with g_object_unref().

Parameters

domain

a GVirConfigDomain

 

Returns

a newly allocated GList of GVirConfigDomainDevice.

[element-type LibvirtGConfig.DomainDevice][transfer full]


gvir_config_domain_set_lifecycle ()

void
gvir_config_domain_set_lifecycle (GVirConfigDomain *domain,
                                  GVirConfigDomainLifecycleEvent event,
                                  GVirConfigDomainLifecycleAction action);

gvir_config_domain_set_custom_xml ()

gboolean
gvir_config_domain_set_custom_xml (GVirConfigDomain *domain,
                                   const gchar *xml,
                                   const gchar *ns,
                                   const gchar *ns_uri,
                                   GError **error);

gvir_config_domain_get_custom_xml ()

gchar *
gvir_config_domain_get_custom_xml (GVirConfigDomain *domain,
                                   const gchar *ns_uri);

gvir_config_domain_get_cpu ()

GVirConfigDomainCpu *
gvir_config_domain_get_cpu (GVirConfigDomain *domain);

Gets the CPU configuration of domain

Parameters

domain

a GVirConfigDomain

 

Returns

A GVirConfigDomainCpu. The returned object should be unreffed with g_object_unref() when no longer needed.

[transfer full]


gvir_config_domain_set_cpu ()

void
gvir_config_domain_set_cpu (GVirConfigDomain *domain,
                            GVirConfigDomainCpu *cpu);

Parameters

domain

a GVirConfigDomain

 

cpu

.

[allow-none]

gvir_config_domain_set_power_management ()

void
gvir_config_domain_set_power_management
                               (GVirConfigDomain *domain,
                                GVirConfigDomainPowerManagement *pm);

Parameters

domain

a GVirConfigDomain

 

pm

a GVirPowerManagement instance.

[allow-none]

Types and Values

struct GVirConfigDomain

struct GVirConfigDomain;

struct GVirConfigDomainClass

struct GVirConfigDomainClass {
    GVirConfigObjectClass parent_class;

    gpointer padding[20];
};

enum GVirConfigDomainVirtType

Members

GVIR_CONFIG_DOMAIN_VIRT_QEMU

   

GVIR_CONFIG_DOMAIN_VIRT_KQEMU

   

GVIR_CONFIG_DOMAIN_VIRT_KVM

   

GVIR_CONFIG_DOMAIN_VIRT_XEN

   

GVIR_CONFIG_DOMAIN_VIRT_LXC

   

GVIR_CONFIG_DOMAIN_VIRT_UML

   

GVIR_CONFIG_DOMAIN_VIRT_OPENVZ

   

GVIR_CONFIG_DOMAIN_VIRT_VSERVER

   

GVIR_CONFIG_DOMAIN_VIRT_LDOM

   

GVIR_CONFIG_DOMAIN_VIRT_TEST

   

GVIR_CONFIG_DOMAIN_VIRT_VMWARE

   

GVIR_CONFIG_DOMAIN_VIRT_HYPERV

   

GVIR_CONFIG_DOMAIN_VIRT_VBOX

   

GVIR_CONFIG_DOMAIN_VIRT_ONE

   

GVIR_CONFIG_DOMAIN_VIRT_PHYP

   

enum GVirConfigDomainLifecycleEvent

Members

GVIR_CONFIG_DOMAIN_LIFECYCLE_ON_POWEROFF

   

GVIR_CONFIG_DOMAIN_LIFECYCLE_ON_REBOOT

   

GVIR_CONFIG_DOMAIN_LIFECYCLE_ON_CRASH

   

enum GVirConfigDomainLifecycleAction

Members

GVIR_CONFIG_DOMAIN_LIFECYCLE_DESTROY

   

GVIR_CONFIG_DOMAIN_LIFECYCLE_RESTART

   

GVIR_CONFIG_DOMAIN_LIFECYCLE_PRESERVE

   

GVIR_CONFIG_DOMAIN_LIFECYCLE_RENAME_RESTART

   

GVIR_CONFIG_DOMAIN_LIFECYCLE_COREDUMP_DESTROY

   

GVIR_CONFIG_DOMAIN_LIFECYCLE_COREDUMP_RESTART

   

GVirConfigDomainPrivate

typedef struct _GVirConfigDomainPrivate GVirConfigDomainPrivate;

Property Details

The “current-memory†property

  “current-memory†          guint64

Current Guest Memory (in kilobytes).

Flags: Read / Write

Default value: 0


The “description†property

  “description†             gchar *

Some human readable description (could be anything).

Flags: Read / Write

Default value: NULL


The “features†property

  “features†                GStrv

Hypervisor Features.

Flags: Read / Write


The “memory†property

  “memory†                  guint64

Maximum Guest Memory (in kilobytes).

Flags: Read / Write

Default value: 0


The “name†property

  “name†                    gchar *

Domain Name.

Flags: Read / Write

Default value: NULL


The “title†property

  “title†                   gchar *

A short description - title - of the domain.

Flags: Read / Write

Default value: NULL


The “uuid†property

  “uuid†                    gchar *

Domain UUID.

Flags: Read / Write

Default value: NULL


The “vcpu†property

  “vcpu†                    guint64

Maximum Number of Guest Virtual CPUs.

Flags: Read / Write

Default value: 1

libvirt-glib-1.0.0/docs/libvirt-gconfig/html/GVirConfigStorageVol.html0000664000000000000000000003152313007136424022645 00000000000000 GVirConfigStorageVol: Libvirt-gconfig Reference Manual

GVirConfigStorageVol

GVirConfigStorageVol

Object Hierarchy

    GObject
    ╰── GVirConfigObject
        ╰── GVirConfigStorageVol

Description

Functions

gvir_config_storage_vol_new ()

GVirConfigStorageVol *
gvir_config_storage_vol_new (void);

gvir_config_storage_vol_new_from_xml ()

GVirConfigStorageVol *
gvir_config_storage_vol_new_from_xml (const gchar *xml,
                                      GError **error);

gvir_config_storage_vol_set_allocation ()

void
gvir_config_storage_vol_set_allocation
                               (GVirConfigStorageVol *vol,
                                guint64 allocation);

gvir_config_storage_vol_set_backing_store ()

void
gvir_config_storage_vol_set_backing_store
                               (GVirConfigStorageVol *vol,
                                GVirConfigStorageVolBackingStore *backing_store);

Parameters

backing_store

.

[allow-none]

gvir_config_storage_vol_set_capacity ()

void
gvir_config_storage_vol_set_capacity (GVirConfigStorageVol *vol,
                                      guint64 capacity);

gvir_config_storage_vol_set_name ()

void
gvir_config_storage_vol_set_name (GVirConfigStorageVol *vol,
                                  const char *name);

Parameters

name

.

[allow-none]

gvir_config_storage_vol_set_target ()

void
gvir_config_storage_vol_set_target (GVirConfigStorageVol *vol,
                                    GVirConfigStorageVolTarget *target);

Parameters

target

.

[allow-none]

Types and Values

struct GVirConfigStorageVol

struct GVirConfigStorageVol;

struct GVirConfigStorageVolClass

struct GVirConfigStorageVolClass {
    GVirConfigObjectClass parent_class;

    gpointer padding[20];
};

GVirConfigStorageVolPrivate

typedef struct _GVirConfigStorageVolPrivate GVirConfigStorageVolPrivate;
libvirt-glib-1.0.0/docs/libvirt-gconfig/html/up-insensitive.png0000644000000000000000000000056613007136424021445 00000000000000‰PNG  IHDRóÿabKGDÿÿÿ ½§“ pHYs × ×B(›xtIMEÝwIûIDAT8Ëí’?/QÅÏ™?[êu$¾€V³î›ÑâHTD³ø”ÛˆBM+¡!™ÂÌ<ˆDã+èô[mdÞ\…·bø{º{sÎ/97˜ªSÖÚ£º®»<ìTõ8ŒcÌÉ¿UU­‘¼‡•WÕÍ,Ë®ÿ”e¹EÑ €žªîÉSïmÛ®æy~û+À9·è½¿0`hŒ9u†ªº`Çñr¿ßùpÎÍ{ïÌ8‘m’ ªJkí€-o$—Dä¢  išË¾'¹; ‡ Jr‡äCð\¨*¿HΑ|JÓtCDÆßo#"ã$IÖ<«êBQ½é£êêÉ]•TKúIEND®B`‚libvirt-glib-1.0.0/docs/libvirt-gconfig/html/GVirConfigNodeDevice.html0000664000000000000000000001473213007136424022570 00000000000000 GVirConfigNodeDevice: Libvirt-gconfig Reference Manual

GVirConfigNodeDevice

GVirConfigNodeDevice

Object Hierarchy

    GObject
    ╰── GVirConfigObject
        ╰── GVirConfigNodeDevice

Description

Functions

gvir_config_node_device_new ()

GVirConfigNodeDevice *
gvir_config_node_device_new (void);

gvir_config_node_device_new_from_xml ()

GVirConfigNodeDevice *
gvir_config_node_device_new_from_xml (const gchar *xml,
                                      GError **error);

Types and Values

struct GVirConfigNodeDevice

struct GVirConfigNodeDevice;

struct GVirConfigNodeDeviceClass

struct GVirConfigNodeDeviceClass {
    GVirConfigObjectClass parent_class;

    gpointer padding[20];
};

GVirConfigNodeDevicePrivate

typedef struct _GVirConfigNodeDevicePrivate GVirConfigNodeDevicePrivate;
libvirt-glib-1.0.0/docs/libvirt-gconfig/html/home.png0000644000000000000000000000040013007136424017376 00000000000000‰PNG  IHDRóÿabKGDÿÿÿ ½§“ pHYs × ×B(›xtIMEÝ¡ &IDAT8ËÝÒ½ AÅñßž¦f`n v`6`/¶`Y€š˜Ü¡`f&k$,Ëá}˜ˆ ÌüßÀ0ü§bŒ+Ô¸aQW~bæ ËOà e˜{‡y N°Á£üö[LáØÌ}.pÇiÀ­÷¨BzüžÆmm Šoæ·.I]7Ì^[úÃô;%:å†ÁVIEND®B`‚libvirt-glib-1.0.0/docs/libvirt-gconfig/html/GVirConfigCapabilities.html0000664000000000000000000002177013007136424023154 00000000000000 GVirConfigCapabilities: Libvirt-gconfig Reference Manual

GVirConfigCapabilities

GVirConfigCapabilities

Object Hierarchy

    GObject
    ╰── GVirConfigObject
        ╰── GVirConfigCapabilities

Description

Functions

gvir_config_capabilities_new ()

GVirConfigCapabilities *
gvir_config_capabilities_new (void);

gvir_config_capabilities_new_from_xml ()

GVirConfigCapabilities *
gvir_config_capabilities_new_from_xml (const gchar *xml,
                                       GError **error);

gvir_config_capabilities_get_host ()

GVirConfigCapabilitiesHost *
gvir_config_capabilities_get_host (GVirConfigCapabilities *caps);

Gets the host capabilities.

Returns

a new GVirConfigCapabilitiesHost.

[transfer full]


gvir_config_capabilities_get_guests ()

GList *
gvir_config_capabilities_get_guests (GVirConfigCapabilities *caps);

Gets the list of guest capabilities.

Returns

a newly allocated GList of GVirConfigCapabilitiesGuest.

[element-type LibvirtGConfig.CapabilitiesGuest][transfer full]

Types and Values

struct GVirConfigCapabilities

struct GVirConfigCapabilities;

struct GVirConfigCapabilitiesClass

struct GVirConfigCapabilitiesClass {
    GVirConfigObjectClass parent_class;

    gpointer padding[20];
};

GVirConfigCapabilitiesPrivate

typedef struct _GVirConfigCapabilitiesPrivate GVirConfigCapabilitiesPrivate;
libvirt-glib-1.0.0/docs/libvirt-gconfig/html/GVirConfigInterface.html0000664000000000000000000001467013007136424022464 00000000000000 GVirConfigInterface: Libvirt-gconfig Reference Manual

GVirConfigInterface

GVirConfigInterface

Object Hierarchy

    GObject
    ╰── GVirConfigObject
        ╰── GVirConfigInterface

Description

Functions

gvir_config_interface_new ()

GVirConfigInterface *
gvir_config_interface_new (void);

gvir_config_interface_new_from_xml ()

GVirConfigInterface *
gvir_config_interface_new_from_xml (const gchar *xml,
                                    GError **error);

Types and Values

struct GVirConfigInterface

struct GVirConfigInterface;

struct GVirConfigInterfaceClass

struct GVirConfigInterfaceClass {
    GVirConfigObjectClass parent_class;

    gpointer padding[20];
};

GVirConfigInterfacePrivate

typedef struct _GVirConfigInterfacePrivate GVirConfigInterfacePrivate;
libvirt-glib-1.0.0/docs/libvirt-gconfig/html/api-index-full.html0000664000000000000000000032741313007136424021466 00000000000000 API Index: Libvirt-gconfig Reference Manual

API Index

T

g_type_init, macro in libvirt-gconfig-compat

V

GVirConfigCapabilities, struct in GVirConfigCapabilities
GVirConfigCapabilitiesClass, struct in GVirConfigCapabilities
GVirConfigCapabilitiesCpu, struct in GVirConfigCapabilitiesCpu
GVirConfigCapabilitiesCpuClass, struct in GVirConfigCapabilitiesCpu
GVirConfigCapabilitiesCpuFeature, struct in GVirConfigCapabilitiesCpuFeature
GVirConfigCapabilitiesCpuFeatureClass, struct in GVirConfigCapabilitiesCpuFeature
GVirConfigCapabilitiesCpuFeaturePrivate, struct in GVirConfigCapabilitiesCpuFeature
GVirConfigCapabilitiesCpuModel, struct in GVirConfigCapabilitiesCpuModel
GVirConfigCapabilitiesCpuModelClass, struct in GVirConfigCapabilitiesCpuModel
GVirConfigCapabilitiesCpuModelPrivate, struct in GVirConfigCapabilitiesCpuModel
GVirConfigCapabilitiesCpuPrivate, struct in GVirConfigCapabilitiesCpu
GVirConfigCapabilitiesCpuTopology, struct in GVirConfigCapabilitiesCpuTopology
GVirConfigCapabilitiesCpuTopologyClass, struct in GVirConfigCapabilitiesCpuTopology
GVirConfigCapabilitiesCpuTopologyPrivate, struct in GVirConfigCapabilitiesCpuTopology
GVirConfigCapabilitiesGuest, struct in GVirConfigCapabilitiesGuest
GVirConfigCapabilitiesGuestArch, struct in GVirConfigCapabilitiesGuestArch
GVirConfigCapabilitiesGuestArchClass, struct in GVirConfigCapabilitiesGuestArch
GVirConfigCapabilitiesGuestArchPrivate, struct in GVirConfigCapabilitiesGuestArch
GVirConfigCapabilitiesGuestClass, struct in GVirConfigCapabilitiesGuest
GVirConfigCapabilitiesGuestDomain, struct in GVirConfigCapabilitiesGuestDomain
GVirConfigCapabilitiesGuestDomainClass, struct in GVirConfigCapabilitiesGuestDomain
GVirConfigCapabilitiesGuestDomainPrivate, struct in GVirConfigCapabilitiesGuestDomain
GVirConfigCapabilitiesGuestFeature, struct in GVirConfigCapabilitiesGuestFeature
GVirConfigCapabilitiesGuestFeatureClass, struct in GVirConfigCapabilitiesGuestFeature
GVirConfigCapabilitiesGuestFeaturePrivate, struct in GVirConfigCapabilitiesGuestFeature
GVirConfigCapabilitiesGuestPrivate, struct in GVirConfigCapabilitiesGuest
GVirConfigCapabilitiesHost, struct in GVirConfigCapabilitiesHost
GVirConfigCapabilitiesHostClass, struct in GVirConfigCapabilitiesHost
GVirConfigCapabilitiesHostPrivate, struct in GVirConfigCapabilitiesHost
GVirConfigCapabilitiesHostSecModel, struct in GVirConfigCapabilitiesHostSecModel
GVirConfigCapabilitiesHostSecModelClass, struct in GVirConfigCapabilitiesHostSecModel
GVirConfigCapabilitiesHostSecModelPrivate, struct in GVirConfigCapabilitiesHostSecModel
GVirConfigCapabilitiesPrivate, struct in GVirConfigCapabilities
GVirConfigDomain, struct in GVirConfigDomain
GVirConfigDomain:current-memory, object property in GVirConfigDomain
GVirConfigDomain:description, object property in GVirConfigDomain
GVirConfigDomain:features, object property in GVirConfigDomain
GVirConfigDomain:memory, object property in GVirConfigDomain
GVirConfigDomain:name, object property in GVirConfigDomain
GVirConfigDomain:title, object property in GVirConfigDomain
GVirConfigDomain:uuid, object property in GVirConfigDomain
GVirConfigDomain:vcpu, object property in GVirConfigDomain
GVirConfigDomainAddress, struct in GVirConfigDomainAddress
GVirConfigDomainAddressClass, struct in GVirConfigDomainAddress
GVirConfigDomainAddressPci, struct in GVirConfigDomainAddressPci
GVirConfigDomainAddressPciClass, struct in GVirConfigDomainAddressPci
GVirConfigDomainAddressPciPrivate, struct in GVirConfigDomainAddressPci
GVirConfigDomainAddressPrivate, struct in GVirConfigDomainAddress
GVirConfigDomainAddressUsb, struct in GVirConfigDomainAddressUsb
GVirConfigDomainAddressUsbClass, struct in GVirConfigDomainAddressUsb
GVirConfigDomainAddressUsbPrivate, struct in GVirConfigDomainAddressUsb
GVirConfigDomainChannel, struct in GVirConfigDomainChannel
GVirConfigDomainChannelClass, struct in GVirConfigDomainChannel
GVirConfigDomainChannelPrivate, struct in GVirConfigDomainChannel
GVirConfigDomainChannelTargetType, enum in GVirConfigDomainChannel
GVirConfigDomainChardev, struct in GVirConfigDomainChardev
GVirConfigDomainChardevClass, struct in GVirConfigDomainChardev
GVirConfigDomainChardevPrivate, struct in GVirConfigDomainChardev
GVirConfigDomainChardevSource, struct in GVirConfigDomainChardevSource
GVirConfigDomainChardevSourceClass, struct in GVirConfigDomainChardevSource
GVirConfigDomainChardevSourcePrivate, struct in GVirConfigDomainChardevSource
GVirConfigDomainChardevSourcePty, struct in GVirConfigDomainChardevSourcePty
GVirConfigDomainChardevSourcePtyClass, struct in GVirConfigDomainChardevSourcePty
GVirConfigDomainChardevSourcePtyPrivate, struct in GVirConfigDomainChardevSourcePty
GVirConfigDomainChardevSourceUnix, struct in GVirConfigDomainChardevSourceUnix
GVirConfigDomainChardevSourceUnixClass, struct in GVirConfigDomainChardevSourceUnix
GVirConfigDomainChardevSourceUnixPrivate, struct in GVirConfigDomainChardevSourceUnix
GVirConfigDomainClass, struct in GVirConfigDomain
GVirConfigDomainClock, struct in GVirConfigDomainClock
GVirConfigDomainClockClass, struct in GVirConfigDomainClock
GVirConfigDomainClockOffset, enum in GVirConfigDomainClock
GVirConfigDomainClockPrivate, struct in GVirConfigDomainClock
GVirConfigDomainConsole, struct in GVirConfigDomainConsole
GVirConfigDomainConsoleClass, struct in GVirConfigDomainConsole
GVirConfigDomainConsolePrivate, struct in GVirConfigDomainConsole
GVirConfigDomainConsoleTargetType, enum in GVirConfigDomainConsole
GVirConfigDomainController, struct in GVirConfigDomainController
GVirConfigDomainControllerClass, struct in GVirConfigDomainController
GVirConfigDomainControllerPrivate, struct in GVirConfigDomainController
GVirConfigDomainControllerUsb, struct in GVirConfigDomainControllerUsb
GVirConfigDomainControllerUsbClass, struct in GVirConfigDomainControllerUsb
GVirConfigDomainControllerUsbModel, enum in GVirConfigDomainControllerUsb
GVirConfigDomainControllerUsbPrivate, struct in GVirConfigDomainControllerUsb
GVirConfigDomainCpu, struct in GVirConfigDomainCpu
GVirConfigDomainCpuClass, struct in GVirConfigDomainCpu
GVirConfigDomainCpuFeature, struct in GVirConfigDomainCpuFeature
GVirConfigDomainCpuFeatureClass, struct in GVirConfigDomainCpuFeature
GVirConfigDomainCpuFeaturePolicy, enum in GVirConfigDomainCpuFeature
GVirConfigDomainCpuFeaturePrivate, struct in GVirConfigDomainCpuFeature
GVirConfigDomainCpuMatchPolicy, enum in GVirConfigDomainCpu
GVirConfigDomainCpuMode, enum in GVirConfigDomainCpu
GVirConfigDomainCpuModel, struct in GVirConfigDomainCpuModel
GVirConfigDomainCpuModelClass, struct in GVirConfigDomainCpuModel
GVirConfigDomainCpuModelPrivate, struct in GVirConfigDomainCpuModel
GVirConfigDomainCpuPrivate, struct in GVirConfigDomainCpu
GVirConfigDomainDevice, struct in GVirConfigDomainDevice
GVirConfigDomainDeviceClass, struct in GVirConfigDomainDevice
GVirConfigDomainDevicePrivate, struct in GVirConfigDomainDevice
GVirConfigDomainDisk, struct in GVirConfigDomainDisk
GVirConfigDomainDiskBus, enum in GVirConfigDomainDisk
GVirConfigDomainDiskCacheType, enum in GVirConfigDomainDiskDriver
GVirConfigDomainDiskClass, struct in GVirConfigDomainDisk
GVirConfigDomainDiskDriver, struct in GVirConfigDomainDiskDriver
GVirConfigDomainDiskDriverClass, struct in GVirConfigDomainDiskDriver
GVirConfigDomainDiskDriverDiscard, enum in GVirConfigDomainDiskDriver
GVirConfigDomainDiskDriverErrorPolicy, enum in GVirConfigDomainDiskDriver
GVirConfigDomainDiskDriverIoPolicy, enum in GVirConfigDomainDiskDriver
GVirConfigDomainDiskDriverPrivate, struct in GVirConfigDomainDiskDriver
GVirConfigDomainDiskFormat, enum in GVirConfigDomainDiskDriver
GVirConfigDomainDiskGuestDeviceType, enum in GVirConfigDomainDisk
GVirConfigDomainDiskPrivate, struct in GVirConfigDomainDisk
GVirConfigDomainDiskSnapshotType, enum in GVirConfigDomainDisk
GVirConfigDomainDiskStartupPolicy, enum in GVirConfigDomainDisk
GVirConfigDomainDiskType, enum in GVirConfigDomainDisk
GVirConfigDomainFilesys, struct in GVirConfigDomainFilesys
GVirConfigDomainFilesysAccessType, enum in GVirConfigDomainFilesys
GVirConfigDomainFilesysClass, struct in GVirConfigDomainFilesys
GVirConfigDomainFilesysDriverType, enum in GVirConfigDomainFilesys
GVirConfigDomainFilesysPrivate, struct in GVirConfigDomainFilesys
GVirConfigDomainFilesysType, enum in GVirConfigDomainFilesys
GVirConfigDomainGraphics, struct in GVirConfigDomainGraphics
GVirConfigDomainGraphicsClass, struct in GVirConfigDomainGraphics
GVirConfigDomainGraphicsDesktop, struct in GVirConfigDomainGraphicsDesktop
GVirConfigDomainGraphicsDesktopClass, struct in GVirConfigDomainGraphicsDesktop
GVirConfigDomainGraphicsDesktopPrivate, struct in GVirConfigDomainGraphicsDesktop
GVirConfigDomainGraphicsPrivate, struct in GVirConfigDomainGraphics
GVirConfigDomainGraphicsRdp, struct in GVirConfigDomainGraphicsRdp
GVirConfigDomainGraphicsRdpClass, struct in GVirConfigDomainGraphicsRdp
GVirConfigDomainGraphicsRdpPrivate, struct in GVirConfigDomainGraphicsRdp
GVirConfigDomainGraphicsSdl, struct in GVirConfigDomainGraphicsSdl
GVirConfigDomainGraphicsSdlClass, struct in GVirConfigDomainGraphicsSdl
GVirConfigDomainGraphicsSdlPrivate, struct in GVirConfigDomainGraphicsSdl
GVirConfigDomainGraphicsSpice, struct in GVirConfigDomainGraphicsSpice
GVirConfigDomainGraphicsSpiceClass, struct in GVirConfigDomainGraphicsSpice
GVirConfigDomainGraphicsSpiceImageCompression, enum in GVirConfigDomainGraphicsSpice
GVirConfigDomainGraphicsSpicePrivate, struct in GVirConfigDomainGraphicsSpice
GVirConfigDomainGraphicsVnc, struct in GVirConfigDomainGraphicsVnc
GVirConfigDomainGraphicsVncClass, struct in GVirConfigDomainGraphicsVnc
GVirConfigDomainGraphicsVncPrivate, struct in GVirConfigDomainGraphicsVnc
GVirConfigDomainHostdev, struct in GVirConfigDomainHostdev
GVirConfigDomainHostdevClass, struct in GVirConfigDomainHostdev
GVirConfigDomainHostdevPci, struct in GVirConfigDomainHostdevPci
GVirConfigDomainHostdevPciClass, struct in GVirConfigDomainHostdevPci
GVirConfigDomainHostdevPciPrivate, struct in GVirConfigDomainHostdevPci
GVirConfigDomainHostdevPrivate, struct in GVirConfigDomainHostdev
GVirConfigDomainInput, struct in GVirConfigDomainInput
GVirConfigDomainInputBus, enum in GVirConfigDomainInput
GVirConfigDomainInputClass, struct in GVirConfigDomainInput
GVirConfigDomainInputDeviceType, enum in GVirConfigDomainInput
GVirConfigDomainInputPrivate, struct in GVirConfigDomainInput
GVirConfigDomainInterface, struct in GVirConfigDomainInterface
GVirConfigDomainInterfaceBridge, struct in GVirConfigDomainInterfaceBridge
GVirConfigDomainInterfaceBridgeClass, struct in GVirConfigDomainInterfaceBridge
GVirConfigDomainInterfaceBridgePrivate, struct in GVirConfigDomainInterfaceBridge
GVirConfigDomainInterfaceClass, struct in GVirConfigDomainInterface
GVirConfigDomainInterfaceFilterref, struct in GVirConfigDomainInterfaceFilterref
GVirConfigDomainInterfaceFilterrefClass, struct in GVirConfigDomainInterfaceFilterref
GVirConfigDomainInterfaceFilterrefParameter, struct in GVirConfigDomainInterfaceFilterrefParameter
GVirConfigDomainInterfaceFilterrefParameterClass, struct in GVirConfigDomainInterfaceFilterrefParameter
GVirConfigDomainInterfaceFilterrefParameterPrivate, struct in GVirConfigDomainInterfaceFilterrefParameter
GVirConfigDomainInterfaceFilterrefPrivate, struct in GVirConfigDomainInterfaceFilterref
GVirConfigDomainInterfaceLinkState, enum in GVirConfigDomainInterface
GVirConfigDomainInterfaceNetwork, struct in GVirConfigDomainInterfaceNetwork
GVirConfigDomainInterfaceNetworkClass, struct in GVirConfigDomainInterfaceNetwork
GVirConfigDomainInterfaceNetworkPrivate, struct in GVirConfigDomainInterfaceNetwork
GVirConfigDomainInterfacePrivate, struct in GVirConfigDomainInterface
GVirConfigDomainInterfaceUser, struct in GVirConfigDomainInterfaceUser
GVirConfigDomainInterfaceUserClass, struct in GVirConfigDomainInterfaceUser
GVirConfigDomainInterfaceUserPrivate, struct in GVirConfigDomainInterfaceUser
GVirConfigDomainLifecycleAction, enum in GVirConfigDomain
GVirConfigDomainLifecycleEvent, enum in GVirConfigDomain
GVirConfigDomainMemballoon, struct in GVirConfigDomainMemballoon
GVirConfigDomainMemballoonClass, struct in GVirConfigDomainMemballoon
GVirConfigDomainMemballoonModel, enum in GVirConfigDomainMemballoon
GVirConfigDomainMemballoonPrivate, struct in GVirConfigDomainMemballoon
GVirConfigDomainOs, struct in GVirConfigDomainOs
GVirConfigDomainOsBootDevice, enum in GVirConfigDomainOs
GVirConfigDomainOsClass, struct in GVirConfigDomainOs
GVirConfigDomainOsPrivate, struct in GVirConfigDomainOs
GVirConfigDomainOsSmBiosMode, enum in GVirConfigDomainOs
GVirConfigDomainOsType, enum in GVirConfigDomainOs
GVirConfigDomainParallel, struct in GVirConfigDomainParallel
GVirConfigDomainParallelClass, struct in GVirConfigDomainParallel
GVirConfigDomainParallelPrivate, struct in GVirConfigDomainParallel
GVirConfigDomainPowerManagement, struct in GVirConfigDomainPowerManagement
GVirConfigDomainPowerManagementClass, struct in GVirConfigDomainPowerManagement
GVirConfigDomainPowerManagementPrivate, struct in GVirConfigDomainPowerManagement
GVirConfigDomainPrivate, struct in GVirConfigDomain
GVirConfigDomainRedirdev, struct in GVirConfigDomainRedirdev
GVirConfigDomainRedirdevBus, enum in GVirConfigDomainRedirdev
GVirConfigDomainRedirdevClass, struct in GVirConfigDomainRedirdev
GVirConfigDomainRedirdevPrivate, struct in GVirConfigDomainRedirdev
GVirConfigDomainSeclabel, struct in GVirConfigDomainSeclabel
GVirConfigDomainSeclabelClass, struct in GVirConfigDomainSeclabel
GVirConfigDomainSeclabelPrivate, struct in GVirConfigDomainSeclabel
GVirConfigDomainSeclabelType, enum in GVirConfigDomainSeclabel
GVirConfigDomainSerial, struct in GVirConfigDomainSerial
GVirConfigDomainSerialClass, struct in GVirConfigDomainSerial
GVirConfigDomainSerialPrivate, struct in GVirConfigDomainSerial
GVirConfigDomainSmartcard, struct in GVirConfigDomainSmartcard
GVirConfigDomainSmartcardClass, struct in GVirConfigDomainSmartcard
GVirConfigDomainSmartcardHost, struct in GVirConfigDomainSmartcardHost
GVirConfigDomainSmartcardHostCertificates, struct in GVirConfigDomainSmartcardHostCertificates
GVirConfigDomainSmartcardHostCertificatesClass, struct in GVirConfigDomainSmartcardHostCertificates
GVirConfigDomainSmartcardHostCertificatesPrivate, struct in GVirConfigDomainSmartcardHostCertificates
GVirConfigDomainSmartcardHostClass, struct in GVirConfigDomainSmartcardHost
GVirConfigDomainSmartcardHostPrivate, struct in GVirConfigDomainSmartcardHost
GVirConfigDomainSmartcardPassthrough, struct in GVirConfigDomainSmartcardPassthrough
GVirConfigDomainSmartcardPassthroughClass, struct in GVirConfigDomainSmartcardPassthrough
GVirConfigDomainSmartcardPassthroughPrivate, struct in GVirConfigDomainSmartcardPassthrough
GVirConfigDomainSmartcardPrivate, struct in GVirConfigDomainSmartcard
GVirConfigDomainSnapshot, struct in GVirConfigDomainSnapshot
GVirConfigDomainSnapshotClass, struct in GVirConfigDomainSnapshot
GVirConfigDomainSnapshotDisk, struct in GVirConfigDomainSnapshotDisk
GVirConfigDomainSnapshotDiskClass, struct in GVirConfigDomainSnapshotDisk
GVirConfigDomainSnapshotDiskPrivate, struct in GVirConfigDomainSnapshotDisk
GVirConfigDomainSnapshotDomainState, enum in GVirConfigDomainSnapshot
GVirConfigDomainSnapshotMemoryState, enum in GVirConfigDomainSnapshot
GVirConfigDomainSnapshotPrivate, struct in GVirConfigDomainSnapshot
GVirConfigDomainSound, struct in GVirConfigDomainSound
GVirConfigDomainSoundClass, struct in GVirConfigDomainSound
GVirConfigDomainSoundModel, enum in GVirConfigDomainSound
GVirConfigDomainSoundPrivate, struct in GVirConfigDomainSound
GVirConfigDomainTimer, struct in GVirConfigDomainTimer
GVirConfigDomainTimerClass, struct in GVirConfigDomainTimer
GVirConfigDomainTimerHpet, struct in GVirConfigDomainTimerHpet
GVirConfigDomainTimerHpetClass, struct in GVirConfigDomainTimerHpet
GVirConfigDomainTimerHpetPrivate, struct in GVirConfigDomainTimerHpet
GVirConfigDomainTimerPit, struct in GVirConfigDomainTimerPit
GVirConfigDomainTimerPitClass, struct in GVirConfigDomainTimerPit
GVirConfigDomainTimerPitPrivate, struct in GVirConfigDomainTimerPit
GVirConfigDomainTimerPrivate, struct in GVirConfigDomainTimer
GVirConfigDomainTimerRtc, struct in GVirConfigDomainTimerRtc
GVirConfigDomainTimerRtcClass, struct in GVirConfigDomainTimerRtc
GVirConfigDomainTimerRtcPrivate, struct in GVirConfigDomainTimerRtc
GVirConfigDomainTimerTickPolicy, enum in GVirConfigDomainTimer
GVirConfigDomainVideo, struct in GVirConfigDomainVideo
GVirConfigDomainVideoClass, struct in GVirConfigDomainVideo
GVirConfigDomainVideoModel, enum in GVirConfigDomainVideo
GVirConfigDomainVideoPrivate, struct in GVirConfigDomainVideo
GVirConfigDomainVirtType, enum in GVirConfigDomain
GVirConfigInterface, struct in GVirConfigInterface
GVirConfigInterfaceClass, struct in GVirConfigInterface
GVirConfigInterfacePrivate, struct in GVirConfigInterface
GVirConfigNetwork, struct in GVirConfigNetwork
GVirConfigNetworkClass, struct in GVirConfigNetwork
GVirConfigNetworkFilter, struct in GVirConfigNetworkFilter
GVirConfigNetworkFilterClass, struct in GVirConfigNetworkFilter
GVirConfigNetworkFilterPrivate, struct in GVirConfigNetworkFilter
GVirConfigNetworkPrivate, struct in GVirConfigNetwork
GVirConfigNodeDevice, struct in GVirConfigNodeDevice
GVirConfigNodeDeviceClass, struct in GVirConfigNodeDevice
GVirConfigNodeDevicePrivate, struct in GVirConfigNodeDevice
GVirConfigObject, struct in GVirConfigObject
GVirConfigObject:doc, object property in GVirConfigObject
GVirConfigObject:node, object property in GVirConfigObject
GVirConfigObject:schema, object property in GVirConfigObject
GVirConfigObjectClass, struct in GVirConfigObject
GVirConfigObjectPrivate, struct in GVirConfigObject
GVirConfigSecret, struct in GVirConfigSecret
GVirConfigSecretClass, struct in GVirConfigSecret
GVirConfigSecretPrivate, struct in GVirConfigSecret
GVirConfigStoragePermissions, struct in GVirConfigStoragePermissions
GVirConfigStoragePermissionsClass, struct in GVirConfigStoragePermissions
GVirConfigStoragePermissionsPrivate, struct in GVirConfigStoragePermissions
GVirConfigStoragePool, struct in GVirConfigStoragePool
GVirConfigStoragePoolClass, struct in GVirConfigStoragePool
GVirConfigStoragePoolPrivate, struct in GVirConfigStoragePool
GVirConfigStoragePoolSource, struct in GVirConfigStoragePoolSource
GVirConfigStoragePoolSourceClass, struct in GVirConfigStoragePoolSource
GVirConfigStoragePoolSourcePrivate, struct in GVirConfigStoragePoolSource
GVirConfigStoragePoolTarget, struct in GVirConfigStoragePoolTarget
GVirConfigStoragePoolTargetClass, struct in GVirConfigStoragePoolTarget
GVirConfigStoragePoolTargetPrivate, struct in GVirConfigStoragePoolTarget
GVirConfigStoragePoolType, enum in GVirConfigStoragePool
GVirConfigStorageVol, struct in GVirConfigStorageVol
GVirConfigStorageVolBackingStore, struct in GVirConfigStorageVolBackingStore
GVirConfigStorageVolBackingStoreClass, struct in GVirConfigStorageVolBackingStore
GVirConfigStorageVolBackingStorePrivate, struct in GVirConfigStorageVolBackingStore
GVirConfigStorageVolClass, struct in GVirConfigStorageVol
GVirConfigStorageVolPrivate, struct in GVirConfigStorageVol
GVirConfigStorageVolTarget, struct in GVirConfigStorageVolTarget
GVirConfigStorageVolTargetClass, struct in GVirConfigStorageVolTarget
GVirConfigStorageVolTargetPrivate, struct in GVirConfigStorageVolTarget
GVirConfigXmlDoc, struct in GVirConfigXmlDoc
GVirConfigXmlDoc:doc, object property in GVirConfigXmlDoc
GVirConfigXmlDocClass, struct in GVirConfigXmlDoc
GVirConfigXmlDocPrivate, struct in GVirConfigXmlDoc
GVirConfigXmlNodeIterator, user_function in libvirt-gconfig-helpers-private
gvir_config_capabilities_cpu_add_feature, function in GVirConfigCapabilitiesCpu
gvir_config_capabilities_cpu_feature_get_name, function in GVirConfigCapabilitiesCpuFeature
gvir_config_capabilities_cpu_feature_set_name, function in GVirConfigCapabilitiesCpuFeature
gvir_config_capabilities_cpu_get_arch, function in GVirConfigCapabilitiesCpu
gvir_config_capabilities_cpu_get_features, function in GVirConfigCapabilitiesCpu
gvir_config_capabilities_cpu_get_features_with_type, function in libvirt-gconfig-capabilities-cpu-private
gvir_config_capabilities_cpu_get_model, function in GVirConfigCapabilitiesCpu
gvir_config_capabilities_cpu_get_topology, function in GVirConfigCapabilitiesCpu
gvir_config_capabilities_cpu_model_get_name, function in GVirConfigCapabilitiesCpuModel
gvir_config_capabilities_cpu_model_new, function in GVirConfigCapabilitiesCpuModel
gvir_config_capabilities_cpu_model_new_from_xml, function in GVirConfigCapabilitiesCpuModel
gvir_config_capabilities_cpu_model_set_name, function in GVirConfigCapabilitiesCpuModel
gvir_config_capabilities_cpu_set_topology, function in GVirConfigCapabilitiesCpu
gvir_config_capabilities_cpu_topology_get_cores, function in GVirConfigCapabilitiesCpuTopology
gvir_config_capabilities_cpu_topology_get_sockets, function in GVirConfigCapabilitiesCpuTopology
gvir_config_capabilities_cpu_topology_get_threads, function in GVirConfigCapabilitiesCpuTopology
gvir_config_capabilities_cpu_topology_new, function in GVirConfigCapabilitiesCpuTopology
gvir_config_capabilities_cpu_topology_new_from_xml, function in GVirConfigCapabilitiesCpuTopology
gvir_config_capabilities_cpu_topology_set_cores, function in GVirConfigCapabilitiesCpuTopology
gvir_config_capabilities_cpu_topology_set_sockets, function in GVirConfigCapabilitiesCpuTopology
gvir_config_capabilities_cpu_topology_set_threads, function in GVirConfigCapabilitiesCpuTopology
gvir_config_capabilities_get_guests, function in GVirConfigCapabilities
gvir_config_capabilities_get_host, function in GVirConfigCapabilities
gvir_config_capabilities_guest_arch_get_domains, function in GVirConfigCapabilitiesGuestArch
gvir_config_capabilities_guest_arch_get_emulator, function in GVirConfigCapabilitiesGuestArch
gvir_config_capabilities_guest_arch_get_name, function in GVirConfigCapabilitiesGuestArch
gvir_config_capabilities_guest_domain_get_emulator, function in GVirConfigCapabilitiesGuestDomain
gvir_config_capabilities_guest_domain_get_virt_type, function in GVirConfigCapabilitiesGuestDomain
gvir_config_capabilities_guest_feature_get_name, function in GVirConfigCapabilitiesGuestFeature
gvir_config_capabilities_guest_get_arch, function in GVirConfigCapabilitiesGuest
gvir_config_capabilities_guest_get_features, function in GVirConfigCapabilitiesGuest
gvir_config_capabilities_guest_get_os_type, function in GVirConfigCapabilitiesGuest
gvir_config_capabilities_host_get_cpu, function in GVirConfigCapabilitiesHost
gvir_config_capabilities_host_get_secmodels, function in GVirConfigCapabilitiesHost
gvir_config_capabilities_host_get_uuid, function in GVirConfigCapabilitiesHost
gvir_config_capabilities_host_secmodel_get_doi, function in GVirConfigCapabilitiesHostSecModel
gvir_config_capabilities_host_secmodel_get_model, function in GVirConfigCapabilitiesHostSecModel
gvir_config_capabilities_new, function in GVirConfigCapabilities
gvir_config_capabilities_new_from_xml, function in GVirConfigCapabilities
gvir_config_domain_address_pci_get_bus, function in GVirConfigDomainAddressPci
gvir_config_domain_address_pci_get_domain, function in GVirConfigDomainAddressPci
gvir_config_domain_address_pci_get_function, function in GVirConfigDomainAddressPci
gvir_config_domain_address_pci_get_multifunction, function in GVirConfigDomainAddressPci
gvir_config_domain_address_pci_get_slot, function in GVirConfigDomainAddressPci
gvir_config_domain_address_pci_new, function in GVirConfigDomainAddressPci
gvir_config_domain_address_pci_new_from_xml, function in GVirConfigDomainAddressPci
gvir_config_domain_address_pci_set_bus, function in GVirConfigDomainAddressPci
gvir_config_domain_address_pci_set_domain, function in GVirConfigDomainAddressPci
gvir_config_domain_address_pci_set_function, function in GVirConfigDomainAddressPci
gvir_config_domain_address_pci_set_multifunction, function in GVirConfigDomainAddressPci
gvir_config_domain_address_pci_set_slot, function in GVirConfigDomainAddressPci
gvir_config_domain_address_usb_new, function in GVirConfigDomainAddressUsb
gvir_config_domain_address_usb_new_from_xml, function in GVirConfigDomainAddressUsb
gvir_config_domain_address_usb_set_bus, function in GVirConfigDomainAddressUsb
gvir_config_domain_address_usb_set_port, function in GVirConfigDomainAddressUsb
gvir_config_domain_add_device, function in GVirConfigDomain
gvir_config_domain_channel_get_target_name, function in GVirConfigDomainChannel
gvir_config_domain_channel_get_target_type, function in GVirConfigDomainChannel
gvir_config_domain_channel_new, function in GVirConfigDomainChannel
gvir_config_domain_channel_new_from_xml, function in GVirConfigDomainChannel
gvir_config_domain_channel_set_target_name, function in GVirConfigDomainChannel
gvir_config_domain_channel_set_target_type, function in GVirConfigDomainChannel
gvir_config_domain_chardev_get_source, function in GVirConfigDomainChardev
gvir_config_domain_chardev_set_source, function in GVirConfigDomainChardev
gvir_config_domain_chardev_source_new_from_tree, function in libvirt-gconfig-domain-chardev-source-private
gvir_config_domain_chardev_source_pty_get_path, function in GVirConfigDomainChardevSourcePty
gvir_config_domain_chardev_source_pty_new, function in GVirConfigDomainChardevSourcePty
gvir_config_domain_chardev_source_pty_new_from_tree, function in libvirt-gconfig-domain-chardev-source-private
gvir_config_domain_chardev_source_pty_new_from_xml, function in GVirConfigDomainChardevSourcePty
gvir_config_domain_chardev_source_pty_set_path, function in GVirConfigDomainChardevSourcePty
gvir_config_domain_chardev_source_spiceport_get_channel, function in GVirConfigDomainChardevSourceSpicePort
gvir_config_domain_chardev_source_spiceport_new, function in GVirConfigDomainChardevSourceSpicePort
gvir_config_domain_chardev_source_spiceport_new_from_xml, function in GVirConfigDomainChardevSourceSpicePort
gvir_config_domain_chardev_source_spiceport_set_channel, function in GVirConfigDomainChardevSourceSpicePort
gvir_config_domain_chardev_source_spicevmc_new, function in GVirConfigDomainChardevSourceSpiceVmc
gvir_config_domain_chardev_source_spicevmc_new_from_xml, function in GVirConfigDomainChardevSourceSpiceVmc
gvir_config_domain_chardev_source_unix_new, function in GVirConfigDomainChardevSourceUnix
gvir_config_domain_chardev_source_unix_new_from_xml, function in GVirConfigDomainChardevSourceUnix
gvir_config_domain_clock_add_timer, function in GVirConfigDomainClock
gvir_config_domain_clock_get_offset, function in GVirConfigDomainClock
gvir_config_domain_clock_get_timezone, function in GVirConfigDomainClock
gvir_config_domain_clock_get_variable_offset, function in GVirConfigDomainClock
gvir_config_domain_clock_new, function in GVirConfigDomainClock
gvir_config_domain_clock_new_from_xml, function in GVirConfigDomainClock
gvir_config_domain_clock_set_offset, function in GVirConfigDomainClock
gvir_config_domain_clock_set_timezone, function in GVirConfigDomainClock
gvir_config_domain_clock_set_variable_offset, function in GVirConfigDomainClock
gvir_config_domain_console_new, function in GVirConfigDomainConsole
gvir_config_domain_console_new_from_xml, function in GVirConfigDomainConsole
gvir_config_domain_console_set_target_type, function in GVirConfigDomainConsole
gvir_config_domain_controller_get_index, function in GVirConfigDomainController
gvir_config_domain_controller_new_from_tree, function in libvirt-gconfig-domain-device-private
gvir_config_domain_controller_set_address, function in GVirConfigDomainController
gvir_config_domain_controller_set_index, function in GVirConfigDomainController
gvir_config_domain_controller_usb_new, function in GVirConfigDomainControllerUsb
gvir_config_domain_controller_usb_new_from_xml, function in GVirConfigDomainControllerUsb
gvir_config_domain_controller_usb_set_master, function in GVirConfigDomainControllerUsb
gvir_config_domain_controller_usb_set_model, function in GVirConfigDomainControllerUsb
gvir_config_domain_cpu_feature_get_policy, function in GVirConfigDomainCpuFeature
gvir_config_domain_cpu_feature_new, function in GVirConfigDomainCpuFeature
gvir_config_domain_cpu_feature_new_from_xml, function in GVirConfigDomainCpuFeature
gvir_config_domain_cpu_feature_set_policy, function in GVirConfigDomainCpuFeature
gvir_config_domain_cpu_get_match_policy, function in GVirConfigDomainCpu
gvir_config_domain_cpu_get_mode, function in GVirConfigDomainCpu
gvir_config_domain_cpu_model_new, function in GVirConfigDomainCpuModel
gvir_config_domain_cpu_model_new_from_xml, function in GVirConfigDomainCpuModel
gvir_config_domain_cpu_new, function in GVirConfigDomainCpu
gvir_config_domain_cpu_new_from_xml, function in GVirConfigDomainCpu
gvir_config_domain_cpu_set_match_policy, function in GVirConfigDomainCpu
gvir_config_domain_cpu_set_mode, function in GVirConfigDomainCpu
gvir_config_domain_cpu_set_model, function in GVirConfigDomainCpu
gvir_config_domain_device_get_alias, function in GVirConfigDomainDevice
gvir_config_domain_device_new_from_tree, function in libvirt-gconfig-domain-device-private
gvir_config_domain_disk_driver_get_cache, function in GVirConfigDomainDiskDriver
gvir_config_domain_disk_driver_get_copy_on_read, function in GVirConfigDomainDiskDriver
gvir_config_domain_disk_driver_get_discard, function in GVirConfigDomainDiskDriver
gvir_config_domain_disk_driver_get_error_policy, function in GVirConfigDomainDiskDriver
gvir_config_domain_disk_driver_get_format, function in GVirConfigDomainDiskDriver
gvir_config_domain_disk_driver_get_io_policy, function in GVirConfigDomainDiskDriver
gvir_config_domain_disk_driver_get_name, function in GVirConfigDomainDiskDriver
gvir_config_domain_disk_driver_new, function in GVirConfigDomainDiskDriver
gvir_config_domain_disk_driver_new_from_xml, function in GVirConfigDomainDiskDriver
gvir_config_domain_disk_driver_set_cache, function in GVirConfigDomainDiskDriver
gvir_config_domain_disk_driver_set_copy_on_read, function in GVirConfigDomainDiskDriver
gvir_config_domain_disk_driver_set_discard, function in GVirConfigDomainDiskDriver
gvir_config_domain_disk_driver_set_error_policy, function in GVirConfigDomainDiskDriver
gvir_config_domain_disk_driver_set_format, function in GVirConfigDomainDiskDriver
gvir_config_domain_disk_driver_set_io_policy, function in GVirConfigDomainDiskDriver
gvir_config_domain_disk_driver_set_name, function in GVirConfigDomainDiskDriver
GVIR_CONFIG_DOMAIN_DISK_FORMAT_AIO, macro in GVirConfigDomainDisk
gvir_config_domain_disk_get_disk_type, function in GVirConfigDomainDisk
gvir_config_domain_disk_get_driver, function in GVirConfigDomainDisk
gvir_config_domain_disk_get_driver_cache, function in GVirConfigDomainDisk
gvir_config_domain_disk_get_driver_format, function in GVirConfigDomainDisk
gvir_config_domain_disk_get_driver_name, function in GVirConfigDomainDisk
gvir_config_domain_disk_get_driver_type, function in GVirConfigDomainDisk
gvir_config_domain_disk_get_guest_device_type, function in GVirConfigDomainDisk
gvir_config_domain_disk_get_snapshot_type, function in GVirConfigDomainDisk
gvir_config_domain_disk_get_source, function in GVirConfigDomainDisk
gvir_config_domain_disk_get_startup_policy, function in GVirConfigDomainDisk
gvir_config_domain_disk_get_target_bus, function in GVirConfigDomainDisk
gvir_config_domain_disk_get_target_dev, function in GVirConfigDomainDisk
gvir_config_domain_disk_new, function in GVirConfigDomainDisk
gvir_config_domain_disk_new_from_tree, function in libvirt-gconfig-domain-device-private
gvir_config_domain_disk_new_from_xml, function in GVirConfigDomainDisk
gvir_config_domain_disk_set_driver, function in GVirConfigDomainDisk
gvir_config_domain_disk_set_driver_cache, function in GVirConfigDomainDisk
gvir_config_domain_disk_set_driver_format, function in GVirConfigDomainDisk
gvir_config_domain_disk_set_driver_name, function in GVirConfigDomainDisk
gvir_config_domain_disk_set_driver_type, function in GVirConfigDomainDisk
gvir_config_domain_disk_set_guest_device_type, function in GVirConfigDomainDisk
gvir_config_domain_disk_set_readonly, function in GVirConfigDomainDisk
gvir_config_domain_disk_set_snapshot_type, function in GVirConfigDomainDisk
gvir_config_domain_disk_set_source, function in GVirConfigDomainDisk
gvir_config_domain_disk_set_startup_policy, function in GVirConfigDomainDisk
gvir_config_domain_disk_set_target_bus, function in GVirConfigDomainDisk
gvir_config_domain_disk_set_target_dev, function in GVirConfigDomainDisk
gvir_config_domain_disk_set_type, function in GVirConfigDomainDisk
gvir_config_domain_filesys_new, function in GVirConfigDomainFilesys
gvir_config_domain_filesys_new_from_tree, function in libvirt-gconfig-domain-device-private
gvir_config_domain_filesys_new_from_xml, function in GVirConfigDomainFilesys
gvir_config_domain_filesys_set_access_type, function in GVirConfigDomainFilesys
gvir_config_domain_filesys_set_driver_format, function in GVirConfigDomainFilesys
gvir_config_domain_filesys_set_driver_type, function in GVirConfigDomainFilesys
gvir_config_domain_filesys_set_ram_usage, function in GVirConfigDomainFilesys
gvir_config_domain_filesys_set_readonly, function in GVirConfigDomainFilesys
gvir_config_domain_filesys_set_source, function in GVirConfigDomainFilesys
gvir_config_domain_filesys_set_target, function in GVirConfigDomainFilesys
gvir_config_domain_filesys_set_type, function in GVirConfigDomainFilesys
gvir_config_domain_get_clock, function in GVirConfigDomain
gvir_config_domain_get_cpu, function in GVirConfigDomain
gvir_config_domain_get_current_memory, function in GVirConfigDomain
gvir_config_domain_get_custom_xml, function in GVirConfigDomain
gvir_config_domain_get_description, function in GVirConfigDomain
gvir_config_domain_get_devices, function in GVirConfigDomain
gvir_config_domain_get_features, function in GVirConfigDomain
gvir_config_domain_get_memory, function in GVirConfigDomain
gvir_config_domain_get_name, function in GVirConfigDomain
gvir_config_domain_get_os, function in GVirConfigDomain
gvir_config_domain_get_title, function in GVirConfigDomain
gvir_config_domain_get_uuid, function in GVirConfigDomain
gvir_config_domain_get_vcpus, function in GVirConfigDomain
gvir_config_domain_get_virt_type, function in GVirConfigDomain
gvir_config_domain_graphics_desktop_get_display, function in GVirConfigDomainGraphicsDesktop
gvir_config_domain_graphics_desktop_get_fullscreen, function in GVirConfigDomainGraphicsDesktop
gvir_config_domain_graphics_desktop_new, function in GVirConfigDomainGraphicsDesktop
gvir_config_domain_graphics_desktop_new_from_xml, function in GVirConfigDomainGraphicsDesktop
gvir_config_domain_graphics_desktop_set_display, function in GVirConfigDomainGraphicsDesktop
gvir_config_domain_graphics_desktop_set_fullscreen, function in GVirConfigDomainGraphicsDesktop
gvir_config_domain_graphics_new_from_tree, function in libvirt-gconfig-domain-device-private
gvir_config_domain_graphics_rdp_get_multi_user, function in GVirConfigDomainGraphicsRdp
gvir_config_domain_graphics_rdp_get_port, function in GVirConfigDomainGraphicsRdp
gvir_config_domain_graphics_rdp_get_replace_user, function in GVirConfigDomainGraphicsRdp
gvir_config_domain_graphics_rdp_new, function in GVirConfigDomainGraphicsRdp
gvir_config_domain_graphics_rdp_new_from_xml, function in GVirConfigDomainGraphicsRdp
gvir_config_domain_graphics_rdp_set_autoport, function in GVirConfigDomainGraphicsRdp
gvir_config_domain_graphics_rdp_set_multi_user, function in GVirConfigDomainGraphicsRdp
gvir_config_domain_graphics_rdp_set_port, function in GVirConfigDomainGraphicsRdp
gvir_config_domain_graphics_rdp_set_replace_user, function in GVirConfigDomainGraphicsRdp
gvir_config_domain_graphics_sdl_new, function in GVirConfigDomainGraphicsSdl
gvir_config_domain_graphics_sdl_new_from_xml, function in GVirConfigDomainGraphicsSdl
gvir_config_domain_graphics_sdl_set_display, function in GVirConfigDomainGraphicsSdl
gvir_config_domain_graphics_sdl_set_fullscreen, function in GVirConfigDomainGraphicsSdl
gvir_config_domain_graphics_sdl_set_xauthority, function in GVirConfigDomainGraphicsSdl
gvir_config_domain_graphics_spice_get_image_compression, function in GVirConfigDomainGraphicsSpice
gvir_config_domain_graphics_spice_get_port, function in GVirConfigDomainGraphicsSpice
gvir_config_domain_graphics_spice_new, function in GVirConfigDomainGraphicsSpice
gvir_config_domain_graphics_spice_new_from_xml, function in GVirConfigDomainGraphicsSpice
gvir_config_domain_graphics_spice_set_autoport, function in GVirConfigDomainGraphicsSpice
gvir_config_domain_graphics_spice_set_gl, function in GVirConfigDomainGraphicsSpice
gvir_config_domain_graphics_spice_set_image_compression, function in GVirConfigDomainGraphicsSpice
gvir_config_domain_graphics_spice_set_password, function in GVirConfigDomainGraphicsSpice
gvir_config_domain_graphics_spice_set_port, function in GVirConfigDomainGraphicsSpice
gvir_config_domain_graphics_spice_set_tls_port, function in GVirConfigDomainGraphicsSpice
gvir_config_domain_graphics_vnc_get_port, function in GVirConfigDomainGraphicsVnc
gvir_config_domain_graphics_vnc_get_socket, function in GVirConfigDomainGraphicsVnc
gvir_config_domain_graphics_vnc_new, function in GVirConfigDomainGraphicsVnc
gvir_config_domain_graphics_vnc_new_from_xml, function in GVirConfigDomainGraphicsVnc
gvir_config_domain_graphics_vnc_set_autoport, function in GVirConfigDomainGraphicsVnc
gvir_config_domain_graphics_vnc_set_password, function in GVirConfigDomainGraphicsVnc
gvir_config_domain_graphics_vnc_set_port, function in GVirConfigDomainGraphicsVnc
gvir_config_domain_graphics_vnc_set_socket, function in GVirConfigDomainGraphicsVnc
gvir_config_domain_hostdev_get_boot_order, function in GVirConfigDomainHostdev
gvir_config_domain_hostdev_get_readonly, function in GVirConfigDomainHostdev
gvir_config_domain_hostdev_get_shareable, function in GVirConfigDomainHostdev
gvir_config_domain_hostdev_new_from_tree, function in libvirt-gconfig-domain-device-private
gvir_config_domain_hostdev_pci_get_address, function in GVirConfigDomainHostdevPci
gvir_config_domain_hostdev_pci_get_managed, function in GVirConfigDomainHostdevPci
gvir_config_domain_hostdev_pci_get_rom_bar, function in GVirConfigDomainHostdevPci
gvir_config_domain_hostdev_pci_get_rom_file, function in GVirConfigDomainHostdevPci
gvir_config_domain_hostdev_pci_new, function in GVirConfigDomainHostdevPci
gvir_config_domain_hostdev_pci_new_from_xml, function in GVirConfigDomainHostdevPci
gvir_config_domain_hostdev_pci_set_address, function in GVirConfigDomainHostdevPci
gvir_config_domain_hostdev_pci_set_managed, function in GVirConfigDomainHostdevPci
gvir_config_domain_hostdev_pci_set_rom_bar, function in GVirConfigDomainHostdevPci
gvir_config_domain_hostdev_pci_set_rom_file, function in GVirConfigDomainHostdevPci
gvir_config_domain_hostdev_set_boot_order, function in GVirConfigDomainHostdev
gvir_config_domain_hostdev_set_readonly, function in GVirConfigDomainHostdev
gvir_config_domain_hostdev_set_shareable, function in GVirConfigDomainHostdev
gvir_config_domain_input_get_bus, function in GVirConfigDomainInput
gvir_config_domain_input_get_device_type, function in GVirConfigDomainInput
gvir_config_domain_input_new, function in GVirConfigDomainInput
gvir_config_domain_input_new_from_xml, function in GVirConfigDomainInput
gvir_config_domain_input_set_bus, function in GVirConfigDomainInput
gvir_config_domain_input_set_device_type, function in GVirConfigDomainInput
gvir_config_domain_interface_bridge_new, function in GVirConfigDomainInterfaceBridge
gvir_config_domain_interface_bridge_new_from_xml, function in GVirConfigDomainInterfaceBridge
gvir_config_domain_interface_bridge_set_source, function in GVirConfigDomainInterfaceBridge
gvir_config_domain_interface_filterref_add_parameter, function in GVirConfigDomainInterfaceFilterref
gvir_config_domain_interface_filterref_get_name, function in GVirConfigDomainInterfaceFilterref
gvir_config_domain_interface_filterref_get_parameters, function in GVirConfigDomainInterfaceFilterref
gvir_config_domain_interface_filterref_new, function in GVirConfigDomainInterfaceFilterref
gvir_config_domain_interface_filterref_new_from_xml, function in GVirConfigDomainInterfaceFilterref
gvir_config_domain_interface_filterref_parameter_get_name, function in GVirConfigDomainInterfaceFilterrefParameter
gvir_config_domain_interface_filterref_parameter_get_value, function in GVirConfigDomainInterfaceFilterrefParameter
gvir_config_domain_interface_filterref_parameter_new, function in GVirConfigDomainInterfaceFilterrefParameter
gvir_config_domain_interface_filterref_parameter_new_from_xml, function in GVirConfigDomainInterfaceFilterrefParameter
gvir_config_domain_interface_filterref_parameter_set_name, function in GVirConfigDomainInterfaceFilterrefParameter
gvir_config_domain_interface_filterref_parameter_set_value, function in GVirConfigDomainInterfaceFilterrefParameter
gvir_config_domain_interface_filterref_set_name, function in GVirConfigDomainInterfaceFilterref
gvir_config_domain_interface_get_filterref, function in GVirConfigDomainInterface
gvir_config_domain_interface_get_ifname, function in GVirConfigDomainInterface
gvir_config_domain_interface_get_link_state, function in GVirConfigDomainInterface
gvir_config_domain_interface_get_mac, function in GVirConfigDomainInterface
gvir_config_domain_interface_get_model, function in GVirConfigDomainInterface
gvir_config_domain_interface_network_new, function in GVirConfigDomainInterfaceNetwork
gvir_config_domain_interface_network_new_from_xml, function in GVirConfigDomainInterfaceNetwork
gvir_config_domain_interface_network_set_source, function in GVirConfigDomainInterfaceNetwork
gvir_config_domain_interface_new_from_tree, function in libvirt-gconfig-domain-device-private
gvir_config_domain_interface_set_filterref, function in GVirConfigDomainInterface
gvir_config_domain_interface_set_ifname, function in GVirConfigDomainInterface
gvir_config_domain_interface_set_link_state, function in GVirConfigDomainInterface
gvir_config_domain_interface_set_mac, function in GVirConfigDomainInterface
gvir_config_domain_interface_set_model, function in GVirConfigDomainInterface
gvir_config_domain_interface_user_new, function in GVirConfigDomainInterfaceUser
gvir_config_domain_interface_user_new_from_xml, function in GVirConfigDomainInterfaceUser
gvir_config_domain_memballoon_new, function in GVirConfigDomainMemballoon
gvir_config_domain_memballoon_new_from_xml, function in GVirConfigDomainMemballoon
gvir_config_domain_memballoon_set_model, function in GVirConfigDomainMemballoon
gvir_config_domain_new, function in GVirConfigDomain
gvir_config_domain_new_from_xml, function in GVirConfigDomain
gvir_config_domain_os_bios_enable_serial, function in GVirConfigDomainOs
gvir_config_domain_os_enable_boot_menu, function in GVirConfigDomainOs
gvir_config_domain_os_get_arch, function in GVirConfigDomainOs
gvir_config_domain_os_get_boot_devices, function in GVirConfigDomainOs
gvir_config_domain_os_get_os_type, function in GVirConfigDomainOs
gvir_config_domain_os_new, function in GVirConfigDomainOs
gvir_config_domain_os_new_from_xml, function in GVirConfigDomainOs
gvir_config_domain_os_set_arch, function in GVirConfigDomainOs
gvir_config_domain_os_set_boot_devices, function in GVirConfigDomainOs
gvir_config_domain_os_set_cmdline, function in GVirConfigDomainOs
gvir_config_domain_os_set_init, function in GVirConfigDomainOs
gvir_config_domain_os_set_kernel, function in GVirConfigDomainOs
gvir_config_domain_os_set_loader, function in GVirConfigDomainOs
gvir_config_domain_os_set_machine, function in GVirConfigDomainOs
gvir_config_domain_os_set_os_type, function in GVirConfigDomainOs
gvir_config_domain_os_set_ramdisk, function in GVirConfigDomainOs
gvir_config_domain_os_set_smbios_mode, function in GVirConfigDomainOs
gvir_config_domain_parallel_new, function in GVirConfigDomainParallel
gvir_config_domain_parallel_new_from_xml, function in GVirConfigDomainParallel
gvir_config_domain_power_management_new, function in GVirConfigDomainPowerManagement
gvir_config_domain_power_management_new_from_xml, function in GVirConfigDomainPowerManagement
gvir_config_domain_power_management_set_disk_suspend_enabled, function in GVirConfigDomainPowerManagement
gvir_config_domain_power_management_set_mem_suspend_enabled, function in GVirConfigDomainPowerManagement
gvir_config_domain_redirdev_new, function in GVirConfigDomainRedirdev
gvir_config_domain_redirdev_new_from_xml, function in GVirConfigDomainRedirdev
gvir_config_domain_redirdev_set_address, function in GVirConfigDomainRedirdev
gvir_config_domain_redirdev_set_bus, function in GVirConfigDomainRedirdev
gvir_config_domain_seclabel_new, function in GVirConfigDomainSeclabel
gvir_config_domain_seclabel_new_from_xml, function in GVirConfigDomainSeclabel
gvir_config_domain_seclabel_set_baselabel, function in GVirConfigDomainSeclabel
gvir_config_domain_seclabel_set_label, function in GVirConfigDomainSeclabel
gvir_config_domain_seclabel_set_model, function in GVirConfigDomainSeclabel
gvir_config_domain_seclabel_set_type, function in GVirConfigDomainSeclabel
gvir_config_domain_serial_new, function in GVirConfigDomainSerial
gvir_config_domain_serial_new_from_xml, function in GVirConfigDomainSerial
gvir_config_domain_set_clock, function in GVirConfigDomain
gvir_config_domain_set_cpu, function in GVirConfigDomain
gvir_config_domain_set_current_memory, function in GVirConfigDomain
gvir_config_domain_set_custom_xml, function in GVirConfigDomain
gvir_config_domain_set_description, function in GVirConfigDomain
gvir_config_domain_set_devices, function in GVirConfigDomain
gvir_config_domain_set_features, function in GVirConfigDomain
gvir_config_domain_set_lifecycle, function in GVirConfigDomain
gvir_config_domain_set_memory, function in GVirConfigDomain
gvir_config_domain_set_name, function in GVirConfigDomain
gvir_config_domain_set_os, function in GVirConfigDomain
gvir_config_domain_set_power_management, function in GVirConfigDomain
gvir_config_domain_set_seclabel, function in GVirConfigDomain
gvir_config_domain_set_title, function in GVirConfigDomain
gvir_config_domain_set_uuid, function in GVirConfigDomain
gvir_config_domain_set_vcpus, function in GVirConfigDomain
gvir_config_domain_set_virt_type, function in GVirConfigDomain
gvir_config_domain_smartcard_host_certificates_new, function in GVirConfigDomainSmartcardHostCertificates
gvir_config_domain_smartcard_host_certificates_new_from_xml, function in GVirConfigDomainSmartcardHostCertificates
gvir_config_domain_smartcard_host_certificates_set_certificates, function in GVirConfigDomainSmartcardHostCertificates
gvir_config_domain_smartcard_host_certificates_set_database, function in GVirConfigDomainSmartcardHostCertificates
gvir_config_domain_smartcard_host_new, function in GVirConfigDomainSmartcardHost
gvir_config_domain_smartcard_host_new_from_xml, function in GVirConfigDomainSmartcardHost
gvir_config_domain_smartcard_new_from_tree, function in libvirt-gconfig-domain-device-private
gvir_config_domain_smartcard_passthrough_new, function in GVirConfigDomainSmartcardPassthrough
gvir_config_domain_smartcard_passthrough_new_from_xml, function in GVirConfigDomainSmartcardPassthrough
gvir_config_domain_smartcard_passthrough_set_source, function in GVirConfigDomainSmartcardPassthrough
gvir_config_domain_smartcard_set_address, function in GVirConfigDomainSmartcard
gvir_config_domain_snapshot_add_disk, function in GVirConfigDomainSnapshot
gvir_config_domain_snapshot_disk_get_driver_format, function in GVirConfigDomainSnapshotDisk
gvir_config_domain_snapshot_disk_get_name, function in GVirConfigDomainSnapshotDisk
gvir_config_domain_snapshot_disk_get_snapshot_type, function in GVirConfigDomainSnapshotDisk
gvir_config_domain_snapshot_disk_get_source_file, function in GVirConfigDomainSnapshotDisk
gvir_config_domain_snapshot_disk_new, function in GVirConfigDomainSnapshotDisk
gvir_config_domain_snapshot_disk_new_from_tree, function in libvirt-gconfig-domain-snapshot-private
gvir_config_domain_snapshot_disk_new_from_xml, function in GVirConfigDomainSnapshotDisk
gvir_config_domain_snapshot_disk_set_driver_format, function in GVirConfigDomainSnapshotDisk
gvir_config_domain_snapshot_disk_set_name, function in GVirConfigDomainSnapshotDisk
gvir_config_domain_snapshot_disk_set_snapshot_type, function in GVirConfigDomainSnapshotDisk
gvir_config_domain_snapshot_disk_set_source_file, function in GVirConfigDomainSnapshotDisk
gvir_config_domain_snapshot_get_creation_time, function in GVirConfigDomainSnapshot
gvir_config_domain_snapshot_get_description, function in GVirConfigDomainSnapshot
gvir_config_domain_snapshot_get_disks, function in GVirConfigDomainSnapshot
gvir_config_domain_snapshot_get_domain, function in GVirConfigDomainSnapshot
gvir_config_domain_snapshot_get_memory_file, function in GVirConfigDomainSnapshot
gvir_config_domain_snapshot_get_memory_state, function in GVirConfigDomainSnapshot
gvir_config_domain_snapshot_get_name, function in GVirConfigDomainSnapshot
gvir_config_domain_snapshot_get_parent, function in GVirConfigDomainSnapshot
gvir_config_domain_snapshot_get_state, function in GVirConfigDomainSnapshot
gvir_config_domain_snapshot_new, function in GVirConfigDomainSnapshot
gvir_config_domain_snapshot_new_from_xml, function in GVirConfigDomainSnapshot
gvir_config_domain_snapshot_set_description, function in GVirConfigDomainSnapshot
gvir_config_domain_snapshot_set_disks, function in GVirConfigDomainSnapshot
gvir_config_domain_snapshot_set_memory_file, function in GVirConfigDomainSnapshot
gvir_config_domain_snapshot_set_memory_state, function in GVirConfigDomainSnapshot
gvir_config_domain_snapshot_set_name, function in GVirConfigDomainSnapshot
gvir_config_domain_sound_new, function in GVirConfigDomainSound
gvir_config_domain_sound_new_from_xml, function in GVirConfigDomainSound
gvir_config_domain_sound_set_model, function in GVirConfigDomainSound
gvir_config_domain_timer_get_present, function in GVirConfigDomainTimer
gvir_config_domain_timer_get_tick_policy, function in GVirConfigDomainTimer
gvir_config_domain_timer_hpet_new, function in GVirConfigDomainTimerHpet
gvir_config_domain_timer_hpet_new_from_xml, function in GVirConfigDomainTimerHpet
gvir_config_domain_timer_pit_new, function in GVirConfigDomainTimerPit
gvir_config_domain_timer_pit_new_from_xml, function in GVirConfigDomainTimerPit
gvir_config_domain_timer_rtc_new, function in GVirConfigDomainTimerRtc
gvir_config_domain_timer_rtc_new_from_xml, function in GVirConfigDomainTimerRtc
gvir_config_domain_timer_set_present, function in GVirConfigDomainTimer
gvir_config_domain_timer_set_tick_policy, function in GVirConfigDomainTimer
gvir_config_domain_video_get_model, function in GVirConfigDomainVideo
gvir_config_domain_video_new, function in GVirConfigDomainVideo
gvir_config_domain_video_new_from_xml, function in GVirConfigDomainVideo
gvir_config_domain_video_set_accel3d, function in GVirConfigDomainVideo
gvir_config_domain_video_set_heads, function in GVirConfigDomainVideo
gvir_config_domain_video_set_model, function in GVirConfigDomainVideo
gvir_config_domain_video_set_ram, function in GVirConfigDomainVideo
gvir_config_domain_video_set_vgamem, function in GVirConfigDomainVideo
gvir_config_domain_video_set_vram, function in GVirConfigDomainVideo
gvir_config_error_new, function in libvirt-gconfig-helpers-private
gvir_config_genum_get_nick, function in libvirt-gconfig-helpers-private
gvir_config_genum_get_value, function in libvirt-gconfig-helpers-private
gvir_config_init, function in libvirt-gconfig-main
gvir_config_init_check, function in libvirt-gconfig-main
gvir_config_interface_new, function in GVirConfigInterface
gvir_config_interface_new_from_xml, function in GVirConfigInterface
gvir_config_network_filter_new, function in GVirConfigNetworkFilter
gvir_config_network_filter_new_from_xml, function in GVirConfigNetworkFilter
gvir_config_network_new, function in GVirConfigNetwork
gvir_config_network_new_from_xml, function in GVirConfigNetwork
gvir_config_node_device_new, function in GVirConfigNodeDevice
gvir_config_node_device_new_from_xml, function in GVirConfigNodeDevice
gvir_config_object_add_child, function in libvirt-gconfig-object-private
gvir_config_object_add_child_with_attribute, function in libvirt-gconfig-object-private
gvir_config_object_add_child_with_attribute_enum, function in libvirt-gconfig-object-private
gvir_config_object_attach_add, function in libvirt-gconfig-object-private
gvir_config_object_attach_replace, function in libvirt-gconfig-object-private
gvir_config_object_delete_child, function in libvirt-gconfig-object-private
gvir_config_object_delete_children, function in libvirt-gconfig-object-private
GVIR_CONFIG_OBJECT_ERROR, macro in libvirt-gconfig-helpers
gvir_config_object_error_quark, function in libvirt-gconfig-helpers
gvir_config_object_foreach_child, function in libvirt-gconfig-object-private
gvir_config_object_get_attribute, function in libvirt-gconfig-object-private
gvir_config_object_get_attribute_boolean, function in libvirt-gconfig-object-private
gvir_config_object_get_attribute_genum, function in libvirt-gconfig-object-private
gvir_config_object_get_attribute_uint64, function in libvirt-gconfig-object-private
gvir_config_object_get_child, function in libvirt-gconfig-object-private
gvir_config_object_get_child_with_type, function in libvirt-gconfig-object-private
gvir_config_object_get_node_content, function in libvirt-gconfig-object-private
gvir_config_object_get_node_content_genum, function in libvirt-gconfig-object-private
gvir_config_object_get_node_content_uint64, function in libvirt-gconfig-object-private
gvir_config_object_get_schema, function in GVirConfigObject
gvir_config_object_get_xml_doc, function in libvirt-gconfig-object-private
gvir_config_object_get_xml_node, function in libvirt-gconfig-object-private
gvir_config_object_has_child, function in libvirt-gconfig-object-private
gvir_config_object_new, function in GVirConfigObject
gvir_config_object_new_from_tree, function in libvirt-gconfig-object-private
gvir_config_object_new_from_xml, function in GVirConfigObject
gvir_config_object_remove_attribute, function in libvirt-gconfig-object-private
gvir_config_object_replace_child, function in libvirt-gconfig-object-private
gvir_config_object_replace_child_with_attribute, function in libvirt-gconfig-object-private
gvir_config_object_replace_child_with_attribute_enum, function in libvirt-gconfig-object-private
gvir_config_object_set_attribute, function in libvirt-gconfig-object-private
gvir_config_object_set_attribute_with_type, function in libvirt-gconfig-object-private
gvir_config_object_set_child, function in libvirt-gconfig-object-private
gvir_config_object_set_namespace, function in libvirt-gconfig-object-private
gvir_config_object_set_node_content, function in libvirt-gconfig-object-private
gvir_config_object_set_node_content_uint64, function in libvirt-gconfig-object-private
gvir_config_object_to_xml, function in GVirConfigObject
gvir_config_object_validate, function in GVirConfigObject
gvir_config_secret_new, function in GVirConfigSecret
gvir_config_secret_new_from_xml, function in GVirConfigSecret
gvir_config_set_error, function in libvirt-gconfig-helpers-private
gvir_config_set_error_literal, function in libvirt-gconfig-helpers-private
gvir_config_set_error_valist, function in libvirt-gconfig-helpers-private
gvir_config_storage_permissions_get_group, function in GVirConfigStoragePermissions
gvir_config_storage_permissions_get_label, function in GVirConfigStoragePermissions
gvir_config_storage_permissions_get_mode, function in GVirConfigStoragePermissions
gvir_config_storage_permissions_get_owner, function in GVirConfigStoragePermissions
gvir_config_storage_permissions_new, function in GVirConfigStoragePermissions
gvir_config_storage_permissions_new_from_xml, function in GVirConfigStoragePermissions
gvir_config_storage_permissions_set_group, function in GVirConfigStoragePermissions
gvir_config_storage_permissions_set_label, function in GVirConfigStoragePermissions
gvir_config_storage_permissions_set_mode, function in GVirConfigStoragePermissions
gvir_config_storage_permissions_set_owner, function in GVirConfigStoragePermissions
gvir_config_storage_pool_get_allocation, function in GVirConfigStoragePool
gvir_config_storage_pool_get_available, function in GVirConfigStoragePool
gvir_config_storage_pool_get_capacity, function in GVirConfigStoragePool
gvir_config_storage_pool_get_name, function in GVirConfigStoragePool
gvir_config_storage_pool_get_pool_type, function in GVirConfigStoragePool
gvir_config_storage_pool_get_source, function in GVirConfigStoragePool
gvir_config_storage_pool_get_target, function in GVirConfigStoragePool
gvir_config_storage_pool_get_uuid, function in GVirConfigStoragePool
gvir_config_storage_pool_new, function in GVirConfigStoragePool
gvir_config_storage_pool_new_from_xml, function in GVirConfigStoragePool
gvir_config_storage_pool_set_allocation, function in GVirConfigStoragePool
gvir_config_storage_pool_set_available, function in GVirConfigStoragePool
gvir_config_storage_pool_set_capacity, function in GVirConfigStoragePool
gvir_config_storage_pool_set_name, function in GVirConfigStoragePool
gvir_config_storage_pool_set_pool_type, function in GVirConfigStoragePool
gvir_config_storage_pool_set_source, function in GVirConfigStoragePool
gvir_config_storage_pool_set_target, function in GVirConfigStoragePool
gvir_config_storage_pool_set_uuid, function in GVirConfigStoragePool
gvir_config_storage_pool_source_get_adapter, function in GVirConfigStoragePoolSource
gvir_config_storage_pool_source_get_device_path, function in GVirConfigStoragePoolSource
gvir_config_storage_pool_source_get_directory, function in GVirConfigStoragePoolSource
gvir_config_storage_pool_source_get_format, function in GVirConfigStoragePoolSource
gvir_config_storage_pool_source_get_host, function in GVirConfigStoragePoolSource
gvir_config_storage_pool_source_get_name, function in GVirConfigStoragePoolSource
gvir_config_storage_pool_source_get_product, function in GVirConfigStoragePoolSource
gvir_config_storage_pool_source_get_vendor, function in GVirConfigStoragePoolSource
gvir_config_storage_pool_source_new, function in GVirConfigStoragePoolSource
gvir_config_storage_pool_source_new_from_xml, function in GVirConfigStoragePoolSource
gvir_config_storage_pool_source_set_adapter, function in GVirConfigStoragePoolSource
gvir_config_storage_pool_source_set_device_path, function in GVirConfigStoragePoolSource
gvir_config_storage_pool_source_set_directory, function in GVirConfigStoragePoolSource
gvir_config_storage_pool_source_set_format, function in GVirConfigStoragePoolSource
gvir_config_storage_pool_source_set_host, function in GVirConfigStoragePoolSource
gvir_config_storage_pool_source_set_name, function in GVirConfigStoragePoolSource
gvir_config_storage_pool_source_set_product, function in GVirConfigStoragePoolSource
gvir_config_storage_pool_source_set_vendor, function in GVirConfigStoragePoolSource
gvir_config_storage_pool_target_get_path, function in GVirConfigStoragePoolTarget
gvir_config_storage_pool_target_get_permissions, function in GVirConfigStoragePoolTarget
gvir_config_storage_pool_target_new, function in GVirConfigStoragePoolTarget
gvir_config_storage_pool_target_new_from_xml, function in GVirConfigStoragePoolTarget
gvir_config_storage_pool_target_set_path, function in GVirConfigStoragePoolTarget
gvir_config_storage_pool_target_set_permissions, function in GVirConfigStoragePoolTarget
gvir_config_storage_vol_backing_store_new, function in GVirConfigStorageVolBackingStore
gvir_config_storage_vol_backing_store_new_from_xml, function in GVirConfigStorageVolBackingStore
gvir_config_storage_vol_backing_store_set_format, function in GVirConfigStorageVolBackingStore
gvir_config_storage_vol_backing_store_set_path, function in GVirConfigStorageVolBackingStore
gvir_config_storage_vol_new, function in GVirConfigStorageVol
gvir_config_storage_vol_new_from_xml, function in GVirConfigStorageVol
gvir_config_storage_vol_set_allocation, function in GVirConfigStorageVol
gvir_config_storage_vol_set_backing_store, function in GVirConfigStorageVol
gvir_config_storage_vol_set_capacity, function in GVirConfigStorageVol
gvir_config_storage_vol_set_name, function in GVirConfigStorageVol
gvir_config_storage_vol_set_target, function in GVirConfigStorageVol
gvir_config_storage_vol_target_new, function in GVirConfigStorageVolTarget
gvir_config_storage_vol_target_new_from_xml, function in GVirConfigStorageVolTarget
gvir_config_storage_vol_target_set_compat, function in GVirConfigStorageVolTarget
gvir_config_storage_vol_target_set_format, function in GVirConfigStorageVolTarget
gvir_config_storage_vol_target_set_permissions, function in GVirConfigStorageVolTarget
gvir_config_xml_doc_new, function in GVirConfigXmlDoc
gvir_config_xml_foreach_child, function in libvirt-gconfig-helpers-private
gvir_config_xml_get_attribute_content, function in libvirt-gconfig-helpers-private
gvir_config_xml_get_child_element_content, function in libvirt-gconfig-helpers-private
gvir_config_xml_get_element, function in libvirt-gconfig-helpers-private
gvir_config_xml_node_to_string, function in libvirt-gconfig-helpers-private
gvir_config_xml_parse, function in libvirt-gconfig-helpers-private
libvirt-glib-1.0.0/docs/libvirt-gconfig/html/GVirConfigNetworkFilter.html0000664000000000000000000001526613007136424023365 00000000000000 GVirConfigNetworkFilter: Libvirt-gconfig Reference Manual

GVirConfigNetworkFilter

GVirConfigNetworkFilter

Object Hierarchy

    GObject
    ╰── GVirConfigObject
        ╰── GVirConfigNetworkFilter

Description

Functions

gvir_config_network_filter_new ()

GVirConfigNetworkFilter *
gvir_config_network_filter_new (void);

gvir_config_network_filter_new_from_xml ()

GVirConfigNetworkFilter *
gvir_config_network_filter_new_from_xml
                               (const gchar *xml,
                                GError **error);

Types and Values

struct GVirConfigNetworkFilter

struct GVirConfigNetworkFilter;

struct GVirConfigNetworkFilterClass

struct GVirConfigNetworkFilterClass {
    GVirConfigObjectClass parent_class;

    gpointer padding[20];
};

GVirConfigNetworkFilterPrivate

typedef struct _GVirConfigNetworkFilterPrivate GVirConfigNetworkFilterPrivate;
libvirt-glib-1.0.0/docs/libvirt-gconfig/html/annotation-glossary.html0000664000000000000000000000742513007136424022661 00000000000000 Annotation Glossary: Libvirt-gconfig Reference Manual

Annotation Glossary

A

allow-none

NULL is OK, both for passing and for returning.

array

Parameter points to an array of items.

E

element-type

Generics and defining elements of containers and arrays.

I

in

Parameter for input. Default is transfer none.

inout

Parameter for input and for returning results. Default is transfer full.

T

transfer container

Free data container after the code is done.

transfer full

Free data after the code is done.

transfer none

Don't free data after the code is done.

type

Override the parsed C type with given type.

libvirt-glib-1.0.0/docs/libvirt-gconfig/html/up.png0000644000000000000000000000040413007136424017076 00000000000000‰PNG  IHDRóÿabKGDÿÿÿ ½§“ pHYs × ×B(›xtIMEÝ ”èÁ‘IDAT8Ëí’1 ƒ@DŸ•¶{ƒxa™ƒØÄ;$]r =JR´È1,Ë øSd„-©}0°ÌŸÙÏÂÂÎàüo¹L:m-˜¤QÞOäÀ[› Éäåkå T¸zþMÞ Lè¬Ì,š:ךuÀ!tÁK;æ ðP¦õÌôÀp Ot@£l¼ÿò/̵*á§l}IEND®B`‚libvirt-glib-1.0.0/docs/libvirt-gconfig/html/GVirConfigStoragePool.html0000664000000000000000000007757213007136424023034 00000000000000 GVirConfigStoragePool: Libvirt-gconfig Reference Manual

GVirConfigStoragePool

GVirConfigStoragePool

Object Hierarchy

    GObject
    ╰── GVirConfigObject
        ╰── GVirConfigStoragePool

Description

Functions

gvir_config_storage_pool_new ()

GVirConfigStoragePool *
gvir_config_storage_pool_new (void);

gvir_config_storage_pool_new_from_xml ()

GVirConfigStoragePool *
gvir_config_storage_pool_new_from_xml (const gchar *xml,
                                       GError **error);

gvir_config_storage_pool_get_allocation ()

guint64
gvir_config_storage_pool_get_allocation
                               (GVirConfigStoragePool *pool);

Gets the total storage allocation for the pool.

Parameters

pool

a GVirConfigStoragePool

 

Returns

total storage allocation in bytes.


gvir_config_storage_pool_set_allocation ()

void
gvir_config_storage_pool_set_allocation
                               (GVirConfigStoragePool *pool,
                                guint64 allocation);

gvir_config_storage_pool_get_available ()

guint64
gvir_config_storage_pool_get_available
                               (GVirConfigStoragePool *pool);

Gets the free space available for allocating new volumes in the pool.

Parameters

pool

a GVirConfigStoragePool

 

Returns

free space available in bytes.


gvir_config_storage_pool_set_available ()

void
gvir_config_storage_pool_set_available
                               (GVirConfigStoragePool *pool,
                                guint64 available);

gvir_config_storage_pool_get_capacity ()

guint64
gvir_config_storage_pool_get_capacity (GVirConfigStoragePool *pool);

Gets the total storage capacity for the pool.

Parameters

pool

a GVirConfigStoragePool

 

Returns

total storage capacity in bytes.


gvir_config_storage_pool_set_capacity ()

void
gvir_config_storage_pool_set_capacity (GVirConfigStoragePool *pool,
                                       guint64 capacity);

gvir_config_storage_pool_get_name ()

const char *
gvir_config_storage_pool_get_name (GVirConfigStoragePool *pool);

Gets the name of the pool.

Parameters

pool

a GVirConfigStoragePool

 

Returns

name of pool .


gvir_config_storage_pool_set_name ()

void
gvir_config_storage_pool_set_name (GVirConfigStoragePool *pool,
                                   const char *name);

Parameters

name

.

[allow-none]

gvir_config_storage_pool_get_pool_type ()

GVirConfigStoragePoolType
gvir_config_storage_pool_get_pool_type
                               (GVirConfigStoragePool *pool);

Gets the type of the pool.

Parameters

pool

a GVirConfigStoragePool

 

Returns

Gname of pool .


gvir_config_storage_pool_set_pool_type ()

void
gvir_config_storage_pool_set_pool_type
                               (GVirConfigStoragePool *pool,
                                GVirConfigStoragePoolType type);

gvir_config_storage_pool_get_source ()

GVirConfigStoragePoolSource *
gvir_config_storage_pool_get_source (GVirConfigStoragePool *pool);

Gets the source for pool

Parameters

pool

a GVirConfigStoragePool

 

Returns

a new GVirConfigStoragePoolSource instance.

[transfer full]


gvir_config_storage_pool_set_source ()

void
gvir_config_storage_pool_set_source (GVirConfigStoragePool *pool,
                                     GVirConfigStoragePoolSource *source);

Parameters

source

.

[allow-none]

gvir_config_storage_pool_get_target ()

GVirConfigStoragePoolTarget *
gvir_config_storage_pool_get_target (GVirConfigStoragePool *pool);

Gets the target for pool

Parameters

pool

a GVirConfigStoragePool

 

Returns

a new GVirConfigStoragePoolTarget instance.

[transfer full]


gvir_config_storage_pool_set_target ()

void
gvir_config_storage_pool_set_target (GVirConfigStoragePool *pool,
                                     GVirConfigStoragePoolTarget *target);

Parameters

target

.

[allow-none]

gvir_config_storage_pool_get_uuid ()

const char *
gvir_config_storage_pool_get_uuid (GVirConfigStoragePool *pool);

Gets the unique identifier for pool .

Parameters

pool

a GVirConfigStoragePool

 

Returns

unique identifier for pool .


gvir_config_storage_pool_set_uuid ()

void
gvir_config_storage_pool_set_uuid (GVirConfigStoragePool *pool,
                                   const char *uuid);

Parameters

uuid

.

[allow-none]

Types and Values

struct GVirConfigStoragePool

struct GVirConfigStoragePool;

struct GVirConfigStoragePoolClass

struct GVirConfigStoragePoolClass {
    GVirConfigObjectClass parent_class;

    gpointer padding[20];
};

enum GVirConfigStoragePoolType

Members

GVIR_CONFIG_STORAGE_POOL_TYPE_DIR

   

GVIR_CONFIG_STORAGE_POOL_TYPE_FS

   

GVIR_CONFIG_STORAGE_POOL_TYPE_NETFS

   

GVIR_CONFIG_STORAGE_POOL_TYPE_LOGICAL

   

GVIR_CONFIG_STORAGE_POOL_TYPE_DISK

   

GVIR_CONFIG_STORAGE_POOL_TYPE_ISCSI

   

GVIR_CONFIG_STORAGE_POOL_TYPE_SCSI

   

GVIR_CONFIG_STORAGE_POOL_TYPE_MPATH

   

GVirConfigStoragePoolPrivate

typedef struct _GVirConfigStoragePoolPrivate GVirConfigStoragePoolPrivate;
libvirt-glib-1.0.0/docs/libvirt-gconfig/html/left.png0000644000000000000000000000040613007136424017406 00000000000000‰PNG  IHDRóÿabKGDÿÿÿ ½§“ pHYs × ×B(›xtIMEÝ,`m;½“IDAT8ËÕÒ¯Áa‡ñ?ÁDAPY‘\‚$‹º[p¢+ÐÜIÐIªMlfü('Úì}MpâÙyží{Îá_ª…ž¨¤ÂÞ¥Â}œ^£‘q xZ <Æ=àYjî) <0ù4\~Ó+Púöl#Ü"ÂÕÉ—,QÏ‘ôp ÉÍIÇlswÒÆ>÷•[/]_i0‘3ÃIEND®B`‚libvirt-glib-1.0.0/docs/libvirt-gconfig/html/left-insensitive.png0000644000000000000000000000061313007136424021744 00000000000000‰PNG  IHDRóÿabKGDÿÿÿ ½§“ pHYs × ×B(›xtIMEÝÆ«q‡IDAT8ËÍ’­NQ…¿éö†…@¡p üdsÛÀÖ`*š4Á@ò„W@ A!ÈÔ†@6Ü^ƒ 5hxèIH R`sQpäÌ™339þBÊó|Ês¤ªKEQTÛíöK°@·ÛÎià¦^¯Ï~îWʆ½÷‹ÀÕûðå`0˜åTJ6·Tõ˜‘cYn6›AÞû Æ€½~¿ß±Ö>}Ç­Žœs;ªº ¨ˆlYkwËÞürˆ¼†ºó£ Þû5U= °/"›ÖÚç  ¬µ‡"ÒuU=ɲlü×ArÎÕDä˜zÃáp5I’ûà4^E+ÀP3Æœçàq_«êp Ì¥iñ¯ðUY¥‚p=#IEND®B`‚libvirt-glib-1.0.0/docs/libvirt-gconfig/html/ch01.html0000664000000000000000000000616313007136424017377 00000000000000 Libvirt-gconfig: Libvirt-gconfig Reference Manual libvirt-glib-1.0.0/docs/libvirt-gconfig/html/style.css0000644000000000000000000002115413007136424017623 00000000000000body { font-family: cantarell, sans-serif; } .synopsis, .classsynopsis { /* tango:aluminium 1/2 */ background: #eeeeec; background: rgba(238, 238, 236, 0.5); border: solid 1px rgb(238, 238, 236); padding: 0.5em; } .programlisting { /* tango:sky blue 0/1 */ /* fallback for no rgba support */ background: #e6f3ff; border: solid 1px #729fcf; background: rgba(114, 159, 207, 0.1); border: solid 1px rgba(114, 159, 207, 0.2); padding: 0.5em; } .variablelist { padding: 4px; margin-left: 3em; } .variablelist td:first-child { vertical-align: top; } div.gallery-float { float: left; padding: 10px; } div.gallery-float img { border-style: none; } div.gallery-spacer { clear: both; } a, a:visited { text-decoration: none; /* tango:sky blue 2 */ color: #3465a4; } a:hover { text-decoration: underline; /* tango:sky blue 1 */ color: #729fcf; } div.informaltable table { border-collapse: separate; border-spacing: 1em 0.3em; border: none; } div.informaltable table td, div.informaltable table th { vertical-align: top; } .function_type, .variable_type, .property_type, .signal_type, .parameter_name, .struct_member_name, .union_member_name, .define_keyword, .datatype_keyword, .typedef_keyword { text-align: right; } /* dim non-primary columns */ .c_punctuation, .function_type, .variable_type, .property_type, .signal_type, .define_keyword, .datatype_keyword, .typedef_keyword, .property_flags, .signal_flags, .parameter_annotations, .enum_member_annotations, .struct_member_annotations, .union_member_annotations { color: #888a85; } .function_type a, .function_type a:visited, .function_type a:hover, .property_type a, .property_type a:visited, .property_type a:hover, .signal_type a, .signal_type a:visited, .signal_type a:hover, .signal_flags a, .signal_flags a:visited, .signal_flags a:hover { color: #729fcf; } td p { margin: 0.25em; } div.table table { border-collapse: collapse; border-spacing: 0px; /* tango:aluminium 3 */ border: solid 1px #babdb6; } div.table table td, div.table table th { /* tango:aluminium 3 */ border: solid 1px #babdb6; padding: 3px; vertical-align: top; } div.table table th { /* tango:aluminium 2 */ background-color: #d3d7cf; } h4 { color: #555753; margin-top: 1em; margin-bottom: 1em; } hr { /* tango:aluminium 1 */ color: #d3d7cf; background: #d3d7cf; border: none 0px; height: 1px; clear: both; margin: 2.0em 0em 2.0em 0em; } dl.toc dt { padding-bottom: 0.25em; } dl.toc > dt { padding-top: 0.25em; padding-bottom: 0.25em; font-weight: bold; } dl.toc > dl { padding-bottom: 0.5em; } .parameter { font-style: normal; } .footer { padding-top: 3.5em; /* tango:aluminium 3 */ color: #babdb6; text-align: center; font-size: 80%; } .informalfigure, .figure { margin: 1em; } .informalexample, .example { margin-top: 1em; margin-bottom: 1em; } .warning { /* tango:orange 0/1 */ background: #ffeed9; background: rgba(252, 175, 62, 0.1); border-color: #ffb04f; border-color: rgba(252, 175, 62, 0.2); } .note { /* tango:chameleon 0/0.5 */ background: #d8ffb2; background: rgba(138, 226, 52, 0.1); border-color: #abf562; border-color: rgba(138, 226, 52, 0.2); } div.blockquote { border-color: #eeeeec; } .note, .warning, div.blockquote { padding: 0.5em; border-width: 1px; border-style: solid; margin: 2em; } .note p, .warning p { margin: 0; } div.warning h3.title, div.note h3.title { display: none; } p + div.section { margin-top: 1em; } div.refnamediv, div.refsynopsisdiv, div.refsect1, div.refsect2, div.toc, div.section { margin-bottom: 1em; } /* blob links */ h2 .extralinks, h3 .extralinks { float: right; /* tango:aluminium 3 */ color: #babdb6; font-size: 80%; font-weight: normal; } .lineart { color: #d3d7cf; font-weight: normal; } .annotation { /* tango:aluminium 5 */ color: #555753; font-weight: normal; } .structfield { font-style: normal; font-weight: normal; } acronym,abbr { border-bottom: 1px dotted gray; } /* code listings */ .listing_code .programlisting .normal, .listing_code .programlisting .normal a, .listing_code .programlisting .number, .listing_code .programlisting .cbracket, .listing_code .programlisting .symbol { color: #555753; } .listing_code .programlisting .comment, .listing_code .programlisting .linenum { color: #babdb6; } /* tango: aluminium 3 */ .listing_code .programlisting .function, .listing_code .programlisting .function a, .listing_code .programlisting .preproc { color: #204a87; } /* tango: sky blue 3 */ .listing_code .programlisting .string { color: #ad7fa8; } /* tango: plum */ .listing_code .programlisting .keyword, .listing_code .programlisting .usertype, .listing_code .programlisting .type, .listing_code .programlisting .type a { color: #4e9a06; } /* tango: chameleon 3 */ .listing_frame { /* tango:sky blue 1 */ border: solid 1px #729fcf; border: solid 1px rgba(114, 159, 207, 0.2); padding: 0px; } .listing_lines, .listing_code { margin-top: 0px; margin-bottom: 0px; padding: 0.5em; } .listing_lines { /* tango:sky blue 0.5 */ background: #a6c5e3; background: rgba(114, 159, 207, 0.2); /* tango:aluminium 6 */ color: #2e3436; } .listing_code { /* tango:sky blue 0 */ background: #e6f3ff; background: rgba(114, 159, 207, 0.1); } .listing_code .programlisting { /* override from previous */ border: none 0px; padding: 0px; background: none; } .listing_lines pre, .listing_code pre { margin: 0px; } @media screen { /* these have a as a first child, but since there are no parent selectors * we can't use that. */ a.footnote { position: relative; top: 0em ! important; } /* this is needed so that the local anchors are displayed below the naviagtion */ div.footnote a[name], div.refnamediv a[name], div.refsect1 a[name], div.refsect2 a[name], div.index a[name], div.glossary a[name], div.sect1 a[name] { display: inline-block; position: relative; top:-5em; } /* this seems to be a bug in the xsl style sheets when generating indexes */ div.index div.index { top: 0em; } /* make space for the fixed navigation bar and add space at the bottom so that * link targets appear somewhat close to top */ body { padding-top: 2.5em; padding-bottom: 500px; max-width: 60em; } p { max-width: 60em; } /* style and size the navigation bar */ table.navigation#top { position: fixed; background: #e2e2e2; border-bottom: solid 1px #babdb6; border-spacing: 5px; margin-top: 0; margin-bottom: 0; top: 0; left: 0; z-index: 10; } table.navigation#top td { padding-left: 6px; padding-right: 6px; } .navigation a, .navigation a:visited { /* tango:sky blue 3 */ color: #204a87; } .navigation a:hover { /* tango:sky blue 2 */ color: #3465a4; } td.shortcuts { /* tango:sky blue 2 */ color: #3465a4; font-size: 80%; white-space: nowrap; } td.shortcuts .dim { color: #babdb6; } .navigation .title { font-size: 80%; max-width: none; margin: 0px; font-weight: normal; } } @media screen and (min-width: 60em) { /* screen larger than 60em */ body { margin: auto; } } @media screen and (max-width: 60em) { /* screen less than 60em */ #nav_hierarchy { display: none; } #nav_interfaces { display: none; } #nav_prerequisites { display: none; } #nav_derived_interfaces { display: none; } #nav_implementations { display: none; } #nav_child_properties { display: none; } #nav_style_properties { display: none; } #nav_index { display: none; } #nav_glossary { display: none; } .gallery_image { display: none; } .property_flags { display: none; } .signal_flags { display: none; } .parameter_annotations { display: none; } .enum_member_annotations { display: none; } .struct_member_annotations { display: none; } .union_member_annotations { display: none; } /* now that a column is hidden, optimize space */ col.parameters_name { width: auto; } col.parameters_description { width: auto; } col.struct_members_name { width: auto; } col.struct_members_description { width: auto; } col.enum_members_name { width: auto; } col.enum_members_description { width: auto; } col.union_members_name { width: auto; } col.union_members_description { width: auto; } .listing_lines { display: none; } } @media print { table.navigation { visibility: collapse; display: none; } div.titlepage table.navigation { visibility: visible; display: table; background: #e2e2e2; border: solid 1px #babdb6; margin-top: 0; margin-bottom: 0; top: 0; left: 0; height: 3em; } } libvirt-glib-1.0.0/docs/libvirt-gconfig/html/GVirConfigNetwork.html0000664000000000000000000001445613007136424022217 00000000000000 GVirConfigNetwork: Libvirt-gconfig Reference Manual

GVirConfigNetwork

GVirConfigNetwork

Object Hierarchy

    GObject
    ╰── GVirConfigObject
        ╰── GVirConfigNetwork

Description

Functions

gvir_config_network_new ()

GVirConfigNetwork *
gvir_config_network_new (void);

gvir_config_network_new_from_xml ()

GVirConfigNetwork *
gvir_config_network_new_from_xml (const gchar *xml,
                                  GError **error);

Types and Values

struct GVirConfigNetwork

struct GVirConfigNetwork;

struct GVirConfigNetworkClass

struct GVirConfigNetworkClass {
    GVirConfigObjectClass parent_class;

    gpointer padding[20];
};

GVirConfigNetworkPrivate

typedef struct _GVirConfigNetworkPrivate GVirConfigNetworkPrivate;
libvirt-glib-1.0.0/docs/libvirt-gconfig/html/GVirConfigObject.html0000664000000000000000000003517713007136424021777 00000000000000 GVirConfigObject: Libvirt-gconfig Reference Manual

GVirConfigObject

GVirConfigObject

Properties

GVirConfigXmlDoc * doc Read / Write / Construct Only
gpointer node Read / Write / Construct Only
gchar * schema Read / Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ╰── GVirConfigObject
        ├── GVirConfigCapabilitiesCpuFeature
        ├── GVirConfigCapabilitiesCpu
        ├── GVirConfigCapabilitiesCpuModel
        ├── GVirConfigCapabilitiesCpuTopology
        ├── GVirConfigCapabilities
        ├── GVirConfigCapabilitiesGuestArch
        ├── GVirConfigCapabilitiesGuestDomain
        ├── GVirConfigCapabilitiesGuestFeature
        ├── GVirConfigCapabilitiesGuest
        ├── GVirConfigCapabilitiesHost
        ├── GVirConfigCapabilitiesHostSecModel
        ├── GVirConfigDomainAddress
        ├── GVirConfigDomainDevice
        ├── GVirConfigDomainChardevSource
        ├── GVirConfigDomainClock
        ├── GVirConfigDomainDiskDriver
        ├── GVirConfigDomain
        ├── GVirConfigDomainInterfaceFilterref
        ├── GVirConfigDomainInterfaceFilterrefParameter
        ├── GVirConfigDomainOs
        ├── GVirConfigDomainPowerManagement
        ├── GVirConfigDomainSeclabel
        ├── GVirConfigDomainSnapshotDisk
        ├── GVirConfigDomainSnapshot
        ├── GVirConfigDomainTimer
        ├── GVirConfigInterface
        ├── GVirConfigNetworkFilter
        ├── GVirConfigNetwork
        ├── GVirConfigNodeDevice
        ├── GVirConfigSecret
        ├── GVirConfigStoragePermissions
        ├── GVirConfigStoragePool
        ├── GVirConfigStoragePoolSource
        ├── GVirConfigStoragePoolTarget
        ├── GVirConfigStorageVolBackingStore
        ├── GVirConfigStorageVol
        ╰── GVirConfigStorageVolTarget

Description

Functions

gvir_config_object_new ()

GVirConfigObject *
gvir_config_object_new (GType type,
                        const char *root_name,
                        const char *schema);

gvir_config_object_new_from_xml ()

GVirConfigObject *
gvir_config_object_new_from_xml (GType type,
                                 const char *root_name,
                                 const char *schema,
                                 const gchar *xml,
                                 GError **error);

gvir_config_object_validate ()

void
gvir_config_object_validate (GVirConfigObject *config,
                             GError **err);

gvir_config_object_to_xml ()

gchar *
gvir_config_object_to_xml (GVirConfigObject *config);

gvir_config_object_get_schema ()

const gchar *
gvir_config_object_get_schema (GVirConfigObject *config);

Types and Values

struct GVirConfigObject

struct GVirConfigObject;

struct GVirConfigObjectClass

struct GVirConfigObjectClass {
    GObjectClass parent_class;

    gpointer padding[20];
};

GVirConfigObjectPrivate

typedef struct _GVirConfigObjectPrivate GVirConfigObjectPrivate;

Property Details

The “doc†property

  “doc†                     GVirConfigXmlDoc *

The XML doc this config object corresponds to.

Flags: Read / Write / Construct Only


The “node†property

  “node†                    gpointer

The XML node this config object corresponds to.

Flags: Read / Write / Construct Only


The “schema†property

  “schema†                  gchar *

The doc RNG schema.

Flags: Read / Write / Construct Only

Default value: NULL

libvirt-glib-1.0.0/docs/libvirt-gconfig/html/object-tree.html0000664000000000000000000003150013007136424021040 00000000000000 Object Hierarchy: Libvirt-gconfig Reference Manual

Object Hierarchy

    GObject
    ├── GVirConfigObject
    │   ├── GVirConfigCapabilitiesCpuFeature
    │   │   ╰── GVirConfigDomainCpuFeature
    │   ├── GVirConfigCapabilitiesCpu
    │   │   ╰── GVirConfigDomainCpu
    │   ├── GVirConfigCapabilitiesCpuModel
    │   │   ╰── GVirConfigDomainCpuModel
    │   ├── GVirConfigCapabilitiesCpuTopology
    │   ├── GVirConfigCapabilities
    │   ├── GVirConfigCapabilitiesGuestArch
    │   ├── GVirConfigCapabilitiesGuestDomain
    │   ├── GVirConfigCapabilitiesGuestFeature
    │   ├── GVirConfigCapabilitiesGuest
    │   ├── GVirConfigCapabilitiesHost
    │   ├── GVirConfigCapabilitiesHostSecModel
    │   ├── GVirConfigDomainAddress
    │   │   ├── GVirConfigDomainAddressPci
    │   │   ╰── GVirConfigDomainAddressUsb
    │   ├── GVirConfigDomainDevice
    │   │   ├── GVirConfigDomainChardev
    │   │   │   ├── GVirConfigDomainChannel
    │   │   │   ├── GVirConfigDomainConsole
    │   │   │   ├── GVirConfigDomainParallel
    │   │   │   ├── GVirConfigDomainRedirdev
    │   │   │   ╰── GVirConfigDomainSerial
    │   │   ├── GVirConfigDomainController
    │   │   │   ╰── GVirConfigDomainControllerUsb
    │   │   ├── GVirConfigDomainDisk
    │   │   ├── GVirConfigDomainFilesys
    │   │   ├── GVirConfigDomainGraphics
    │   │   │   ├── GVirConfigDomainGraphicsDesktop
    │   │   │   ├── GVirConfigDomainGraphicsRdp
    │   │   │   ├── GVirConfigDomainGraphicsSdl
    │   │   │   ├── GVirConfigDomainGraphicsSpice
    │   │   │   ╰── GVirConfigDomainGraphicsVnc
    │   │   ├── GVirConfigDomainHostdev
    │   │   │   ╰── GVirConfigDomainHostdevPci
    │   │   ├── GVirConfigDomainInput
    │   │   ├── GVirConfigDomainInterface
    │   │   │   ├── GVirConfigDomainInterfaceBridge
    │   │   │   ├── GVirConfigDomainInterfaceNetwork
    │   │   │   ╰── GVirConfigDomainInterfaceUser
    │   │   ├── GVirConfigDomainMemballoon
    │   │   ├── GVirConfigDomainSmartcard
    │   │   │   ├── GVirConfigDomainSmartcardHostCertificates
    │   │   │   ├── GVirConfigDomainSmartcardHost
    │   │   │   ╰── GVirConfigDomainSmartcardPassthrough
    │   │   ├── GVirConfigDomainSound
    │   │   ╰── GVirConfigDomainVideo
    │   ├── GVirConfigDomainChardevSource
    │   │   ├── GVirConfigDomainChardevSourcePty
    │   │   ├── GVirConfigDomainChardevSourceSpicePort
    │   │   ├── GVirConfigDomainChardevSourceSpiceVmc
    │   │   ╰── GVirConfigDomainChardevSourceUnix
    │   ├── GVirConfigDomainClock
    │   ├── GVirConfigDomainDiskDriver
    │   ├── GVirConfigDomain
    │   ├── GVirConfigDomainInterfaceFilterref
    │   ├── GVirConfigDomainInterfaceFilterrefParameter
    │   ├── GVirConfigDomainOs
    │   ├── GVirConfigDomainPowerManagement
    │   ├── GVirConfigDomainSeclabel
    │   ├── GVirConfigDomainSnapshotDisk
    │   ├── GVirConfigDomainSnapshot
    │   ├── GVirConfigDomainTimer
    │   │   ├── GVirConfigDomainTimerHpet
    │   │   ├── GVirConfigDomainTimerPit
    │   │   ╰── GVirConfigDomainTimerRtc
    │   ├── GVirConfigInterface
    │   ├── GVirConfigNetworkFilter
    │   ├── GVirConfigNetwork
    │   ├── GVirConfigNodeDevice
    │   ├── GVirConfigSecret
    │   ├── GVirConfigStoragePermissions
    │   ├── GVirConfigStoragePool
    │   ├── GVirConfigStoragePoolSource
    │   ├── GVirConfigStoragePoolTarget
    │   ├── GVirConfigStorageVolBackingStore
    │   ├── GVirConfigStorageVol
    │   ╰── GVirConfigStorageVolTarget
    ╰── GVirConfigXmlDoc
libvirt-glib-1.0.0/docs/libvirt-gconfig/Libvirt-gconfig-overrides.txt0000664000000000000000000000000013007136413022556 00000000000000libvirt-glib-1.0.0/docs/libvirt-gconfig/Libvirt-gconfig-sections.txt0000664000000000000000000017116513007136424022432 00000000000000
libvirt-gconfig-capabilities GVirConfigCapabilities GVirConfigCapabilities GVirConfigCapabilitiesClass gvir_config_capabilities_new gvir_config_capabilities_new_from_xml gvir_config_capabilities_get_host gvir_config_capabilities_get_guests GVirConfigCapabilitiesPrivate GVIR_CONFIG_CAPABILITIES GVIR_CONFIG_CAPABILITIES_CLASS GVIR_CONFIG_CAPABILITIES_GET_CLASS GVIR_CONFIG_IS_CAPABILITIES GVIR_CONFIG_IS_CAPABILITIES_CLASS GVIR_CONFIG_TYPE_CAPABILITIES gvir_config_capabilities_get_type
libvirt-gconfig-capabilities-cpu GVirConfigCapabilitiesCpu GVirConfigCapabilitiesCpu GVirConfigCapabilitiesCpuClass gvir_config_capabilities_cpu_get_arch gvir_config_capabilities_cpu_add_feature gvir_config_capabilities_cpu_get_features gvir_config_capabilities_cpu_get_topology gvir_config_capabilities_cpu_set_topology gvir_config_capabilities_cpu_get_model GVirConfigCapabilitiesCpuPrivate GVIR_CONFIG_CAPABILITIES_CPU GVIR_CONFIG_CAPABILITIES_CPU_CLASS GVIR_CONFIG_CAPABILITIES_CPU_GET_CLASS GVIR_CONFIG_IS_CAPABILITIES_CPU GVIR_CONFIG_IS_CAPABILITIES_CPU_CLASS GVIR_CONFIG_TYPE_CAPABILITIES_CPU gvir_config_capabilities_cpu_get_type
libvirt-gconfig-capabilities-cpu-feature GVirConfigCapabilitiesCpuFeature GVirConfigCapabilitiesCpuFeature GVirConfigCapabilitiesCpuFeatureClass gvir_config_capabilities_cpu_feature_get_name gvir_config_capabilities_cpu_feature_set_name GVirConfigCapabilitiesCpuFeaturePrivate GVIR_CONFIG_CAPABILITIES_CPU_FEATURE GVIR_CONFIG_CAPABILITIES_CPU_FEATURE_CLASS GVIR_CONFIG_CAPABILITIES_CPU_FEATURE_GET_CLASS GVIR_CONFIG_IS_CAPABILITIES_CPU_FEATURE GVIR_CONFIG_IS_CAPABILITIES_CPU_FEATURE_CLASS GVIR_CONFIG_TYPE_CAPABILITIES_CPU_FEATURE gvir_config_capabilities_cpu_feature_get_type
libvirt-gconfig-capabilities-cpu-model GVirConfigCapabilitiesCpuModel GVirConfigCapabilitiesCpuModel GVirConfigCapabilitiesCpuModelClass gvir_config_capabilities_cpu_model_new gvir_config_capabilities_cpu_model_new_from_xml gvir_config_capabilities_cpu_model_set_name gvir_config_capabilities_cpu_model_get_name GVirConfigCapabilitiesCpuModelPrivate GVIR_CONFIG_CAPABILITIES_CPU_MODEL GVIR_CONFIG_CAPABILITIES_CPU_MODEL_CLASS GVIR_CONFIG_CAPABILITIES_CPU_MODEL_GET_CLASS GVIR_CONFIG_IS_CAPABILITIES_CPU_MODEL GVIR_CONFIG_IS_CAPABILITIES_CPU_MODEL_CLASS GVIR_CONFIG_TYPE_CAPABILITIES_CPU_MODEL gvir_config_capabilities_cpu_model_get_type
libvirt-gconfig-capabilities-cpu-private gvir_config_capabilities_cpu_get_features_with_type
libvirt-gconfig-capabilities-cpu-topology GVirConfigCapabilitiesCpuTopology GVirConfigCapabilitiesCpuTopology GVirConfigCapabilitiesCpuTopologyClass gvir_config_capabilities_cpu_topology_new gvir_config_capabilities_cpu_topology_new_from_xml gvir_config_capabilities_cpu_topology_get_sockets gvir_config_capabilities_cpu_topology_set_sockets gvir_config_capabilities_cpu_topology_get_cores gvir_config_capabilities_cpu_topology_set_cores gvir_config_capabilities_cpu_topology_get_threads gvir_config_capabilities_cpu_topology_set_threads GVirConfigCapabilitiesCpuTopologyPrivate GVIR_CONFIG_CAPABILITIES_CPU_TOPOLOGY GVIR_CONFIG_CAPABILITIES_CPU_TOPOLOGY_CLASS GVIR_CONFIG_CAPABILITIES_CPU_TOPOLOGY_GET_CLASS GVIR_CONFIG_IS_CAPABILITIES_CPU_TOPOLOGY GVIR_CONFIG_IS_CAPABILITIES_CPU_TOPOLOGY_CLASS GVIR_CONFIG_TYPE_CAPABILITIES_CPU_TOPOLOGY gvir_config_capabilities_cpu_topology_get_type
libvirt-gconfig-capabilities-guest GVirConfigCapabilitiesGuest GVirConfigCapabilitiesGuest GVirConfigCapabilitiesGuestClass gvir_config_capabilities_guest_get_os_type gvir_config_capabilities_guest_get_arch gvir_config_capabilities_guest_get_features GVirConfigCapabilitiesGuestPrivate GVIR_CONFIG_CAPABILITIES_GUEST GVIR_CONFIG_CAPABILITIES_GUEST_CLASS GVIR_CONFIG_CAPABILITIES_GUEST_GET_CLASS GVIR_CONFIG_IS_CAPABILITIES_GUEST GVIR_CONFIG_IS_CAPABILITIES_GUEST_CLASS GVIR_CONFIG_TYPE_CAPABILITIES_GUEST gvir_config_capabilities_guest_get_type
libvirt-gconfig-capabilities-guest-arch GVirConfigCapabilitiesGuestArch GVirConfigCapabilitiesGuestArch GVirConfigCapabilitiesGuestArchClass gvir_config_capabilities_guest_arch_get_name gvir_config_capabilities_guest_arch_get_domains gvir_config_capabilities_guest_arch_get_emulator GVirConfigCapabilitiesGuestArchPrivate GVIR_CONFIG_CAPABILITIES_GUEST_ARCH GVIR_CONFIG_CAPABILITIES_GUEST_ARCH_CLASS GVIR_CONFIG_CAPABILITIES_GUEST_ARCH_GET_CLASS GVIR_CONFIG_IS_CAPABILITIES_GUEST_ARCH GVIR_CONFIG_IS_CAPABILITIES_GUEST_ARCH_CLASS GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_ARCH gvir_config_capabilities_guest_arch_get_type
libvirt-gconfig-capabilities-guest-domain GVirConfigCapabilitiesGuestDomain GVirConfigCapabilitiesGuestDomain GVirConfigCapabilitiesGuestDomainClass gvir_config_capabilities_guest_domain_get_emulator gvir_config_capabilities_guest_domain_get_virt_type GVirConfigCapabilitiesGuestDomainPrivate GVIR_CONFIG_CAPABILITIES_GUEST_DOMAIN GVIR_CONFIG_CAPABILITIES_GUEST_DOMAIN_CLASS GVIR_CONFIG_CAPABILITIES_GUEST_DOMAIN_GET_CLASS GVIR_CONFIG_IS_CAPABILITIES_GUEST_DOMAIN GVIR_CONFIG_IS_CAPABILITIES_GUEST_DOMAIN_CLASS GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_DOMAIN gvir_config_capabilities_guest_domain_get_type
libvirt-gconfig-capabilities-guest-feature GVirConfigCapabilitiesGuestFeature GVirConfigCapabilitiesGuestFeature GVirConfigCapabilitiesGuestFeatureClass gvir_config_capabilities_guest_feature_get_name GVirConfigCapabilitiesGuestFeaturePrivate GVIR_CONFIG_CAPABILITIES_GUEST_FEATURE GVIR_CONFIG_CAPABILITIES_GUEST_FEATURE_CLASS GVIR_CONFIG_CAPABILITIES_GUEST_FEATURE_GET_CLASS GVIR_CONFIG_IS_CAPABILITIES_GUEST_FEATURE GVIR_CONFIG_IS_CAPABILITIES_GUEST_FEATURE_CLASS GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_FEATURE gvir_config_capabilities_guest_feature_get_type
libvirt-gconfig-capabilities-host GVirConfigCapabilitiesHost GVirConfigCapabilitiesHost GVirConfigCapabilitiesHostClass gvir_config_capabilities_host_get_uuid gvir_config_capabilities_host_get_cpu gvir_config_capabilities_host_get_secmodels GVirConfigCapabilitiesHostPrivate GVIR_CONFIG_CAPABILITIES_HOST GVIR_CONFIG_CAPABILITIES_HOST_CLASS GVIR_CONFIG_CAPABILITIES_HOST_GET_CLASS GVIR_CONFIG_IS_CAPABILITIES_HOST GVIR_CONFIG_IS_CAPABILITIES_HOST_CLASS GVIR_CONFIG_TYPE_CAPABILITIES_HOST gvir_config_capabilities_host_get_type
libvirt-gconfig-capabilities-host-secmodel GVirConfigCapabilitiesHostSecModel GVirConfigCapabilitiesHostSecModel GVirConfigCapabilitiesHostSecModelClass gvir_config_capabilities_host_secmodel_get_model gvir_config_capabilities_host_secmodel_get_doi GVirConfigCapabilitiesHostSecModelPrivate GVIR_CONFIG_CAPABILITIES_HOST_SECMODEL GVIR_CONFIG_CAPABILITIES_HOST_SECMODEL_CLASS GVIR_CONFIG_CAPABILITIES_HOST_SECMODEL_GET_CLASS GVIR_CONFIG_IS_CAPABILITIES_HOST_SECMODEL GVIR_CONFIG_IS_CAPABILITIES_HOST_SECMODEL_CLASS GVIR_CONFIG_TYPE_CAPABILITIES_HOST_SECMODEL gvir_config_capabilities_host_secmodel_get_type
libvirt-gconfig-compat g_type_init
libvirt-gconfig-domain GVirConfigDomain GVirConfigDomain GVirConfigDomainClass GVirConfigDomainVirtType GVirConfigDomainLifecycleEvent GVirConfigDomainLifecycleAction gvir_config_domain_new_from_xml gvir_config_domain_new gvir_config_domain_get_virt_type gvir_config_domain_set_virt_type gvir_config_domain_get_name gvir_config_domain_set_name gvir_config_domain_get_uuid gvir_config_domain_set_uuid gvir_config_domain_get_description gvir_config_domain_set_description gvir_config_domain_get_memory gvir_config_domain_set_memory gvir_config_domain_get_current_memory gvir_config_domain_set_current_memory gvir_config_domain_get_vcpus gvir_config_domain_set_vcpus gvir_config_domain_get_features gvir_config_domain_set_features gvir_config_domain_get_clock gvir_config_domain_set_clock gvir_config_domain_get_os gvir_config_domain_set_os gvir_config_domain_set_seclabel gvir_config_domain_get_title gvir_config_domain_set_title gvir_config_domain_set_devices gvir_config_domain_add_device gvir_config_domain_get_devices gvir_config_domain_set_lifecycle gvir_config_domain_set_custom_xml gvir_config_domain_get_custom_xml gvir_config_domain_get_cpu gvir_config_domain_set_cpu gvir_config_domain_set_power_management GVirConfigDomainPrivate GVIR_CONFIG_DOMAIN GVIR_CONFIG_DOMAIN_CLASS GVIR_CONFIG_DOMAIN_GET_CLASS GVIR_CONFIG_IS_DOMAIN GVIR_CONFIG_IS_DOMAIN_CLASS GVIR_CONFIG_TYPE_DOMAIN gvir_config_domain_get_type
libvirt-gconfig-domain-address GVirConfigDomainAddress GVirConfigDomainAddress GVirConfigDomainAddressClass GVirConfigDomainAddressPrivate GVIR_CONFIG_DOMAIN_ADDRESS GVIR_CONFIG_DOMAIN_ADDRESS_CLASS GVIR_CONFIG_DOMAIN_ADDRESS_GET_CLASS GVIR_CONFIG_IS_DOMAIN_ADDRESS GVIR_CONFIG_IS_DOMAIN_ADDRESS_CLASS GVIR_CONFIG_TYPE_DOMAIN_ADDRESS gvir_config_domain_address_get_type
libvirt-gconfig-domain-address-pci GVirConfigDomainAddressPci GVirConfigDomainAddressPci GVirConfigDomainAddressPciClass gvir_config_domain_address_pci_new gvir_config_domain_address_pci_new_from_xml gvir_config_domain_address_pci_get_domain gvir_config_domain_address_pci_set_domain gvir_config_domain_address_pci_get_bus gvir_config_domain_address_pci_set_bus gvir_config_domain_address_pci_get_slot gvir_config_domain_address_pci_set_slot gvir_config_domain_address_pci_get_function gvir_config_domain_address_pci_set_function gvir_config_domain_address_pci_get_multifunction gvir_config_domain_address_pci_set_multifunction GVirConfigDomainAddressPciPrivate GVIR_CONFIG_DOMAIN_ADDRESS_PCI GVIR_CONFIG_DOMAIN_ADDRESS_PCI_CLASS GVIR_CONFIG_DOMAIN_ADDRESS_PCI_GET_CLASS GVIR_CONFIG_IS_DOMAIN_ADDRESS_PCI GVIR_CONFIG_IS_DOMAIN_ADDRESS_PCI_CLASS GVIR_CONFIG_TYPE_DOMAIN_ADDRESS_PCI gvir_config_domain_address_pci_get_type
libvirt-gconfig-domain-address-usb GVirConfigDomainAddressUsb GVirConfigDomainAddressUsb GVirConfigDomainAddressUsbClass gvir_config_domain_address_usb_new gvir_config_domain_address_usb_new_from_xml gvir_config_domain_address_usb_set_bus gvir_config_domain_address_usb_set_port GVirConfigDomainAddressUsbPrivate GVIR_CONFIG_DOMAIN_ADDRESS_USB GVIR_CONFIG_DOMAIN_ADDRESS_USB_CLASS GVIR_CONFIG_DOMAIN_ADDRESS_USB_GET_CLASS GVIR_CONFIG_IS_DOMAIN_ADDRESS_USB GVIR_CONFIG_IS_DOMAIN_ADDRESS_USB_CLASS GVIR_CONFIG_TYPE_DOMAIN_ADDRESS_USB gvir_config_domain_address_usb_get_type
libvirt-gconfig-domain-channel GVirConfigDomainChannel GVirConfigDomainChannel GVirConfigDomainChannelClass GVirConfigDomainChannelTargetType gvir_config_domain_channel_new gvir_config_domain_channel_new_from_xml gvir_config_domain_channel_get_target_type gvir_config_domain_channel_set_target_type gvir_config_domain_channel_get_target_name gvir_config_domain_channel_set_target_name GVirConfigDomainChannelPrivate GVIR_CONFIG_DOMAIN_CHANNEL GVIR_CONFIG_DOMAIN_CHANNEL_CLASS GVIR_CONFIG_DOMAIN_CHANNEL_GET_CLASS GVIR_CONFIG_IS_DOMAIN_CHANNEL GVIR_CONFIG_IS_DOMAIN_CHANNEL_CLASS GVIR_CONFIG_TYPE_DOMAIN_CHANNEL gvir_config_domain_channel_get_type
libvirt-gconfig-domain-chardev GVirConfigDomainChardev GVirConfigDomainChardev GVirConfigDomainChardevClass gvir_config_domain_chardev_set_source gvir_config_domain_chardev_get_source GVirConfigDomainChardevPrivate GVIR_CONFIG_DOMAIN_CHARDEV GVIR_CONFIG_DOMAIN_CHARDEV_CLASS GVIR_CONFIG_DOMAIN_CHARDEV_GET_CLASS GVIR_CONFIG_IS_DOMAIN_CHARDEV GVIR_CONFIG_IS_DOMAIN_CHARDEV_CLASS GVIR_CONFIG_TYPE_DOMAIN_CHARDEV gvir_config_domain_chardev_get_type
libvirt-gconfig-domain-chardev-source GVirConfigDomainChardevSource GVirConfigDomainChardevSource GVirConfigDomainChardevSourceClass GVirConfigDomainChardevSourcePrivate GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_CLASS GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_GET_CLASS GVIR_CONFIG_IS_DOMAIN_CHARDEV_SOURCE GVIR_CONFIG_IS_DOMAIN_CHARDEV_SOURCE_CLASS GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE gvir_config_domain_chardev_source_get_type
libvirt-gconfig-domain-chardev-source-private gvir_config_domain_chardev_source_new_from_tree gvir_config_domain_chardev_source_pty_new_from_tree
libvirt-gconfig-domain-chardev-source-pty GVirConfigDomainChardevSourcePty GVirConfigDomainChardevSourcePty GVirConfigDomainChardevSourcePtyClass gvir_config_domain_chardev_source_pty_new gvir_config_domain_chardev_source_pty_new_from_xml gvir_config_domain_chardev_source_pty_set_path gvir_config_domain_chardev_source_pty_get_path GVirConfigDomainChardevSourcePtyPrivate GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_PTY GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_PTY_CLASS GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_PTY_GET_CLASS GVIR_CONFIG_IS_DOMAIN_CHARDEV_SOURCE_PTY GVIR_CONFIG_IS_DOMAIN_CHARDEV_SOURCE_PTY_CLASS GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_PTY gvir_config_domain_chardev_source_pty_get_type
libvirt-gconfig-domain-chardev-source-spiceport GVirConfigDomainChardevSourceSpicePort gvir_config_domain_chardev_source_spiceport_new gvir_config_domain_chardev_source_spiceport_new_from_xml gvir_config_domain_chardev_source_spiceport_set_channel gvir_config_domain_chardev_source_spiceport_get_channel GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_SPICE_PORT GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_SPICE_PORT_CLASS GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_SPICE_PORT_GET_CLASS GVIR_CONFIG_IS_DOMAIN_CHARDEV_SOURCE_SPICE_PORT GVIR_CONFIG_IS_DOMAIN_CHARDEV_SOURCE_SPICE_PORT_CLASS GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_SPICE_PORT GVirConfigDomainChardevSourceSpicePort GVirConfigDomainChardevSourceSpicePortClass GVirConfigDomainChardevSourceSpicePortPrivate gvir_config_domain_chardev_source_spiceport_get_type
libvirt-gconfig-domain-chardev-source-spicevmc GVirConfigDomainChardevSourceSpiceVmc gvir_config_domain_chardev_source_spicevmc_new gvir_config_domain_chardev_source_spicevmc_new_from_xml GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_SPICE_VMC GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_SPICE_VMC_CLASS GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_SPICE_VMC_GET_CLASS GVIR_CONFIG_IS_DOMAIN_CHARDEV_SOURCE_SPICE_VMC GVIR_CONFIG_IS_DOMAIN_CHARDEV_SOURCE_SPICE_VMC_CLASS GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_SPICE_VMC GVirConfigDomainChardevSourceSpiceVmc GVirConfigDomainChardevSourceSpiceVmcClass GVirConfigDomainChardevSourceSpiceVmcPrivate gvir_config_domain_chardev_source_spicevmc_get_type
libvirt-gconfig-domain-chardev-source-unix GVirConfigDomainChardevSourceUnix GVirConfigDomainChardevSourceUnix GVirConfigDomainChardevSourceUnixClass gvir_config_domain_chardev_source_unix_new gvir_config_domain_chardev_source_unix_new_from_xml GVirConfigDomainChardevSourceUnixPrivate GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_UNIX GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_UNIX_CLASS GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_UNIX_GET_CLASS GVIR_CONFIG_IS_DOMAIN_CHARDEV_SOURCE_UNIX GVIR_CONFIG_IS_DOMAIN_CHARDEV_SOURCE_UNIX_CLASS GVIR_CONFIG_TYPE_DOMAIN_CHARDEV_SOURCE_UNIX gvir_config_domain_chardev_source_unix_get_type
libvirt-gconfig-domain-clock GVirConfigDomainClock GVirConfigDomainClock GVirConfigDomainClockClass GVirConfigDomainClockOffset gvir_config_domain_clock_new gvir_config_domain_clock_new_from_xml gvir_config_domain_clock_get_offset gvir_config_domain_clock_set_offset gvir_config_domain_clock_get_timezone gvir_config_domain_clock_set_timezone gvir_config_domain_clock_get_variable_offset gvir_config_domain_clock_set_variable_offset gvir_config_domain_clock_add_timer GVirConfigDomainClockPrivate GVIR_CONFIG_DOMAIN_CLOCK GVIR_CONFIG_DOMAIN_CLOCK_CLASS GVIR_CONFIG_DOMAIN_CLOCK_GET_CLASS GVIR_CONFIG_IS_DOMAIN_CLOCK GVIR_CONFIG_IS_DOMAIN_CLOCK_CLASS GVIR_CONFIG_TYPE_DOMAIN_CLOCK gvir_config_domain_clock_get_type
libvirt-gconfig-domain-console GVirConfigDomainConsole GVirConfigDomainConsole GVirConfigDomainConsoleClass GVirConfigDomainConsoleTargetType gvir_config_domain_console_new gvir_config_domain_console_new_from_xml gvir_config_domain_console_set_target_type GVirConfigDomainConsolePrivate GVIR_CONFIG_DOMAIN_CONSOLE GVIR_CONFIG_DOMAIN_CONSOLE_CLASS GVIR_CONFIG_DOMAIN_CONSOLE_GET_CLASS GVIR_CONFIG_IS_DOMAIN_CONSOLE GVIR_CONFIG_IS_DOMAIN_CONSOLE_CLASS GVIR_CONFIG_TYPE_DOMAIN_CONSOLE gvir_config_domain_console_get_type
libvirt-gconfig-domain-controller GVirConfigDomainController GVirConfigDomainController GVirConfigDomainControllerClass gvir_config_domain_controller_set_index gvir_config_domain_controller_get_index gvir_config_domain_controller_set_address GVirConfigDomainControllerPrivate GVIR_CONFIG_DOMAIN_CONTROLLER GVIR_CONFIG_DOMAIN_CONTROLLER_CLASS GVIR_CONFIG_DOMAIN_CONTROLLER_GET_CLASS GVIR_CONFIG_IS_DOMAIN_CONTROLLER GVIR_CONFIG_IS_DOMAIN_CONTROLLER_CLASS GVIR_CONFIG_TYPE_DOMAIN_CONTROLLER gvir_config_domain_controller_get_type
libvirt-gconfig-domain-controller-usb GVirConfigDomainControllerUsb GVirConfigDomainControllerUsb GVirConfigDomainControllerUsbClass GVirConfigDomainControllerUsbModel gvir_config_domain_controller_usb_new gvir_config_domain_controller_usb_new_from_xml gvir_config_domain_controller_usb_set_model gvir_config_domain_controller_usb_set_master GVirConfigDomainControllerUsbPrivate GVIR_CONFIG_DOMAIN_CONTROLLER_USB GVIR_CONFIG_DOMAIN_CONTROLLER_USB_CLASS GVIR_CONFIG_DOMAIN_CONTROLLER_USB_GET_CLASS GVIR_CONFIG_IS_DOMAIN_CONTROLLER_USB GVIR_CONFIG_IS_DOMAIN_CONTROLLER_USB_CLASS GVIR_CONFIG_TYPE_DOMAIN_CONTROLLER_USB gvir_config_domain_controller_usb_get_type
libvirt-gconfig-domain-cpu GVirConfigDomainCpu GVirConfigDomainCpu GVirConfigDomainCpuClass GVirConfigDomainCpuMatchPolicy GVirConfigDomainCpuMode gvir_config_domain_cpu_new gvir_config_domain_cpu_new_from_xml gvir_config_domain_cpu_set_match_policy gvir_config_domain_cpu_get_match_policy gvir_config_domain_cpu_set_mode gvir_config_domain_cpu_set_model gvir_config_domain_cpu_get_mode GVirConfigDomainCpuPrivate GVIR_CONFIG_DOMAIN_CPU GVIR_CONFIG_DOMAIN_CPU_CLASS GVIR_CONFIG_DOMAIN_CPU_GET_CLASS GVIR_CONFIG_IS_DOMAIN_CPU GVIR_CONFIG_IS_DOMAIN_CPU_CLASS GVIR_CONFIG_TYPE_DOMAIN_CPU gvir_config_domain_cpu_get_type
libvirt-gconfig-domain-cpu-feature GVirConfigDomainCpuFeature GVirConfigDomainCpuFeature GVirConfigDomainCpuFeatureClass GVirConfigDomainCpuFeaturePolicy gvir_config_domain_cpu_feature_new gvir_config_domain_cpu_feature_new_from_xml gvir_config_domain_cpu_feature_set_policy gvir_config_domain_cpu_feature_get_policy GVirConfigDomainCpuFeaturePrivate GVIR_CONFIG_DOMAIN_CPU_FEATURE GVIR_CONFIG_DOMAIN_CPU_FEATURE_CLASS GVIR_CONFIG_DOMAIN_CPU_FEATURE_GET_CLASS GVIR_CONFIG_IS_DOMAIN_CPU_FEATURE GVIR_CONFIG_IS_DOMAIN_CPU_FEATURE_CLASS GVIR_CONFIG_TYPE_DOMAIN_CPU_FEATURE gvir_config_domain_cpu_feature_get_type
libvirt-gconfig-domain-cpu-model GVirConfigDomainCpuModel GVirConfigDomainCpuModel GVirConfigDomainCpuModelClass gvir_config_domain_cpu_model_new gvir_config_domain_cpu_model_new_from_xml GVirConfigDomainCpuModelPrivate GVIR_CONFIG_DOMAIN_CPU_MODEL GVIR_CONFIG_DOMAIN_CPU_MODEL_CLASS GVIR_CONFIG_DOMAIN_CPU_MODEL_GET_CLASS GVIR_CONFIG_IS_DOMAIN_CPU_MODEL GVIR_CONFIG_IS_DOMAIN_CPU_MODEL_CLASS GVIR_CONFIG_TYPE_DOMAIN_CPU_MODEL gvir_config_domain_cpu_model_get_type
libvirt-gconfig-domain-device GVirConfigDomainDevice GVirConfigDomainDevice GVirConfigDomainDeviceClass gvir_config_domain_device_get_alias GVirConfigDomainDevicePrivate GVIR_CONFIG_DOMAIN_DEVICE GVIR_CONFIG_DOMAIN_DEVICE_CLASS GVIR_CONFIG_DOMAIN_DEVICE_GET_CLASS GVIR_CONFIG_IS_DOMAIN_DEVICE GVIR_CONFIG_IS_DOMAIN_DEVICE_CLASS GVIR_CONFIG_TYPE_DOMAIN_DEVICE gvir_config_domain_device_get_type
libvirt-gconfig-domain-device-private gvir_config_domain_device_new_from_tree gvir_config_domain_controller_new_from_tree gvir_config_domain_disk_new_from_tree gvir_config_domain_filesys_new_from_tree gvir_config_domain_graphics_new_from_tree gvir_config_domain_hostdev_new_from_tree gvir_config_domain_interface_new_from_tree gvir_config_domain_smartcard_new_from_tree
libvirt-gconfig-domain-disk GVirConfigDomainDisk GVirConfigDomainDisk GVirConfigDomainDiskClass GVirConfigDomainDiskType GVirConfigDomainDiskBus GVirConfigDomainDiskGuestDeviceType GVirConfigDomainDiskSnapshotType GVirConfigDomainDiskStartupPolicy GVIR_CONFIG_DOMAIN_DISK_FORMAT_AIO gvir_config_domain_disk_new gvir_config_domain_disk_new_from_xml gvir_config_domain_disk_set_type gvir_config_domain_disk_set_guest_device_type gvir_config_domain_disk_set_snapshot_type gvir_config_domain_disk_set_startup_policy gvir_config_domain_disk_set_source gvir_config_domain_disk_set_driver_cache gvir_config_domain_disk_set_driver_name gvir_config_domain_disk_set_driver_type gvir_config_domain_disk_set_driver_format gvir_config_domain_disk_set_target_bus gvir_config_domain_disk_set_target_dev gvir_config_domain_disk_set_driver gvir_config_domain_disk_get_driver gvir_config_domain_disk_get_disk_type gvir_config_domain_disk_get_guest_device_type gvir_config_domain_disk_get_snapshot_type gvir_config_domain_disk_get_startup_policy gvir_config_domain_disk_get_source gvir_config_domain_disk_get_driver_cache gvir_config_domain_disk_get_driver_name gvir_config_domain_disk_get_driver_type gvir_config_domain_disk_get_driver_format gvir_config_domain_disk_get_target_bus gvir_config_domain_disk_get_target_dev gvir_config_domain_disk_set_readonly GVirConfigDomainDiskPrivate GVIR_CONFIG_DOMAIN_DISK GVIR_CONFIG_DOMAIN_DISK_CLASS GVIR_CONFIG_DOMAIN_DISK_GET_CLASS GVIR_CONFIG_IS_DOMAIN_DISK GVIR_CONFIG_IS_DOMAIN_DISK_CLASS GVIR_CONFIG_TYPE_DOMAIN_DISK gvir_config_domain_disk_get_type
libvirt-gconfig-domain-disk-driver GVirConfigDomainDiskDriver GVirConfigDomainDiskDriver GVirConfigDomainDiskDriverClass GVirConfigDomainDiskCacheType GVirConfigDomainDiskFormat GVirConfigDomainDiskDriverErrorPolicy GVirConfigDomainDiskDriverIoPolicy GVirConfigDomainDiskDriverDiscard gvir_config_domain_disk_driver_new gvir_config_domain_disk_driver_new_from_xml gvir_config_domain_disk_driver_set_cache gvir_config_domain_disk_driver_get_cache gvir_config_domain_disk_driver_set_name gvir_config_domain_disk_driver_get_name gvir_config_domain_disk_driver_set_error_policy gvir_config_domain_disk_driver_get_error_policy gvir_config_domain_disk_driver_set_format gvir_config_domain_disk_driver_get_format gvir_config_domain_disk_driver_set_io_policy gvir_config_domain_disk_driver_get_io_policy gvir_config_domain_disk_driver_set_copy_on_read gvir_config_domain_disk_driver_get_copy_on_read gvir_config_domain_disk_driver_set_discard gvir_config_domain_disk_driver_get_discard GVirConfigDomainDiskDriverPrivate GVIR_CONFIG_DOMAIN_DISK_DRIVER GVIR_CONFIG_DOMAIN_DISK_DRIVER_CLASS GVIR_CONFIG_DOMAIN_DISK_DRIVER_GET_CLASS GVIR_CONFIG_IS_DOMAIN_DISK_DRIVER GVIR_CONFIG_IS_DOMAIN_DISK_DRIVER_CLASS GVIR_CONFIG_TYPE_DOMAIN_DISK_DRIVER gvir_config_domain_disk_driver_get_type
libvirt-gconfig-domain-filesys GVirConfigDomainFilesys GVirConfigDomainFilesys GVirConfigDomainFilesysClass GVirConfigDomainFilesysType GVirConfigDomainFilesysAccessType GVirConfigDomainFilesysDriverType gvir_config_domain_filesys_new gvir_config_domain_filesys_new_from_xml gvir_config_domain_filesys_set_type gvir_config_domain_filesys_set_access_type gvir_config_domain_filesys_set_driver_type gvir_config_domain_filesys_set_driver_format gvir_config_domain_filesys_set_source gvir_config_domain_filesys_set_ram_usage gvir_config_domain_filesys_set_target gvir_config_domain_filesys_set_readonly GVirConfigDomainFilesysPrivate GVIR_CONFIG_DOMAIN_FILESYS GVIR_CONFIG_DOMAIN_FILESYS_CLASS GVIR_CONFIG_DOMAIN_FILESYS_GET_CLASS GVIR_CONFIG_IS_DOMAIN_FILESYS GVIR_CONFIG_IS_DOMAIN_FILESYS_CLASS GVIR_CONFIG_TYPE_DOMAIN_FILESYS gvir_config_domain_filesys_get_type
libvirt-gconfig-domain-graphics GVirConfigDomainGraphics GVirConfigDomainGraphics GVirConfigDomainGraphicsClass GVirConfigDomainGraphicsPrivate GVIR_CONFIG_DOMAIN_GRAPHICS GVIR_CONFIG_DOMAIN_GRAPHICS_CLASS GVIR_CONFIG_DOMAIN_GRAPHICS_GET_CLASS GVIR_CONFIG_IS_DOMAIN_GRAPHICS GVIR_CONFIG_IS_DOMAIN_GRAPHICS_CLASS GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS gvir_config_domain_graphics_get_type
libvirt-gconfig-domain-graphics-desktop GVirConfigDomainGraphicsDesktop GVirConfigDomainGraphicsDesktop GVirConfigDomainGraphicsDesktopClass gvir_config_domain_graphics_desktop_new gvir_config_domain_graphics_desktop_new_from_xml gvir_config_domain_graphics_desktop_get_display gvir_config_domain_graphics_desktop_set_display gvir_config_domain_graphics_desktop_get_fullscreen gvir_config_domain_graphics_desktop_set_fullscreen GVirConfigDomainGraphicsDesktopPrivate GVIR_CONFIG_DOMAIN_GRAPHICS_DESKTOP GVIR_CONFIG_DOMAIN_GRAPHICS_DESKTOP_CLASS GVIR_CONFIG_DOMAIN_GRAPHICS_DESKTOP_GET_CLASS GVIR_CONFIG_IS_DOMAIN_GRAPHICS_DESKTOP GVIR_CONFIG_IS_DOMAIN_GRAPHICS_DESKTOP_CLASS GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_DESKTOP gvir_config_domain_graphics_desktop_get_type
libvirt-gconfig-domain-graphics-rdp GVirConfigDomainGraphicsRdp GVirConfigDomainGraphicsRdp GVirConfigDomainGraphicsRdpClass gvir_config_domain_graphics_rdp_new gvir_config_domain_graphics_rdp_new_from_xml gvir_config_domain_graphics_rdp_set_autoport gvir_config_domain_graphics_rdp_get_port gvir_config_domain_graphics_rdp_set_port gvir_config_domain_graphics_rdp_get_multi_user gvir_config_domain_graphics_rdp_set_multi_user gvir_config_domain_graphics_rdp_get_replace_user gvir_config_domain_graphics_rdp_set_replace_user GVirConfigDomainGraphicsRdpPrivate GVIR_CONFIG_DOMAIN_GRAPHICS_RDP GVIR_CONFIG_DOMAIN_GRAPHICS_RDP_CLASS GVIR_CONFIG_DOMAIN_GRAPHICS_RDP_GET_CLASS GVIR_CONFIG_IS_DOMAIN_GRAPHICS_RDP GVIR_CONFIG_IS_DOMAIN_GRAPHICS_RDP_CLASS GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_RDP gvir_config_domain_graphics_rdp_get_type
libvirt-gconfig-domain-graphics-sdl GVirConfigDomainGraphicsSdl GVirConfigDomainGraphicsSdl GVirConfigDomainGraphicsSdlClass gvir_config_domain_graphics_sdl_new gvir_config_domain_graphics_sdl_new_from_xml gvir_config_domain_graphics_sdl_set_xauthority gvir_config_domain_graphics_sdl_set_display gvir_config_domain_graphics_sdl_set_fullscreen GVirConfigDomainGraphicsSdlPrivate GVIR_CONFIG_DOMAIN_GRAPHICS_SDL GVIR_CONFIG_DOMAIN_GRAPHICS_SDL_CLASS GVIR_CONFIG_DOMAIN_GRAPHICS_SDL_GET_CLASS GVIR_CONFIG_IS_DOMAIN_GRAPHICS_SDL GVIR_CONFIG_IS_DOMAIN_GRAPHICS_SDL_CLASS GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_SDL gvir_config_domain_graphics_sdl_get_type
libvirt-gconfig-domain-graphics-spice GVirConfigDomainGraphicsSpice GVirConfigDomainGraphicsSpice GVirConfigDomainGraphicsSpiceClass GVirConfigDomainGraphicsSpiceImageCompression gvir_config_domain_graphics_spice_new gvir_config_domain_graphics_spice_new_from_xml gvir_config_domain_graphics_spice_set_autoport gvir_config_domain_graphics_spice_set_password gvir_config_domain_graphics_spice_get_port gvir_config_domain_graphics_spice_set_port gvir_config_domain_graphics_spice_set_tls_port gvir_config_domain_graphics_spice_set_image_compression gvir_config_domain_graphics_spice_get_image_compression gvir_config_domain_graphics_spice_set_gl GVirConfigDomainGraphicsSpicePrivate GVIR_CONFIG_DOMAIN_GRAPHICS_SPICE GVIR_CONFIG_DOMAIN_GRAPHICS_SPICE_CLASS GVIR_CONFIG_DOMAIN_GRAPHICS_SPICE_GET_CLASS GVIR_CONFIG_IS_DOMAIN_GRAPHICS_SPICE GVIR_CONFIG_IS_DOMAIN_GRAPHICS_SPICE_CLASS GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_SPICE gvir_config_domain_graphics_spice_get_type
libvirt-gconfig-domain-graphics-vnc GVirConfigDomainGraphicsVnc GVirConfigDomainGraphicsVnc GVirConfigDomainGraphicsVncClass gvir_config_domain_graphics_vnc_new gvir_config_domain_graphics_vnc_new_from_xml gvir_config_domain_graphics_vnc_get_socket gvir_config_domain_graphics_vnc_set_socket gvir_config_domain_graphics_vnc_set_autoport gvir_config_domain_graphics_vnc_get_port gvir_config_domain_graphics_vnc_set_port gvir_config_domain_graphics_vnc_set_password GVirConfigDomainGraphicsVncPrivate GVIR_CONFIG_DOMAIN_GRAPHICS_VNC GVIR_CONFIG_DOMAIN_GRAPHICS_VNC_CLASS GVIR_CONFIG_DOMAIN_GRAPHICS_VNC_GET_CLASS GVIR_CONFIG_IS_DOMAIN_GRAPHICS_VNC GVIR_CONFIG_IS_DOMAIN_GRAPHICS_VNC_CLASS GVIR_CONFIG_TYPE_DOMAIN_GRAPHICS_VNC gvir_config_domain_graphics_vnc_get_type
libvirt-gconfig-domain-hostdev GVirConfigDomainHostdev GVirConfigDomainHostdev GVirConfigDomainHostdevClass gvir_config_domain_hostdev_set_boot_order gvir_config_domain_hostdev_get_boot_order gvir_config_domain_hostdev_set_readonly gvir_config_domain_hostdev_get_readonly gvir_config_domain_hostdev_set_shareable gvir_config_domain_hostdev_get_shareable GVirConfigDomainHostdevPrivate GVIR_CONFIG_DOMAIN_HOSTDEV GVIR_CONFIG_DOMAIN_HOSTDEV_CLASS GVIR_CONFIG_DOMAIN_HOSTDEV_GET_CLASS GVIR_CONFIG_IS_DOMAIN_HOSTDEV GVIR_CONFIG_IS_DOMAIN_HOSTDEV_CLASS GVIR_CONFIG_TYPE_DOMAIN_HOSTDEV gvir_config_domain_hostdev_get_type
libvirt-gconfig-domain-hostdev-pci GVirConfigDomainHostdevPci GVirConfigDomainHostdevPci GVirConfigDomainHostdevPciClass gvir_config_domain_hostdev_pci_new gvir_config_domain_hostdev_pci_new_from_xml gvir_config_domain_hostdev_pci_set_address gvir_config_domain_hostdev_pci_get_address gvir_config_domain_hostdev_pci_set_managed gvir_config_domain_hostdev_pci_get_managed gvir_config_domain_hostdev_pci_set_rom_file gvir_config_domain_hostdev_pci_get_rom_file gvir_config_domain_hostdev_pci_set_rom_bar gvir_config_domain_hostdev_pci_get_rom_bar GVirConfigDomainHostdevPciPrivate GVIR_CONFIG_DOMAIN_HOSTDEV_PCI GVIR_CONFIG_DOMAIN_HOSTDEV_PCI_CLASS GVIR_CONFIG_DOMAIN_HOSTDEV_PCI_GET_CLASS GVIR_CONFIG_IS_DOMAIN_HOSTDEV_PCI GVIR_CONFIG_IS_DOMAIN_HOSTDEV_PCI_CLASS GVIR_CONFIG_TYPE_DOMAIN_HOSTDEV_PCI gvir_config_domain_hostdev_pci_get_type
libvirt-gconfig-domain-input GVirConfigDomainInput GVirConfigDomainInput GVirConfigDomainInputClass GVirConfigDomainInputDeviceType GVirConfigDomainInputBus gvir_config_domain_input_new gvir_config_domain_input_new_from_xml gvir_config_domain_input_get_device_type gvir_config_domain_input_set_device_type gvir_config_domain_input_get_bus gvir_config_domain_input_set_bus GVirConfigDomainInputPrivate GVIR_CONFIG_DOMAIN_INPUT GVIR_CONFIG_DOMAIN_INPUT_CLASS GVIR_CONFIG_DOMAIN_INPUT_GET_CLASS GVIR_CONFIG_IS_DOMAIN_INPUT GVIR_CONFIG_IS_DOMAIN_INPUT_CLASS GVIR_CONFIG_TYPE_DOMAIN_INPUT gvir_config_domain_input_get_type
libvirt-gconfig-domain-interface GVirConfigDomainInterface GVirConfigDomainInterface GVirConfigDomainInterfaceClass GVirConfigDomainInterfaceLinkState gvir_config_domain_interface_set_ifname gvir_config_domain_interface_set_link_state gvir_config_domain_interface_set_mac gvir_config_domain_interface_set_model gvir_config_domain_interface_get_ifname gvir_config_domain_interface_get_link_state gvir_config_domain_interface_get_mac gvir_config_domain_interface_get_model gvir_config_domain_interface_set_filterref gvir_config_domain_interface_get_filterref GVirConfigDomainInterfacePrivate GVIR_CONFIG_DOMAIN_INTERFACE GVIR_CONFIG_DOMAIN_INTERFACE_CLASS GVIR_CONFIG_DOMAIN_INTERFACE_GET_CLASS GVIR_CONFIG_IS_DOMAIN_INTERFACE GVIR_CONFIG_IS_DOMAIN_INTERFACE_CLASS GVIR_CONFIG_TYPE_DOMAIN_INTERFACE gvir_config_domain_interface_get_type
libvirt-gconfig-domain-interface-bridge GVirConfigDomainInterfaceBridge GVirConfigDomainInterfaceBridge GVirConfigDomainInterfaceBridgeClass gvir_config_domain_interface_bridge_new gvir_config_domain_interface_bridge_new_from_xml gvir_config_domain_interface_bridge_set_source GVirConfigDomainInterfaceBridgePrivate GVIR_CONFIG_DOMAIN_INTERFACE_BRIDGE GVIR_CONFIG_DOMAIN_INTERFACE_BRIDGE_CLASS GVIR_CONFIG_DOMAIN_INTERFACE_BRIDGE_GET_CLASS GVIR_CONFIG_IS_DOMAIN_INTERFACE_BRIDGE GVIR_CONFIG_IS_DOMAIN_INTERFACE_BRIDGE_CLASS GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_BRIDGE gvir_config_domain_interface_bridge_get_type
libvirt-gconfig-domain-interface-filterref GVirConfigDomainInterfaceFilterref GVirConfigDomainInterfaceFilterref GVirConfigDomainInterfaceFilterrefClass gvir_config_domain_interface_filterref_new gvir_config_domain_interface_filterref_new_from_xml gvir_config_domain_interface_filterref_set_name gvir_config_domain_interface_filterref_get_name gvir_config_domain_interface_filterref_add_parameter gvir_config_domain_interface_filterref_get_parameters GVirConfigDomainInterfaceFilterrefPrivate GVIR_CONFIG_DOMAIN_INTERFACE_FILTERREF GVIR_CONFIG_DOMAIN_INTERFACE_FILTERREF_CLASS GVIR_CONFIG_DOMAIN_INTERFACE_FILTERREF_GET_CLASS GVIR_CONFIG_IS_DOMAIN_INTERFACE_FILTERREF GVIR_CONFIG_IS_DOMAIN_INTERFACE_FILTERREF_CLASS GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_FILTERREF gvir_config_domain_interface_filterref_get_type
libvirt-gconfig-domain-interface-filterref-parameter GVirConfigDomainInterfaceFilterrefParameter GVirConfigDomainInterfaceFilterrefParameter GVirConfigDomainInterfaceFilterrefParameterClass gvir_config_domain_interface_filterref_parameter_new gvir_config_domain_interface_filterref_parameter_new_from_xml gvir_config_domain_interface_filterref_parameter_set_name gvir_config_domain_interface_filterref_parameter_set_value gvir_config_domain_interface_filterref_parameter_get_name gvir_config_domain_interface_filterref_parameter_get_value GVirConfigDomainInterfaceFilterrefParameterPrivate GVIR_CONFIG_DOMAIN_INTERFACE_FILTERREF_PARAMETER GVIR_CONFIG_DOMAIN_INTERFACE_FILTERREF_PARAMETER_CLASS GVIR_CONFIG_DOMAIN_INTERFACE_FILTERREF_PARAMETER_GET_CLASS GVIR_CONFIG_IS_DOMAIN_INTERFACE_FILTERREF_PARAMETER GVIR_CONFIG_IS_DOMAIN_INTERFACE_FILTERREF_PARAMETER_CLASS GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_FILTERREF_PARAMETER gvir_config_domain_interface_filterref_parameter_get_type
libvirt-gconfig-domain-interface-network GVirConfigDomainInterfaceNetwork GVirConfigDomainInterfaceNetwork GVirConfigDomainInterfaceNetworkClass gvir_config_domain_interface_network_new gvir_config_domain_interface_network_new_from_xml gvir_config_domain_interface_network_set_source GVirConfigDomainInterfaceNetworkPrivate GVIR_CONFIG_DOMAIN_INTERFACE_NETWORK GVIR_CONFIG_DOMAIN_INTERFACE_NETWORK_CLASS GVIR_CONFIG_DOMAIN_INTERFACE_NETWORK_GET_CLASS GVIR_CONFIG_IS_DOMAIN_INTERFACE_NETWORK GVIR_CONFIG_IS_DOMAIN_INTERFACE_NETWORK_CLASS GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_NETWORK gvir_config_domain_interface_network_get_type
libvirt-gconfig-domain-interface-user GVirConfigDomainInterfaceUser GVirConfigDomainInterfaceUser GVirConfigDomainInterfaceUserClass gvir_config_domain_interface_user_new gvir_config_domain_interface_user_new_from_xml GVirConfigDomainInterfaceUserPrivate GVIR_CONFIG_DOMAIN_INTERFACE_USER GVIR_CONFIG_DOMAIN_INTERFACE_USER_CLASS GVIR_CONFIG_DOMAIN_INTERFACE_USER_GET_CLASS GVIR_CONFIG_IS_DOMAIN_INTERFACE_USER GVIR_CONFIG_IS_DOMAIN_INTERFACE_USER_CLASS GVIR_CONFIG_TYPE_DOMAIN_INTERFACE_USER gvir_config_domain_interface_user_get_type
libvirt-gconfig-domain-memballoon GVirConfigDomainMemballoon GVirConfigDomainMemballoon GVirConfigDomainMemballoonClass GVirConfigDomainMemballoonModel gvir_config_domain_memballoon_new gvir_config_domain_memballoon_new_from_xml gvir_config_domain_memballoon_set_model GVirConfigDomainMemballoonPrivate GVIR_CONFIG_DOMAIN_MEMBALLOON GVIR_CONFIG_DOMAIN_MEMBALLOON_CLASS GVIR_CONFIG_DOMAIN_MEMBALLOON_GET_CLASS GVIR_CONFIG_IS_DOMAIN_MEMBALLOON GVIR_CONFIG_IS_DOMAIN_MEMBALLOON_CLASS GVIR_CONFIG_TYPE_DOMAIN_MEMBALLOON gvir_config_domain_memballoon_get_type
libvirt-gconfig-domain-os GVirConfigDomainOs GVirConfigDomainOs GVirConfigDomainOsClass GVirConfigDomainOsType GVirConfigDomainOsSmBiosMode GVirConfigDomainOsBootDevice gvir_config_domain_os_new gvir_config_domain_os_new_from_xml gvir_config_domain_os_set_os_type gvir_config_domain_os_get_os_type gvir_config_domain_os_get_arch gvir_config_domain_os_set_arch gvir_config_domain_os_get_boot_devices gvir_config_domain_os_set_boot_devices gvir_config_domain_os_set_kernel gvir_config_domain_os_set_ramdisk gvir_config_domain_os_set_cmdline gvir_config_domain_os_set_init gvir_config_domain_os_set_loader gvir_config_domain_os_set_machine gvir_config_domain_os_set_smbios_mode gvir_config_domain_os_enable_boot_menu gvir_config_domain_os_bios_enable_serial GVirConfigDomainOsPrivate GVIR_CONFIG_DOMAIN_OS GVIR_CONFIG_DOMAIN_OS_CLASS GVIR_CONFIG_DOMAIN_OS_GET_CLASS GVIR_CONFIG_IS_DOMAIN_OS GVIR_CONFIG_IS_DOMAIN_OS_CLASS GVIR_CONFIG_TYPE_DOMAIN_OS gvir_config_domain_os_get_type
libvirt-gconfig-domain-parallel GVirConfigDomainParallel GVirConfigDomainParallel GVirConfigDomainParallelClass gvir_config_domain_parallel_new gvir_config_domain_parallel_new_from_xml GVirConfigDomainParallelPrivate GVIR_CONFIG_DOMAIN_PARALLEL GVIR_CONFIG_DOMAIN_PARALLEL_CLASS GVIR_CONFIG_DOMAIN_PARALLEL_GET_CLASS GVIR_CONFIG_IS_DOMAIN_PARALLEL GVIR_CONFIG_IS_DOMAIN_PARALLEL_CLASS GVIR_CONFIG_TYPE_DOMAIN_PARALLEL gvir_config_domain_parallel_get_type
libvirt-gconfig-domain-power-management GVirConfigDomainPowerManagement GVirConfigDomainPowerManagement GVirConfigDomainPowerManagementClass gvir_config_domain_power_management_new gvir_config_domain_power_management_new_from_xml gvir_config_domain_power_management_set_mem_suspend_enabled gvir_config_domain_power_management_set_disk_suspend_enabled GVirConfigDomainPowerManagementPrivate GVIR_CONFIG_DOMAIN_POWER_MANAGEMENT GVIR_CONFIG_DOMAIN_POWER_MANAGEMENT_CLASS GVIR_CONFIG_DOMAIN_POWER_MANAGEMENT_GET_CLASS GVIR_CONFIG_IS_DOMAIN_POWER_MANAGEMENT GVIR_CONFIG_IS_DOMAIN_POWER_MANAGEMENT_CLASS GVIR_CONFIG_TYPE_DOMAIN_POWER_MANAGEMENT gvir_config_domain_power_management_get_type
libvirt-gconfig-domain-redirdev GVirConfigDomainRedirdev GVirConfigDomainRedirdev GVirConfigDomainRedirdevClass GVirConfigDomainRedirdevBus gvir_config_domain_redirdev_new gvir_config_domain_redirdev_new_from_xml gvir_config_domain_redirdev_set_bus gvir_config_domain_redirdev_set_address GVirConfigDomainRedirdevPrivate GVIR_CONFIG_DOMAIN_REDIRDEV GVIR_CONFIG_DOMAIN_REDIRDEV_CLASS GVIR_CONFIG_DOMAIN_REDIRDEV_GET_CLASS GVIR_CONFIG_IS_DOMAIN_REDIRDEV GVIR_CONFIG_IS_DOMAIN_REDIRDEV_CLASS GVIR_CONFIG_TYPE_DOMAIN_REDIRDEV gvir_config_domain_redirdev_get_type
libvirt-gconfig-domain-seclabel GVirConfigDomainSeclabel GVirConfigDomainSeclabel GVirConfigDomainSeclabelClass GVirConfigDomainSeclabelType gvir_config_domain_seclabel_new gvir_config_domain_seclabel_new_from_xml gvir_config_domain_seclabel_set_type gvir_config_domain_seclabel_set_model gvir_config_domain_seclabel_set_baselabel gvir_config_domain_seclabel_set_label GVirConfigDomainSeclabelPrivate GVIR_CONFIG_DOMAIN_SECLABEL GVIR_CONFIG_DOMAIN_SECLABEL_CLASS GVIR_CONFIG_DOMAIN_SECLABEL_GET_CLASS GVIR_CONFIG_IS_DOMAIN_SECLABEL GVIR_CONFIG_IS_DOMAIN_SECLABEL_CLASS GVIR_CONFIG_TYPE_DOMAIN_SECLABEL gvir_config_domain_seclabel_get_type
libvirt-gconfig-domain-serial GVirConfigDomainSerial GVirConfigDomainSerial GVirConfigDomainSerialClass gvir_config_domain_serial_new gvir_config_domain_serial_new_from_xml GVirConfigDomainSerialPrivate GVIR_CONFIG_DOMAIN_SERIAL GVIR_CONFIG_DOMAIN_SERIAL_CLASS GVIR_CONFIG_DOMAIN_SERIAL_GET_CLASS GVIR_CONFIG_IS_DOMAIN_SERIAL GVIR_CONFIG_IS_DOMAIN_SERIAL_CLASS GVIR_CONFIG_TYPE_DOMAIN_SERIAL gvir_config_domain_serial_get_type
libvirt-gconfig-domain-smartcard GVirConfigDomainSmartcard GVirConfigDomainSmartcard GVirConfigDomainSmartcardClass gvir_config_domain_smartcard_set_address GVirConfigDomainSmartcardPrivate GVIR_CONFIG_DOMAIN_SMARTCARD GVIR_CONFIG_DOMAIN_SMARTCARD_CLASS GVIR_CONFIG_DOMAIN_SMARTCARD_GET_CLASS GVIR_CONFIG_IS_DOMAIN_SMARTCARD GVIR_CONFIG_IS_DOMAIN_SMARTCARD_CLASS GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD gvir_config_domain_smartcard_get_type
libvirt-gconfig-domain-smartcard-host GVirConfigDomainSmartcardHost GVirConfigDomainSmartcardHost GVirConfigDomainSmartcardHostClass gvir_config_domain_smartcard_host_new gvir_config_domain_smartcard_host_new_from_xml GVirConfigDomainSmartcardHostPrivate GVIR_CONFIG_DOMAIN_SMARTCARD_HOST GVIR_CONFIG_DOMAIN_SMARTCARD_HOST_CLASS GVIR_CONFIG_DOMAIN_SMARTCARD_HOST_GET_CLASS GVIR_CONFIG_IS_DOMAIN_SMARTCARD_HOST GVIR_CONFIG_IS_DOMAIN_SMARTCARD_HOST_CLASS GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD_HOST gvir_config_domain_smartcard_host_get_type
libvirt-gconfig-domain-smartcard-host-certificates GVirConfigDomainSmartcardHostCertificates GVirConfigDomainSmartcardHostCertificates GVirConfigDomainSmartcardHostCertificatesClass gvir_config_domain_smartcard_host_certificates_new gvir_config_domain_smartcard_host_certificates_new_from_xml gvir_config_domain_smartcard_host_certificates_set_database gvir_config_domain_smartcard_host_certificates_set_certificates GVirConfigDomainSmartcardHostCertificatesPrivate GVIR_CONFIG_DOMAIN_SMARTCARD_HOST_CERTIFICATES GVIR_CONFIG_DOMAIN_SMARTCARD_HOST_CERTIFICATES_CLASS GVIR_CONFIG_DOMAIN_SMARTCARD_HOST_CERTIFICATES_GET_CLASS GVIR_CONFIG_IS_DOMAIN_SMARTCARD_HOST_CERTIFICATES GVIR_CONFIG_IS_DOMAIN_SMARTCARD_HOST_CERTIFICATES_CLASS GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD_HOST_CERTIFICATES gvir_config_domain_smartcard_host_certificates_get_type
libvirt-gconfig-domain-smartcard-passthrough GVirConfigDomainSmartcardPassthrough GVirConfigDomainSmartcardPassthrough GVirConfigDomainSmartcardPassthroughClass gvir_config_domain_smartcard_passthrough_new gvir_config_domain_smartcard_passthrough_new_from_xml gvir_config_domain_smartcard_passthrough_set_source GVirConfigDomainSmartcardPassthroughPrivate GVIR_CONFIG_DOMAIN_SMARTCARD_PASSTHROUGH GVIR_CONFIG_DOMAIN_SMARTCARD_PASSTHROUGH_CLASS GVIR_CONFIG_DOMAIN_SMARTCARD_PASSTHROUGH_GET_CLASS GVIR_CONFIG_IS_DOMAIN_SMARTCARD_PASSTHROUGH GVIR_CONFIG_IS_DOMAIN_SMARTCARD_PASSTHROUGH_CLASS GVIR_CONFIG_TYPE_DOMAIN_SMARTCARD_PASSTHROUGH gvir_config_domain_smartcard_passthrough_get_type
libvirt-gconfig-domain-snapshot GVirConfigDomainSnapshot GVirConfigDomainSnapshot GVirConfigDomainSnapshotClass GVirConfigDomainSnapshotDomainState GVirConfigDomainSnapshotMemoryState gvir_config_domain_snapshot_new gvir_config_domain_snapshot_new_from_xml gvir_config_domain_snapshot_get_name gvir_config_domain_snapshot_set_name gvir_config_domain_snapshot_get_description gvir_config_domain_snapshot_set_description gvir_config_domain_snapshot_get_memory_state gvir_config_domain_snapshot_set_memory_state gvir_config_domain_snapshot_get_memory_file gvir_config_domain_snapshot_set_memory_file gvir_config_domain_snapshot_get_creation_time gvir_config_domain_snapshot_get_state gvir_config_domain_snapshot_get_parent gvir_config_domain_snapshot_get_domain gvir_config_domain_snapshot_set_disks gvir_config_domain_snapshot_add_disk gvir_config_domain_snapshot_get_disks GVirConfigDomainSnapshotPrivate GVIR_CONFIG_DOMAIN_SNAPSHOT GVIR_CONFIG_DOMAIN_SNAPSHOT_CLASS GVIR_CONFIG_DOMAIN_SNAPSHOT_GET_CLASS GVIR_CONFIG_IS_DOMAIN_SNAPSHOT GVIR_CONFIG_IS_DOMAIN_SNAPSHOT_CLASS GVIR_CONFIG_TYPE_DOMAIN_SNAPSHOT gvir_config_domain_snapshot_get_type
libvirt-gconfig-domain-snapshot-disk GVirConfigDomainSnapshotDisk GVirConfigDomainSnapshotDisk GVirConfigDomainSnapshotDiskClass gvir_config_domain_snapshot_disk_new gvir_config_domain_snapshot_disk_new_from_xml gvir_config_domain_snapshot_disk_get_name gvir_config_domain_snapshot_disk_set_name gvir_config_domain_snapshot_disk_get_snapshot_type gvir_config_domain_snapshot_disk_set_snapshot_type gvir_config_domain_snapshot_disk_get_source_file gvir_config_domain_snapshot_disk_set_source_file gvir_config_domain_snapshot_disk_get_driver_format gvir_config_domain_snapshot_disk_set_driver_format GVirConfigDomainSnapshotDiskPrivate GVIR_CONFIG_DOMAIN_SNAPSHOT_DISK GVIR_CONFIG_DOMAIN_SNAPSHOT_DISK_CLASS GVIR_CONFIG_DOMAIN_SNAPSHOT_DISK_GET_CLASS GVIR_CONFIG_IS_DOMAIN_SNAPSHOT_DISK GVIR_CONFIG_IS_DOMAIN_SNAPSHOT_DISK_CLASS GVIR_CONFIG_TYPE_DOMAIN_SNAPSHOT_DISK gvir_config_domain_snapshot_disk_get_type
libvirt-gconfig-domain-snapshot-private gvir_config_domain_snapshot_disk_new_from_tree
libvirt-gconfig-domain-sound GVirConfigDomainSound GVirConfigDomainSound GVirConfigDomainSoundClass GVirConfigDomainSoundModel gvir_config_domain_sound_new gvir_config_domain_sound_new_from_xml gvir_config_domain_sound_set_model GVirConfigDomainSoundPrivate GVIR_CONFIG_DOMAIN_SOUND GVIR_CONFIG_DOMAIN_SOUND_CLASS GVIR_CONFIG_DOMAIN_SOUND_GET_CLASS GVIR_CONFIG_IS_DOMAIN_SOUND GVIR_CONFIG_IS_DOMAIN_SOUND_CLASS GVIR_CONFIG_TYPE_DOMAIN_SOUND gvir_config_domain_sound_get_type
libvirt-gconfig-domain-timer GVirConfigDomainTimer GVirConfigDomainTimer GVirConfigDomainTimerClass GVirConfigDomainTimerTickPolicy gvir_config_domain_timer_get_tick_policy gvir_config_domain_timer_set_tick_policy gvir_config_domain_timer_get_present gvir_config_domain_timer_set_present GVirConfigDomainTimerPrivate GVIR_CONFIG_DOMAIN_TIMER GVIR_CONFIG_DOMAIN_TIMER_CLASS GVIR_CONFIG_DOMAIN_TIMER_GET_CLASS GVIR_CONFIG_IS_DOMAIN_TIMER GVIR_CONFIG_IS_DOMAIN_TIMER_CLASS GVIR_CONFIG_TYPE_DOMAIN_TIMER gvir_config_domain_timer_get_type
libvirt-gconfig-domain-timer-hpet GVirConfigDomainTimerHpet GVirConfigDomainTimerHpet GVirConfigDomainTimerHpetClass gvir_config_domain_timer_hpet_new gvir_config_domain_timer_hpet_new_from_xml GVirConfigDomainTimerHpetPrivate GVIR_CONFIG_DOMAIN_TIMER_HPET GVIR_CONFIG_DOMAIN_TIMER_HPET_CLASS GVIR_CONFIG_DOMAIN_TIMER_HPET_GET_CLASS GVIR_CONFIG_IS_DOMAIN_TIMER_HPET GVIR_CONFIG_IS_DOMAIN_TIMER_HPET_CLASS GVIR_CONFIG_TYPE_DOMAIN_TIMER_HPET gvir_config_domain_timer_hpet_get_type
libvirt-gconfig-domain-timer-pit GVirConfigDomainTimerPit GVirConfigDomainTimerPit GVirConfigDomainTimerPitClass gvir_config_domain_timer_pit_new gvir_config_domain_timer_pit_new_from_xml GVirConfigDomainTimerPitPrivate GVIR_CONFIG_DOMAIN_TIMER_PIT GVIR_CONFIG_DOMAIN_TIMER_PIT_CLASS GVIR_CONFIG_DOMAIN_TIMER_PIT_GET_CLASS GVIR_CONFIG_IS_DOMAIN_TIMER_PIT GVIR_CONFIG_IS_DOMAIN_TIMER_PIT_CLASS GVIR_CONFIG_TYPE_DOMAIN_TIMER_PIT gvir_config_domain_timer_pit_get_type
libvirt-gconfig-domain-timer-rtc GVirConfigDomainTimerRtc GVirConfigDomainTimerRtc GVirConfigDomainTimerRtcClass gvir_config_domain_timer_rtc_new gvir_config_domain_timer_rtc_new_from_xml GVirConfigDomainTimerRtcPrivate GVIR_CONFIG_DOMAIN_TIMER_RTC GVIR_CONFIG_DOMAIN_TIMER_RTC_CLASS GVIR_CONFIG_DOMAIN_TIMER_RTC_GET_CLASS GVIR_CONFIG_IS_DOMAIN_TIMER_RTC GVIR_CONFIG_IS_DOMAIN_TIMER_RTC_CLASS GVIR_CONFIG_TYPE_DOMAIN_TIMER_RTC gvir_config_domain_timer_rtc_get_type
libvirt-gconfig-domain-video GVirConfigDomainVideo GVirConfigDomainVideo GVirConfigDomainVideoClass GVirConfigDomainVideoModel gvir_config_domain_video_new gvir_config_domain_video_new_from_xml gvir_config_domain_video_get_model gvir_config_domain_video_set_model gvir_config_domain_video_set_vram gvir_config_domain_video_set_ram gvir_config_domain_video_set_vgamem gvir_config_domain_video_set_heads gvir_config_domain_video_set_accel3d GVirConfigDomainVideoPrivate GVIR_CONFIG_DOMAIN_VIDEO GVIR_CONFIG_DOMAIN_VIDEO_CLASS GVIR_CONFIG_DOMAIN_VIDEO_GET_CLASS GVIR_CONFIG_IS_DOMAIN_VIDEO GVIR_CONFIG_IS_DOMAIN_VIDEO_CLASS GVIR_CONFIG_TYPE_DOMAIN_VIDEO gvir_config_domain_video_get_type
libvirt-gconfig-helpers gvir_config_object_error_quark GVIR_CONFIG_OBJECT_ERROR
libvirt-gconfig-helpers-private gvir_config_error_new gvir_config_set_error gvir_config_set_error_literal gvir_config_set_error_valist gvir_config_xml_parse GVirConfigXmlNodeIterator gvir_config_xml_foreach_child gvir_config_xml_get_element gvir_config_xml_get_child_element_content gvir_config_xml_get_attribute_content gvir_config_xml_node_to_string gvir_config_genum_get_nick gvir_config_genum_get_value
libvirt-gconfig-interface GVirConfigInterface GVirConfigInterface GVirConfigInterfaceClass gvir_config_interface_new gvir_config_interface_new_from_xml GVirConfigInterfacePrivate GVIR_CONFIG_INTERFACE GVIR_CONFIG_INTERFACE_CLASS GVIR_CONFIG_INTERFACE_GET_CLASS GVIR_CONFIG_IS_INTERFACE GVIR_CONFIG_IS_INTERFACE_CLASS GVIR_CONFIG_TYPE_INTERFACE gvir_config_interface_get_type
libvirt-gconfig-main gvir_config_init gvir_config_init_check
libvirt-gconfig-network GVirConfigNetwork GVirConfigNetwork GVirConfigNetworkClass gvir_config_network_new gvir_config_network_new_from_xml GVirConfigNetworkPrivate GVIR_CONFIG_IS_NETWORK GVIR_CONFIG_IS_NETWORK_CLASS GVIR_CONFIG_NETWORK GVIR_CONFIG_NETWORK_CLASS GVIR_CONFIG_NETWORK_GET_CLASS GVIR_CONFIG_TYPE_NETWORK gvir_config_network_get_type
libvirt-gconfig-network-filter GVirConfigNetworkFilter GVirConfigNetworkFilter GVirConfigNetworkFilterClass gvir_config_network_filter_new gvir_config_network_filter_new_from_xml GVirConfigNetworkFilterPrivate GVIR_CONFIG_IS_NETWORK_FILTER GVIR_CONFIG_IS_NETWORK_FILTER_CLASS GVIR_CONFIG_NETWORK_FILTER GVIR_CONFIG_NETWORK_FILTER_CLASS GVIR_CONFIG_NETWORK_FILTER_GET_CLASS GVIR_CONFIG_TYPE_NETWORK_FILTER gvir_config_network_filter_get_type
libvirt-gconfig-node-device GVirConfigNodeDevice GVirConfigNodeDevice GVirConfigNodeDeviceClass gvir_config_node_device_new gvir_config_node_device_new_from_xml GVirConfigNodeDevicePrivate GVIR_CONFIG_IS_NODE_DEVICE GVIR_CONFIG_IS_NODE_DEVICE_CLASS GVIR_CONFIG_NODE_DEVICE GVIR_CONFIG_NODE_DEVICE_CLASS GVIR_CONFIG_NODE_DEVICE_GET_CLASS GVIR_CONFIG_TYPE_NODE_DEVICE gvir_config_node_device_get_type
libvirt-gconfig-object GVirConfigObject GVirConfigObject GVirConfigObjectClass gvir_config_object_new gvir_config_object_new_from_xml gvir_config_object_validate gvir_config_object_to_xml gvir_config_object_get_schema GVirConfigObjectPrivate GVIR_CONFIG_IS_OBJECT GVIR_CONFIG_IS_OBJECT_CLASS GVIR_CONFIG_OBJECT GVIR_CONFIG_OBJECT_CLASS GVIR_CONFIG_OBJECT_GET_CLASS GVIR_CONFIG_TYPE_OBJECT gvir_config_object_get_type
libvirt-gconfig-object-private gvir_config_object_new_from_tree gvir_config_object_get_xml_doc gvir_config_object_get_xml_node gvir_config_object_get_node_content gvir_config_object_get_node_content_uint64 gvir_config_object_get_node_content_genum gvir_config_object_get_attribute gvir_config_object_get_attribute_uint64 gvir_config_object_get_attribute_genum gvir_config_object_get_attribute_boolean gvir_config_object_set_node_content gvir_config_object_set_node_content_uint64 gvir_config_object_add_child gvir_config_object_add_child_with_attribute gvir_config_object_add_child_with_attribute_enum gvir_config_object_replace_child gvir_config_object_replace_child_with_attribute gvir_config_object_replace_child_with_attribute_enum gvir_config_object_delete_child gvir_config_object_delete_children gvir_config_object_set_child gvir_config_object_attach_add gvir_config_object_attach_replace gvir_config_object_set_attribute gvir_config_object_set_attribute_with_type gvir_config_object_remove_attribute gvir_config_object_foreach_child gvir_config_object_set_namespace gvir_config_object_get_child gvir_config_object_get_child_with_type gvir_config_object_has_child
libvirt-gconfig-secret GVirConfigSecret GVirConfigSecret GVirConfigSecretClass gvir_config_secret_new gvir_config_secret_new_from_xml GVirConfigSecretPrivate GVIR_CONFIG_IS_SECRET GVIR_CONFIG_IS_SECRET_CLASS GVIR_CONFIG_SECRET GVIR_CONFIG_SECRET_CLASS GVIR_CONFIG_SECRET_GET_CLASS GVIR_CONFIG_TYPE_SECRET gvir_config_secret_get_type
libvirt-gconfig-storage-permissions GVirConfigStoragePermissions GVirConfigStoragePermissions GVirConfigStoragePermissionsClass gvir_config_storage_permissions_new gvir_config_storage_permissions_new_from_xml gvir_config_storage_permissions_get_group gvir_config_storage_permissions_set_group gvir_config_storage_permissions_get_label gvir_config_storage_permissions_set_label gvir_config_storage_permissions_get_mode gvir_config_storage_permissions_set_mode gvir_config_storage_permissions_get_owner gvir_config_storage_permissions_set_owner GVirConfigStoragePermissionsPrivate GVIR_CONFIG_IS_STORAGE_PERMISSIONS GVIR_CONFIG_IS_STORAGE_PERMISSIONS_CLASS GVIR_CONFIG_STORAGE_PERMISSIONS GVIR_CONFIG_STORAGE_PERMISSIONS_CLASS GVIR_CONFIG_STORAGE_PERMISSIONS_GET_CLASS GVIR_CONFIG_TYPE_STORAGE_PERMISSIONS gvir_config_storage_permissions_get_type
libvirt-gconfig-storage-pool GVirConfigStoragePool GVirConfigStoragePool GVirConfigStoragePoolClass GVirConfigStoragePoolType gvir_config_storage_pool_new gvir_config_storage_pool_new_from_xml gvir_config_storage_pool_get_allocation gvir_config_storage_pool_set_allocation gvir_config_storage_pool_get_available gvir_config_storage_pool_set_available gvir_config_storage_pool_get_capacity gvir_config_storage_pool_set_capacity gvir_config_storage_pool_get_name gvir_config_storage_pool_set_name gvir_config_storage_pool_get_pool_type gvir_config_storage_pool_set_pool_type gvir_config_storage_pool_get_source gvir_config_storage_pool_set_source gvir_config_storage_pool_get_target gvir_config_storage_pool_set_target gvir_config_storage_pool_get_uuid gvir_config_storage_pool_set_uuid GVirConfigStoragePoolPrivate GVIR_CONFIG_IS_STORAGE_POOL GVIR_CONFIG_IS_STORAGE_POOL_CLASS GVIR_CONFIG_STORAGE_POOL GVIR_CONFIG_STORAGE_POOL_CLASS GVIR_CONFIG_STORAGE_POOL_GET_CLASS GVIR_CONFIG_TYPE_STORAGE_POOL gvir_config_storage_pool_get_type
libvirt-gconfig-storage-pool-source GVirConfigStoragePoolSource GVirConfigStoragePoolSource GVirConfigStoragePoolSourceClass gvir_config_storage_pool_source_new gvir_config_storage_pool_source_new_from_xml gvir_config_storage_pool_source_get_adapter gvir_config_storage_pool_source_set_adapter gvir_config_storage_pool_source_get_device_path gvir_config_storage_pool_source_set_device_path gvir_config_storage_pool_source_get_directory gvir_config_storage_pool_source_set_directory gvir_config_storage_pool_source_get_format gvir_config_storage_pool_source_set_format gvir_config_storage_pool_source_get_host gvir_config_storage_pool_source_set_host gvir_config_storage_pool_source_get_name gvir_config_storage_pool_source_set_name gvir_config_storage_pool_source_get_product gvir_config_storage_pool_source_set_product gvir_config_storage_pool_source_get_vendor gvir_config_storage_pool_source_set_vendor GVirConfigStoragePoolSourcePrivate GVIR_CONFIG_IS_STORAGE_POOL_SOURCE GVIR_CONFIG_IS_STORAGE_POOL_SOURCE_CLASS GVIR_CONFIG_STORAGE_POOL_SOURCE GVIR_CONFIG_STORAGE_POOL_SOURCE_CLASS GVIR_CONFIG_STORAGE_POOL_SOURCE_GET_CLASS GVIR_CONFIG_TYPE_STORAGE_POOL_SOURCE gvir_config_storage_pool_source_get_type
libvirt-gconfig-storage-pool-target GVirConfigStoragePoolTarget GVirConfigStoragePoolTarget GVirConfigStoragePoolTargetClass gvir_config_storage_pool_target_new gvir_config_storage_pool_target_new_from_xml gvir_config_storage_pool_target_get_path gvir_config_storage_pool_target_set_path gvir_config_storage_pool_target_get_permissions gvir_config_storage_pool_target_set_permissions GVirConfigStoragePoolTargetPrivate GVIR_CONFIG_IS_STORAGE_POOL_TARGET GVIR_CONFIG_IS_STORAGE_POOL_TARGET_CLASS GVIR_CONFIG_STORAGE_POOL_TARGET GVIR_CONFIG_STORAGE_POOL_TARGET_CLASS GVIR_CONFIG_STORAGE_POOL_TARGET_GET_CLASS GVIR_CONFIG_TYPE_STORAGE_POOL_TARGET gvir_config_storage_pool_target_get_type
libvirt-gconfig-storage-vol GVirConfigStorageVol GVirConfigStorageVol GVirConfigStorageVolClass gvir_config_storage_vol_new gvir_config_storage_vol_new_from_xml gvir_config_storage_vol_set_allocation gvir_config_storage_vol_set_backing_store gvir_config_storage_vol_set_capacity gvir_config_storage_vol_set_name gvir_config_storage_vol_set_target GVirConfigStorageVolPrivate GVIR_CONFIG_IS_STORAGE_VOL GVIR_CONFIG_IS_STORAGE_VOL_CLASS GVIR_CONFIG_STORAGE_VOL GVIR_CONFIG_STORAGE_VOL_CLASS GVIR_CONFIG_STORAGE_VOL_GET_CLASS GVIR_CONFIG_TYPE_STORAGE_VOL gvir_config_storage_vol_get_type
libvirt-gconfig-storage-vol-backing-store GVirConfigStorageVolBackingStore GVirConfigStorageVolBackingStore GVirConfigStorageVolBackingStoreClass gvir_config_storage_vol_backing_store_new gvir_config_storage_vol_backing_store_new_from_xml gvir_config_storage_vol_backing_store_set_format gvir_config_storage_vol_backing_store_set_path GVirConfigStorageVolBackingStorePrivate GVIR_CONFIG_IS_STORAGE_VOL_BACKING_STORE GVIR_CONFIG_IS_STORAGE_VOL_BACKING_STORE_CLASS GVIR_CONFIG_STORAGE_VOL_BACKING_STORE GVIR_CONFIG_STORAGE_VOL_BACKING_STORE_CLASS GVIR_CONFIG_STORAGE_VOL_BACKING_STORE_GET_CLASS GVIR_CONFIG_TYPE_STORAGE_VOL_BACKING_STORE gvir_config_storage_vol_backing_store_get_type
libvirt-gconfig-storage-vol-target GVirConfigStorageVolTarget GVirConfigStorageVolTarget GVirConfigStorageVolTargetClass gvir_config_storage_vol_target_new gvir_config_storage_vol_target_new_from_xml gvir_config_storage_vol_target_set_compat gvir_config_storage_vol_target_set_format gvir_config_storage_vol_target_set_permissions GVirConfigStorageVolTargetPrivate GVIR_CONFIG_IS_STORAGE_VOL_TARGET GVIR_CONFIG_IS_STORAGE_VOL_TARGET_CLASS GVIR_CONFIG_STORAGE_VOL_TARGET GVIR_CONFIG_STORAGE_VOL_TARGET_CLASS GVIR_CONFIG_STORAGE_VOL_TARGET_GET_CLASS GVIR_CONFIG_TYPE_STORAGE_VOL_TARGET gvir_config_storage_vol_target_get_type
libvirt-gconfig-xml-doc GVirConfigXmlDoc GVirConfigXmlDoc GVirConfigXmlDocClass gvir_config_xml_doc_new GVirConfigXmlDocPrivate GVIR_CONFIG_IS_XML_DOC GVIR_CONFIG_IS_XML_DOC_CLASS GVIR_CONFIG_TYPE_XML_DOC GVIR_CONFIG_XML_DOC GVIR_CONFIG_XML_DOC_CLASS GVIR_CONFIG_XML_DOC_GET_CLASS gvir_config_xml_doc_get_type
libvirt-glib-1.0.0/docs/libvirt-gconfig/Makefile.in0000664000000000000000000005654413007136323017065 00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # -*- mode: makefile -*- #################################### # Everything below here is generic # #################################### VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = docs/libvirt-gconfig ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/glibtests.m4 \ $(top_srcdir)/m4/intltool.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/manywarnings.m4 \ $(top_srcdir)/m4/virt-compile-warnings.m4 \ $(top_srcdir)/m4/virt-gettext.m4 $(top_srcdir)/m4/warnings.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/gtk-doc.make DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ COVERAGE_CFLAGS = @COVERAGE_CFLAGS@ COVERAGE_LDFLAGS = @COVERAGE_LDFLAGS@ COV_FLAGS = @COV_FLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ CYGWIN_EXTRA_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@ CYGWIN_EXTRA_LIBADD = @CYGWIN_EXTRA_LIBADD@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GIO2_CFLAGS = @GIO2_CFLAGS@ GIO2_LIBS = @GIO2_LIBS@ GLIB2_CFLAGS = @GLIB2_CFLAGS@ GLIB2_LIBS = @GLIB2_LIBS@ GLIB2_REQUIRED = @GLIB2_REQUIRED@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GOBJECT2_CFLAGS = @GOBJECT2_CFLAGS@ GOBJECT2_LIBS = @GOBJECT2_LIBS@ GREP = @GREP@ GTHREAD2_CFLAGS = @GTHREAD2_CFLAGS@ GTHREAD2_LIBS = @GTHREAD2_LIBS@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBVIRT_CFLAGS = @LIBVIRT_CFLAGS@ LIBVIRT_GLIB_MAJOR_VERSION = @LIBVIRT_GLIB_MAJOR_VERSION@ LIBVIRT_GLIB_MICRO_VERSION = @LIBVIRT_GLIB_MICRO_VERSION@ LIBVIRT_GLIB_MINOR_VERSION = @LIBVIRT_GLIB_MINOR_VERSION@ LIBVIRT_GLIB_VERSION = @LIBVIRT_GLIB_VERSION@ LIBVIRT_GLIB_VERSION_INFO = @LIBVIRT_GLIB_VERSION_INFO@ LIBVIRT_GLIB_VERSION_NUMBER = @LIBVIRT_GLIB_VERSION_NUMBER@ LIBVIRT_LIBS = @LIBVIRT_LIBS@ LIBVIRT_REQUIRED = @LIBVIRT_REQUIRED@ LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ LIBXML2_LIBS = @LIBXML2_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MINGW_EXTRA_LDFLAGS = @MINGW_EXTRA_LDFLAGS@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VAPIGEN = @VAPIGEN@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ installed_test_metadir = @installed_test_metadir@ installed_testdir = @installed_testdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ DOC_MODULE = Libvirt-gconfig DOC_MAIN_SGML_FILE = $(DOC_MODULE)-docs.xml DOC_SOURCE_DIR = $(top_srcdir)/libvirt-gconfig SCANGOBJ_OPTIONS = SCAN_OPTIONS = --rebuild-sections --rebuild-types MKDB_OPTIONS = --sgml-mode --output-format=xml MKTMPL_OPTIONS = MKHTML_OPTIONS = FIXXREF_OPTIONS = HFILE_GLOB = $(top_srcdir)/libvirt-gconfig/*.h CFILE_GLOB = $(top_srcdir)/libvirt-gconfig/*.c IGNORE_HFILES = HTML_IMAGES = content_files = expand_content_files = GTKDOC_CFLAGS = \ $(GOBJECT2_CFLAGS) \ $(LIBXML2_CFLAGS) GTKDOC_LIBS = \ $(GOBJECT2_LIBS) \ $(LIBXML2_LIBS) \ $(top_builddir)/libvirt-gconfig/libvirt-gconfig-1.0.la @GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_CC = $(CC) $(INCLUDES) $(GTKDOC_DEPS_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) @GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_CC = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(INCLUDES) $(GTKDOC_DEPS_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) @GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_LD = $(CC) $(GTKDOC_DEPS_LIBS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) @GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_LD = $(LIBTOOL) --tag=CC --mode=link $(CC) $(GTKDOC_DEPS_LIBS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) @GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_RUN = @GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_RUN = $(LIBTOOL) --mode=execute # We set GPATH here; this gives us semantics for GNU make # which are more like other make's VPATH, when it comes to # whether a source that is a target of one rule is then # searched for in VPATH/GPATH. # GPATH = $(srcdir) TARGET_DIR = $(HTML_DIR)/$(DOC_MODULE) SETUP_FILES = \ $(content_files) \ $(DOC_MAIN_SGML_FILE) \ $(DOC_MODULE)-sections.txt \ $(DOC_MODULE)-overrides.txt EXTRA_DIST = \ $(HTML_IMAGES) \ $(SETUP_FILES) DOC_STAMPS = setup-build.stamp scan-build.stamp sgml-build.stamp \ html-build.stamp pdf-build.stamp \ sgml.stamp html.stamp pdf.stamp SCANOBJ_FILES = \ $(DOC_MODULE).args \ $(DOC_MODULE).hierarchy \ $(DOC_MODULE).interfaces \ $(DOC_MODULE).prerequisites \ $(DOC_MODULE).signals REPORT_FILES = \ $(DOC_MODULE)-undocumented.txt \ $(DOC_MODULE)-undeclared.txt \ $(DOC_MODULE)-unused.txt CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) $(DOC_STAMPS) @ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_HTML_FALSE@HTML_BUILD_STAMP = @ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_HTML_TRUE@HTML_BUILD_STAMP = html-build.stamp @ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_PDF_FALSE@PDF_BUILD_STAMP = @ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_PDF_TRUE@PDF_BUILD_STAMP = pdf-build.stamp all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/gtk-doc.make $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/libvirt-gconfig/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu docs/libvirt-gconfig/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_srcdir)/gtk-doc.make $(am__empty): $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-hook check-am: all-am check: check-am all-am: Makefile all-local installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-local mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic distclean-local dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-data-local install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic \ maintainer-clean-local mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-local .MAKE: install-am install-strip .PHONY: all all-am all-local check check-am clean clean-generic \ clean-libtool clean-local cscopelist-am ctags-am dist-hook \ distclean distclean-generic distclean-libtool distclean-local \ distdir dvi dvi-am html html-am info info-am install \ install-am install-data install-data-am install-data-local \ install-dvi install-dvi-am install-exec install-exec-am \ install-html install-html-am install-info install-info-am \ install-man install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ maintainer-clean-local mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-local .PRECIOUS: Makefile @ENABLE_GTK_DOC_TRUE@all-local: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP) @ENABLE_GTK_DOC_FALSE@all-local: docs: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP) $(REPORT_FILES): sgml-build.stamp #### setup #### setup-build.stamp: -@if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \ echo ' DOC Preparing build'; \ files=`echo $(SETUP_FILES) $(expand_content_files) $(DOC_MODULE).types`; \ if test "x$$files" != "x" ; then \ for file in $$files ; do \ test -f $(abs_srcdir)/$$file && \ cp -pu $(abs_srcdir)/$$file $(abs_builddir)/ || true; \ done; \ fi; \ fi @touch setup-build.stamp #### scan #### scan-build.stamp: $(HFILE_GLOB) $(CFILE_GLOB) @echo ' DOC Scanning header files' @_source_dir='' ; \ for i in $(DOC_SOURCE_DIR) ; do \ _source_dir="$${_source_dir} --source-dir=$$i" ; \ done ; \ gtkdoc-scan --module=$(DOC_MODULE) --ignore-headers="$(IGNORE_HFILES)" $${_source_dir} $(SCAN_OPTIONS) $(EXTRA_HFILES) @if grep -l '^..*$$' $(DOC_MODULE).types > /dev/null 2>&1 ; then \ echo " DOC Introspecting gobjects"; \ scanobj_options=""; \ gtkdoc-scangobj 2>&1 --help | grep >/dev/null "\-\-verbose"; \ if test "$(?)" = "0"; then \ if test "x$(V)" = "x1"; then \ scanobj_options="--verbose"; \ fi; \ fi; \ CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" RUN="$(GTKDOC_RUN)" CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS)" LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)" \ gtkdoc-scangobj $(SCANGOBJ_OPTIONS) $$scanobj_options --module=$(DOC_MODULE); \ else \ for i in $(SCANOBJ_FILES) ; do \ test -f $$i || touch $$i ; \ done \ fi @touch scan-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt: scan-build.stamp @true #### xml #### sgml-build.stamp: setup-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt $(expand_content_files) @echo ' DOC Building XML' @_source_dir='' ; \ for i in $(DOC_SOURCE_DIR) ; do \ _source_dir="$${_source_dir} --source-dir=$$i" ; \ done ; \ gtkdoc-mkdb --module=$(DOC_MODULE) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $${_source_dir} $(MKDB_OPTIONS) @touch sgml-build.stamp sgml.stamp: sgml-build.stamp @true #### html #### html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) @echo ' DOC Building HTML' @rm -rf html @mkdir html @mkhtml_options=""; \ gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-verbose"; \ if test "$(?)" = "0"; then \ if test "x$(V)" = "x1"; then \ mkhtml_options="$$mkhtml_options --verbose"; \ fi; \ fi; \ gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-path"; \ if test "$(?)" = "0"; then \ mkhtml_options="$$mkhtml_options --path=\"$(abs_srcdir)\""; \ fi; \ cd html && gtkdoc-mkhtml $$mkhtml_options $(MKHTML_OPTIONS) $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE) -@test "x$(HTML_IMAGES)" = "x" || \ for file in $(HTML_IMAGES) ; do \ if test -f $(abs_srcdir)/$$file ; then \ cp $(abs_srcdir)/$$file $(abs_builddir)/html; \ fi; \ if test -f $(abs_builddir)/$$file ; then \ cp $(abs_builddir)/$$file $(abs_builddir)/html; \ fi; \ done; @echo ' DOC Fixing cross-references' @gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS) @touch html-build.stamp #### pdf #### pdf-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) @echo ' DOC Building PDF' @rm -f $(DOC_MODULE).pdf @mkpdf_options=""; \ gtkdoc-mkpdf 2>&1 --help | grep >/dev/null "\-\-verbose"; \ if test "$(?)" = "0"; then \ if test "x$(V)" = "x1"; then \ mkpdf_options="$$mkpdf_options --verbose"; \ fi; \ fi; \ if test "x$(HTML_IMAGES)" != "x"; then \ for img in $(HTML_IMAGES); do \ part=`dirname $$img`; \ echo $$mkpdf_options | grep >/dev/null "\-\-imgdir=$$part "; \ if test $$? != 0; then \ mkpdf_options="$$mkpdf_options --imgdir=$$part"; \ fi; \ done; \ fi; \ gtkdoc-mkpdf --path="$(abs_srcdir)" $$mkpdf_options $(DOC_MODULE) $(DOC_MAIN_SGML_FILE) $(MKPDF_OPTIONS) @touch pdf-build.stamp ############## clean-local: @rm -f *~ *.bak @rm -rf .libs distclean-local: @rm -rf xml html $(REPORT_FILES) $(DOC_MODULE).pdf \ $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt @if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \ rm -f $(SETUP_FILES) $(expand_content_files) $(DOC_MODULE).types; \ fi maintainer-clean-local: clean @rm -rf xml html install-data-local: @installfiles=`echo $(builddir)/html/*`; \ if test "$$installfiles" = '$(builddir)/html/*'; \ then echo 1>&2 'Nothing to install' ; \ else \ if test -n "$(DOC_MODULE_VERSION)"; then \ installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \ else \ installdir="$(DESTDIR)$(TARGET_DIR)"; \ fi; \ $(mkinstalldirs) $${installdir} ; \ for i in $$installfiles; do \ echo ' $(INSTALL_DATA) '$$i ; \ $(INSTALL_DATA) $$i $${installdir}; \ done; \ if test -n "$(DOC_MODULE_VERSION)"; then \ mv -f $${installdir}/$(DOC_MODULE).devhelp2 \ $${installdir}/$(DOC_MODULE)-$(DOC_MODULE_VERSION).devhelp2; \ fi; \ $(GTKDOC_REBASE) --relative --dest-dir=$(DESTDIR) --html-dir=$${installdir}; \ fi uninstall-local: @if test -n "$(DOC_MODULE_VERSION)"; then \ installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \ else \ installdir="$(DESTDIR)$(TARGET_DIR)"; \ fi; \ rm -rf $${installdir} # # Require gtk-doc when making dist # @ENABLE_GTK_DOC_TRUE@dist-check-gtkdoc: @ENABLE_GTK_DOC_FALSE@dist-check-gtkdoc: @ENABLE_GTK_DOC_FALSE@ @echo "*** gtk-doc must be installed and enabled in order to make dist" @ENABLE_GTK_DOC_FALSE@ @false dist-hook: dist-check-gtkdoc dist-hook-local @mkdir $(distdir)/html @cp ./html/* $(distdir)/html @-cp ./$(DOC_MODULE).pdf $(distdir)/ @-cp ./$(DOC_MODULE).types $(distdir)/ @-cp ./$(DOC_MODULE)-sections.txt $(distdir)/ @cd $(distdir) && rm -f $(DISTCLEANFILES) @$(GTKDOC_REBASE) --online --relative --html-dir=$(distdir)/html .PHONY : dist-hook-local docs # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libvirt-glib-1.0.0/docs/libvirt-gconfig/Libvirt-gconfig-docs.xml0000664000000000000000000000262113004340477021504 00000000000000 ]> Libvirt-gconfig Reference Manual Libvirt-gconfig Object Hierarchy API Index libvirt-glib-1.0.0/docs/libvirt-glib/0000775000000000000000000000000013007136424014365 500000000000000libvirt-glib-1.0.0/docs/libvirt-glib/Makefile.am0000664000000000000000000000127113004340477016344 00000000000000 DOC_MODULE=Libvirt-glib DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.xml DOC_SOURCE_DIR=$(top_srcdir)/libvirt-glib SCANGOBJ_OPTIONS= SCAN_OPTIONS=--rebuild-sections --rebuild-types MKDB_OPTIONS=--sgml-mode --output-format=xml MKTMPL_OPTIONS= MKHTML_OPTIONS= FIXXREF_OPTIONS= HFILE_GLOB=$(top_srcdir)/libvirt-glib/*.h CFILE_GLOB=$(top_srcdir)/libvirt-glib/*.c IGNORE_HFILES= HTML_IMAGES= content_files= expand_content_files= GTKDOC_CFLAGS= \ $(LIBVIRT_CFLAGS) \ $(GLIB2_CFLAGS) \ $(GTHREAD2_CFLAGS) GTKDOC_LIBS = \ $(LIBVIRT_LIBS) \ $(GLIB2_LIBS) \ $(GTHREAD2_LIBS) \ $(top_builddir)/libvirt-glib/libvirt-glib-1.0.la include $(top_srcdir)/gtk-doc.make EXTRA_DIST += version.xml.in libvirt-glib-1.0.0/docs/libvirt-glib/html/0000775000000000000000000000000013007136424015331 500000000000000libvirt-glib-1.0.0/docs/libvirt-glib/html/right.png0000644000000000000000000000040513007136424017071 00000000000000‰PNG  IHDRóÿabKGDÿÿÿ ½§“ pHYs × ×B(›xtIMEÝ!ÜG’IDAT8ËÕÒ¯aÇñ?›M´½IdErš,¾Ù-¸ÑhîAâIl’Í ¯r’äy§ž}¿ç·s¿X6èæ ö!9¢Ÿ#èD‚ Œr$-¬BrÃ$GÒÀ"$”¹;™á‰æŸÍú—WZêä&–!¸cš·±øŠq \`ðÃÔ軀Oä¾ò=QouføòIEND®B`‚libvirt-glib-1.0.0/docs/libvirt-glib/html/right-insensitive.png0000644000000000000000000000056513007136424021436 00000000000000‰PNG  IHDRóÿabKGDÿÿÿ ½§“ pHYs × ×B(›xtIMEÝ ¥­^IDAT8ËÍ’±JÃ`…¿ ‚“‹³«/ S’_$ÄÁÁAqrÐÙW(>€“à‚®©“m¥"]\œ„è(‘49.NÚdÒ3¸ß9Ü{á¯eM#MSI‡Î¹·E¯iHz|3{̲l½3 ,K˜k’ž†ÃáV'@EŸEQlwÀŠçyišî·Äqüçù‘™]KÀíh4:mµÄ¦²,;“t˜¤sç\aƒÆR5/¬7'¹W×õp”’Žs×­I’,Kº1³=àËÌÂ0´j0Wg³ÙØ>€Ý ¦­¯PUÕýïð»¤0 §]?qCÒ«™ùιgþ½~œÉkÄAâ…_IEND®B`‚libvirt-glib-1.0.0/docs/libvirt-glib/html/index.html0000664000000000000000000000361013007136424017246 00000000000000 Libvirt GLib Reference Manual: Libvirt GLib Reference Manual

API Reference
Library initialization — Initialize the library
Error reporting — Convert libvirt error reports to GLib error reports
Event loop — Integrate libvirt with the GMain event framework
Object Hierarchy
API Index
Annotation Glossary
libvirt-glib-1.0.0/docs/libvirt-glib/html/Libvirt-glib.devhelp20000664000000000000000000000401313007136424021230 00000000000000 libvirt-glib-1.0.0/docs/libvirt-glib/html/up-insensitive.png0000644000000000000000000000056613007136424020746 00000000000000‰PNG  IHDRóÿabKGDÿÿÿ ½§“ pHYs × ×B(›xtIMEÝwIûIDAT8Ëí’?/QÅÏ™?[êu$¾€V³î›ÑâHTD³ø”ÛˆBM+¡!™ÂÌ<ˆDã+èô[mdÞ\…·bø{º{sÎ/97˜ªSÖÚ£º®»<ìTõ8ŒcÌÉ¿UU­‘¼‡•WÕÍ,Ë®ÿ”e¹EÑ €žªîÉSïmÛ®æy~û+À9·è½¿0`hŒ9u†ªº`Çñr¿ßùpÎÍ{ïÌ8‘m’ ªJkí€-o$—Dä¢  išË¾'¹; ‡ Jr‡äCð\¨*¿HΑ|JÓtCDÆßo#"ã$IÖ<«êBQ½é£êêÉ]•TKúIEND®B`‚libvirt-glib-1.0.0/docs/libvirt-glib/html/home.png0000644000000000000000000000040013007136424016677 00000000000000‰PNG  IHDRóÿabKGDÿÿÿ ½§“ pHYs × ×B(›xtIMEÝ¡ &IDAT8ËÝÒ½ AÅñßž¦f`n v`6`/¶`Y€š˜Ü¡`f&k$,Ëá}˜ˆ ÌüßÀ0ü§bŒ+Ô¸aQW~bæ ËOà e˜{‡y N°Á£üö[LáØÌ}.pÇiÀ­÷¨BzüžÆmm Šoæ·.I]7Ì^[úÃô;%:å†ÁVIEND®B`‚libvirt-glib-1.0.0/docs/libvirt-glib/html/api-index-full.html0000664000000000000000000001220513007136424020755 00000000000000 API Index: Libvirt GLib Reference Manual libvirt-glib-1.0.0/docs/libvirt-glib/html/Libvirt-glib-Event-loop.html0000664000000000000000000002243113007136424022515 00000000000000 Event loop: Libvirt GLib Reference Manual

Event loop

Event loop — Integrate libvirt with the GMain event framework

Stability Level

Stable, unless otherwise indicated

Functions

void gvir_event_register ()

Includes

#include <libvirt-glib/libvirt-glib.h>

Description

The libvirt API has the ability to provide applications with asynchronous notifications of interesting events. To enable this functionality though, applications must provide libvirt with an event loop implementation. The libvirt-glib API provides such an implementation, which naturally integrates with the GMain event loop framework.

To enable use of the GMain event loop glue, the gvir_event_register() should be invoked. Once this is done, it is mandatory to have the default GMain event loop run by a thread in the application, usually the primary thread, eg by using gtk_main() or g_application_run()

Example 3. Registering for events with a GTK application

1
2
3
4
5
6
7
int main(int argc, char **argv) {
  ...setup...
  gvir_event_register();
  ...more setup...
  gtk_main();
  return 0;
}

Example 4. Registering for events using Appplication

1
2
3
4
5
6
7
8
int main(int argc, char **argv) {
  ...setup...
  GApplication *app = ...create some impl of GApplication...
  gvir_event_register();
  ...more setup...
  g_application_run(app);
  return 0;
}

Functions

gvir_event_register ()

void
gvir_event_register (void);

Registers a libvirt event loop implementation that is backed by the default GMain context. If invoked more than once this method will be a no-op. Applications should, however, take care not to register any another non-GLib event loop with libvirt.

After invoking this method, it is mandatory to run the default GMain event loop. Typically this can be satisfied by invoking gtk_main or g_application_run in the application's main thread. Failure to run the event loop will mean no libvirt events get dispatched, and the libvirt keepalive timer will kill off libvirt connections frequently.

Types and Values

libvirt-glib-1.0.0/docs/libvirt-glib/html/annotation-glossary.html0000664000000000000000000000677113007136424022165 00000000000000 Annotation Glossary: Libvirt GLib Reference Manual

Annotation Glossary

A

allow-none

NULL is OK, both for passing and for returning.

array

Parameter points to an array of items.

I

inout

Parameter for input and for returning results. Default is transfer full.

S

Stable

The intention of a Stable interface is to enable arbitrary third parties to develop applications to these interfaces, release them, and have confidence that they will run on all minor releases of the product (after the one in which the interface was introduced, and within the same major release). Even at a major release, incompatible changes are expected to be rare, and to have strong justifications.

T

transfer full

Free data after the code is done.

transfer none

Don't free data after the code is done.

libvirt-glib-1.0.0/docs/libvirt-glib/html/up.png0000644000000000000000000000040413007136424016377 00000000000000‰PNG  IHDRóÿabKGDÿÿÿ ½§“ pHYs × ×B(›xtIMEÝ ”èÁ‘IDAT8Ëí’1 ƒ@DŸ•¶{ƒxa™ƒØÄ;$]r =JR´È1,Ë øSd„-©}0°ÌŸÙÏÂÂÎàüo¹L:m-˜¤QÞOäÀ[› Éäåkå T¸zþMÞ Lè¬Ì,š:ךuÀ!tÁK;æ ðP¦õÌôÀp Ot@£l¼ÿò/̵*á§l}IEND®B`‚libvirt-glib-1.0.0/docs/libvirt-glib/html/Libvirt-glib-Library-initialization.html0000664000000000000000000003045613007136424025124 00000000000000 Library initialization: Libvirt GLib Reference Manual

Library initialization

Library initialization — Initialize the library

Stability Level

Stable, unless otherwise indicated

Functions

void gvir_init ()
gboolean gvir_init_check ()

Includes

#include <libvirt-glib/libvirt-glib.h>

Description

The Libvirt GLib library provides glue to integrate core libvirt infrastructure with the GLib library. This enables consistent error reporting procedures and a common event loop implementation for applications.

Before using any functions in the Libvirt GLib library, it must be initialized by calling gvir_init or gvir_init_check.

Example 1. Initializing the Libvirt GLib library

1
2
3
4
5
6
7
int main(int argc, char **argv) {
  ...setup...
  gvir_init(&argc, &argv);
  ...more setup...
  gtk_main();
  return 0;
}

Functions

gvir_init ()

void
gvir_init (int *argc,
           char ***argv);

Call this function before using any other Libvirt GLib functions in your applications. It will initialize everything needed to operate the toolkit and parses some standard command line options.

Although you are expected to pass the argc , argv parameters from main() to this function, it is possible to pass NULL if argv is not available or commandline handling is not required.

argc and argv are adjusted accordingly so your own code will never see those standard arguments.

This method will also turn on debug logging of the library if the LIBVIRT_GLIB_DEBUG environment variable is set.

This function will terminate your program if it was unable to initialize for some reason. If you want the program to fall back to an alternate mode of operation call gvir_init_check instead.

Parameters

argc

Address of the argc parameter of your main() function (or 0 if argv is NULL). This will be changed if any arguments were handled.

[inout]

argv

Address of the

argv parameter of main(), or NULL. Any options

understood by GTK+ are stripped before return.

[array length=argc][inout][allow-none][transfer none]

gvir_init_check ()

gboolean
gvir_init_check (int *argc,
                 char ***argv,
                 GError **err);

This function does the same work as gvir_init() with only a single change: It does not terminate the program if the Libvirt GLib library can't be initialized. Instead it returns FALSE on failure.

This way the application can fall back to some other mode of operation.

Parameters

argc

Address of the argc parameter of your main() function (or 0 if argv is NULL). This will be changed if any arguments were handled.

[inout]

argv

Address of the

argv parameter of main(), or NULL. Any options

understood by GTK+ are stripped before return.

[array length=argc][inout][allow-none][transfer none]

err

filled with the error information if initialized failed.

 

Returns

TRUE if the library was successfully initialized, FALSE otherwise

Types and Values

libvirt-glib-1.0.0/docs/libvirt-glib/html/left.png0000644000000000000000000000040613007136424016707 00000000000000‰PNG  IHDRóÿabKGDÿÿÿ ½§“ pHYs × ×B(›xtIMEÝ,`m;½“IDAT8ËÕÒ¯Áa‡ñ?ÁDAPY‘\‚$‹º[p¢+ÐÜIÐIªMlfü('Úì}MpâÙyží{Îá_ª…ž¨¤ÂÞ¥Â}œ^£‘q xZ <Æ=àYjî) <0ù4\~Ó+Púöl#Ü"ÂÕÉ—,QÏ‘ôp ÉÍIÇlswÒÆ>÷•[/]_i0‘3ÃIEND®B`‚libvirt-glib-1.0.0/docs/libvirt-glib/html/Libvirt-glib-Error-reporting.html0000664000000000000000000005456313007136424023600 00000000000000 Error reporting: Libvirt GLib Reference Manual

Error reporting

Error reporting — Convert libvirt error reports to GLib error reports

Stability Level

Stable, unless otherwise indicated

Functions

GError * gvir_error_new ()
GError * gvir_error_new_literal ()
GError * gvir_error_new_valist ()
void gvir_set_error ()
void gvir_set_error_literal ()
void gvir_set_error_valist ()
void gvir_critical ()
void gvir_warning ()

Includes

#include <libvirt-glib/libvirt-glib.h>

Description

The libvirt API uses the virError structure for reporting errors back to the application programmer. The libvirt API errors are provided in thread-local variables, while the GLib standard practice is to return errors via out parameters. This library provides a simple way to fill in GError ** output parameters with the contents of the most recent libvirt error object in the current thread.

The gvir_error_new, gvir_error_new_literal and

gvir_error_new_valist methods all return a newly created GError * object instance, differing only in the way the

message needs to be provided. For most usage though, it is preferrable to use the gvir_set_error, gvir_set_error_literal and gvir_set_error_valist methods. These all accept a

GError ** argument and take care to only fill it if it

points to a non-NULL location.

Example 2. Reporting GLib errors with libvirt APIs

1
2
3
4
5
6
7
8
9
gboolean myapp_start_guest(const gchar *xml, GError **error)
{
    if (virDomainCreate(conn, xml, 0) < 0) {
        gvir_set_error_literal(error, "Unable to start virtual machine");
       return FALSE;
    }

    return TRUE;
}

Functions

gvir_error_new ()

GError *
gvir_error_new (GQuark domain,
                gint code,
                const gchar *format,
                ...);

Creates a new GError with the given domain and code , and a message formatted with format .

Parameters

domain

error domain

 

code

error code

 

format

printf()-style format for error message

 

...

parameters for message format

 

Returns

a new GError


gvir_error_new_literal ()

GError *
gvir_error_new_literal (GQuark domain,
                        gint code,
                        const gchar *message);

Creates a new GError; unlike gvir_error_new(), message is not a printf()-style format string. Use this function if message contains text you don't have control over, that could include printf() escape sequences.

Parameters

domain

error domain

 

code

error code

 

message

error message

 

Returns

a new GError


gvir_error_new_valist ()

GError *
gvir_error_new_valist (GQuark domain,
                       gint code,
                       const gchar *format,
                       va_list args);

Creates a new GError with the given domain and code , and a message formatted with format .

Parameters

domain

error domain

 

code

error code

 

format

printf()-style format for error message

 

args

va_list of parameters for the message format

 

Returns

a new GError


gvir_set_error ()

void
gvir_set_error (GError **error,
                GQuark domain,
                gint code,
                const gchar *format,
                ...);

If error is NULL this does nothing. Otherwise it creates a new GError with the given domain and code , and a message formatted with format , and stores it in error .

Parameters

error

pointer to error location

 

domain

error domain

 

code

error code

 

format

printf()-style format for error message

 

...

parameters for message format

 

gvir_set_error_literal ()

void
gvir_set_error_literal (GError **error,
                        GQuark domain,
                        gint code,
                        const gchar *message);

If error is NULL this does nothing. Otherwise it creates a new GError and stores it in error ; unlike gvir_set_error(), message is not a printf()-style format string. Use this function if message contains text you don't have control over, that could include printf() escape sequences.

Parameters

error

pointer to error location

 

domain

error domain

 

code

error code

 

message

error message

 

gvir_set_error_valist ()

void
gvir_set_error_valist (GError **error,
                       GQuark domain,
                       gint code,
                       const gchar *format,
                       va_list args);

If error is NULL this does nothing. Otherwise it creates a new GError with the given domain and code , and a message formatted with format , and stores it in error .

Parameters

error

pointer to error location

 

domain

error domain

 

code

error code

 

format

printf()-style format for error message

 

args

va_list of parameters for the message format

 

gvir_critical ()

void
gvir_critical (const gchar *format,
               ...);

gvir_warning ()

void
gvir_warning (const gchar *format,
              ...);

Types and Values

libvirt-glib-1.0.0/docs/libvirt-glib/html/left-insensitive.png0000644000000000000000000000061313007136424021245 00000000000000‰PNG  IHDRóÿabKGDÿÿÿ ½§“ pHYs × ×B(›xtIMEÝÆ«q‡IDAT8ËÍ’­NQ…¿éö†…@¡p üdsÛÀÖ`*š4Á@ò„W@ A!ÈÔ†@6Ü^ƒ 5hxèIH R`sQpäÌ™339þBÊó|Ês¤ªKEQTÛíöK°@·ÛÎià¦^¯Ï~îWʆ½÷‹ÀÕûðå`0˜åTJ6·Tõ˜‘cYn6›AÞû Æ€½~¿ß±Ö>}Ç­Žœs;ªº ¨ˆlYkwËÞürˆ¼†ºó£ Þû5U= °/"›ÖÚç  ¬µ‡"ÒuU=ɲlü×ArÎÕDä˜zÃáp5I’ûà4^E+ÀP3Æœçàq_«êp Ì¥iñ¯ðUY¥‚p=#IEND®B`‚libvirt-glib-1.0.0/docs/libvirt-glib/html/ch01.html0000664000000000000000000000433013007136424016672 00000000000000 API Reference: Libvirt GLib Reference Manual

API Reference

Library initialization — Initialize the library
Error reporting — Convert libvirt error reports to GLib error reports
Event loop — Integrate libvirt with the GMain event framework
libvirt-glib-1.0.0/docs/libvirt-glib/html/style.css0000644000000000000000000002115413007136424017124 00000000000000body { font-family: cantarell, sans-serif; } .synopsis, .classsynopsis { /* tango:aluminium 1/2 */ background: #eeeeec; background: rgba(238, 238, 236, 0.5); border: solid 1px rgb(238, 238, 236); padding: 0.5em; } .programlisting { /* tango:sky blue 0/1 */ /* fallback for no rgba support */ background: #e6f3ff; border: solid 1px #729fcf; background: rgba(114, 159, 207, 0.1); border: solid 1px rgba(114, 159, 207, 0.2); padding: 0.5em; } .variablelist { padding: 4px; margin-left: 3em; } .variablelist td:first-child { vertical-align: top; } div.gallery-float { float: left; padding: 10px; } div.gallery-float img { border-style: none; } div.gallery-spacer { clear: both; } a, a:visited { text-decoration: none; /* tango:sky blue 2 */ color: #3465a4; } a:hover { text-decoration: underline; /* tango:sky blue 1 */ color: #729fcf; } div.informaltable table { border-collapse: separate; border-spacing: 1em 0.3em; border: none; } div.informaltable table td, div.informaltable table th { vertical-align: top; } .function_type, .variable_type, .property_type, .signal_type, .parameter_name, .struct_member_name, .union_member_name, .define_keyword, .datatype_keyword, .typedef_keyword { text-align: right; } /* dim non-primary columns */ .c_punctuation, .function_type, .variable_type, .property_type, .signal_type, .define_keyword, .datatype_keyword, .typedef_keyword, .property_flags, .signal_flags, .parameter_annotations, .enum_member_annotations, .struct_member_annotations, .union_member_annotations { color: #888a85; } .function_type a, .function_type a:visited, .function_type a:hover, .property_type a, .property_type a:visited, .property_type a:hover, .signal_type a, .signal_type a:visited, .signal_type a:hover, .signal_flags a, .signal_flags a:visited, .signal_flags a:hover { color: #729fcf; } td p { margin: 0.25em; } div.table table { border-collapse: collapse; border-spacing: 0px; /* tango:aluminium 3 */ border: solid 1px #babdb6; } div.table table td, div.table table th { /* tango:aluminium 3 */ border: solid 1px #babdb6; padding: 3px; vertical-align: top; } div.table table th { /* tango:aluminium 2 */ background-color: #d3d7cf; } h4 { color: #555753; margin-top: 1em; margin-bottom: 1em; } hr { /* tango:aluminium 1 */ color: #d3d7cf; background: #d3d7cf; border: none 0px; height: 1px; clear: both; margin: 2.0em 0em 2.0em 0em; } dl.toc dt { padding-bottom: 0.25em; } dl.toc > dt { padding-top: 0.25em; padding-bottom: 0.25em; font-weight: bold; } dl.toc > dl { padding-bottom: 0.5em; } .parameter { font-style: normal; } .footer { padding-top: 3.5em; /* tango:aluminium 3 */ color: #babdb6; text-align: center; font-size: 80%; } .informalfigure, .figure { margin: 1em; } .informalexample, .example { margin-top: 1em; margin-bottom: 1em; } .warning { /* tango:orange 0/1 */ background: #ffeed9; background: rgba(252, 175, 62, 0.1); border-color: #ffb04f; border-color: rgba(252, 175, 62, 0.2); } .note { /* tango:chameleon 0/0.5 */ background: #d8ffb2; background: rgba(138, 226, 52, 0.1); border-color: #abf562; border-color: rgba(138, 226, 52, 0.2); } div.blockquote { border-color: #eeeeec; } .note, .warning, div.blockquote { padding: 0.5em; border-width: 1px; border-style: solid; margin: 2em; } .note p, .warning p { margin: 0; } div.warning h3.title, div.note h3.title { display: none; } p + div.section { margin-top: 1em; } div.refnamediv, div.refsynopsisdiv, div.refsect1, div.refsect2, div.toc, div.section { margin-bottom: 1em; } /* blob links */ h2 .extralinks, h3 .extralinks { float: right; /* tango:aluminium 3 */ color: #babdb6; font-size: 80%; font-weight: normal; } .lineart { color: #d3d7cf; font-weight: normal; } .annotation { /* tango:aluminium 5 */ color: #555753; font-weight: normal; } .structfield { font-style: normal; font-weight: normal; } acronym,abbr { border-bottom: 1px dotted gray; } /* code listings */ .listing_code .programlisting .normal, .listing_code .programlisting .normal a, .listing_code .programlisting .number, .listing_code .programlisting .cbracket, .listing_code .programlisting .symbol { color: #555753; } .listing_code .programlisting .comment, .listing_code .programlisting .linenum { color: #babdb6; } /* tango: aluminium 3 */ .listing_code .programlisting .function, .listing_code .programlisting .function a, .listing_code .programlisting .preproc { color: #204a87; } /* tango: sky blue 3 */ .listing_code .programlisting .string { color: #ad7fa8; } /* tango: plum */ .listing_code .programlisting .keyword, .listing_code .programlisting .usertype, .listing_code .programlisting .type, .listing_code .programlisting .type a { color: #4e9a06; } /* tango: chameleon 3 */ .listing_frame { /* tango:sky blue 1 */ border: solid 1px #729fcf; border: solid 1px rgba(114, 159, 207, 0.2); padding: 0px; } .listing_lines, .listing_code { margin-top: 0px; margin-bottom: 0px; padding: 0.5em; } .listing_lines { /* tango:sky blue 0.5 */ background: #a6c5e3; background: rgba(114, 159, 207, 0.2); /* tango:aluminium 6 */ color: #2e3436; } .listing_code { /* tango:sky blue 0 */ background: #e6f3ff; background: rgba(114, 159, 207, 0.1); } .listing_code .programlisting { /* override from previous */ border: none 0px; padding: 0px; background: none; } .listing_lines pre, .listing_code pre { margin: 0px; } @media screen { /* these have a as a first child, but since there are no parent selectors * we can't use that. */ a.footnote { position: relative; top: 0em ! important; } /* this is needed so that the local anchors are displayed below the naviagtion */ div.footnote a[name], div.refnamediv a[name], div.refsect1 a[name], div.refsect2 a[name], div.index a[name], div.glossary a[name], div.sect1 a[name] { display: inline-block; position: relative; top:-5em; } /* this seems to be a bug in the xsl style sheets when generating indexes */ div.index div.index { top: 0em; } /* make space for the fixed navigation bar and add space at the bottom so that * link targets appear somewhat close to top */ body { padding-top: 2.5em; padding-bottom: 500px; max-width: 60em; } p { max-width: 60em; } /* style and size the navigation bar */ table.navigation#top { position: fixed; background: #e2e2e2; border-bottom: solid 1px #babdb6; border-spacing: 5px; margin-top: 0; margin-bottom: 0; top: 0; left: 0; z-index: 10; } table.navigation#top td { padding-left: 6px; padding-right: 6px; } .navigation a, .navigation a:visited { /* tango:sky blue 3 */ color: #204a87; } .navigation a:hover { /* tango:sky blue 2 */ color: #3465a4; } td.shortcuts { /* tango:sky blue 2 */ color: #3465a4; font-size: 80%; white-space: nowrap; } td.shortcuts .dim { color: #babdb6; } .navigation .title { font-size: 80%; max-width: none; margin: 0px; font-weight: normal; } } @media screen and (min-width: 60em) { /* screen larger than 60em */ body { margin: auto; } } @media screen and (max-width: 60em) { /* screen less than 60em */ #nav_hierarchy { display: none; } #nav_interfaces { display: none; } #nav_prerequisites { display: none; } #nav_derived_interfaces { display: none; } #nav_implementations { display: none; } #nav_child_properties { display: none; } #nav_style_properties { display: none; } #nav_index { display: none; } #nav_glossary { display: none; } .gallery_image { display: none; } .property_flags { display: none; } .signal_flags { display: none; } .parameter_annotations { display: none; } .enum_member_annotations { display: none; } .struct_member_annotations { display: none; } .union_member_annotations { display: none; } /* now that a column is hidden, optimize space */ col.parameters_name { width: auto; } col.parameters_description { width: auto; } col.struct_members_name { width: auto; } col.struct_members_description { width: auto; } col.enum_members_name { width: auto; } col.enum_members_description { width: auto; } col.union_members_name { width: auto; } col.union_members_description { width: auto; } .listing_lines { display: none; } } @media print { table.navigation { visibility: collapse; display: none; } div.titlepage table.navigation { visibility: visible; display: table; background: #e2e2e2; border: solid 1px #babdb6; margin-top: 0; margin-bottom: 0; top: 0; left: 0; height: 3em; } } libvirt-glib-1.0.0/docs/libvirt-glib/html/object-tree.html0000664000000000000000000000316613007136424020350 00000000000000 Object Hierarchy: Libvirt GLib Reference Manual

Object Hierarchy


libvirt-glib-1.0.0/docs/libvirt-glib/Libvirt-glib-docs.xml0000664000000000000000000000167413004340477020315 00000000000000 ]> Libvirt GLib Reference Manual API Reference Object Hierarchy API Index libvirt-glib-1.0.0/docs/libvirt-glib/Libvirt-glib.types0000664000000000000000000000000013007136424017707 00000000000000libvirt-glib-1.0.0/docs/libvirt-glib/Makefile.in0000664000000000000000000005703413007136323016361 00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # -*- mode: makefile -*- #################################### # Everything below here is generic # #################################### VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = docs/libvirt-glib ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/glibtests.m4 \ $(top_srcdir)/m4/intltool.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/manywarnings.m4 \ $(top_srcdir)/m4/virt-compile-warnings.m4 \ $(top_srcdir)/m4/virt-gettext.m4 $(top_srcdir)/m4/warnings.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = version.xml CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/version.xml.in \ $(top_srcdir)/gtk-doc.make DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ COVERAGE_CFLAGS = @COVERAGE_CFLAGS@ COVERAGE_LDFLAGS = @COVERAGE_LDFLAGS@ COV_FLAGS = @COV_FLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ CYGWIN_EXTRA_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@ CYGWIN_EXTRA_LIBADD = @CYGWIN_EXTRA_LIBADD@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GIO2_CFLAGS = @GIO2_CFLAGS@ GIO2_LIBS = @GIO2_LIBS@ GLIB2_CFLAGS = @GLIB2_CFLAGS@ GLIB2_LIBS = @GLIB2_LIBS@ GLIB2_REQUIRED = @GLIB2_REQUIRED@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GOBJECT2_CFLAGS = @GOBJECT2_CFLAGS@ GOBJECT2_LIBS = @GOBJECT2_LIBS@ GREP = @GREP@ GTHREAD2_CFLAGS = @GTHREAD2_CFLAGS@ GTHREAD2_LIBS = @GTHREAD2_LIBS@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBVIRT_CFLAGS = @LIBVIRT_CFLAGS@ LIBVIRT_GLIB_MAJOR_VERSION = @LIBVIRT_GLIB_MAJOR_VERSION@ LIBVIRT_GLIB_MICRO_VERSION = @LIBVIRT_GLIB_MICRO_VERSION@ LIBVIRT_GLIB_MINOR_VERSION = @LIBVIRT_GLIB_MINOR_VERSION@ LIBVIRT_GLIB_VERSION = @LIBVIRT_GLIB_VERSION@ LIBVIRT_GLIB_VERSION_INFO = @LIBVIRT_GLIB_VERSION_INFO@ LIBVIRT_GLIB_VERSION_NUMBER = @LIBVIRT_GLIB_VERSION_NUMBER@ LIBVIRT_LIBS = @LIBVIRT_LIBS@ LIBVIRT_REQUIRED = @LIBVIRT_REQUIRED@ LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ LIBXML2_LIBS = @LIBXML2_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MINGW_EXTRA_LDFLAGS = @MINGW_EXTRA_LDFLAGS@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VAPIGEN = @VAPIGEN@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ installed_test_metadir = @installed_test_metadir@ installed_testdir = @installed_testdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ DOC_MODULE = Libvirt-glib DOC_MAIN_SGML_FILE = $(DOC_MODULE)-docs.xml DOC_SOURCE_DIR = $(top_srcdir)/libvirt-glib SCANGOBJ_OPTIONS = SCAN_OPTIONS = --rebuild-sections --rebuild-types MKDB_OPTIONS = --sgml-mode --output-format=xml MKTMPL_OPTIONS = MKHTML_OPTIONS = FIXXREF_OPTIONS = HFILE_GLOB = $(top_srcdir)/libvirt-glib/*.h CFILE_GLOB = $(top_srcdir)/libvirt-glib/*.c IGNORE_HFILES = HTML_IMAGES = content_files = expand_content_files = GTKDOC_CFLAGS = \ $(LIBVIRT_CFLAGS) \ $(GLIB2_CFLAGS) \ $(GTHREAD2_CFLAGS) GTKDOC_LIBS = \ $(LIBVIRT_LIBS) \ $(GLIB2_LIBS) \ $(GTHREAD2_LIBS) \ $(top_builddir)/libvirt-glib/libvirt-glib-1.0.la @GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_CC = $(CC) $(INCLUDES) $(GTKDOC_DEPS_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) @GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_CC = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(INCLUDES) $(GTKDOC_DEPS_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) @GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_LD = $(CC) $(GTKDOC_DEPS_LIBS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) @GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_LD = $(LIBTOOL) --tag=CC --mode=link $(CC) $(GTKDOC_DEPS_LIBS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) @GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_RUN = @GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_RUN = $(LIBTOOL) --mode=execute # We set GPATH here; this gives us semantics for GNU make # which are more like other make's VPATH, when it comes to # whether a source that is a target of one rule is then # searched for in VPATH/GPATH. # GPATH = $(srcdir) TARGET_DIR = $(HTML_DIR)/$(DOC_MODULE) SETUP_FILES = \ $(content_files) \ $(DOC_MAIN_SGML_FILE) \ $(DOC_MODULE)-sections.txt \ $(DOC_MODULE)-overrides.txt EXTRA_DIST = $(HTML_IMAGES) $(SETUP_FILES) version.xml.in DOC_STAMPS = setup-build.stamp scan-build.stamp sgml-build.stamp \ html-build.stamp pdf-build.stamp \ sgml.stamp html.stamp pdf.stamp SCANOBJ_FILES = \ $(DOC_MODULE).args \ $(DOC_MODULE).hierarchy \ $(DOC_MODULE).interfaces \ $(DOC_MODULE).prerequisites \ $(DOC_MODULE).signals REPORT_FILES = \ $(DOC_MODULE)-undocumented.txt \ $(DOC_MODULE)-undeclared.txt \ $(DOC_MODULE)-unused.txt CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) $(DOC_STAMPS) @ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_HTML_FALSE@HTML_BUILD_STAMP = @ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_HTML_TRUE@HTML_BUILD_STAMP = html-build.stamp @ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_PDF_FALSE@PDF_BUILD_STAMP = @ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_PDF_TRUE@PDF_BUILD_STAMP = pdf-build.stamp all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/gtk-doc.make $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/libvirt-glib/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu docs/libvirt-glib/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_srcdir)/gtk-doc.make $(am__empty): $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): version.xml: $(top_builddir)/config.status $(srcdir)/version.xml.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-hook check-am: all-am check: check-am all-am: Makefile all-local installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-local mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic distclean-local dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-data-local install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic \ maintainer-clean-local mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-local .MAKE: install-am install-strip .PHONY: all all-am all-local check check-am clean clean-generic \ clean-libtool clean-local cscopelist-am ctags-am dist-hook \ distclean distclean-generic distclean-libtool distclean-local \ distdir dvi dvi-am html html-am info info-am install \ install-am install-data install-data-am install-data-local \ install-dvi install-dvi-am install-exec install-exec-am \ install-html install-html-am install-info install-info-am \ install-man install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ maintainer-clean-local mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-local .PRECIOUS: Makefile @ENABLE_GTK_DOC_TRUE@all-local: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP) @ENABLE_GTK_DOC_FALSE@all-local: docs: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP) $(REPORT_FILES): sgml-build.stamp #### setup #### setup-build.stamp: -@if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \ echo ' DOC Preparing build'; \ files=`echo $(SETUP_FILES) $(expand_content_files) $(DOC_MODULE).types`; \ if test "x$$files" != "x" ; then \ for file in $$files ; do \ test -f $(abs_srcdir)/$$file && \ cp -pu $(abs_srcdir)/$$file $(abs_builddir)/ || true; \ done; \ fi; \ fi @touch setup-build.stamp #### scan #### scan-build.stamp: $(HFILE_GLOB) $(CFILE_GLOB) @echo ' DOC Scanning header files' @_source_dir='' ; \ for i in $(DOC_SOURCE_DIR) ; do \ _source_dir="$${_source_dir} --source-dir=$$i" ; \ done ; \ gtkdoc-scan --module=$(DOC_MODULE) --ignore-headers="$(IGNORE_HFILES)" $${_source_dir} $(SCAN_OPTIONS) $(EXTRA_HFILES) @if grep -l '^..*$$' $(DOC_MODULE).types > /dev/null 2>&1 ; then \ echo " DOC Introspecting gobjects"; \ scanobj_options=""; \ gtkdoc-scangobj 2>&1 --help | grep >/dev/null "\-\-verbose"; \ if test "$(?)" = "0"; then \ if test "x$(V)" = "x1"; then \ scanobj_options="--verbose"; \ fi; \ fi; \ CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" RUN="$(GTKDOC_RUN)" CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS)" LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)" \ gtkdoc-scangobj $(SCANGOBJ_OPTIONS) $$scanobj_options --module=$(DOC_MODULE); \ else \ for i in $(SCANOBJ_FILES) ; do \ test -f $$i || touch $$i ; \ done \ fi @touch scan-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt: scan-build.stamp @true #### xml #### sgml-build.stamp: setup-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt $(expand_content_files) @echo ' DOC Building XML' @_source_dir='' ; \ for i in $(DOC_SOURCE_DIR) ; do \ _source_dir="$${_source_dir} --source-dir=$$i" ; \ done ; \ gtkdoc-mkdb --module=$(DOC_MODULE) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $${_source_dir} $(MKDB_OPTIONS) @touch sgml-build.stamp sgml.stamp: sgml-build.stamp @true #### html #### html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) @echo ' DOC Building HTML' @rm -rf html @mkdir html @mkhtml_options=""; \ gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-verbose"; \ if test "$(?)" = "0"; then \ if test "x$(V)" = "x1"; then \ mkhtml_options="$$mkhtml_options --verbose"; \ fi; \ fi; \ gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-path"; \ if test "$(?)" = "0"; then \ mkhtml_options="$$mkhtml_options --path=\"$(abs_srcdir)\""; \ fi; \ cd html && gtkdoc-mkhtml $$mkhtml_options $(MKHTML_OPTIONS) $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE) -@test "x$(HTML_IMAGES)" = "x" || \ for file in $(HTML_IMAGES) ; do \ if test -f $(abs_srcdir)/$$file ; then \ cp $(abs_srcdir)/$$file $(abs_builddir)/html; \ fi; \ if test -f $(abs_builddir)/$$file ; then \ cp $(abs_builddir)/$$file $(abs_builddir)/html; \ fi; \ done; @echo ' DOC Fixing cross-references' @gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS) @touch html-build.stamp #### pdf #### pdf-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) @echo ' DOC Building PDF' @rm -f $(DOC_MODULE).pdf @mkpdf_options=""; \ gtkdoc-mkpdf 2>&1 --help | grep >/dev/null "\-\-verbose"; \ if test "$(?)" = "0"; then \ if test "x$(V)" = "x1"; then \ mkpdf_options="$$mkpdf_options --verbose"; \ fi; \ fi; \ if test "x$(HTML_IMAGES)" != "x"; then \ for img in $(HTML_IMAGES); do \ part=`dirname $$img`; \ echo $$mkpdf_options | grep >/dev/null "\-\-imgdir=$$part "; \ if test $$? != 0; then \ mkpdf_options="$$mkpdf_options --imgdir=$$part"; \ fi; \ done; \ fi; \ gtkdoc-mkpdf --path="$(abs_srcdir)" $$mkpdf_options $(DOC_MODULE) $(DOC_MAIN_SGML_FILE) $(MKPDF_OPTIONS) @touch pdf-build.stamp ############## clean-local: @rm -f *~ *.bak @rm -rf .libs distclean-local: @rm -rf xml html $(REPORT_FILES) $(DOC_MODULE).pdf \ $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt @if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \ rm -f $(SETUP_FILES) $(expand_content_files) $(DOC_MODULE).types; \ fi maintainer-clean-local: clean @rm -rf xml html install-data-local: @installfiles=`echo $(builddir)/html/*`; \ if test "$$installfiles" = '$(builddir)/html/*'; \ then echo 1>&2 'Nothing to install' ; \ else \ if test -n "$(DOC_MODULE_VERSION)"; then \ installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \ else \ installdir="$(DESTDIR)$(TARGET_DIR)"; \ fi; \ $(mkinstalldirs) $${installdir} ; \ for i in $$installfiles; do \ echo ' $(INSTALL_DATA) '$$i ; \ $(INSTALL_DATA) $$i $${installdir}; \ done; \ if test -n "$(DOC_MODULE_VERSION)"; then \ mv -f $${installdir}/$(DOC_MODULE).devhelp2 \ $${installdir}/$(DOC_MODULE)-$(DOC_MODULE_VERSION).devhelp2; \ fi; \ $(GTKDOC_REBASE) --relative --dest-dir=$(DESTDIR) --html-dir=$${installdir}; \ fi uninstall-local: @if test -n "$(DOC_MODULE_VERSION)"; then \ installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \ else \ installdir="$(DESTDIR)$(TARGET_DIR)"; \ fi; \ rm -rf $${installdir} # # Require gtk-doc when making dist # @ENABLE_GTK_DOC_TRUE@dist-check-gtkdoc: @ENABLE_GTK_DOC_FALSE@dist-check-gtkdoc: @ENABLE_GTK_DOC_FALSE@ @echo "*** gtk-doc must be installed and enabled in order to make dist" @ENABLE_GTK_DOC_FALSE@ @false dist-hook: dist-check-gtkdoc dist-hook-local @mkdir $(distdir)/html @cp ./html/* $(distdir)/html @-cp ./$(DOC_MODULE).pdf $(distdir)/ @-cp ./$(DOC_MODULE).types $(distdir)/ @-cp ./$(DOC_MODULE)-sections.txt $(distdir)/ @cd $(distdir) && rm -f $(DISTCLEANFILES) @$(GTKDOC_REBASE) --online --relative --html-dir=$(distdir)/html .PHONY : dist-hook-local docs # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libvirt-glib-1.0.0/docs/libvirt-glib/Libvirt-glib-sections.txt0000664000000000000000000000054213007136424021222 00000000000000
libvirt-glib-error gvir_error_new gvir_error_new_literal gvir_error_new_valist gvir_set_error gvir_set_error_literal gvir_set_error_valist gvir_critical gvir_warning
libvirt-glib-event gvir_event_register
libvirt-glib-main gvir_init gvir_init_check
libvirt-glib-1.0.0/docs/libvirt-glib/Libvirt-glib-overrides.txt0000664000000000000000000000000013004340477021364 00000000000000libvirt-glib-1.0.0/docs/libvirt-glib/version.xml.in0000664000000000000000000000001213004340477017114 00000000000000@VERSION@ libvirt-glib-1.0.0/docs/Makefile.in0000664000000000000000000005105313007136323013766 00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = docs ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/glibtests.m4 \ $(top_srcdir)/m4/intltool.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/manywarnings.m4 \ $(top_srcdir)/m4/virt-compile-warnings.m4 \ $(top_srcdir)/m4/virt-gettext.m4 $(top_srcdir)/m4/warnings.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ COVERAGE_CFLAGS = @COVERAGE_CFLAGS@ COVERAGE_LDFLAGS = @COVERAGE_LDFLAGS@ COV_FLAGS = @COV_FLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ CYGWIN_EXTRA_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@ CYGWIN_EXTRA_LIBADD = @CYGWIN_EXTRA_LIBADD@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GIO2_CFLAGS = @GIO2_CFLAGS@ GIO2_LIBS = @GIO2_LIBS@ GLIB2_CFLAGS = @GLIB2_CFLAGS@ GLIB2_LIBS = @GLIB2_LIBS@ GLIB2_REQUIRED = @GLIB2_REQUIRED@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GOBJECT2_CFLAGS = @GOBJECT2_CFLAGS@ GOBJECT2_LIBS = @GOBJECT2_LIBS@ GREP = @GREP@ GTHREAD2_CFLAGS = @GTHREAD2_CFLAGS@ GTHREAD2_LIBS = @GTHREAD2_LIBS@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBVIRT_CFLAGS = @LIBVIRT_CFLAGS@ LIBVIRT_GLIB_MAJOR_VERSION = @LIBVIRT_GLIB_MAJOR_VERSION@ LIBVIRT_GLIB_MICRO_VERSION = @LIBVIRT_GLIB_MICRO_VERSION@ LIBVIRT_GLIB_MINOR_VERSION = @LIBVIRT_GLIB_MINOR_VERSION@ LIBVIRT_GLIB_VERSION = @LIBVIRT_GLIB_VERSION@ LIBVIRT_GLIB_VERSION_INFO = @LIBVIRT_GLIB_VERSION_INFO@ LIBVIRT_GLIB_VERSION_NUMBER = @LIBVIRT_GLIB_VERSION_NUMBER@ LIBVIRT_LIBS = @LIBVIRT_LIBS@ LIBVIRT_REQUIRED = @LIBVIRT_REQUIRED@ LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ LIBXML2_LIBS = @LIBXML2_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MINGW_EXTRA_LDFLAGS = @MINGW_EXTRA_LDFLAGS@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VAPIGEN = @VAPIGEN@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ installed_test_metadir = @installed_test_metadir@ installed_testdir = @installed_testdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = libvirt-glib libvirt-gobject libvirt-gconfig all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu docs/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(am__recursive_targets) install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ check-am clean clean-generic clean-libtool cscopelist-am ctags \ ctags-am distclean distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags tags-am uninstall uninstall-am .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libvirt-glib-1.0.0/docs/libvirt-gobject/0000775000000000000000000000000013007136424015065 500000000000000libvirt-glib-1.0.0/docs/libvirt-gobject/Makefile.am0000664000000000000000000000125313004340477017044 00000000000000 DOC_MODULE=Libvirt-gobject DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.xml DOC_SOURCE_DIR=$(top_srcdir)/libvirt-gobject SCANGOBJ_OPTIONS= SCAN_OPTIONS=--rebuild-sections --rebuild-types MKDB_OPTIONS=--sgml-mode --output-format=xml MKTMPL_OPTIONS= MKHTML_OPTIONS= FIXXREF_OPTIONS= HFILE_GLOB=$(top_srcdir)/libvirt-gobject/*.h CFILE_GLOB=$(top_srcdir)/libvirt-gobject/*.c IGNORE_HFILES= HTML_IMAGES= content_files= expand_content_files= GTKDOC_CFLAGS= \ $(LIBVIRT_CFLAGS) \ $(GOBJECT2_CFLAGS) \ $(GIO2_CFLAGS) GTKDOC_LIBS = \ $(LIBVIRT_LIBS) \ $(GOBJECT2_LIBS) \ $(GIO2_LIBS) \ $(top_builddir)/libvirt-gobject/libvirt-gobject-1.0.la include $(top_srcdir)/gtk-doc.make libvirt-glib-1.0.0/docs/libvirt-gobject/html/0000775000000000000000000000000013007136424016031 500000000000000libvirt-glib-1.0.0/docs/libvirt-gobject/html/right.png0000644000000000000000000000040513007136424017571 00000000000000‰PNG  IHDRóÿabKGDÿÿÿ ½§“ pHYs × ×B(›xtIMEÝ!ÜG’IDAT8ËÕÒ¯aÇñ?›M´½IdErš,¾Ù-¸ÑhîAâIl’Í ¯r’äy§ž}¿ç·s¿X6èæ ö!9¢Ÿ#èD‚ Œr$-¬BrÃ$GÒÀ"$”¹;™á‰æŸÍú—WZêä&–!¸cš·±øŠq \`ðÃÔ軀Oä¾ò=QouføòIEND®B`‚libvirt-glib-1.0.0/docs/libvirt-gobject/html/GVirNodeDevice.html0000664000000000000000000001606013007136424021437 00000000000000 GVirNodeDevice: Libvirt-gobject Reference Manual

GVirNodeDevice

GVirNodeDevice

Functions

Properties

GVirNodeDeviceHandle * handle Read / Write / Construct Only

Object Hierarchy

    GObject
    ╰── GVirNodeDevice

Description

Functions

gvir_node_device_get_name ()

const gchar *
gvir_node_device_get_name (GVirNodeDevice *device);

gvir_node_device_get_config ()

GVirConfigNodeDevice *
gvir_node_device_get_config (GVirNodeDevice *device,
                             guint flags,
                             GError **err);

Parameters

device

the node_device

 

flags

the flags

 

err

Place-holder for possible errors

 

Returns

the config. The returned object should be unreffed with g_object_unref() when no longer needed.

[transfer full]

Types and Values

Property Details

The “handle†property

  “handle†                  GVirNodeDeviceHandle *

The node_device handle.

Flags: Read / Write / Construct Only

libvirt-glib-1.0.0/docs/libvirt-gobject/html/GVirDomainSnapshot.html0000664000000000000000000007477613007136424022403 00000000000000 GVirDomainSnapshot: Libvirt-gobject Reference Manual

GVirDomainSnapshot

GVirDomainSnapshot

Properties

GVirDomainSnapshotHandle * handle Read / Write / Construct Only

Object Hierarchy

    GObject
    ╰── GVirDomainSnapshot

Description

Functions

gvir_domain_snapshot_get_name ()

const gchar *
gvir_domain_snapshot_get_name (GVirDomainSnapshot *snapshot);

gvir_domain_snapshot_get_config ()

GVirConfigDomainSnapshot *
gvir_domain_snapshot_get_config (GVirDomainSnapshot *snapshot,
                                 guint flags,
                                 GError **err);

Parameters

snapshot

the domain_snapshot

 

flags

the flags

 

Returns

the config. The returned object should be unreffed with g_object_unref() when no longer needed.

[transfer full]


gvir_domain_snapshot_delete ()

gboolean
gvir_domain_snapshot_delete (GVirDomainSnapshot *snapshot,
                             guint flags,
                             GError **error);

Parameters

snapshot

The domain snapshot

 

flags

Bitwise or of GVirDomainSnapshotDeleteFlags

 

error

Place-holder for error or NULL.

[allow-none]

Returns

TRUE on success, FALSE otherwise


gvir_domain_snapshot_delete_async ()

void
gvir_domain_snapshot_delete_async (GVirDomainSnapshot *snapshot,
                                   guint flags,
                                   GCancellable *cancellable,
                                   GAsyncReadyCallback callback,
                                   gpointer user_data);

Parameters

snapshot

A GVirDomainSnapshot

 

flags

Bitwise-OR of GVirDomainSnapshotDeleteFlags

 

cancellable

cancellation object.

[allow-none][transfer none]

callback

completion callback.

[scope async]

user_data

opaque data for callback.

[closure]

gvir_domain_snapshot_delete_finish ()

gboolean
gvir_domain_snapshot_delete_finish (GVirDomainSnapshot *snapshot,
                                    GAsyncResult *res,
                                    GError **error);

Parameters

snapshot

A GVirDomainSnapshot

 

res

async method result.

[transfer none]

Returns

TRUE on success, FALSE otherwise.


gvir_domain_snapshot_get_is_current ()

gboolean
gvir_domain_snapshot_get_is_current (GVirDomainSnapshot *snapshot,
                                     guint flags,
                                     gboolean *is_current,
                                     GError **error);

Parameters

snapshot

The domain snapshot

 

flags

Currently unused, pass 0

 

is_current

TRUE if the given snapshot is the current snapshot of its domain, FALSE otherwise.

[out]

error

Place-holder for error or NULL.

[allow-none]

Returns

TRUE on success, FALSE otherwise.


gvir_domain_snapshot_revert_to ()

gboolean
gvir_domain_snapshot_revert_to (GVirDomainSnapshot *snapshot,
                                guint flags,
                                GError **error);

Parameters

snapshot

The domain snapshot

 

flags

Bitwise OR of GVirDomainSnapshotRevertFlags

 

error

Place-holder for error or NULL.

[allow-none]

Returns

TRUE if the snapshot's domain has successfully been reverted to the given snapshot, FALSE otherwise, in which case error will be set.


gvir_domain_snapshot_revert_to_async ()

void
gvir_domain_snapshot_revert_to_async (GVirDomainSnapshot *snapshot,
                                      guint flags,
                                      GCancellable *cancellable,
                                      GAsyncReadyCallback callback,
                                      gpointer user_data);

Parameters

snapshot

A GVirDomainSnapshot

 

flags

Bitwise OR of GVirDomainSnapshotRevertFlags

 

cancellable

cancellation object.

[allow-none][transfer none]

callback

The callback.

[scope async]

user_data

Opaque data for callback.

[closure]

gvir_domain_snapshot_revert_to_finish ()

gboolean
gvir_domain_snapshot_revert_to_finish (GVirDomainSnapshot *snapshot,
                                       GAsyncResult *result,
                                       GError **error);

Parameters

snapshot

The domain snapshot

 

result

The result.

[transfer none]

Returns

TRUE on success, FALSE otherwise.


gvir_domain_snapshot_set_config ()

gboolean
gvir_domain_snapshot_set_config (GVirDomainSnapshot *snapshot,
                                 GVirConfigDomainSnapshot *conf,
                                 GError **error);

Updates the given snapshot's configuration according to the given GVirConfigDomainSnapshot.

Parameters

snapshot

The domain snapshot

 

conf

The new config object

 

error

Place-holder for error or NULL.

[allow-none]

Returns

TRUE if no error was reported, FALSE otherwise.

Types and Values

enum GVirDomainSnapshotDeleteFlags

Members

GVIR_DOMAIN_SNAPSHOT_DELETE_CHILDREN

Also delete children

 

GVIR_DOMAIN_SNAPSHOT_DELETE_METADATA_ONLY

Delete just metadata

 

GVIR_DOMAIN_SNAPSHOT_DELETE_CHILDREN_ONLY

Delete just children

 

enum GVirDomainSnapshotRevertFlags

Members

GVIR_DOMAIN_SNAPSHOT_REVERT_RUNNING

Run after revert

 

GVIR_DOMAIN_SNAPSHOT_REVERT_PAUSED

Pause after revert

 

GVIR_DOMAIN_SNAPSHOT_REVERT_FORCE

Allow risky reverts

 

Property Details

The “handle†property

  “handle†                  GVirDomainSnapshotHandle *

The domain_snapshot handle.

Flags: Read / Write / Construct Only

libvirt-glib-1.0.0/docs/libvirt-gobject/html/GVirDomain.html0000664000000000000000000040074313007136424020646 00000000000000 GVirDomain: Libvirt-gobject Reference Manual

GVirDomain

GVirDomain

Functions

const gchar * gvir_domain_get_name ()
const gchar * gvir_domain_get_uuid ()
gint gvir_domain_get_id ()
gboolean gvir_domain_start ()
void gvir_domain_start_async ()
gboolean gvir_domain_start_finish ()
gboolean gvir_domain_resume ()
void gvir_domain_resume_async ()
gboolean gvir_domain_resume_finish ()
gboolean gvir_domain_wakeup ()
void gvir_domain_wakeup_async ()
gboolean gvir_domain_wakeup_finish ()
gboolean gvir_domain_stop ()
gboolean gvir_domain_delete ()
gboolean gvir_domain_shutdown ()
gboolean gvir_domain_reboot ()
gboolean gvir_domain_save_to_file ()
void gvir_domain_save_to_file_async ()
gboolean gvir_domain_save_to_file_finish ()
GVirDomainInfo * gvir_domain_get_info ()
void gvir_domain_get_info_async ()
GVirDomainInfo * gvir_domain_get_info_finish ()
GVirConfigDomain * gvir_domain_get_config ()
gboolean gvir_domain_set_config ()
gchar * gvir_domain_screenshot ()
gboolean gvir_domain_open_console ()
gboolean gvir_domain_open_graphics ()
int gvir_domain_open_graphics_fd ()
gboolean gvir_domain_suspend ()
gboolean gvir_domain_save ()
void gvir_domain_save_async ()
gboolean gvir_domain_save_finish ()
gboolean gvir_domain_get_persistent ()
gboolean gvir_domain_get_saved ()
GList * gvir_domain_get_devices ()
gboolean gvir_domain_update_device ()
GVirDomainSnapshot * gvir_domain_create_snapshot ()
void gvir_domain_create_snapshot_async ()
GVirDomainSnapshot * gvir_domain_create_snapshot_finish ()
gboolean gvir_domain_fetch_snapshots ()
GList * gvir_domain_get_snapshots ()
void gvir_domain_fetch_snapshots_async ()
gboolean gvir_domain_fetch_snapshots_finish ()
gboolean gvir_domain_get_has_current_snapshot ()
gboolean gvir_domain_set_time ()
void gvir_domain_set_time_async ()
gboolean gvir_domain_set_time_finish ()

Properties

GVirDomainHandle * handle Read / Write / Construct Only
gboolean persistent Read

Signals

void pmsuspended No Hooks
void resumed No Hooks
void started No Hooks
void stopped No Hooks
void suspended No Hooks
void updated No Hooks

Object Hierarchy

    GBoxed
    ╰── GVirDomainInfo
    GObject
    ╰── GVirDomain

Description

Functions

gvir_domain_get_name ()

const gchar *
gvir_domain_get_name (GVirDomain *dom);

gvir_domain_get_uuid ()

const gchar *
gvir_domain_get_uuid (GVirDomain *dom);

gvir_domain_get_id ()

gint
gvir_domain_get_id (GVirDomain *dom,
                    GError **err);

gvir_domain_start ()

gboolean
gvir_domain_start (GVirDomain *dom,
                   guint flags,
                   GError **err);

Parameters

dom

the domain

 

flags

the flags

 

gvir_domain_start_async ()

void
gvir_domain_start_async (GVirDomain *dom,
                         guint flags,
                         GCancellable *cancellable,
                         GAsyncReadyCallback callback,
                         gpointer user_data);

Asynchronous variant of gvir_domain_start.

Parameters

dom

the domain

 

flags

the flags

 

cancellable

cancellation object.

[allow-none][transfer none]

callback

completion callback.

[scope async]

user_data

opaque data for callback.

[closure]

gvir_domain_start_finish ()

gboolean
gvir_domain_start_finish (GVirDomain *dom,
                          GAsyncResult *result,
                          GError **err);

gvir_domain_resume ()

gboolean
gvir_domain_resume (GVirDomain *dom,
                    GError **err);

Parameters

dom

the domain

 

err

Place-holder for possible errors

 

Returns

TRUE on success


gvir_domain_resume_async ()

void
gvir_domain_resume_async (GVirDomain *dom,
                          GCancellable *cancellable,
                          GAsyncReadyCallback callback,
                          gpointer user_data);

Asynchronous variant of gvir_domain_resume.

Parameters

dom

the domain to resume

 

cancellable

cancellation object.

[allow-none][transfer none]

callback

completion callback.

[scope async]

user_data

opaque data for callback.

[closure]

gvir_domain_resume_finish ()

gboolean
gvir_domain_resume_finish (GVirDomain *dom,
                           GAsyncResult *result,
                           GError **err);

gvir_domain_wakeup ()

gboolean
gvir_domain_wakeup (GVirDomain *dom,
                    guint flags,
                    GError **err);

Parameters

dom

the domain

 

flags

placeholder for flags, pass 0

 

err

Place-holder for possible errors

 

Returns

TRUE on success


gvir_domain_wakeup_async ()

void
gvir_domain_wakeup_async (GVirDomain *dom,
                          guint flags,
                          GCancellable *cancellable,
                          GAsyncReadyCallback callback,
                          gpointer user_data);

Asynchronous variant of gvir_domain_wakeup.

Parameters

dom

the domain to wakeup

 

flags

placeholder for flags, pass 0

 

cancellable

cancellation object.

[allow-none][transfer none]

callback

completion callback.

[scope async]

user_data

opaque data for callback.

[closure]

gvir_domain_wakeup_finish ()

gboolean
gvir_domain_wakeup_finish (GVirDomain *dom,
                           GAsyncResult *result,
                           GError **err);

gvir_domain_stop ()

gboolean
gvir_domain_stop (GVirDomain *dom,
                  guint flags,
                  GError **err);

Parameters

dom

the domain

 

flags

the flags

 

gvir_domain_delete ()

gboolean
gvir_domain_delete (GVirDomain *dom,
                    guint flags,
                    GError **err);

Parameters

dom

the domain

 

flags

the flags

 

gvir_domain_shutdown ()

gboolean
gvir_domain_shutdown (GVirDomain *dom,
                      guint flags,
                      GError **err);

Parameters

dom

the domain

 

flags

the GVirDomainShutdownFlags flags

 

gvir_domain_reboot ()

gboolean
gvir_domain_reboot (GVirDomain *dom,
                    guint flags,
                    GError **err);

Parameters

dom

the domain

 

flags

the GVirDomainRebootFlags flags

 

gvir_domain_save_to_file ()

gboolean
gvir_domain_save_to_file (GVirDomain *dom,
                          gchar *filename,
                          GVirConfigDomain *custom_conf,
                          guint flags,
                          GError **err);

Parameters

dom

the domain

 

filename

path to the output file

 

custom_conf

configuration for domain or NULL.

[allow-none]

flags

the flags

 

Returns

TRUE on success, FALSE otherwise


gvir_domain_save_to_file_async ()

void
gvir_domain_save_to_file_async (GVirDomain *dom,
                                gchar *filename,
                                GVirConfigDomain *custom_conf,
                                guint flags,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

Asynchronous variant of gvir_domain_save_to_file

Parameters

dom

the domain

 

filename

path to output file

 

custom_conf

configuration for domain or NULL.

[allow-none]

flags

the flags

 

cancellable

cancallation object.

[allow-none][transfer none]

callback

completion callback.

[scope async]

user_data

opaque data for callback.

[closure]

gvir_domain_save_to_file_finish ()

gboolean
gvir_domain_save_to_file_finish (GVirDomain *dom,
                                 GAsyncResult *result,
                                 GError **err);

Finishes the operation started by gvir_domain_save_to_file_async.

Parameters

dom

the domain to save

 

result

async method result.

[transfer none]

err

Place-holder for possible errors

 

Returns

TRUE if domain was saved successfully, FALSE otherwise.


gvir_domain_get_info ()

GVirDomainInfo *
gvir_domain_get_info (GVirDomain *dom,
                      GError **err);

Parameters

dom

the domain

 

Returns

the info. The returned structure should be freed using g_boxed_free() with GVIR_TYPE_DOMAIN_INFO as the first argument when no longer needed.

[transfer full]


gvir_domain_get_info_async ()

void
gvir_domain_get_info_async (GVirDomain *dom,
                            GCancellable *cancellable,
                            GAsyncReadyCallback callback,
                            gpointer user_data);

Asynchronous variant of gvir_domain_get_info.

Parameters

dom

the domain

 

cancellable

cancellation object.

[allow-none][transfer none]

callback

completion callback.

[scope async]

user_data

opaque data for callback.

[closure]

gvir_domain_get_info_finish ()

GVirDomainInfo *
gvir_domain_get_info_finish (GVirDomain *dom,
                             GAsyncResult *result,
                             GError **err);

Finishes the operation started by gvir_domain_get_info_async.

Parameters

dom

the domain

 

result

async method result.

[transfer none]

err

Place-holder for possible errors

 

Returns

the info. The returned object should be unreffed with g_object_unref() when no longer needed.

[transfer full]


gvir_domain_get_config ()

GVirConfigDomain *
gvir_domain_get_config (GVirDomain *dom,
                        guint flags,
                        GError **err);

Parameters

dom

the domain

 

flags

the GVirDomainXMLFlags flags

 

Returns

the config. The returned object should be unreffed with g_object_unref() when no longer needed.

[transfer full]


gvir_domain_set_config ()

gboolean
gvir_domain_set_config (GVirDomain *domain,
                        GVirConfigDomain *conf,
                        GError **err);

Resets configuration of an existing domain.

Note: If domain is already running, the new configuration will not take affect until domain reboots.

Parameters

domain

the domain

 

conf

the new configuration for the domain

 

err

Place-holder for error or NULL.

[allow-none]

Returns

TRUE on success, FALSE if an error occurred.


gvir_domain_screenshot ()

gchar *
gvir_domain_screenshot (GVirDomain *dom,
                        GVirStream *stream,
                        guint monitor_id,
                        guint flags,
                        GError **err);

Parameters

stream

stream to use as output

 

monitor_id

monitor ID to take screenshot from

 

flags

extra flags, currently unused

 

Returns

a newly allocated string containing the mime-type of the image format, or NULL upon error.

[transfer full]


gvir_domain_open_console ()

gboolean
gvir_domain_open_console (GVirDomain *dom,
                          GVirStream *stream,
                          const gchar *devname,
                          guint flags,
                          GError **err);

Open a text console for the domain dom , connecting it to the stream stream . If devname is NULL, the default console will be opened, otherwise devname can be used to specify a non-default console device.

Parameters

dom

the domain.

[transfer none]

devname

the device name.

[transfer none][allow-none]

stream

stream to use as output.

[transfer none]

flags

extra flags, currently unused

 

Returns

TRUE if the console was opened, FALSE otherwise.


gvir_domain_open_graphics ()

gboolean
gvir_domain_open_graphics (GVirDomain *dom,
                           guint idx,
                           int fd,
                           unsigned int flags,
                           GError **err);

Open a connection to the local graphics display, connecting it to the socket pair file descriptor passed in as fd .

Parameters

dom

the domain

 

idx

the graphics index

 

fd

pre-opened socket pair

 

flags

extra flags, currently unused

 

Returns

TRUE if the graphics connection was opened, FALSE otherwise.


gvir_domain_open_graphics_fd ()

int
gvir_domain_open_graphics_fd (GVirDomain *dom,
                              guint idx,
                              unsigned int flags,
                              GError **err);

This will create a socket pair connected to the graphics backend of dom . One end of the socket will be returned on success, and the other end is handed to the hypervisor. If dom has multiple graphics backends configured, then idx will determine which one is opened, starting from idx 0.

Parameters

dom

the domain

 

idx

the graphics index

 

flags

extra flags, currently unused

 

Returns

An fd on success, -1 on failure.

Since: 0.2.0


gvir_domain_suspend ()

gboolean
gvir_domain_suspend (GVirDomain *dom,
                     GError **err);

Suspends an active domain, the process is frozen without further access to CPU resources and I/O but the memory used by the domain at the hypervisor level will stay allocated. Use gvir_domain_resume() to reactivate the domain.

Parameters

dom

the domain to suspend

 

err

Place-holder for possible errors

 

Returns

TRUE if domain was suspended successfully, FALSE otherwise.


gvir_domain_save ()

gboolean
gvir_domain_save (GVirDomain *dom,
                  unsigned int flags,
                  GError **err);

Saves the state of the domain on disk and stops it. Use gvir_domain_start to restore the saved state of the domain. A saved domain can be restored even after shutdown/reboot of host machine.

Parameters

dom

the domain to save

 

flags

extra flags, currently unused

 

err

Place-holder for possible errors

 

Returns

TRUE if domain was saved successfully, FALSE otherwise.


gvir_domain_save_async ()

void
gvir_domain_save_async (GVirDomain *dom,
                        unsigned int flags,
                        GCancellable *cancellable,
                        GAsyncReadyCallback callback,
                        gpointer user_data);

Asynchronous variant of gvir_domain_save.

Parameters

dom

the domain to save

 

flags

extra flags, currently unused

 

cancellable

cancellation object.

[allow-none][transfer none]

callback

completion callback.

[scope async]

user_data

opaque data for callback.

[closure]

gvir_domain_save_finish ()

gboolean
gvir_domain_save_finish (GVirDomain *dom,
                         GAsyncResult *result,
                         GError **err);

Finishes the operation started by gvir_domain_save_async.

Parameters

dom

the domain to save

 

result

async method result.

[transfer none]

err

Place-holder for possible errors

 

Returns

TRUE if domain was saved successfully, FALSE otherwise.


gvir_domain_get_persistent ()

gboolean
gvir_domain_get_persistent (GVirDomain *dom);

Parameters

dom

the domain

 

Returns

TRUE if domain is persistent, FALSE otherwise.


gvir_domain_get_saved ()

gboolean
gvir_domain_get_saved (GVirDomain *dom);

Parameters

dom

the domain

 

Returns

TRUE if a stopped domain has a saved state to which it can be restored to using gvir_domain_start, FALSE otherwise.


gvir_domain_get_devices ()

GList *
gvir_domain_get_devices (GVirDomain *domain,
                         GError **err);

Gets the list of devices attached to domain . The returned list should be freed with g_list_free(), after its elements have been unreffed with g_object_unref().

Parameters

domain

the domain

 

err

place-holder for possible errors, or NULL

 

Returns

a newly allocated GList of GVirDomainDevice.

[element-type LibvirtGObject.DomainDevice][transfer full]


gvir_domain_update_device ()

gboolean
gvir_domain_update_device (GVirDomain *dom,
                           GVirConfigDomainDevice *device,
                           guint flags,
                           GError **err);

Update the configuration of a device.

Parameters

dom

the domain

 

device

A modified device config

 

flags

bitwise-OR of GVirDomainUpdateDeviceFlags

 

err

Place-holder for error or NULL.

[allow-none]

Returns

TRUE if device was updated successfully, FALSE otherwise.


gvir_domain_create_snapshot ()

GVirDomainSnapshot *
gvir_domain_create_snapshot (GVirDomain *dom,
                             GVirConfigDomainSnapshot *custom_conf,
                             guint flags,
                             GError **err);

Parameters

dom

the domain

 

custom_conf

configuration of snapshot or NULL.

[allow-none]

flags

bitwise-OR of GVirDomainSnapshotCreateFlags

 

err

Place-holder for error or NULL.

[allow-none]

Returns

snapshot of domain. The returned object should be unreffed when no longer needed.

[transfer full]


gvir_domain_create_snapshot_async ()

void
gvir_domain_create_snapshot_async (GVirDomain *dom,
                                   GVirConfigDomainSnapshot *custom_conf,
                                   guint flags,
                                   GCancellable *cancellable,
                                   GAsyncReadyCallback callback,
                                   gpointer user_data);

Parameters

dom

The GVirDomain

 

custom_conf

Configuration of snapshot or NULL.

[allow-none]

flags

Bitwise-OR of GVirDomainSnapshotCreateFlags

 

cancellable

cancellation object.

[allow-none][transfer none]

callback

Completion callback.

[scope async]

user_data

Opaque data for callback.

[closure]

gvir_domain_create_snapshot_finish ()

GVirDomainSnapshot *
gvir_domain_create_snapshot_finish (GVirDomain *domain,
                                    GAsyncResult *result,
                                    GError **error);

Parameters

domain

A GVirDomain

 

result

Async method result.

[transfer none]

error

Error placeholder.

[allow-none]

Returns

The created snapshot.

[transfer full]


gvir_domain_fetch_snapshots ()

gboolean
gvir_domain_fetch_snapshots (GVirDomain *dom,
                             guint list_flags,
                             GCancellable *cancellable,
                             GError **error);

Parameters

dom

The domain

 

list_flags

bitwise-OR of GVirDomainSnapshotListFlags

 

cancellable

cancellation object.

[allow-none][transfer none]

error

Place-holder for error or NULL.

[allow-none]

Returns

TRUE on success, FALSE otherwise.


gvir_domain_get_snapshots ()

GList *
gvir_domain_get_snapshots (GVirDomain *dom);

Parameters

dom

The domain

 

Returns

A list of all the snapshots available for the given domain. The returned list should be freed with g_list_free(), after its elements have been unreffed with g_object_unref().

[element-type LibvirtGObject.DomainSnapshot][transfer full]


gvir_domain_fetch_snapshots_async ()

void
gvir_domain_fetch_snapshots_async (GVirDomain *dom,
                                   guint list_flags,
                                   GCancellable *cancellable,
                                   GAsyncReadyCallback callback,
                                   gpointer user_data);

Parameters

dom

The domain

 

list_flags

bitwise-OR of GVirDomainSnapshotListFlags

 

cancellable

cancellation object.

[allow-none][transfer none]

callback

completion callback.

[scope async]

user_data

opaque data for callback.

[closure]

gvir_domain_fetch_snapshots_finish ()

gboolean
gvir_domain_fetch_snapshots_finish (GVirDomain *dom,
                                    GAsyncResult *res,
                                    GError **error);

Parameters

dom

a GVirDomain

 

res

async method result.

[transfer none]

Returns

TRUE on success, FALSE otherwise.


gvir_domain_get_has_current_snapshot ()

gboolean
gvir_domain_get_has_current_snapshot (GVirDomain *dom,
                                      guint flags,
                                      gboolean *has_current_snapshot,
                                      GError **error);

Parameters

dom

a GVirDomain

 

flags

Unused, pass 0

 

has_current_snapshot

Will be set to TRUE if the given domain has a current snapshot and to FALSE otherwise.

[out]

error

Place-holder for error or NULL.

[allow-none]

Returns

TRUE on success, FALSE otherwise.


gvir_domain_set_time ()

gboolean
gvir_domain_set_time (GVirDomain *dom,
                      GDateTime *date_time,
                      guint flags,
                      GError **err);

This function tries to set guest time to the given value. The passed time must in UTC.

If date_time is NULL, the time is reset using the domain's RTC.

Please note that some hypervisors may require guest agent to be configured and running in order for this function to work.

Parameters

dom

the domain

 

date_time

the time to set as GDateTime.

[allow-none][transfer none]

flags

Unused, pass 0.

 

err

Place-holder for error or NULL.

[allow-none]

Returns

TRUE on success, FALSE otherwise.


gvir_domain_set_time_async ()

void
gvir_domain_set_time_async (GVirDomain *dom,
                            GDateTime *date_time,
                            guint flags,
                            GCancellable *cancellable,
                            GAsyncReadyCallback callback,
                            gpointer user_data);

Asynchronous variant of gvir_domain_set_time.

Parameters

dom

the domain

 

date_time

the time to set as GDateTime.

[allow-none][transfer none]

flags

bitwise-OR of GVirDomainSetTimeFlags.

 

cancellable

cancellation object.

[allow-none][transfer none]

callback

completion callback.

[scope async]

user_data

opaque data for callback.

[closure]

gvir_domain_set_time_finish ()

gboolean
gvir_domain_set_time_finish (GVirDomain *dom,
                             GAsyncResult *result,
                             GError **err);

Finishes the operation started by gvir_domain_set_time_async.

Parameters

dom

the domain

 

result

async method result.

[transfer none]

err

Place-holder for possible errors

 

Returns

TRUE on success, FALSE otherwise.

Types and Values

enum GVirDomainState

Members

GVIR_DOMAIN_STATE_NONE

   

GVIR_DOMAIN_STATE_RUNNING

   

GVIR_DOMAIN_STATE_BLOCKED

   

GVIR_DOMAIN_STATE_PAUSED

   

GVIR_DOMAIN_STATE_SHUTDOWN

   

GVIR_DOMAIN_STATE_SHUTOFF

   

GVIR_DOMAIN_STATE_CRASHED

   

GVIR_DOMAIN_STATE_PMSUSPENDED

   

enum GVirDomainStartFlags

Members

GVIR_DOMAIN_START_NONE

   

GVIR_DOMAIN_START_PAUSED

   

GVIR_DOMAIN_START_AUTODESTROY

   

GVIR_DOMAIN_START_BYPASS_CACHE

   

GVIR_DOMAIN_START_FORCE_BOOT

   

enum GVirDomainDeleteFlags

Members

GVIR_DOMAIN_DELETE_NONE

No flags

 

GVIR_DOMAIN_DELETE_SAVED_STATE

Also remove associated saved state (if present).

 

GVIR_DOMAIN_DELETE_SNAPSHOTS_METADATA

If last use of domain, then also remove any snapshot metadata.

 

enum GVirDomainXMLFlags

Members

GVIR_DOMAIN_XML_NONE

No flags

 

GVIR_DOMAIN_XML_SECURE

Dump security sensitive information too

 

GVIR_DOMAIN_XML_INACTIVE

Dump inactive domain information

 

GVIR_DOMAIN_XML_UPDATE_CPU

Update guest CPU requirements according to host CPU

 

enum GVirDomainShutdownFlags

Members

GVIR_DOMAIN_SHUTDOWN_NONE

No flags, hypervisor choice

 

GVIR_DOMAIN_SHUTDOWN_ACPI_POWER_BTN

Send ACPI event

 

GVIR_DOMAIN_SHUTDOWN_GUEST_AGENT

Use guest agent

 

enum GVirDomainSnapshotCreateFlags

Members

GVIR_DOMAIN_SNAPSHOT_NONE

No flags

 

GVIR_DOMAIN_SNAPSHOT_REDEFINE

Restore or alter metadata

 

GVIR_DOMAIN_SNAPSHOT_CURRENT

With redefine, make snapshot current

 

GVIR_DOMAIN_SNAPSHOT_NO_METADATA

Make snapshot without remembering it

 

GVIR_DOMAIN_SNAPSHOT_HALT

Stop running guest after snapshot

 

GVIR_DOMAIN_SNAPSHOT_DISK_ONLY

Disk snapshot, not system checkpoint

 

GVIR_DOMAIN_SNAPSHOT_REUSE_EXT

Reuse any existing external files

 

GVIR_DOMAIN_SNAPSHOT_QUIESCE

Use guest agent to quiesce all mounter file systems within the domain

 

GVIR_DOMAIN_SNAPSHOT_ATOMIC

Atomically avoid partial changes

 

enum GVirDomainUpdateDeviceFlags

Members

GVIR_DOMAIN_UPDATE_DEVICE_CURRENT

Update current domain state

 

GVIR_DOMAIN_UPDATE_DEVICE_LIVE

Update state for only active domains

 

GVIR_DOMAIN_UPDATE_DEVICE_CONFIG

Update state for persistent state only

 

enum GVirDomainRebootFlags

Members

GVIR_DOMAIN_REBOOT_NONE

No flags, hypervisor choice

 

GVIR_DOMAIN_REBOOT_ACPI_POWER_BTN

Send ACPI event

 

GVIR_DOMAIN_REBOOT_GUEST_AGENT

Use guest agent

 

enum GVirDomainSnapshotListFlags

Members

GVIR_DOMAIN_SNAPSHOT_LIST_ALL

List all snapshots

 

GVIR_DOMAIN_SNAPSHOT_LIST_DESCENDANTS

List all descendants, not just children, when listing a snapshot. For historical reasons, groups do not use contiguous bits.

 

GVIR_DOMAIN_SNAPSHOT_LIST_ROOTS

Filter by snapshots with no parents, when listing a domain

 

GVIR_DOMAIN_SNAPSHOT_LIST_METADATA

Filter by snapshots which have metadata

 

GVIR_DOMAIN_SNAPSHOT_LIST_LEAVES

Filter by snapshots with no children

 

GVIR_DOMAIN_SNAPSHOT_LIST_NO_LEAVES

Filter by snapshots that have children

 

GVIR_DOMAIN_SNAPSHOT_LIST_NO_METADATA

Filter by snapshots with no metadata

 

GVIR_DOMAIN_SNAPSHOT_LIST_INACTIVE

Filter by snapshots taken while guest was shut off

 

GVIR_DOMAIN_SNAPSHOT_LIST_ACTIVE

Filter by snapshots taken while guest was active, and with memory state

 

GVIR_DOMAIN_SNAPSHOT_LIST_DISK_ONLY

Filter by snapshots taken while guest was active, but without memory state

 

GVIR_DOMAIN_SNAPSHOT_LIST_INTERNAL

Filter by snapshots stored internal to disk images

 

GVIR_DOMAIN_SNAPSHOT_LIST_EXTERNAL

Filter by snapshots that use files external to disk images

 

Property Details

The “handle†property

  “handle†                  GVirDomainHandle *

The domain handle.

Flags: Read / Write / Construct Only


The “persistent†property

  “persistent†              gboolean

If domain is persistent.

Flags: Read

Default value: TRUE

Signal Details

The “pmsuspended†signal

void
user_function (GVirDomain *gvirdomain,
               gpointer    user_data)

Flags: No Hooks


The “resumed†signal

void
user_function (GVirDomain *gvirdomain,
               gpointer    user_data)

Flags: No Hooks


The “started†signal

void
user_function (GVirDomain *gvirdomain,
               gpointer    user_data)

Flags: No Hooks


The “stopped†signal

void
user_function (GVirDomain *gvirdomain,
               gpointer    user_data)

Flags: No Hooks


The “suspended†signal

void
user_function (GVirDomain *gvirdomain,
               gpointer    user_data)

Flags: No Hooks


The “updated†signal

void
user_function (GVirDomain *gvirdomain,
               gpointer    user_data)

Flags: No Hooks

libvirt-glib-1.0.0/docs/libvirt-gobject/html/GVirManager.html0000664000000000000000000002424713007136424021012 00000000000000 GVirManager: Libvirt-gobject Reference Manual

GVirManager

GVirManager

Signals

void connection-added Run First
void connection-removed Run First

Object Hierarchy

    GObject
    ╰── GVirManager

Description

Functions

gvir_manager_new ()

GVirManager *
gvir_manager_new (void);

gvir_manager_add_connection ()

void
gvir_manager_add_connection (GVirManager *man,
                             GVirConnection *conn);

gvir_manager_remove_connection ()

void
gvir_manager_remove_connection (GVirManager *man,
                                GVirConnection *conn);

gvir_manager_get_connections ()

GList *
gvir_manager_get_connections (GVirManager *man);

Returns

the connections. The returned list should be freed with g_list_free(), after its elements have been unreffed with g_object_unref().

[transfer full][element-type GVirConnection]


gvir_manager_find_connection_by_uri ()

GVirConnection *
gvir_manager_find_connection_by_uri (GVirManager *man,
                                     const gchar *uri);

Returns

the connection,or NULL. The returned object should be unreffed with g_object_unref() when no longer needed.

[transfer full][allow-none]

Types and Values

Signal Details

The “connection-added†signal

void
user_function (GVirManager    *gvirmanager,
               GVirConnection *arg1,
               gpointer        user_data)

Flags: Run First


The “connection-removed†signal

void
user_function (GVirManager    *gvirmanager,
               GVirConnection *arg1,
               gpointer        user_data)

Flags: Run First

libvirt-glib-1.0.0/docs/libvirt-gobject/html/right-insensitive.png0000644000000000000000000000056513007136424022136 00000000000000‰PNG  IHDRóÿabKGDÿÿÿ ½§“ pHYs × ×B(›xtIMEÝ ¥­^IDAT8ËÍ’±JÃ`…¿ ‚“‹³«/ S’_$ÄÁÁAqrÐÙW(>€“à‚®©“m¥"]\œ„è(‘49.NÚdÒ3¸ß9Ü{á¯eM#MSI‡Î¹·E¯iHz|3{̲l½3 ,K˜k’ž†ÃáV'@EŸEQlwÀŠçyišî·Äqüçù‘™]KÀíh4:mµÄ¦²,;“t˜¤sç\aƒÆR5/¬7'¹W×õp”’Žs×­I’,Kº1³=àËÌÂ0´j0Wg³ÙØ>€Ý ¦­¯PUÕýïð»¤0 §]?qCÒ«™ùιgþ½~œÉkÄAâ…_IEND®B`‚libvirt-glib-1.0.0/docs/libvirt-gobject/html/index.html0000664000000000000000000000550013007136424017746 00000000000000 Libvirt-gobject Reference Manual: Libvirt-gobject Reference Manual libvirt-glib-1.0.0/docs/libvirt-gobject/html/GVirNetwork.html0000664000000000000000000002535213007136424021067 00000000000000 GVirNetwork: Libvirt-gobject Reference Manual

GVirNetwork

GVirNetwork

Functions

const gchar * gvir_network_get_name ()
const gchar * gvir_network_get_uuid ()
GVirConfigNetwork * gvir_network_get_config ()
GList * gvir_network_get_dhcp_leases ()

Properties

GVirNetworkHandle * handle Read / Write / Construct Only

Object Hierarchy

    GObject
    ╰── GVirNetwork

Description

Functions

gvir_network_get_name ()

const gchar *
gvir_network_get_name (GVirNetwork *network);

gvir_network_get_uuid ()

const gchar *
gvir_network_get_uuid (GVirNetwork *network);

gvir_network_get_config ()

GVirConfigNetwork *
gvir_network_get_config (GVirNetwork *network,
                         guint flags,
                         GError **err);

Parameters

network

the network

 

flags

the flags

 

err

Place-holder for possible errors

 

Returns

the config. The returned object should be unreffed with g_object_unref() when no longer needed.

[transfer full]


gvir_network_get_dhcp_leases ()

GList *
gvir_network_get_dhcp_leases (GVirNetwork *network,
                              const char *mac,
                              guint flags,
                              GError **err);

This function fetches leases info of guests in the specified network. If the optional parameter mac is specified, the returned list will contain only lease info about a specific guest interface with mac . There can be multiple leases for a single mac because this API supports DHCPv6 too.

Parameters

network

the network

 

mac

The optional ASCII formatted MAC address of an interface.

[allow-none]

flags

placeholder for flags, must be 0

 

err

Place-holder for possible errors

 

Returns

the list of network leases. Each object in the returned list should be unreffed with g_object_unref() and the list itself using g_list_free, when no longer needed.

[element-type LibvirtGObject.NetworkDHCPLease][transfer full]

Types and Values

Property Details

The “handle†property

  “handle†                  GVirNetworkHandle *

The network handle.

Flags: Read / Write / Construct Only

libvirt-glib-1.0.0/docs/libvirt-gobject/html/GVirConnection.html0000664000000000000000000036322713007136424021543 00000000000000 GVirConnection: Libvirt-gobject Reference Manual

GVirConnection

GVirConnection

Functions

GVirConnection * gvir_connection_new ()
gboolean gvir_connection_open ()
gboolean gvir_connection_open_read_only ()
void gvir_connection_open_async ()
gboolean gvir_connection_open_finish ()
void gvir_connection_open_read_only_async ()
gboolean gvir_connection_open_read_only_finish ()
gboolean gvir_connection_is_open ()
gboolean gvir_connection_is_read_only ()
void gvir_connection_close ()
gboolean gvir_connection_fetch_domains ()
void gvir_connection_fetch_domains_async ()
gboolean gvir_connection_fetch_domains_finish ()
const gchar * gvir_connection_get_uri ()
gchar * gvir_connection_get_hypervisor_name ()
gulong gvir_connection_get_version ()
GList * gvir_connection_get_domains ()
GVirDomain * gvir_connection_get_domain ()
GVirDomain * gvir_connection_find_domain_by_id ()
GVirDomain * gvir_connection_find_domain_by_name ()
GVirDomain * gvir_connection_create_domain ()
GVirDomain * gvir_connection_start_domain ()
gboolean gvir_connection_fetch_interfaces ()
void gvir_connection_fetch_interfaces_async ()
gboolean gvir_connection_fetch_interfaces_finish ()
GList * gvir_connection_get_interfaces ()
GVirInterface * gvir_connection_get_interface ()
GVirInterface * gvir_connection_find_interface_by_mac ()
gboolean gvir_connection_fetch_networks ()
void gvir_connection_fetch_networks_async ()
gboolean gvir_connection_fetch_networks_finish ()
GList * gvir_connection_get_networks ()
GVirNetwork * gvir_connection_get_network ()
GVirNetwork * gvir_connection_find_network_by_name ()
GList * gvir_connection_get_network_filters ()
GVirNetworkFilter * gvir_connection_get_network_filter ()
GVirNetworkFilter * gvir_connection_find_network_filter_by_name ()
GList * gvir_connection_get_node_devices ()
GVirNodeDevice * gvir_connection_get_node_device ()
GList * gvir_connection_get_secrets ()
GVirSecret * gvir_connection_get_secret ()
gboolean gvir_connection_fetch_storage_pools ()
void gvir_connection_fetch_storage_pools_async ()
gboolean gvir_connection_fetch_storage_pools_finish ()
GList * gvir_connection_get_storage_pools ()
GVirStoragePool * gvir_connection_get_storage_pool ()
GVirStoragePool * gvir_connection_find_storage_pool_by_name ()
GVirStoragePool * gvir_connection_create_storage_pool ()
GVirStream * gvir_connection_get_stream ()
GVirNodeInfo * gvir_connection_get_node_info ()
GVirConfigCapabilities * gvir_connection_get_capabilities ()
void gvir_connection_get_capabilities_async ()
GVirConfigCapabilities * gvir_connection_get_capabilities_finish ()
gboolean gvir_connection_restore_domain_from_file ()
void gvir_connection_restore_domain_from_file_async ()
gboolean gvir_connection_restore_domain_from_file_finish ()

Properties

GVirConnectionHandle * handle Read / Write / Construct Only
gchar * uri Read / Write / Construct Only

Signals

void connection-closed Run First
void connection-opened Run First
void domain-added Run First
void domain-removed Run First

Object Hierarchy

    GBoxed
    ╰── GVirNodeInfo
    GObject
    ╰── GVirConnection

Description

Functions

gvir_connection_new ()

GVirConnection *
gvir_connection_new (const char *uri);

gvir_connection_open ()

gboolean
gvir_connection_open (GVirConnection *conn,
                      GCancellable *cancellable,
                      GError **err);

Parameters

conn

a GVirConnection

 

cancellable

cancellation object.

[allow-none][transfer none]

gvir_connection_open_read_only ()

gboolean
gvir_connection_open_read_only (GVirConnection *conn,
                                GCancellable *cancellable,
                                GError **err);

gvir_connection_open_async ()

void
gvir_connection_open_async (GVirConnection *conn,
                            GCancellable *cancellable,
                            GAsyncReadyCallback callback,
                            gpointer user_data);

Parameters

conn

a GVirConnection

 

cancellable

cancellation object.

[allow-none][transfer none]

callback

completion callback.

[scope async]

user_data

opaque data for callback.

[closure]

gvir_connection_open_finish ()

gboolean
gvir_connection_open_finish (GVirConnection *conn,
                             GAsyncResult *result,
                             GError **err);

Parameters

conn

a GVirConnection

 

result

async method result.

[transfer none]

gvir_connection_open_read_only_async ()

void
gvir_connection_open_read_only_async (GVirConnection *conn,
                                      GCancellable *cancellable,
                                      GAsyncReadyCallback callback,
                                      gpointer user_data);

Parameters

conn

a GVirConnection

 

cancellable

cancellation object.

[allow-none][transfer none]

callback

completion callback.

[scope async]

user_data

opaque data for callback.

[closure]

gvir_connection_open_read_only_finish ()

gboolean
gvir_connection_open_read_only_finish (GVirConnection *conn,
                                       GAsyncResult *result,
                                       GError **err);

Parameters

conn

a GVirConnection

 

result

async method result.

[transfer none]

gvir_connection_is_open ()

gboolean
gvir_connection_is_open (GVirConnection *conn);

gvir_connection_is_read_only ()

gboolean
gvir_connection_is_read_only (GVirConnection *conn);

gvir_connection_close ()

void
gvir_connection_close (GVirConnection *conn);

gvir_connection_fetch_domains ()

gboolean
gvir_connection_fetch_domains (GVirConnection *conn,
                               GCancellable *cancellable,
                               GError **err);

Use this method to fetch all domains managed by connection conn . Use e.g. gvir_connection_find_domain_by_id or gvir_connection_get_domain afterwards to query the fetched domains.

Parameters

conn

a GVirConnection

 

cancellable

cancellation object.

[allow-none][transfer none]

gvir_connection_fetch_domains_async ()

void
gvir_connection_fetch_domains_async (GVirConnection *conn,
                                     GCancellable *cancellable,
                                     GAsyncReadyCallback callback,
                                     gpointer user_data);

Parameters

conn

a GVirConnection

 

cancellable

cancellation object.

[allow-none][transfer none]

callback

completion callback.

[scope async]

user_data

opaque data for callback.

[closure]

gvir_connection_fetch_domains_finish ()

gboolean
gvir_connection_fetch_domains_finish (GVirConnection *conn,
                                      GAsyncResult *result,
                                      GError **err);

Parameters

conn

a GVirConnection

 

result

async method result.

[transfer none]

gvir_connection_get_uri ()

const gchar *
gvir_connection_get_uri (GVirConnection *conn);

gvir_connection_get_hypervisor_name ()

gchar *
gvir_connection_get_hypervisor_name (GVirConnection *conn,
                                     GError **err);

Get name of current hypervisor used.

Parameters

conn

a GVirConnection

 

err

return location for any GError

 

Returns

new string that should be freed when no longer needed, or NULL upon error.


gvir_connection_get_version ()

gulong
gvir_connection_get_version (GVirConnection *conn,
                             GError **err);

Get version of current hypervisor used.

Parameters

conn

a GVirConnection

 

err

return location for any GError

 

Returns

version on success, 0 otherwise and err set.


gvir_connection_get_domains ()

GList *
gvir_connection_get_domains (GVirConnection *conn);

Gets a list of the domains available through conn .

Parameters

conn

a GVirConnection

 

Returns

List of GVirDomain. The returned list should be freed with g_list_free(), after its elements have been unreffed with g_object_unref().

[element-type LibvirtGObject.Domain][transfer full]


gvir_connection_get_domain ()

GVirDomain *
gvir_connection_get_domain (GVirConnection *conn,
                            const gchar *uuid);

Parameters

conn

a GVirConnection

 

uuid

uuid string of the requested domain

 

Returns

the GVirDomain, or NULL. The returned object should be unreffed with g_object_unref() when no longer needed.

[transfer full]


gvir_connection_find_domain_by_id ()

GVirDomain *
gvir_connection_find_domain_by_id (GVirConnection *conn,
                                   gint id);

Parameters

conn

a GVirConnection

 

id

id of the requested domain

 

Returns

the GVirDomain, or NULL. The returned object should be unreffed with g_object_unref() when no longer needed.

[transfer full]


gvir_connection_find_domain_by_name ()

GVirDomain *
gvir_connection_find_domain_by_name (GVirConnection *conn,
                                     const gchar *name);

Parameters

conn

a GVirConnection

 

name

name of the requested domain

 

Returns

the GVirDomain, or NULL. The returned object should be unreffed with g_object_unref() when no longer needed.

[transfer full]


gvir_connection_create_domain ()

GVirDomain *
gvir_connection_create_domain (GVirConnection *conn,
                               GVirConfigDomain *conf,
                               GError **err);

Create the configuration file for a new persistent domain. The returned domain will initially be in the shutoff state.

Parameters

conn

a GVirConnection on which to create the domain

 

conf

the configuration for the new domain

 

Returns

the newly created domain, or NULL if an error occurred. The returned object should be unreffed with g_object_unref() when no longer needed.

[transfer full]


gvir_connection_start_domain ()

GVirDomain *
gvir_connection_start_domain (GVirConnection *conn,
                              GVirConfigDomain *conf,
                              guint flags,
                              GError **err);

Start a new transient domain without persistent configuration. The returned domain will initially be running.

Parameters

conn

a GVirConnection on which to create the domain

 

conf

the configuration for the new domain

 

Returns

the newly created domain, or NULL if an error occurred. The returned object should be unreffed with g_object_unref() when no longer needed.

[transfer full]


gvir_connection_fetch_interfaces ()

gboolean
gvir_connection_fetch_interfaces (GVirConnection *conn,
                                  GCancellable *cancellable,
                                  GError **err);

Use this method to fetch information on all network interfaces managed by connection conn on host machine. Use gvir_connection_get_interfaces or gvir_connection_get_interface afterwards to query the fetched interfaces.

Parameters

conn

a GVirConnection

 

cancellable

cancellation object.

[allow-none][transfer none]

err

return location for any errors

 

Returns

TRUE on success, FALSE otherwise and err is set.


gvir_connection_fetch_interfaces_async ()

void
gvir_connection_fetch_interfaces_async
                               (GVirConnection *conn,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

Parameters

conn

a GVirConnection

 

cancellable

cancellation object.

[allow-none][transfer none]

callback

completion callback.

[scope async]

user_data

opaque data for callback.

[closure]

gvir_connection_fetch_interfaces_finish ()

gboolean
gvir_connection_fetch_interfaces_finish
                               (GVirConnection *conn,
                                GAsyncResult *result,
                                GError **err);

Parameters

conn

a GVirConnection

 

result

async method result.

[transfer none]

err

return location for any errors

 

gvir_connection_get_interfaces ()

GList *
gvir_connection_get_interfaces (GVirConnection *conn);

Get a list of all the network interfaces managed by connection conn on host machine.

Parameters

conn

a GVirConnection

 

Returns

List of GVirInterface. The returned list should be freed with g_list_free(), after its elements have been unreffed with g_object_unref().

[element-type LibvirtGObject.Interface][transfer full]


gvir_connection_get_interface ()

GVirInterface *
gvir_connection_get_interface (GVirConnection *conn,
                               const gchar *name);

Get a particular interface which has name name .

Parameters

conn

a GVirConnection

 

name

interface name to lookup

 

Returns

A new reference to a GVirInterface, or NULL if no interface exists with name name . The returned object must be unreffed using g_object_unref() once used.

[transfer full]


gvir_connection_find_interface_by_mac ()

GVirInterface *
gvir_connection_find_interface_by_mac (GVirConnection *conn,
                                       const gchar *macaddr);

Get a particular interface which has MAC address mac .

Parameters

conn

a GVirConnection

 

macaddr

MAC address to lookup

 

Returns

A new reference to a GVirInterface, or NULL if no interface exists with MAC address mac . The returned object must be unreffed using g_object_unref() once used.

[transfer full]


gvir_connection_fetch_networks ()

gboolean
gvir_connection_fetch_networks (GVirConnection *conn,
                                GCancellable *cancellable,
                                GError **err);

Use this method to fetch all networks managed by connection conn . Use e.g. gvir_connection_find_network_by_name or gvir_connection_get_networks afterwards to query the fetched domains.

Parameters

conn

a GVirConnection

 

cancellable

cancellation object.

[allow-none][transfer none]

gvir_connection_fetch_networks_async ()

void
gvir_connection_fetch_networks_async (GVirConnection *conn,
                                      GCancellable *cancellable,
                                      GAsyncReadyCallback callback,
                                      gpointer user_data);

Parameters

conn

a GVirConnection

 

cancellable

cancellation object.

[allow-none][transfer none]

callback

completion callback.

[scope async]

user_data

opaque data for callback.

[closure]

gvir_connection_fetch_networks_finish ()

gboolean
gvir_connection_fetch_networks_finish (GVirConnection *conn,
                                       GAsyncResult *result,
                                       GError **err);

Parameters

conn

a GVirConnection

 

result

async method result.

[transfer none]

err

return location for any errors

 

gvir_connection_get_networks ()

GList *
gvir_connection_get_networks (GVirConnection *conn);

Get a list of all the network networks available through conn .

Parameters

conn

a GVirConnection

 

Returns

List of GVirNetwork. The returned list should be freed with g_list_free(), after its elements have been unreffed with g_object_unref().

[element-type LibvirtGObject.Network][transfer full]


gvir_connection_get_network ()

GVirNetwork *
gvir_connection_get_network (GVirConnection *conn,
                             const gchar *uuid);

Get a particular network which has UUID uuid .

Parameters

conn

a GVirConnection

 

uuid

UUID of the network to lookup

 

Returns

A new reference to a GVirNetwork, or NULL if no network exists with UUID uuid . The returned object must be unreffed using g_object_unref() once used.

[transfer full]


gvir_connection_find_network_by_name ()

GVirNetwork *
gvir_connection_find_network_by_name (GVirConnection *conn,
                                      const gchar *name);

Get a particular network which has name name .

Parameters

conn

a GVirConnection

 

name

name of the network to search for

 

Returns

A new reference to a GVirNetwork, or NULL if no network exists with name name . The returned object must be unreffed using g_object_unref() once used.

[transfer full]


gvir_connection_get_network_filters ()

GList *
gvir_connection_get_network_filters (GVirConnection *conn);

gvir_connection_get_network_filter ()

GVirNetworkFilter *
gvir_connection_get_network_filter (GVirConnection *conn,
                                    const gchar *uuid);

gvir_connection_find_network_filter_by_name ()

GVirNetworkFilter *
gvir_connection_find_network_filter_by_name
                               (GVirConnection *conn,
                                const gchar *name);

gvir_connection_get_node_devices ()

GList *
gvir_connection_get_node_devices (GVirConnection *conn);

gvir_connection_get_node_device ()

GVirNodeDevice *
gvir_connection_get_node_device (GVirConnection *conn,
                                 const gchar *name);

gvir_connection_get_secrets ()

GList *
gvir_connection_get_secrets (GVirConnection *conn);

gvir_connection_get_secret ()

GVirSecret *
gvir_connection_get_secret (GVirConnection *conn,
                            const gchar *uuid);

gvir_connection_fetch_storage_pools ()

gboolean
gvir_connection_fetch_storage_pools (GVirConnection *conn,
                                     GCancellable *cancellable,
                                     GError **err);

Use this method to fetch all storage pools managed by connection conn . Use e.g. gvir_connection_find_storage_pool_by_name or gvir_connection_get_storage_pools afterwards to query the fetched pools.

Parameters

conn

a GVirConnection

 

cancellable

cancellation object.

[allow-none][transfer none]

gvir_connection_fetch_storage_pools_async ()

void
gvir_connection_fetch_storage_pools_async
                               (GVirConnection *conn,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

Parameters

conn

a GVirConnection

 

cancellable

cancellation object.

[allow-none][transfer none]

callback

completion callback.

[scope async]

user_data

opaque data for callback.

[closure]

gvir_connection_fetch_storage_pools_finish ()

gboolean
gvir_connection_fetch_storage_pools_finish
                               (GVirConnection *conn,
                                GAsyncResult *result,
                                GError **err);

Parameters

conn

a GVirConnection

 

result

async method result.

[transfer none]

gvir_connection_get_storage_pools ()

GList *
gvir_connection_get_storage_pools (GVirConnection *conn);

Gets a list of the storage pools available through conn .

Parameters

conn

a GVirConnection

 

Returns

List of GVirStoragePool. The returned list should be freed with g_list_free(), after its elements have been unreffed with g_object_unref().

[element-type LibvirtGObject.StoragePool][transfer full]


gvir_connection_get_storage_pool ()

GVirStoragePool *
gvir_connection_get_storage_pool (GVirConnection *conn,
                                  const gchar *uuid);

Parameters

conn

a GVirConnection

 

uuid

uuid string of the requested storage pool

 

Returns

the GVirStoragePool, or NULL. The returned object should be unreffed with g_object_unref() when no longer needed.

[transfer full]


gvir_connection_find_storage_pool_by_name ()

GVirStoragePool *
gvir_connection_find_storage_pool_by_name
                               (GVirConnection *conn,
                                const gchar *name);

Parameters

conn

a GVirConnection

 

name

name of the requested storage pool

 

Returns

the GVirStoragePool, or NULL. The returned object should be unreffed with g_object_unref() when no longer needed.

[transfer full]


gvir_connection_create_storage_pool ()

GVirStoragePool *
gvir_connection_create_storage_pool (GVirConnection *conn,
                                     GVirConfigStoragePool *conf,
                                     guint flags,
                                     GError **err);

Parameters

conn

a GVirConnection on which to create the pool

 

conf

the configuration for the new storage pool

 

flags

the flags

 

err

return location for any GError

 

Returns

the newly created storage pool, or NULL if an error occurred. The returned list should be freed with g_list_free(), after its elements have been unreffed with g_object_unref().

[transfer full]


gvir_connection_get_stream ()

GVirStream *
gvir_connection_get_stream (GVirConnection *conn,
                            guint flags);

Parameters

conn

a GVirConnection

 

flags

flags to use for the stream

 

Returns

a GVirStream stream, or NULL.The returned object should be unreffed with g_object_unref() when no longer needed.

[transfer full]


gvir_connection_get_node_info ()

GVirNodeInfo *
gvir_connection_get_node_info (GVirConnection *conn,
                               GError **err);

Parameters

conn

a GVirConnection

 

err

return location for any GError

 

Returns

the info, or NULL if an error occurred. The returned object should be unreffed with g_object_unref() when no longer needed.

[transfer full]


gvir_connection_get_capabilities ()

GVirConfigCapabilities *
gvir_connection_get_capabilities (GVirConnection *conn,
                                  GError **err);

Parameters

conn

a GVirConnection

 

err

return location for any GError

 

Returns

a GVirConfigCapabilities or NULL. The returned object should be unreffed with g_object_unref() when no longer needed.

[transfer full]


gvir_connection_get_capabilities_async ()

void
gvir_connection_get_capabilities_async
                               (GVirConnection *conn,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

Parameters

conn

a GVirConnection

 

cancellable

cancellation object.

[allow-none][transfer none]

callback

completion callback.

[scope async]

user_data

opaque data for callback.

[closure]

gvir_connection_get_capabilities_finish ()

GVirConfigCapabilities *
gvir_connection_get_capabilities_finish
                               (GVirConnection *conn,
                                GAsyncResult *result,
                                GError **err);

Parameters

conn

a GVirConnection

 

result

async method result.

[transfer none]

Returns

a GVirConfigCapabilities or NULL. The returned object should be unreffed with g_object_unref() when no longer needed.

[transfer full]


gvir_connection_restore_domain_from_file ()

gboolean
gvir_connection_restore_domain_from_file
                               (GVirConnection *conn,
                                gchar *filename,
                                GVirConfigDomain *custom_conf,
                                guint flags,
                                GError **err);

Restores the domain saved with gvir_domain_save_to_file

Parameters

conn

a GVirConnection

 

filename

path to input file

 

custom_conf

configuration for domain or NULL.

[allow-none]

flags

the flags

 

Returns

TRUE on success, FALSE otherwise


gvir_connection_restore_domain_from_file_async ()

void
gvir_connection_restore_domain_from_file_async
                               (GVirConnection *conn,
                                gchar *filename,
                                GVirConfigDomain *custom_conf,
                                guint flags,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

Asynchronous variant of gvir_connection_restore_domain_from_file

Parameters

conn

a GVirConnection

 

filename

path to input file

 

custom_conf

configuration for domain.

[allow-none]

flags

the flags

 

cancellable

cancellation object.

[allow-none][transfer none]

callback

completion callback.

[scope async]

user_data

opaque data for callback.

[closure]

gvir_connection_restore_domain_from_file_finish ()

gboolean
gvir_connection_restore_domain_from_file_finish
                               (GVirConnection *conn,
                                GAsyncResult *result,
                                GError **err);

Finishes the operation started by gvir_restore_domain_from_file_async.

Parameters

conn

a GVirConnection

 

result

async method result.

[transfer none]

err

Place-holder for possible errors

 

Returns

TRUE if domain was restored successfully, FALSE otherwise.

Types and Values

Property Details

The “handle†property

  “handle†                  GVirConnectionHandle *

The connection handle.

Flags: Read / Write / Construct Only


The “uri†property

  “uri†                     gchar *

The connection URI.

Flags: Read / Write / Construct Only

Default value: NULL

Signal Details

The “connection-closed†signal

void
user_function (GVirConnection *gvirconnection,
               gpointer        user_data)

Flags: Run First


The “connection-opened†signal

void
user_function (GVirConnection *gvirconnection,
               gpointer        user_data)

Flags: Run First


The “domain-added†signal

void
user_function (GVirConnection *gvirconnection,
               GVirDomain     *arg1,
               gpointer        user_data)

Flags: Run First


The “domain-removed†signal

void
user_function (GVirConnection *gvirconnection,
               GVirDomain     *arg1,
               gpointer        user_data)

Flags: Run First

libvirt-glib-1.0.0/docs/libvirt-gobject/html/up-insensitive.png0000644000000000000000000000056613007136424021446 00000000000000‰PNG  IHDRóÿabKGDÿÿÿ ½§“ pHYs × ×B(›xtIMEÝwIûIDAT8Ëí’?/QÅÏ™?[êu$¾€V³î›ÑâHTD³ø”ÛˆBM+¡!™ÂÌ<ˆDã+èô[mdÞ\…·bø{º{sÎ/97˜ªSÖÚ£º®»<ìTõ8ŒcÌÉ¿UU­‘¼‡•WÕÍ,Ë®ÿ”e¹EÑ €žªîÉSïmÛ®æy~û+À9·è½¿0`hŒ9u†ªº`Çñr¿ßùpÎÍ{ïÌ8‘m’ ªJkí€-o$—Dä¢  išË¾'¹; ‡ Jr‡äCð\¨*¿HΑ|JÓtCDÆßo#"ã$IÖ<«êBQ½é£êêÉ]•TKúIEND®B`‚libvirt-glib-1.0.0/docs/libvirt-gobject/html/home.png0000644000000000000000000000040013007136424017377 00000000000000‰PNG  IHDRóÿabKGDÿÿÿ ½§“ pHYs × ×B(›xtIMEÝ¡ &IDAT8ËÝÒ½ AÅñßž¦f`n v`6`/¶`Y€š˜Ü¡`f&k$,Ëá}˜ˆ ÌüßÀ0ü§bŒ+Ô¸aQW~bæ ËOà e˜{‡y N°Á£üö[LáØÌ}.pÇiÀ­÷¨BzüžÆmm Šoæ·.I]7Ì^[úÃô;%:å†ÁVIEND®B`‚libvirt-glib-1.0.0/docs/libvirt-gobject/html/Libvirt-gobject.devhelp20000664000000000000000000011141313007136424022433 00000000000000 libvirt-glib-1.0.0/docs/libvirt-gobject/html/GVirInterface.html0000664000000000000000000001722313007136424021334 00000000000000 GVirInterface: Libvirt-gobject Reference Manual

GVirInterface

GVirInterface

Functions

const gchar * gvir_interface_get_name ()
const gchar * gvir_interface_get_mac ()
GVirConfigInterface * gvir_interface_get_config ()

Properties

GVirInterfaceHandle * handle Read / Write / Construct Only

Object Hierarchy

    GObject
    ╰── GVirInterface

Description

Functions

gvir_interface_get_name ()

const gchar *
gvir_interface_get_name (GVirInterface *iface);

gvir_interface_get_mac ()

const gchar *
gvir_interface_get_mac (GVirInterface *iface);

gvir_interface_get_config ()

GVirConfigInterface *
gvir_interface_get_config (GVirInterface *iface,
                           guint flags,
                           GError **err);

Parameters

iface

the interface

 

flags

the flags

 

err

Place-holder for possible errors

 

Returns

the config. The returned object should be unreffed with g_object_unref() when no longer needed.

[transfer full]

Types and Values

Property Details

The “handle†property

  “handle†                  GVirInterfaceHandle *

The interface handle.

Flags: Read / Write / Construct Only

libvirt-glib-1.0.0/docs/libvirt-gobject/html/api-index-full.html0000664000000000000000000016634613007136424021475 00000000000000 API Index: Libvirt-gobject Reference Manual

API Index

M

g_mutex_free, macro in libvirt-gobject-compat
g_mutex_new, macro in libvirt-gobject-compat

V

GVirConnection::connection-closed, object signal in GVirConnection
GVirConnection::connection-opened, object signal in GVirConnection
GVirConnection::domain-added, object signal in GVirConnection
GVirConnection::domain-removed, object signal in GVirConnection
GVirConnection:handle, object property in GVirConnection
GVirConnection:uri, object property in GVirConnection
GVirDomain::pmsuspended, object signal in GVirDomain
GVirDomain::resumed, object signal in GVirDomain
GVirDomain::started, object signal in GVirDomain
GVirDomain::stopped, object signal in GVirDomain
GVirDomain::suspended, object signal in GVirDomain
GVirDomain::updated, object signal in GVirDomain
GVirDomain:handle, object property in GVirDomain
GVirDomain:persistent, object property in GVirDomain
GVirDomainDeleteFlags, enum in GVirDomain
GVirDomainDevice:config, object property in GVirDomainDevice
GVirDomainDevice:domain, object property in GVirDomainDevice
GVirDomainRebootFlags, enum in GVirDomain
GVirDomainShutdownFlags, enum in GVirDomain
GVirDomainSnapshot:handle, object property in GVirDomainSnapshot
GVirDomainSnapshotCreateFlags, enum in GVirDomain
GVirDomainSnapshotDeleteFlags, enum in GVirDomainSnapshot
GVirDomainSnapshotListFlags, enum in GVirDomain
GVirDomainSnapshotRevertFlags, enum in GVirDomainSnapshot
GVirDomainStartFlags, enum in GVirDomain
GVirDomainState, enum in GVirDomain
GVirDomainUpdateDeviceFlags, enum in GVirDomain
GVirDomainXMLFlags, enum in GVirDomain
GVirInterface:handle, object property in GVirInterface
GVirIPAddrType, enum in GVirNetworkDHCPLease
GVirManager::connection-added, object signal in GVirManager
GVirManager::connection-removed, object signal in GVirManager
GVirNetwork:handle, object property in GVirNetwork
GVirNetworkDHCPLease:handle, object property in GVirNetworkDHCPLease
GVirNetworkFilter:handle, object property in GVirNetworkFilter
GVirNodeDevice:handle, object property in GVirNodeDevice
GVirSecret:handle, object property in GVirSecret
GVirStoragePool:handle, object property in GVirStoragePool
GVirStoragePoolState, enum in GVirStoragePool
GVirStorageVol:handle, object property in GVirStorageVol
GVirStorageVol:pool, object property in GVirStorageVol
GVirStorageVolResizeFlags, enum in GVirStorageVol
GVirStorageVolType, enum in GVirStorageVol
GVirStream:handle, object property in GVirStream
GVirStreamIOCondition, enum in GVirStream
GVirStreamIOFunc, user_function in GVirStream
GVirStreamSinkFunc, user_function in GVirStream
GVirStreamSourceFunc, user_function in GVirStream
gvir_connection_close, function in GVirConnection
gvir_connection_create_domain, function in GVirConnection
gvir_connection_create_storage_pool, function in GVirConnection
gvir_connection_fetch_domains, function in GVirConnection
gvir_connection_fetch_domains_async, function in GVirConnection
gvir_connection_fetch_domains_finish, function in GVirConnection
gvir_connection_fetch_interfaces, function in GVirConnection
gvir_connection_fetch_interfaces_async, function in GVirConnection
gvir_connection_fetch_interfaces_finish, function in GVirConnection
gvir_connection_fetch_networks, function in GVirConnection
gvir_connection_fetch_networks_async, function in GVirConnection
gvir_connection_fetch_networks_finish, function in GVirConnection
gvir_connection_fetch_storage_pools, function in GVirConnection
gvir_connection_fetch_storage_pools_async, function in GVirConnection
gvir_connection_fetch_storage_pools_finish, function in GVirConnection
gvir_connection_find_domain_by_id, function in GVirConnection
gvir_connection_find_domain_by_name, function in GVirConnection
gvir_connection_find_interface_by_mac, function in GVirConnection
gvir_connection_find_network_by_name, function in GVirConnection
gvir_connection_find_network_filter_by_name, function in GVirConnection
gvir_connection_find_storage_pool_by_name, function in GVirConnection
gvir_connection_get_capabilities, function in GVirConnection
gvir_connection_get_capabilities_async, function in GVirConnection
gvir_connection_get_capabilities_finish, function in GVirConnection
gvir_connection_get_domain, function in GVirConnection
gvir_connection_get_domains, function in GVirConnection
gvir_connection_get_hypervisor_name, function in GVirConnection
gvir_connection_get_interface, function in GVirConnection
gvir_connection_get_interfaces, function in GVirConnection
gvir_connection_get_network, function in GVirConnection
gvir_connection_get_networks, function in GVirConnection
gvir_connection_get_network_filter, function in GVirConnection
gvir_connection_get_network_filters, function in GVirConnection
gvir_connection_get_node_device, function in GVirConnection
gvir_connection_get_node_devices, function in GVirConnection
gvir_connection_get_node_info, function in GVirConnection
gvir_connection_get_secret, function in GVirConnection
gvir_connection_get_secrets, function in GVirConnection
gvir_connection_get_storage_pool, function in GVirConnection
gvir_connection_get_storage_pools, function in GVirConnection
gvir_connection_get_stream, function in GVirConnection
gvir_connection_get_uri, function in GVirConnection
gvir_connection_get_version, function in GVirConnection
gvir_connection_is_open, function in GVirConnection
gvir_connection_is_read_only, function in GVirConnection
gvir_connection_new, function in GVirConnection
gvir_connection_open, function in GVirConnection
gvir_connection_open_async, function in GVirConnection
gvir_connection_open_finish, function in GVirConnection
gvir_connection_open_read_only, function in GVirConnection
gvir_connection_open_read_only_async, function in GVirConnection
gvir_connection_open_read_only_finish, function in GVirConnection
gvir_connection_restore_domain_from_file, function in GVirConnection
gvir_connection_restore_domain_from_file_async, function in GVirConnection
gvir_connection_restore_domain_from_file_finish, function in GVirConnection
gvir_connection_start_domain, function in GVirConnection
gvir_domain_create_snapshot, function in GVirDomain
gvir_domain_create_snapshot_async, function in GVirDomain
gvir_domain_create_snapshot_finish, function in GVirDomain
gvir_domain_delete, function in GVirDomain
gvir_domain_device_get_config, function in GVirDomainDevice
gvir_domain_device_get_domain, function in GVirDomainDevice
gvir_domain_device_get_domain_handle, function in libvirt-gobject-domain-device-private
gvir_domain_disk_get_stats, function in GVirDomainDisk
gvir_domain_disk_resize, function in GVirDomainDisk
gvir_domain_fetch_snapshots, function in GVirDomain
gvir_domain_fetch_snapshots_async, function in GVirDomain
gvir_domain_fetch_snapshots_finish, function in GVirDomain
gvir_domain_get_config, function in GVirDomain
gvir_domain_get_devices, function in GVirDomain
gvir_domain_get_has_current_snapshot, function in GVirDomain
gvir_domain_get_id, function in GVirDomain
gvir_domain_get_info, function in GVirDomain
gvir_domain_get_info_async, function in GVirDomain
gvir_domain_get_info_finish, function in GVirDomain
gvir_domain_get_name, function in GVirDomain
gvir_domain_get_persistent, function in GVirDomain
gvir_domain_get_saved, function in GVirDomain
gvir_domain_get_snapshots, function in GVirDomain
gvir_domain_get_uuid, function in GVirDomain
gvir_domain_interface_get_stats, function in GVirDomainInterface
gvir_domain_open_console, function in GVirDomain
gvir_domain_open_graphics, function in GVirDomain
gvir_domain_open_graphics_fd, function in GVirDomain
gvir_domain_reboot, function in GVirDomain
gvir_domain_resume, function in GVirDomain
gvir_domain_resume_async, function in GVirDomain
gvir_domain_resume_finish, function in GVirDomain
gvir_domain_save, function in GVirDomain
gvir_domain_save_async, function in GVirDomain
gvir_domain_save_finish, function in GVirDomain
gvir_domain_save_to_file, function in GVirDomain
gvir_domain_save_to_file_async, function in GVirDomain
gvir_domain_save_to_file_finish, function in GVirDomain
gvir_domain_screenshot, function in GVirDomain
gvir_domain_set_config, function in GVirDomain
gvir_domain_set_time, function in GVirDomain
gvir_domain_set_time_async, function in GVirDomain
gvir_domain_set_time_finish, function in GVirDomain
gvir_domain_shutdown, function in GVirDomain
gvir_domain_snapshot_delete, function in GVirDomainSnapshot
gvir_domain_snapshot_delete_async, function in GVirDomainSnapshot
gvir_domain_snapshot_delete_finish, function in GVirDomainSnapshot
gvir_domain_snapshot_get_config, function in GVirDomainSnapshot
gvir_domain_snapshot_get_is_current, function in GVirDomainSnapshot
gvir_domain_snapshot_get_name, function in GVirDomainSnapshot
gvir_domain_snapshot_revert_to, function in GVirDomainSnapshot
gvir_domain_snapshot_revert_to_async, function in GVirDomainSnapshot
gvir_domain_snapshot_revert_to_finish, function in GVirDomainSnapshot
gvir_domain_snapshot_set_config, function in GVirDomainSnapshot
gvir_domain_start, function in GVirDomain
gvir_domain_start_async, function in GVirDomain
gvir_domain_start_finish, function in GVirDomain
gvir_domain_stop, function in GVirDomain
gvir_domain_suspend, function in GVirDomain
gvir_domain_update_device, function in GVirDomain
gvir_domain_wakeup, function in GVirDomain
gvir_domain_wakeup_async, function in GVirDomain
gvir_domain_wakeup_finish, function in GVirDomain
gvir_init_object, function in libvirt-gobject-main
gvir_init_object_check, function in libvirt-gobject-main
gvir_interface_get_config, function in GVirInterface
gvir_interface_get_mac, function in GVirInterface
gvir_interface_get_name, function in GVirInterface
gvir_manager_add_connection, function in GVirManager
gvir_manager_find_connection_by_uri, function in GVirManager
gvir_manager_get_connections, function in GVirManager
gvir_manager_new, function in GVirManager
gvir_manager_remove_connection, function in GVirManager
gvir_mutex_free, function in libvirt-gobject-compat
gvir_mutex_new, function in libvirt-gobject-compat
gvir_network_dhcp_lease_get_client_id, function in GVirNetworkDHCPLease
gvir_network_dhcp_lease_get_expiry_time, function in GVirNetworkDHCPLease
gvir_network_dhcp_lease_get_hostname, function in GVirNetworkDHCPLease
gvir_network_dhcp_lease_get_iaid, function in GVirNetworkDHCPLease
gvir_network_dhcp_lease_get_iface, function in GVirNetworkDHCPLease
gvir_network_dhcp_lease_get_ip, function in GVirNetworkDHCPLease
gvir_network_dhcp_lease_get_ip_type, function in GVirNetworkDHCPLease
gvir_network_dhcp_lease_get_mac, function in GVirNetworkDHCPLease
gvir_network_dhcp_lease_get_prefix, function in GVirNetworkDHCPLease
gvir_network_dhcp_lease_new, function in libvirt-gobject-network-dhcp-lease-private
gvir_network_filter_get_config, function in GVirNetworkFilter
gvir_network_filter_get_name, function in GVirNetworkFilter
gvir_network_filter_get_uuid, function in GVirNetworkFilter
gvir_network_get_config, function in GVirNetwork
gvir_network_get_dhcp_leases, function in GVirNetwork
gvir_network_get_name, function in GVirNetwork
gvir_network_get_uuid, function in GVirNetwork
gvir_node_device_get_config, function in GVirNodeDevice
gvir_node_device_get_name, function in GVirNodeDevice
gvir_secret_get_config, function in GVirSecret
gvir_secret_get_name, function in GVirSecret
gvir_secret_get_uuid, function in GVirSecret
gvir_storage_pool_build, function in GVirStoragePool
gvir_storage_pool_build_async, function in GVirStoragePool
gvir_storage_pool_build_finish, function in GVirStoragePool
gvir_storage_pool_create_volume, function in GVirStoragePool
gvir_storage_pool_delete, function in GVirStoragePool
gvir_storage_pool_delete_async, function in GVirStoragePool
gvir_storage_pool_delete_finish, function in GVirStoragePool
gvir_storage_pool_get_active, function in GVirStoragePool
gvir_storage_pool_get_autostart, function in GVirStoragePool
gvir_storage_pool_get_config, function in GVirStoragePool
gvir_storage_pool_get_info, function in GVirStoragePool
gvir_storage_pool_get_name, function in GVirStoragePool
gvir_storage_pool_get_persistent, function in GVirStoragePool
gvir_storage_pool_get_uuid, function in GVirStoragePool
gvir_storage_pool_get_volume, function in GVirStoragePool
gvir_storage_pool_get_volumes, function in GVirStoragePool
gvir_storage_pool_refresh, function in GVirStoragePool
gvir_storage_pool_refresh_async, function in GVirStoragePool
gvir_storage_pool_refresh_finish, function in GVirStoragePool
gvir_storage_pool_set_autostart, function in GVirStoragePool
gvir_storage_pool_start, function in GVirStoragePool
gvir_storage_pool_start_async, function in GVirStoragePool
gvir_storage_pool_start_finish, function in GVirStoragePool
gvir_storage_pool_stop, function in GVirStoragePool
gvir_storage_pool_stop_async, function in GVirStoragePool
gvir_storage_pool_stop_finish, function in GVirStoragePool
gvir_storage_pool_undefine, function in GVirStoragePool
gvir_storage_pool_undefine_async, function in GVirStoragePool
gvir_storage_pool_undefine_finish, function in GVirStoragePool
gvir_storage_vol_delete, function in GVirStorageVol
gvir_storage_vol_download, function in GVirStorageVol
gvir_storage_vol_get_config, function in GVirStorageVol
gvir_storage_vol_get_info, function in GVirStorageVol
gvir_storage_vol_get_name, function in GVirStorageVol
gvir_storage_vol_get_path, function in GVirStorageVol
gvir_storage_vol_resize, function in GVirStorageVol
gvir_storage_vol_upload, function in GVirStorageVol
gvir_stream_add_watch, function in GVirStream
gvir_stream_add_watch_full, function in GVirStream
gvir_stream_receive, function in GVirStream
gvir_stream_receive_all, function in GVirStream
gvir_stream_send, function in GVirStream
gvir_stream_send_all, function in GVirStream
libvirt-glib-1.0.0/docs/libvirt-gobject/html/annotation-glossary.html0000664000000000000000000001215613007136424022657 00000000000000 Annotation Glossary: Libvirt-gobject Reference Manual

Annotation Glossary

A

allow-none

NULL is OK, both for passing and for returning.

array

Parameter points to an array of items.

C

closure

This parameter is a 'user_data', for callbacks; many bindings can pass NULL here.

E

element-type

Generics and defining elements of containers and arrays.

I

inout

Parameter for input and for returning results. Default is transfer full.

O

out

Parameter for returning results. Default is transfer full.

R

rename-to

Rename the original symbol's name to SYMBOL.

S

scope async

The callback is valid until first called.

scope notified

The callback is valid until the GDestroyNotify argument is called.

skip

Exposed in C code, not necessarily available in other languages.

T

transfer full

Free data after the code is done.

transfer none

Don't free data after the code is done.

type

Override the parsed C type with given type.

libvirt-glib-1.0.0/docs/libvirt-gobject/html/up.png0000644000000000000000000000040413007136424017077 00000000000000‰PNG  IHDRóÿabKGDÿÿÿ ½§“ pHYs × ×B(›xtIMEÝ ”èÁ‘IDAT8Ëí’1 ƒ@DŸ•¶{ƒxa™ƒØÄ;$]r =JR´È1,Ë øSd„-©}0°ÌŸÙÏÂÂÎàüo¹L:m-˜¤QÞOäÀ[› Éäåkå T¸zþMÞ Lè¬Ì,š:ךuÀ!tÁK;æ ðP¦õÌôÀp Ot@£l¼ÿò/̵*á§l}IEND®B`‚libvirt-glib-1.0.0/docs/libvirt-gobject/html/GVirStoragePool.html0000664000000000000000000017647713007136424021713 00000000000000 GVirStoragePool: Libvirt-gobject Reference Manual

GVirStoragePool

GVirStoragePool

Properties

GVirStoragePoolHandle * handle Read / Write / Construct Only

Types and Values

Object Hierarchy

    GBoxed
    ╰── GVirStoragePoolInfo
    GObject
    ╰── GVirStoragePool

Description

Functions

gvir_storage_pool_get_name ()

const gchar *
gvir_storage_pool_get_name (GVirStoragePool *pool);

gvir_storage_pool_get_uuid ()

const gchar *
gvir_storage_pool_get_uuid (GVirStoragePool *pool);

gvir_storage_pool_get_active ()

gboolean
gvir_storage_pool_get_active (GVirStoragePool *pool);

gvir_storage_pool_get_persistent ()

gboolean
gvir_storage_pool_get_persistent (GVirStoragePool *pool);

gvir_storage_pool_get_config ()

GVirConfigStoragePool *
gvir_storage_pool_get_config (GVirStoragePool *pool,
                              guint flags,
                              GError **err);

Parameters

pool

the storage_pool

 

flags

the flags

 

err

Place-holder for possible errors

 

Returns

the config. The returned object should be unreffed with g_object_unref() when no longer needed.

[transfer full]


gvir_storage_pool_get_info ()

GVirStoragePoolInfo *
gvir_storage_pool_get_info (GVirStoragePool *pool,
                            GError **err);

Parameters

pool

the storage_pool

 

err

Place-holder for possible errors

 

Returns

the info. The returned pointer should be freed using g_boxed_free() when no longer needed.

[transfer full]


gvir_storage_pool_refresh ()

gboolean
gvir_storage_pool_refresh (GVirStoragePool *pool,
                           GCancellable *cancellable,
                           GError **err);

Parameters

pool

the storage pool

 

cancellable

cancellation object.

[allow-none][transfer none]

gvir_storage_pool_refresh_async ()

void
gvir_storage_pool_refresh_async (GVirStoragePool *pool,
                                 GCancellable *cancellable,
                                 GAsyncReadyCallback callback,
                                 gpointer user_data);

Parameters

pool

the storage pool

 

cancellable

cancellation object.

[allow-none][transfer none]

callback

completion callback.

[scope async]

user_data

opaque data for callback.

[closure]

gvir_storage_pool_refresh_finish ()

gboolean
gvir_storage_pool_refresh_finish (GVirStoragePool *pool,
                                  GAsyncResult *result,
                                  GError **err);

Parameters

pool

the storage pool

 

result

async method result.

[transfer none]

gvir_storage_pool_get_volumes ()

GList *
gvir_storage_pool_get_volumes (GVirStoragePool *pool);

Parameters

pool

the storage pool

 

Returns

List of GVirStorageVol. The returned list should be freed with g_list_free(), after its elements have been unreffed with g_object_unref().

[element-type LibvirtGObject.StorageVol][transfer full]


gvir_storage_pool_get_volume ()

GVirStorageVol *
gvir_storage_pool_get_volume (GVirStoragePool *pool,
                              const gchar *name);

Parameters

pool

the storage pool

 

name

Name of the requested storage volume

 

Returns

the GVirStorageVol, or NULL. The returned object should be unreffed with g_object_unref() when no longer needed.

[transfer full]


gvir_storage_pool_create_volume ()

GVirStorageVol *
gvir_storage_pool_create_volume (GVirStoragePool *pool,
                                 GVirConfigStorageVol *conf,
                                 GError **err);

Parameters

pool

the storage pool in which to create the volume

 

conf

the configuration for the new volume

 

err

Place-holder for possible errors

 

Returns

the newly created volume. The returned object should be unreffed with g_object_unref() when no longer needed.

[transfer full]


gvir_storage_pool_build ()

gboolean
gvir_storage_pool_build (GVirStoragePool *pool,
                         guint flags,
                         GError **err);

Parameters

pool

the storage pool to build

 

flags

the flags

 

err

return location for any GError

 

Returns

True on success, False otherwise.


gvir_storage_pool_build_async ()

void
gvir_storage_pool_build_async (GVirStoragePool *pool,
                               guint flags,
                               GCancellable *cancellable,
                               GAsyncReadyCallback callback,
                               gpointer user_data);

Parameters

pool

the storage pool to build

 

flags

the flags

 

cancellable

cancellation object.

[allow-none][transfer none]

callback

completion callback.

[scope async]

user_data

opaque data for callback.

[closure]

gvir_storage_pool_build_finish ()

gboolean
gvir_storage_pool_build_finish (GVirStoragePool *pool,
                                GAsyncResult *result,
                                GError **err);

Parameters

pool

the storage pool to build

 

result

async method result.

[transfer none]

err

return location for any GError

 

Returns

True on success, False otherwise.


gvir_storage_pool_undefine ()

gboolean
gvir_storage_pool_undefine (GVirStoragePool *pool,
                            GError **err);

Parameters

pool

the storage pool to undefine

 

err

return location for any GError

 

Returns

True on success, False otherwise.


gvir_storage_pool_undefine_async ()

void
gvir_storage_pool_undefine_async (GVirStoragePool *pool,
                                  GCancellable *cancellable,
                                  GAsyncReadyCallback callback,
                                  gpointer user_data);

Parameters

pool

the storage pool to undefine

 

cancellable

cancellation object.

[allow-none][transfer none]

callback

completion callback.

[scope async]

user_data

opaque data for callback.

[closure]

gvir_storage_pool_undefine_finish ()

gboolean
gvir_storage_pool_undefine_finish (GVirStoragePool *pool,
                                   GAsyncResult *result,
                                   GError **err);

Parameters

pool

the storage pool to undefine

 

result

async method result.

[transfer none]

err

return location for any GError

 

Returns

True on success, False otherwise.


gvir_storage_pool_start ()

gboolean
gvir_storage_pool_start (GVirStoragePool *pool,
                         guint flags,
                         GError **err);

Parameters

pool

the storage pool to start

 

flags

the flags

 

err

return location for any GError

 

Returns

True on success, False otherwise.


gvir_storage_pool_start_async ()

void
gvir_storage_pool_start_async (GVirStoragePool *pool,
                               guint flags,
                               GCancellable *cancellable,
                               GAsyncReadyCallback callback,
                               gpointer user_data);

Parameters

pool

the storage pool to start

 

flags

the flags

 

cancellable

cancellation object.

[allow-none][transfer none]

callback

completion callback.

[scope async]

user_data

opaque data for callback.

[closure]

gvir_storage_pool_start_finish ()

gboolean
gvir_storage_pool_start_finish (GVirStoragePool *pool,
                                GAsyncResult *result,
                                GError **err);

Parameters

pool

the storage pool to start

 

result

async method result.

[transfer none]

err

return location for any GError

 

Returns

True on success, False otherwise.


gvir_storage_pool_stop ()

gboolean
gvir_storage_pool_stop (GVirStoragePool *pool,
                        GError **err);

Parameters

pool

the storage pool to stop

 

err

return location for any GError

 

Returns

True on success, False otherwise.


gvir_storage_pool_stop_async ()

void
gvir_storage_pool_stop_async (GVirStoragePool *pool,
                              GCancellable *cancellable,
                              GAsyncReadyCallback callback,
                              gpointer user_data);

Parameters

pool

the storage pool to stop

 

cancellable

cancellation object.

[allow-none][transfer none]

callback

completion callback.

[scope async]

user_data

opaque data for callback.

[closure]

gvir_storage_pool_stop_finish ()

gboolean
gvir_storage_pool_stop_finish (GVirStoragePool *pool,
                               GAsyncResult *result,
                               GError **err);

Parameters

pool

the storage pool to stop

 

result

async method result.

[transfer none]

err

return location for any GError

 

Returns

True on success, False otherwise.


gvir_storage_pool_delete ()

gboolean
gvir_storage_pool_delete (GVirStoragePool *pool,
                          guint flags,
                          GError **err);

Parameters

pool

the storage pool to delete

 

flags

the flags

 

err

return location for any GError

 

Returns

True on success, False otherwise.


gvir_storage_pool_delete_async ()

void
gvir_storage_pool_delete_async (GVirStoragePool *pool,
                                guint flags,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

Parameters

pool

the storage pool to delete

 

flags

the flags

 

cancellable

cancellation object.

[allow-none][transfer none]

callback

completion callback.

[scope async]

user_data

opaque data for callback.

[closure]

gvir_storage_pool_delete_finish ()

gboolean
gvir_storage_pool_delete_finish (GVirStoragePool *pool,
                                 GAsyncResult *result,
                                 GError **err);

Parameters

pool

the storage pool to delete

 

result

async method result.

[transfer none]

err

return location for any GError

 

Returns

True on success, False otherwise.


gvir_storage_pool_get_autostart ()

gboolean
gvir_storage_pool_get_autostart (GVirStoragePool *pool,
                                 GError **err);

Parameters

pool

the storage pool

 

err

return location for any GError

 

Returns

True if autostart is enabled, False otherwise.


gvir_storage_pool_set_autostart ()

gboolean
gvir_storage_pool_set_autostart (GVirStoragePool *pool,
                                 gboolean autostart,
                                 GError **err);

Sets whether or not storage pool pool is started automatically on boot.

Parameters

pool

the storage pool

 

autostart

Whether or not to autostart

 

err

return location for any GError

 

Returns

TRUE on success, FALSE otherwise.

Types and Values

enum GVirStoragePoolState

Members

GVIR_STORAGE_POOL_STATE_INACTIVE

   

GVIR_STORAGE_POOL_STATE_BUILDING

   

GVIR_STORAGE_POOL_STATE_RUNNING

   

GVIR_STORAGE_POOL_STATE_DEGRADED

   

GVIR_STORAGE_POOL_STATE_INACCESSIBLE

   

Property Details

The “handle†property

  “handle†                  GVirStoragePoolHandle *

The storage_pool handle.

Flags: Read / Write / Construct Only

libvirt-glib-1.0.0/docs/libvirt-gobject/html/left.png0000644000000000000000000000040613007136424017407 00000000000000‰PNG  IHDRóÿabKGDÿÿÿ ½§“ pHYs × ×B(›xtIMEÝ,`m;½“IDAT8ËÕÒ¯Áa‡ñ?ÁDAPY‘\‚$‹º[p¢+ÐÜIÐIªMlfü('Úì}MpâÙyží{Îá_ª…ž¨¤ÂÞ¥Â}œ^£‘q xZ <Æ=àYjî) <0ù4\~Ó+Púöl#Ü"ÂÕÉ—,QÏ‘ôp ÉÍIÇlswÒÆ>÷•[/]_i0‘3ÃIEND®B`‚libvirt-glib-1.0.0/docs/libvirt-gobject/html/GVirStorageVol.html0000664000000000000000000005736413007136424021533 00000000000000 GVirStorageVol: Libvirt-gobject Reference Manual

GVirStorageVol

GVirStorageVol

Properties

GVirStorageVolHandle * handle Read / Write / Construct Only
GVirStoragePool * pool Read / Write / Construct Only

Types and Values

Object Hierarchy

    GBoxed
    ╰── GVirStorageVolInfo
    GObject
    ╰── GVirStorageVol

Description

Functions

gvir_storage_vol_get_name ()

const gchar *
gvir_storage_vol_get_name (GVirStorageVol *vol);

gvir_storage_vol_get_path ()

const gchar *
gvir_storage_vol_get_path (GVirStorageVol *vol,
                           GError **error);

gvir_storage_vol_delete ()

gboolean
gvir_storage_vol_delete (GVirStorageVol *vol,
                         guint flags,
                         GError **err);

Deletes the storage volume vol .

Parameters

vol

the storage volume to delete

 

flags

the flags

 

err

Return location for errors, or NULL

 

Returns

TRUE on success, FALSE otherwise


gvir_storage_vol_get_config ()

GVirConfigStorageVol *
gvir_storage_vol_get_config (GVirStorageVol *vol,
                             guint flags,
                             GError **err);

Parameters

vol

the storage_vol

 

flags

the flags

 

err

Place-holder for possible errors

 

Returns

the config. The returned object should be unreffed with g_object_unref() when no longer needed.

[transfer full]


gvir_storage_vol_get_info ()

GVirStorageVolInfo *
gvir_storage_vol_get_info (GVirStorageVol *vol,
                           GError **err);

Parameters

vol

the storage_vol

 

err

Place-holder for possible errors

 

Returns

the info. The returned object should be unreffed with g_object_unref() when no longer needed.

[transfer full]


gvir_storage_vol_resize ()

gboolean
gvir_storage_vol_resize (GVirStorageVol *vol,
                         guint64 capacity,
                         guint flags,
                         GError **err);

Changes the capacity of the storage volume vol to capacity .

Parameters

vol

the storage volume to resize

 

capacity

the new capacity of the volume

 

flags

the flags.

[type GVirStorageVolResizeFlags]

err

Return location for errors, or NULL

 

Returns

TRUE success, FALSE otherwise


gvir_storage_vol_download ()

gboolean
gvir_storage_vol_download (GVirStorageVol *vol,
                           GVirStream *stream,
                           guint64 offset,
                           guint64 length,
                           guint flags,
                           GError **err);

Parameters

vol

the storage volume to download from

 

stream

stream to use as output

 

offset

position in vol to start reading from

 

length

limit on amount of data to download, or 0 for downloading all data

 

flags

extra flags, not used yet, pass 0

 

Returns

TRUE of success, FALSE otherwise


gvir_storage_vol_upload ()

gboolean
gvir_storage_vol_upload (GVirStorageVol *vol,
                         GVirStream *stream,
                         guint64 offset,
                         guint64 length,
                         guint flags,
                         GError **err);

Parameters

vol

the storage volume to upload

 

stream

stream to use as input

 

offset

position in vol to start to write to

 

length

limit on amount of data to upload, or 0 for uploading all data

 

flags

the flags, not set yet, pass 0

 

Returns

TRUE of success, FALSE otherwise

Types and Values

enum GVirStorageVolType

Members

GVIR_STORAGE_VOL_STATE_FILE

   

GVIR_STORAGE_VOL_STATE_BLOCK

   

GVIR_STORAGE_VOL_STATE_DIR

   

enum GVirStorageVolResizeFlags

Members

GVIR_STORAGE_VOL_RESIZE_NONE

No flags

 

GVIR_STORAGE_VOL_RESIZE_ALLOCATE

force allocation of new size

 

GVIR_STORAGE_VOL_RESIZE_DELTA

size is relative to current

 

GVIR_STORAGE_VOL_RESIZE_SHRINK

allow decrease in capacity. This combined with GVIR_STORAGE_VOL_RESIZE_DELTA, implies a negative delta.

 

Property Details

The “handle†property

  “handle†                  GVirStorageVolHandle *

The storage_vol handle.

Flags: Read / Write / Construct Only


The “pool†property

  “pool†                    GVirStoragePool *

The containing storage pool.

Flags: Read / Write / Construct Only

libvirt-glib-1.0.0/docs/libvirt-gobject/html/GVirNetworkFilter.html0000664000000000000000000001763413007136424022241 00000000000000 GVirNetworkFilter: Libvirt-gobject Reference Manual

GVirNetworkFilter

GVirNetworkFilter

Properties

GVirNetworkFilterHandle * handle Read / Write / Construct Only

Object Hierarchy

    GObject
    ╰── GVirNetworkFilter

Description

Functions

gvir_network_filter_get_name ()

const gchar *
gvir_network_filter_get_name (GVirNetworkFilter *filter);

gvir_network_filter_get_uuid ()

const gchar *
gvir_network_filter_get_uuid (GVirNetworkFilter *filter);

gvir_network_filter_get_config ()

GVirConfigNetworkFilter *
gvir_network_filter_get_config (GVirNetworkFilter *filter,
                                guint flags,
                                GError **err);

Parameters

filter

the network_filter

 

flags

the flags

 

err

Place-holder for possible errors

 

Returns

the config. The returned object should be unreffed with g_object_unref() when no longer needed.

[transfer full]

Types and Values

Property Details

The “handle†property

  “handle†                  GVirNetworkFilterHandle *

The network_filter handle.

Flags: Read / Write / Construct Only

libvirt-glib-1.0.0/docs/libvirt-gobject/html/GVirStream.html0000664000000000000000000010023213007136424020660 00000000000000 GVirStream: Libvirt-gobject Reference Manual

GVirStream

GVirStream

Functions

gint (*GVirStreamSinkFunc) ()
gint (*GVirStreamSourceFunc) ()
gboolean (*GVirStreamIOFunc) ()
guint gvir_stream_add_watch ()
guint gvir_stream_add_watch_full ()
gssize gvir_stream_receive_all ()
gssize gvir_stream_receive ()
gssize gvir_stream_send_all ()
gssize gvir_stream_send ()

Properties

GVirStreamHandle * handle Read / Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ╰── GIOStream
        ╰── GVirStream

Description

Functions

GVirStreamSinkFunc ()

gint
(*GVirStreamSinkFunc) (GVirStream *stream,
                       const gchar *buf,
                       gsize nbytes,
                       gpointer user_data);

Parameters

stream

a GVirStream

 

buf

data pointer.

[out][array length=nbytes][transfer none]

nbytes

data size

 

user_data

user data passed to the function

 

Returns

the number of bytes filled, 0 upon end of file, or -1 upon error


GVirStreamSourceFunc ()

gint
(*GVirStreamSourceFunc) (GVirStream *stream,
                         gchar *buf,
                         gsize nbytes,
                         gpointer user_data);

Parameters

stream

a GVirStream

 

buf

data pointer.

[out][array length=nbytes][transfer none]

nbytes

data size

 

user_data

user data passed to the function

 

Returns

the number of bytes filled, 0 upon end of file, or -1 upon error


GVirStreamIOFunc ()

gboolean
(*GVirStreamIOFunc) (GVirStream *stream,
                     GVirStreamIOCondition cond,
                     gpointer opaque);

gvir_stream_add_watch ()

guint
gvir_stream_add_watch (GVirStream *stream,
                       GVirStreamIOCondition cond,
                       GVirStreamIOFunc func,
                       gpointer opaque);

Adds a watch for stream to the mainloop

[skip]

Parameters

stream

the stream

 

cond

the conditions to watch for (bitfield of GVirStreamIOCondition)

 

func

the function to call when the condition is satisfied.

[closure opaque]

opaque

user data to pass to func .

[closure]

Returns

the event source id


gvir_stream_add_watch_full ()

guint
gvir_stream_add_watch_full (GVirStream *stream,
                            gint priority,
                            GVirStreamIOCondition cond,
                            GVirStreamIOFunc func,
                            gpointer opaque,
                            GDestroyNotify notify);

Adds a watch for stream to the mainloop

[rename-to gvir_stream_add_watch]

Parameters

stream

the stream

 

priority

the priority of the GVirStream source

 

cond

the conditions to watch for (bitfield of GVirStreamIOCondition)

 

func

the function to call when the condition is satisfied.

[closure opaque]

opaque

user data to pass to func .

[closure]

notify

the function to call when the source is removed

 

Returns

the event source id


gvir_stream_receive_all ()

gssize
gvir_stream_receive_all (GVirStream *stream,
                         GCancellable *cancellable,
                         GVirStreamSinkFunc func,
                         gpointer user_data,
                         GError **error);

Receive the entire data stream, sending the data to the requested data sink. This is simply a convenient alternative to virStreamRecv, for apps that do blocking-I/o.

Parameters

stream

the stream

 

cancellable

cancellation notifier

 

func

the callback for writing data to application.

[scope notified]

user_data

data to be passed to callback .

[closure]

error

GError for error reporting, or NULL to ignore.

 

Returns

the number of bytes consumed or -1 upon error


gvir_stream_receive ()

gssize
gvir_stream_receive (GVirStream *stream,
                     gchar *buffer,
                     gsize size,
                     GCancellable *cancellable,
                     GError **error);

Receive data (up to size bytes) from a stream. On error -1 is returned and error is set accordingly.

gvir_stream_receive() can return any number of bytes, up to size . If more than size bytes have been received, the additional data will be returned in future calls to gvir_stream_receive().

If there is no data available, a G_IO_ERROR_WOULD_BLOCK error will be returned.

Parameters

stream

the stream

 

buffer

a buffer to read data into (which should be at least size bytes long).

[array length=size][element-type guint8]

size

the number of bytes you want to read from the stream

 

cancellable

a GCancellable or NULL.

[allow-none]

error

GError for error reporting, or NULL to ignore.

 

Returns

Number of bytes read, or 0 if the end of stream reached, or -1 on error.


gvir_stream_send_all ()

gssize
gvir_stream_send_all (GVirStream *stream,
                      GCancellable *cancellable,
                      GVirStreamSourceFunc func,
                      gpointer user_data,
                      GError **error);

Send the entire data stream, sending the data to the requested data source. This is simply a convenient alternative to virStreamRecv, for apps that do blocking-I/o.

Parameters

stream

the stream

 

cancellable

cancellation notifier

 

func

the callback for writing data to application.

[scope notified]

user_data

data to be passed to callback .

[closure]

error

GError for error reporting, or NULL to ignore.

 

Returns

the number of bytes consumed or -1 upon error


gvir_stream_send ()

gssize
gvir_stream_send (GVirStream *stream,
                  const gchar *buffer,
                  gsize size,
                  GCancellable *cancellable,
                  GError **error);

Send data (up to size bytes) from a stream. On error -1 is returned and error is set accordingly.

gvir_stream_send() can return any number of bytes, up to size . If more than size bytes have been sendd, the additional data will be returned in future calls to gvir_stream_send().

If there is no data available, a G_IO_ERROR_WOULD_BLOCK error will be returned.

Parameters

stream

the stream

 

buffer

a buffer to write data from (which should be at least size bytes long).

 

size

the number of bytes you want to write to the stream

 

cancellable

a GCancellable or NULL.

[allow-none]

error

GError for error reporting, or NULL to ignore.

 

Returns

Number of bytes written.

Types and Values

enum GVirStreamIOCondition

Members

GVIR_STREAM_IO_CONDITION_READABLE

   

GVIR_STREAM_IO_CONDITION_WRITABLE

   

GVIR_STREAM_IO_CONDITION_HANGUP

   

GVIR_STREAM_IO_CONDITION_ERROR

   

Property Details

The “handle†property

  “handle†                  GVirStreamHandle *

The stream handle.

Flags: Read / Write / Construct Only

libvirt-glib-1.0.0/docs/libvirt-gobject/html/left-insensitive.png0000644000000000000000000000061313007136424021745 00000000000000‰PNG  IHDRóÿabKGDÿÿÿ ½§“ pHYs × ×B(›xtIMEÝÆ«q‡IDAT8ËÍ’­NQ…¿éö†…@¡p üdsÛÀÖ`*š4Á@ò„W@ A!ÈÔ†@6Ü^ƒ 5hxèIH R`sQpäÌ™339þBÊó|Ês¤ªKEQTÛíöK°@·ÛÎià¦^¯Ï~îWʆ½÷‹ÀÕûðå`0˜åTJ6·Tõ˜‘cYn6›AÞû Æ€½~¿ß±Ö>}Ç­Žœs;ªº ¨ˆlYkwËÞürˆ¼†ºó£ Þû5U= °/"›ÖÚç  ¬µ‡"ÒuU=ɲlü×ArÎÕDä˜zÃáp5I’ûà4^E+ÀP3Æœçàq_«êp Ì¥iñ¯ðUY¥‚p=#IEND®B`‚libvirt-glib-1.0.0/docs/libvirt-gobject/html/ch01.html0000664000000000000000000000613613007136424017400 00000000000000 Libvirt-gobject: Libvirt-gobject Reference Manual libvirt-glib-1.0.0/docs/libvirt-gobject/html/GVirSecret.html0000664000000000000000000001674013007136424020664 00000000000000 GVirSecret: Libvirt-gobject Reference Manual

GVirSecret

GVirSecret

Functions

const gchar * gvir_secret_get_name ()
const gchar * gvir_secret_get_uuid ()
GVirConfigSecret * gvir_secret_get_config ()

Properties

GVirSecretHandle * handle Read / Write / Construct Only

Object Hierarchy

    GObject
    ╰── GVirSecret

Description

Functions

gvir_secret_get_name ()

const gchar *
gvir_secret_get_name (GVirSecret *secret);

gvir_secret_get_uuid ()

const gchar *
gvir_secret_get_uuid (GVirSecret *secret);

gvir_secret_get_config ()

GVirConfigSecret *
gvir_secret_get_config (GVirSecret *secret,
                        guint flags,
                        GError **err);

Parameters

secret

the secret

 

flags

the flags

 

err

Place-holder for possible errors

 

Returns

the config. The returned object should be unreffed with g_object_unref() when no longer needed.

[transfer full]

Types and Values

Property Details

The “handle†property

  “handle†                  GVirSecretHandle *

The secret handle.

Flags: Read / Write / Construct Only

libvirt-glib-1.0.0/docs/libvirt-gobject/html/style.css0000644000000000000000000002115413007136424017624 00000000000000body { font-family: cantarell, sans-serif; } .synopsis, .classsynopsis { /* tango:aluminium 1/2 */ background: #eeeeec; background: rgba(238, 238, 236, 0.5); border: solid 1px rgb(238, 238, 236); padding: 0.5em; } .programlisting { /* tango:sky blue 0/1 */ /* fallback for no rgba support */ background: #e6f3ff; border: solid 1px #729fcf; background: rgba(114, 159, 207, 0.1); border: solid 1px rgba(114, 159, 207, 0.2); padding: 0.5em; } .variablelist { padding: 4px; margin-left: 3em; } .variablelist td:first-child { vertical-align: top; } div.gallery-float { float: left; padding: 10px; } div.gallery-float img { border-style: none; } div.gallery-spacer { clear: both; } a, a:visited { text-decoration: none; /* tango:sky blue 2 */ color: #3465a4; } a:hover { text-decoration: underline; /* tango:sky blue 1 */ color: #729fcf; } div.informaltable table { border-collapse: separate; border-spacing: 1em 0.3em; border: none; } div.informaltable table td, div.informaltable table th { vertical-align: top; } .function_type, .variable_type, .property_type, .signal_type, .parameter_name, .struct_member_name, .union_member_name, .define_keyword, .datatype_keyword, .typedef_keyword { text-align: right; } /* dim non-primary columns */ .c_punctuation, .function_type, .variable_type, .property_type, .signal_type, .define_keyword, .datatype_keyword, .typedef_keyword, .property_flags, .signal_flags, .parameter_annotations, .enum_member_annotations, .struct_member_annotations, .union_member_annotations { color: #888a85; } .function_type a, .function_type a:visited, .function_type a:hover, .property_type a, .property_type a:visited, .property_type a:hover, .signal_type a, .signal_type a:visited, .signal_type a:hover, .signal_flags a, .signal_flags a:visited, .signal_flags a:hover { color: #729fcf; } td p { margin: 0.25em; } div.table table { border-collapse: collapse; border-spacing: 0px; /* tango:aluminium 3 */ border: solid 1px #babdb6; } div.table table td, div.table table th { /* tango:aluminium 3 */ border: solid 1px #babdb6; padding: 3px; vertical-align: top; } div.table table th { /* tango:aluminium 2 */ background-color: #d3d7cf; } h4 { color: #555753; margin-top: 1em; margin-bottom: 1em; } hr { /* tango:aluminium 1 */ color: #d3d7cf; background: #d3d7cf; border: none 0px; height: 1px; clear: both; margin: 2.0em 0em 2.0em 0em; } dl.toc dt { padding-bottom: 0.25em; } dl.toc > dt { padding-top: 0.25em; padding-bottom: 0.25em; font-weight: bold; } dl.toc > dl { padding-bottom: 0.5em; } .parameter { font-style: normal; } .footer { padding-top: 3.5em; /* tango:aluminium 3 */ color: #babdb6; text-align: center; font-size: 80%; } .informalfigure, .figure { margin: 1em; } .informalexample, .example { margin-top: 1em; margin-bottom: 1em; } .warning { /* tango:orange 0/1 */ background: #ffeed9; background: rgba(252, 175, 62, 0.1); border-color: #ffb04f; border-color: rgba(252, 175, 62, 0.2); } .note { /* tango:chameleon 0/0.5 */ background: #d8ffb2; background: rgba(138, 226, 52, 0.1); border-color: #abf562; border-color: rgba(138, 226, 52, 0.2); } div.blockquote { border-color: #eeeeec; } .note, .warning, div.blockquote { padding: 0.5em; border-width: 1px; border-style: solid; margin: 2em; } .note p, .warning p { margin: 0; } div.warning h3.title, div.note h3.title { display: none; } p + div.section { margin-top: 1em; } div.refnamediv, div.refsynopsisdiv, div.refsect1, div.refsect2, div.toc, div.section { margin-bottom: 1em; } /* blob links */ h2 .extralinks, h3 .extralinks { float: right; /* tango:aluminium 3 */ color: #babdb6; font-size: 80%; font-weight: normal; } .lineart { color: #d3d7cf; font-weight: normal; } .annotation { /* tango:aluminium 5 */ color: #555753; font-weight: normal; } .structfield { font-style: normal; font-weight: normal; } acronym,abbr { border-bottom: 1px dotted gray; } /* code listings */ .listing_code .programlisting .normal, .listing_code .programlisting .normal a, .listing_code .programlisting .number, .listing_code .programlisting .cbracket, .listing_code .programlisting .symbol { color: #555753; } .listing_code .programlisting .comment, .listing_code .programlisting .linenum { color: #babdb6; } /* tango: aluminium 3 */ .listing_code .programlisting .function, .listing_code .programlisting .function a, .listing_code .programlisting .preproc { color: #204a87; } /* tango: sky blue 3 */ .listing_code .programlisting .string { color: #ad7fa8; } /* tango: plum */ .listing_code .programlisting .keyword, .listing_code .programlisting .usertype, .listing_code .programlisting .type, .listing_code .programlisting .type a { color: #4e9a06; } /* tango: chameleon 3 */ .listing_frame { /* tango:sky blue 1 */ border: solid 1px #729fcf; border: solid 1px rgba(114, 159, 207, 0.2); padding: 0px; } .listing_lines, .listing_code { margin-top: 0px; margin-bottom: 0px; padding: 0.5em; } .listing_lines { /* tango:sky blue 0.5 */ background: #a6c5e3; background: rgba(114, 159, 207, 0.2); /* tango:aluminium 6 */ color: #2e3436; } .listing_code { /* tango:sky blue 0 */ background: #e6f3ff; background: rgba(114, 159, 207, 0.1); } .listing_code .programlisting { /* override from previous */ border: none 0px; padding: 0px; background: none; } .listing_lines pre, .listing_code pre { margin: 0px; } @media screen { /* these have a as a first child, but since there are no parent selectors * we can't use that. */ a.footnote { position: relative; top: 0em ! important; } /* this is needed so that the local anchors are displayed below the naviagtion */ div.footnote a[name], div.refnamediv a[name], div.refsect1 a[name], div.refsect2 a[name], div.index a[name], div.glossary a[name], div.sect1 a[name] { display: inline-block; position: relative; top:-5em; } /* this seems to be a bug in the xsl style sheets when generating indexes */ div.index div.index { top: 0em; } /* make space for the fixed navigation bar and add space at the bottom so that * link targets appear somewhat close to top */ body { padding-top: 2.5em; padding-bottom: 500px; max-width: 60em; } p { max-width: 60em; } /* style and size the navigation bar */ table.navigation#top { position: fixed; background: #e2e2e2; border-bottom: solid 1px #babdb6; border-spacing: 5px; margin-top: 0; margin-bottom: 0; top: 0; left: 0; z-index: 10; } table.navigation#top td { padding-left: 6px; padding-right: 6px; } .navigation a, .navigation a:visited { /* tango:sky blue 3 */ color: #204a87; } .navigation a:hover { /* tango:sky blue 2 */ color: #3465a4; } td.shortcuts { /* tango:sky blue 2 */ color: #3465a4; font-size: 80%; white-space: nowrap; } td.shortcuts .dim { color: #babdb6; } .navigation .title { font-size: 80%; max-width: none; margin: 0px; font-weight: normal; } } @media screen and (min-width: 60em) { /* screen larger than 60em */ body { margin: auto; } } @media screen and (max-width: 60em) { /* screen less than 60em */ #nav_hierarchy { display: none; } #nav_interfaces { display: none; } #nav_prerequisites { display: none; } #nav_derived_interfaces { display: none; } #nav_implementations { display: none; } #nav_child_properties { display: none; } #nav_style_properties { display: none; } #nav_index { display: none; } #nav_glossary { display: none; } .gallery_image { display: none; } .property_flags { display: none; } .signal_flags { display: none; } .parameter_annotations { display: none; } .enum_member_annotations { display: none; } .struct_member_annotations { display: none; } .union_member_annotations { display: none; } /* now that a column is hidden, optimize space */ col.parameters_name { width: auto; } col.parameters_description { width: auto; } col.struct_members_name { width: auto; } col.struct_members_description { width: auto; } col.enum_members_name { width: auto; } col.enum_members_description { width: auto; } col.union_members_name { width: auto; } col.union_members_description { width: auto; } .listing_lines { display: none; } } @media print { table.navigation { visibility: collapse; display: none; } div.titlepage table.navigation { visibility: visible; display: table; background: #e2e2e2; border: solid 1px #babdb6; margin-top: 0; margin-bottom: 0; top: 0; left: 0; height: 3em; } } libvirt-glib-1.0.0/docs/libvirt-gobject/html/object-tree.html0000664000000000000000000001020313007136424021036 00000000000000 Object Hierarchy: Libvirt-gobject Reference Manual

Object Hierarchy

    GObject
    ├── GVirConnection
    ├── GVirDomainDevice
    │   ├── GVirDomainDisk
    │   ╰── GVirDomainInterface
    ├── GVirDomain
    ├── GVirDomainSnapshot
    ├── GVirInterface
    ├── GVirManager
    ├── GVirNetworkDHCPLease
    ├── GVirNetworkFilter
    ├── GVirNetwork
    ├── GVirNodeDevice
    ├── GVirSecret
    ├── GVirStoragePool
    ├── GVirStorageVol
    ╰── GIOStream
        ╰── GVirStream
    GBoxed
    ├── GVirDomainDiskStats
    ├── GVirDomainInfo
    ├── GVirDomainInterfaceStats
    ├── GVirNodeInfo
    ├── GVirStoragePoolInfo
    ╰── GVirStorageVolInfo
libvirt-glib-1.0.0/docs/libvirt-gobject/Libvirt-gobject-overrides.txt0000664000000000000000000000000013007136407022563 00000000000000libvirt-glib-1.0.0/docs/libvirt-gobject/Libvirt-gobject.types0000664000000000000000000000165713007136424021132 00000000000000gvir_connection_get_type gvir_connection_handle_get_type gvir_domain_device_get_type gvir_domain_disk_get_type gvir_domain_disk_stats_get_type gvir_domain_get_type gvir_domain_handle_get_type gvir_domain_info_get_type gvir_domain_interface_get_type gvir_domain_interface_stats_get_type gvir_domain_snapshot_get_type gvir_domain_snapshot_handle_get_type gvir_interface_get_type gvir_interface_handle_get_type gvir_manager_get_type gvir_network_dhcp_lease_get_type gvir_network_filter_get_type gvir_network_filter_handle_get_type gvir_network_get_type gvir_network_handle_get_type gvir_node_device_get_type gvir_node_device_handle_get_type gvir_node_info_get_type gvir_secret_get_type gvir_secret_handle_get_type gvir_storage_pool_get_type gvir_storage_pool_handle_get_type gvir_storage_pool_info_get_type gvir_storage_vol_get_type gvir_storage_vol_handle_get_type gvir_storage_vol_info_get_type gvir_stream_get_type gvir_stream_handle_get_type libvirt-glib-1.0.0/docs/libvirt-gobject/Makefile.in0000664000000000000000000005660613007136323017065 00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # -*- mode: makefile -*- #################################### # Everything below here is generic # #################################### VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = docs/libvirt-gobject ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/glibtests.m4 \ $(top_srcdir)/m4/intltool.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/manywarnings.m4 \ $(top_srcdir)/m4/virt-compile-warnings.m4 \ $(top_srcdir)/m4/virt-gettext.m4 $(top_srcdir)/m4/warnings.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/gtk-doc.make DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ COVERAGE_CFLAGS = @COVERAGE_CFLAGS@ COVERAGE_LDFLAGS = @COVERAGE_LDFLAGS@ COV_FLAGS = @COV_FLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ CYGWIN_EXTRA_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@ CYGWIN_EXTRA_LIBADD = @CYGWIN_EXTRA_LIBADD@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GIO2_CFLAGS = @GIO2_CFLAGS@ GIO2_LIBS = @GIO2_LIBS@ GLIB2_CFLAGS = @GLIB2_CFLAGS@ GLIB2_LIBS = @GLIB2_LIBS@ GLIB2_REQUIRED = @GLIB2_REQUIRED@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GOBJECT2_CFLAGS = @GOBJECT2_CFLAGS@ GOBJECT2_LIBS = @GOBJECT2_LIBS@ GREP = @GREP@ GTHREAD2_CFLAGS = @GTHREAD2_CFLAGS@ GTHREAD2_LIBS = @GTHREAD2_LIBS@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBVIRT_CFLAGS = @LIBVIRT_CFLAGS@ LIBVIRT_GLIB_MAJOR_VERSION = @LIBVIRT_GLIB_MAJOR_VERSION@ LIBVIRT_GLIB_MICRO_VERSION = @LIBVIRT_GLIB_MICRO_VERSION@ LIBVIRT_GLIB_MINOR_VERSION = @LIBVIRT_GLIB_MINOR_VERSION@ LIBVIRT_GLIB_VERSION = @LIBVIRT_GLIB_VERSION@ LIBVIRT_GLIB_VERSION_INFO = @LIBVIRT_GLIB_VERSION_INFO@ LIBVIRT_GLIB_VERSION_NUMBER = @LIBVIRT_GLIB_VERSION_NUMBER@ LIBVIRT_LIBS = @LIBVIRT_LIBS@ LIBVIRT_REQUIRED = @LIBVIRT_REQUIRED@ LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ LIBXML2_LIBS = @LIBXML2_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MINGW_EXTRA_LDFLAGS = @MINGW_EXTRA_LDFLAGS@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VAPIGEN = @VAPIGEN@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ installed_test_metadir = @installed_test_metadir@ installed_testdir = @installed_testdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ DOC_MODULE = Libvirt-gobject DOC_MAIN_SGML_FILE = $(DOC_MODULE)-docs.xml DOC_SOURCE_DIR = $(top_srcdir)/libvirt-gobject SCANGOBJ_OPTIONS = SCAN_OPTIONS = --rebuild-sections --rebuild-types MKDB_OPTIONS = --sgml-mode --output-format=xml MKTMPL_OPTIONS = MKHTML_OPTIONS = FIXXREF_OPTIONS = HFILE_GLOB = $(top_srcdir)/libvirt-gobject/*.h CFILE_GLOB = $(top_srcdir)/libvirt-gobject/*.c IGNORE_HFILES = HTML_IMAGES = content_files = expand_content_files = GTKDOC_CFLAGS = \ $(LIBVIRT_CFLAGS) \ $(GOBJECT2_CFLAGS) \ $(GIO2_CFLAGS) GTKDOC_LIBS = \ $(LIBVIRT_LIBS) \ $(GOBJECT2_LIBS) \ $(GIO2_LIBS) \ $(top_builddir)/libvirt-gobject/libvirt-gobject-1.0.la @GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_CC = $(CC) $(INCLUDES) $(GTKDOC_DEPS_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) @GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_CC = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(INCLUDES) $(GTKDOC_DEPS_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) @GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_LD = $(CC) $(GTKDOC_DEPS_LIBS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) @GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_LD = $(LIBTOOL) --tag=CC --mode=link $(CC) $(GTKDOC_DEPS_LIBS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) @GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_RUN = @GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_RUN = $(LIBTOOL) --mode=execute # We set GPATH here; this gives us semantics for GNU make # which are more like other make's VPATH, when it comes to # whether a source that is a target of one rule is then # searched for in VPATH/GPATH. # GPATH = $(srcdir) TARGET_DIR = $(HTML_DIR)/$(DOC_MODULE) SETUP_FILES = \ $(content_files) \ $(DOC_MAIN_SGML_FILE) \ $(DOC_MODULE)-sections.txt \ $(DOC_MODULE)-overrides.txt EXTRA_DIST = \ $(HTML_IMAGES) \ $(SETUP_FILES) DOC_STAMPS = setup-build.stamp scan-build.stamp sgml-build.stamp \ html-build.stamp pdf-build.stamp \ sgml.stamp html.stamp pdf.stamp SCANOBJ_FILES = \ $(DOC_MODULE).args \ $(DOC_MODULE).hierarchy \ $(DOC_MODULE).interfaces \ $(DOC_MODULE).prerequisites \ $(DOC_MODULE).signals REPORT_FILES = \ $(DOC_MODULE)-undocumented.txt \ $(DOC_MODULE)-undeclared.txt \ $(DOC_MODULE)-unused.txt CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) $(DOC_STAMPS) @ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_HTML_FALSE@HTML_BUILD_STAMP = @ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_HTML_TRUE@HTML_BUILD_STAMP = html-build.stamp @ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_PDF_FALSE@PDF_BUILD_STAMP = @ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_PDF_TRUE@PDF_BUILD_STAMP = pdf-build.stamp all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/gtk-doc.make $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/libvirt-gobject/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu docs/libvirt-gobject/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_srcdir)/gtk-doc.make $(am__empty): $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-hook check-am: all-am check: check-am all-am: Makefile all-local installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-local mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic distclean-local dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-data-local install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic \ maintainer-clean-local mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-local .MAKE: install-am install-strip .PHONY: all all-am all-local check check-am clean clean-generic \ clean-libtool clean-local cscopelist-am ctags-am dist-hook \ distclean distclean-generic distclean-libtool distclean-local \ distdir dvi dvi-am html html-am info info-am install \ install-am install-data install-data-am install-data-local \ install-dvi install-dvi-am install-exec install-exec-am \ install-html install-html-am install-info install-info-am \ install-man install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ maintainer-clean-local mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-local .PRECIOUS: Makefile @ENABLE_GTK_DOC_TRUE@all-local: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP) @ENABLE_GTK_DOC_FALSE@all-local: docs: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP) $(REPORT_FILES): sgml-build.stamp #### setup #### setup-build.stamp: -@if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \ echo ' DOC Preparing build'; \ files=`echo $(SETUP_FILES) $(expand_content_files) $(DOC_MODULE).types`; \ if test "x$$files" != "x" ; then \ for file in $$files ; do \ test -f $(abs_srcdir)/$$file && \ cp -pu $(abs_srcdir)/$$file $(abs_builddir)/ || true; \ done; \ fi; \ fi @touch setup-build.stamp #### scan #### scan-build.stamp: $(HFILE_GLOB) $(CFILE_GLOB) @echo ' DOC Scanning header files' @_source_dir='' ; \ for i in $(DOC_SOURCE_DIR) ; do \ _source_dir="$${_source_dir} --source-dir=$$i" ; \ done ; \ gtkdoc-scan --module=$(DOC_MODULE) --ignore-headers="$(IGNORE_HFILES)" $${_source_dir} $(SCAN_OPTIONS) $(EXTRA_HFILES) @if grep -l '^..*$$' $(DOC_MODULE).types > /dev/null 2>&1 ; then \ echo " DOC Introspecting gobjects"; \ scanobj_options=""; \ gtkdoc-scangobj 2>&1 --help | grep >/dev/null "\-\-verbose"; \ if test "$(?)" = "0"; then \ if test "x$(V)" = "x1"; then \ scanobj_options="--verbose"; \ fi; \ fi; \ CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" RUN="$(GTKDOC_RUN)" CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS)" LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)" \ gtkdoc-scangobj $(SCANGOBJ_OPTIONS) $$scanobj_options --module=$(DOC_MODULE); \ else \ for i in $(SCANOBJ_FILES) ; do \ test -f $$i || touch $$i ; \ done \ fi @touch scan-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt: scan-build.stamp @true #### xml #### sgml-build.stamp: setup-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt $(expand_content_files) @echo ' DOC Building XML' @_source_dir='' ; \ for i in $(DOC_SOURCE_DIR) ; do \ _source_dir="$${_source_dir} --source-dir=$$i" ; \ done ; \ gtkdoc-mkdb --module=$(DOC_MODULE) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $${_source_dir} $(MKDB_OPTIONS) @touch sgml-build.stamp sgml.stamp: sgml-build.stamp @true #### html #### html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) @echo ' DOC Building HTML' @rm -rf html @mkdir html @mkhtml_options=""; \ gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-verbose"; \ if test "$(?)" = "0"; then \ if test "x$(V)" = "x1"; then \ mkhtml_options="$$mkhtml_options --verbose"; \ fi; \ fi; \ gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-path"; \ if test "$(?)" = "0"; then \ mkhtml_options="$$mkhtml_options --path=\"$(abs_srcdir)\""; \ fi; \ cd html && gtkdoc-mkhtml $$mkhtml_options $(MKHTML_OPTIONS) $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE) -@test "x$(HTML_IMAGES)" = "x" || \ for file in $(HTML_IMAGES) ; do \ if test -f $(abs_srcdir)/$$file ; then \ cp $(abs_srcdir)/$$file $(abs_builddir)/html; \ fi; \ if test -f $(abs_builddir)/$$file ; then \ cp $(abs_builddir)/$$file $(abs_builddir)/html; \ fi; \ done; @echo ' DOC Fixing cross-references' @gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS) @touch html-build.stamp #### pdf #### pdf-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) @echo ' DOC Building PDF' @rm -f $(DOC_MODULE).pdf @mkpdf_options=""; \ gtkdoc-mkpdf 2>&1 --help | grep >/dev/null "\-\-verbose"; \ if test "$(?)" = "0"; then \ if test "x$(V)" = "x1"; then \ mkpdf_options="$$mkpdf_options --verbose"; \ fi; \ fi; \ if test "x$(HTML_IMAGES)" != "x"; then \ for img in $(HTML_IMAGES); do \ part=`dirname $$img`; \ echo $$mkpdf_options | grep >/dev/null "\-\-imgdir=$$part "; \ if test $$? != 0; then \ mkpdf_options="$$mkpdf_options --imgdir=$$part"; \ fi; \ done; \ fi; \ gtkdoc-mkpdf --path="$(abs_srcdir)" $$mkpdf_options $(DOC_MODULE) $(DOC_MAIN_SGML_FILE) $(MKPDF_OPTIONS) @touch pdf-build.stamp ############## clean-local: @rm -f *~ *.bak @rm -rf .libs distclean-local: @rm -rf xml html $(REPORT_FILES) $(DOC_MODULE).pdf \ $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt @if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \ rm -f $(SETUP_FILES) $(expand_content_files) $(DOC_MODULE).types; \ fi maintainer-clean-local: clean @rm -rf xml html install-data-local: @installfiles=`echo $(builddir)/html/*`; \ if test "$$installfiles" = '$(builddir)/html/*'; \ then echo 1>&2 'Nothing to install' ; \ else \ if test -n "$(DOC_MODULE_VERSION)"; then \ installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \ else \ installdir="$(DESTDIR)$(TARGET_DIR)"; \ fi; \ $(mkinstalldirs) $${installdir} ; \ for i in $$installfiles; do \ echo ' $(INSTALL_DATA) '$$i ; \ $(INSTALL_DATA) $$i $${installdir}; \ done; \ if test -n "$(DOC_MODULE_VERSION)"; then \ mv -f $${installdir}/$(DOC_MODULE).devhelp2 \ $${installdir}/$(DOC_MODULE)-$(DOC_MODULE_VERSION).devhelp2; \ fi; \ $(GTKDOC_REBASE) --relative --dest-dir=$(DESTDIR) --html-dir=$${installdir}; \ fi uninstall-local: @if test -n "$(DOC_MODULE_VERSION)"; then \ installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \ else \ installdir="$(DESTDIR)$(TARGET_DIR)"; \ fi; \ rm -rf $${installdir} # # Require gtk-doc when making dist # @ENABLE_GTK_DOC_TRUE@dist-check-gtkdoc: @ENABLE_GTK_DOC_FALSE@dist-check-gtkdoc: @ENABLE_GTK_DOC_FALSE@ @echo "*** gtk-doc must be installed and enabled in order to make dist" @ENABLE_GTK_DOC_FALSE@ @false dist-hook: dist-check-gtkdoc dist-hook-local @mkdir $(distdir)/html @cp ./html/* $(distdir)/html @-cp ./$(DOC_MODULE).pdf $(distdir)/ @-cp ./$(DOC_MODULE).types $(distdir)/ @-cp ./$(DOC_MODULE)-sections.txt $(distdir)/ @cd $(distdir) && rm -f $(DISTCLEANFILES) @$(GTKDOC_REBASE) --online --relative --html-dir=$(distdir)/html .PHONY : dist-hook-local docs # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libvirt-glib-1.0.0/docs/libvirt-gobject/Libvirt-gobject-docs.xml0000664000000000000000000000271013004340477021505 00000000000000 ]> Libvirt-gobject Reference Manual Libvirt-gobject Object Hierarchy API Index libvirt-glib-1.0.0/docs/libvirt-gobject/Libvirt-gobject-sections.txt0000664000000000000000000003217113007136424022425 00000000000000
libvirt-gobject-compat gvir_mutex_free gvir_mutex_new g_mutex_new g_mutex_free
libvirt-gobject-connection GVirConnection gvir_connection_new gvir_connection_open gvir_connection_open_read_only gvir_connection_open_async gvir_connection_open_finish gvir_connection_open_read_only_async gvir_connection_open_read_only_finish gvir_connection_is_open gvir_connection_is_read_only gvir_connection_close gvir_connection_fetch_domains gvir_connection_fetch_domains_async gvir_connection_fetch_domains_finish gvir_connection_get_uri gvir_connection_get_hypervisor_name gvir_connection_get_version gvir_connection_get_domains gvir_connection_get_domain gvir_connection_find_domain_by_id gvir_connection_find_domain_by_name gvir_connection_create_domain gvir_connection_start_domain gvir_connection_fetch_interfaces gvir_connection_fetch_interfaces_async gvir_connection_fetch_interfaces_finish gvir_connection_get_interfaces gvir_connection_get_interface gvir_connection_find_interface_by_mac gvir_connection_fetch_networks gvir_connection_fetch_networks_async gvir_connection_fetch_networks_finish gvir_connection_get_networks gvir_connection_get_network gvir_connection_find_network_by_name gvir_connection_get_network_filters gvir_connection_get_network_filter gvir_connection_find_network_filter_by_name gvir_connection_get_node_devices gvir_connection_get_node_device gvir_connection_get_secrets gvir_connection_get_secret gvir_connection_fetch_storage_pools gvir_connection_fetch_storage_pools_async gvir_connection_fetch_storage_pools_finish gvir_connection_get_storage_pools gvir_connection_get_storage_pool gvir_connection_find_storage_pool_by_name gvir_connection_create_storage_pool gvir_connection_get_stream gvir_connection_get_node_info gvir_connection_get_capabilities gvir_connection_get_capabilities_async gvir_connection_get_capabilities_finish gvir_connection_restore_domain_from_file gvir_connection_restore_domain_from_file_async gvir_connection_restore_domain_from_file_finish GVIR_CONNECTION GVIR_CONNECTION_CLASS GVIR_CONNECTION_GET_CLASS GVIR_IS_CONNECTION GVIR_IS_CONNECTION_CLASS GVIR_TYPE_CONNECTION GVIR_TYPE_CONNECTION_HANDLE GVirConnection GVirConnectionClass GVirConnectionPrivate GVirNodeInfo gvir_connection_get_type gvir_connection_handle_get_type gvir_node_info_get_type
libvirt-gobject-domain GVirDomain GVirDomainState GVirDomainStartFlags GVirDomainDeleteFlags GVirDomainXMLFlags GVirDomainShutdownFlags GVirDomainSnapshotCreateFlags GVirDomainUpdateDeviceFlags GVirDomainRebootFlags GVirDomainSnapshotListFlags gvir_domain_get_name gvir_domain_get_uuid gvir_domain_get_id gvir_domain_start gvir_domain_start_async gvir_domain_start_finish gvir_domain_resume gvir_domain_resume_async gvir_domain_resume_finish gvir_domain_wakeup gvir_domain_wakeup_async gvir_domain_wakeup_finish gvir_domain_stop gvir_domain_delete gvir_domain_shutdown gvir_domain_reboot gvir_domain_save_to_file gvir_domain_save_to_file_async gvir_domain_save_to_file_finish gvir_domain_get_info gvir_domain_get_info_async gvir_domain_get_info_finish gvir_domain_get_config gvir_domain_set_config gvir_domain_screenshot gvir_domain_open_console gvir_domain_open_graphics gvir_domain_open_graphics_fd gvir_domain_suspend gvir_domain_save gvir_domain_save_async gvir_domain_save_finish gvir_domain_get_persistent gvir_domain_get_saved gvir_domain_get_devices gvir_domain_update_device gvir_domain_create_snapshot gvir_domain_create_snapshot_async gvir_domain_create_snapshot_finish gvir_domain_fetch_snapshots gvir_domain_get_snapshots gvir_domain_fetch_snapshots_async gvir_domain_fetch_snapshots_finish gvir_domain_get_has_current_snapshot gvir_domain_set_time gvir_domain_set_time_async gvir_domain_set_time_finish GVIR_DOMAIN GVIR_DOMAIN_CLASS GVIR_DOMAIN_GET_CLASS GVIR_IS_DOMAIN GVIR_IS_DOMAIN_CLASS GVIR_TYPE_DOMAIN GVIR_TYPE_DOMAIN_HANDLE GVIR_TYPE_DOMAIN_INFO GVirDomain GVirDomainClass GVirDomainInfo GVirDomainPrivate gvir_domain_get_type gvir_domain_handle_get_type gvir_domain_info_get_type
libvirt-gobject-domain-device GVirDomainDevice gvir_domain_device_get_domain gvir_domain_device_get_config GVIR_DOMAIN_DEVICE GVIR_DOMAIN_DEVICE_CLASS GVIR_DOMAIN_DEVICE_GET_CLASS GVIR_IS_DOMAIN_DEVICE GVIR_IS_DOMAIN_DEVICE_CLASS GVIR_TYPE_DOMAIN_DEVICE GVirDomainDevice GVirDomainDeviceClass GVirDomainDevicePrivate gvir_domain_device_get_type
libvirt-gobject-domain-device-private gvir_domain_device_get_domain_handle
libvirt-gobject-domain-disk GVirDomainDisk gvir_domain_disk_get_stats gvir_domain_disk_resize GVIR_DOMAIN_DISK GVIR_DOMAIN_DISK_CLASS GVIR_DOMAIN_DISK_GET_CLASS GVIR_IS_DOMAIN_DISK GVIR_IS_DOMAIN_DISK_CLASS GVIR_TYPE_DOMAIN_DISK GVIR_TYPE_DOMAIN_DISK_STATS GVirDomainDisk GVirDomainDiskClass GVirDomainDiskPrivate GVirDomainDiskStats gvir_domain_disk_get_type gvir_domain_disk_stats_get_type
libvirt-gobject-domain-interface GVirDomainInterface gvir_domain_interface_get_stats GVIR_DOMAIN_INTERFACE GVIR_DOMAIN_INTERFACE_CLASS GVIR_DOMAIN_INTERFACE_GET_CLASS GVIR_IS_DOMAIN_INTERFACE GVIR_IS_DOMAIN_INTERFACE_CLASS GVIR_TYPE_DOMAIN_INTERFACE GVIR_TYPE_DOMAIN_INTERFACE_STATS GVirDomainInterface GVirDomainInterfaceClass GVirDomainInterfacePrivate GVirDomainInterfaceStats gvir_domain_interface_get_type gvir_domain_interface_stats_get_type
libvirt-gobject-domain-snapshot GVirDomainSnapshot GVirDomainSnapshotDeleteFlags GVirDomainSnapshotRevertFlags gvir_domain_snapshot_get_name gvir_domain_snapshot_get_config gvir_domain_snapshot_delete gvir_domain_snapshot_delete_async gvir_domain_snapshot_delete_finish gvir_domain_snapshot_get_is_current gvir_domain_snapshot_revert_to gvir_domain_snapshot_revert_to_async gvir_domain_snapshot_revert_to_finish gvir_domain_snapshot_set_config GVIR_DOMAIN_SNAPSHOT GVIR_DOMAIN_SNAPSHOT_CLASS GVIR_DOMAIN_SNAPSHOT_GET_CLASS GVIR_IS_DOMAIN_SNAPSHOT GVIR_IS_DOMAIN_SNAPSHOT_CLASS GVIR_TYPE_DOMAIN_SNAPSHOT GVIR_TYPE_DOMAIN_SNAPSHOT_HANDLE GVirDomainSnapshot GVirDomainSnapshotClass GVirDomainSnapshotPrivate gvir_domain_snapshot_get_type gvir_domain_snapshot_handle_get_type
libvirt-gobject-input-stream GVirInputStream GVIR_INPUT_STREAM GVIR_INPUT_STREAM_CLASS GVIR_INPUT_STREAM_GET_CLASS GVIR_IS_INPUT_STREAM GVIR_IS_INPUT_STREAM_CLASS GVIR_TYPE_INPUT_STREAM GVirInputStream GVirInputStreamClass GVirInputStreamPrivate
libvirt-gobject-interface GVirInterface gvir_interface_get_name gvir_interface_get_mac gvir_interface_get_config GVIR_INTERFACE GVIR_INTERFACE_CLASS GVIR_INTERFACE_GET_CLASS GVIR_IS_INTERFACE GVIR_IS_INTERFACE_CLASS GVIR_TYPE_INTERFACE GVIR_TYPE_INTERFACE_HANDLE GVirInterface GVirInterfaceClass GVirInterfacePrivate gvir_interface_get_type gvir_interface_handle_get_type
libvirt-gobject-main gvir_init_object gvir_init_object_check
libvirt-gobject-manager GVirManager gvir_manager_new gvir_manager_add_connection gvir_manager_remove_connection gvir_manager_get_connections gvir_manager_find_connection_by_uri GVIR_IS_MANAGER GVIR_IS_MANAGER_CLASS GVIR_MANAGER GVIR_MANAGER_CLASS GVIR_MANAGER_GET_CLASS GVIR_TYPE_MANAGER GVirManager GVirManagerClass GVirManagerPrivate gvir_manager_get_type
libvirt-gobject-network GVirNetwork gvir_network_get_name gvir_network_get_uuid gvir_network_get_config gvir_network_get_dhcp_leases GVIR_IS_NETWORK GVIR_IS_NETWORK_CLASS GVIR_NETWORK GVIR_NETWORK_CLASS GVIR_NETWORK_GET_CLASS GVIR_TYPE_NETWORK GVIR_TYPE_NETWORK_HANDLE GVirNetwork GVirNetworkClass GVirNetworkPrivate gvir_network_get_type gvir_network_handle_get_type
libvirt-gobject-network-dhcp-lease GVirNetworkDHCPLease GVirIPAddrType gvir_network_dhcp_lease_get_iface gvir_network_dhcp_lease_get_expiry_time gvir_network_dhcp_lease_get_ip_type gvir_network_dhcp_lease_get_mac gvir_network_dhcp_lease_get_iaid gvir_network_dhcp_lease_get_ip gvir_network_dhcp_lease_get_prefix gvir_network_dhcp_lease_get_hostname gvir_network_dhcp_lease_get_client_id GVIR_IS_NETWORK_DHCP_LEASE GVIR_IS_NETWORK_DHCP_LEASE_CLASS GVIR_NETWORK_DHCP_LEASE GVIR_NETWORK_DHCP_LEASE_CLASS GVIR_NETWORK_DHCP_LEASE_GET_CLASS GVIR_TYPE_NETWORK_DHCP_LEASE GVirNetworkDHCPLease GVirNetworkDHCPLeaseClass GVirNetworkDHCPLeasePrivate gvir_network_dhcp_lease_get_type
libvirt-gobject-network-dhcp-lease-private gvir_network_dhcp_lease_new
libvirt-gobject-network-filter GVirNetworkFilter gvir_network_filter_get_name gvir_network_filter_get_uuid gvir_network_filter_get_config GVIR_IS_NETWORK_FILTER GVIR_IS_NETWORK_FILTER_CLASS GVIR_NETWORK_FILTER GVIR_NETWORK_FILTER_CLASS GVIR_NETWORK_FILTER_GET_CLASS GVIR_TYPE_NETWORK_FILTER GVIR_TYPE_NETWORK_FILTER_HANDLE GVirNetworkFilter GVirNetworkFilterClass GVirNetworkFilterPrivate gvir_network_filter_get_type gvir_network_filter_handle_get_type
libvirt-gobject-node-device GVirNodeDevice gvir_node_device_get_name gvir_node_device_get_config GVIR_IS_NODE_DEVICE GVIR_IS_NODE_DEVICE_CLASS GVIR_NODE_DEVICE GVIR_NODE_DEVICE_CLASS GVIR_NODE_DEVICE_GET_CLASS GVIR_TYPE_NODE_DEVICE GVIR_TYPE_NODE_DEVICE_HANDLE GVirNodeDevice GVirNodeDeviceClass GVirNodeDevicePrivate gvir_node_device_get_type gvir_node_device_handle_get_type
libvirt-gobject-output-stream GVirOutputStream GVIR_IS_OUTPUT_STREAM GVIR_IS_OUTPUT_STREAM_CLASS GVIR_OUTPUT_STREAM GVIR_OUTPUT_STREAM_CLASS GVIR_OUTPUT_STREAM_GET_CLASS GVIR_TYPE_OUTPUT_STREAM GVirOutputStream GVirOutputStreamClass GVirOutputStreamPrivate
libvirt-gobject-secret GVirSecret gvir_secret_get_name gvir_secret_get_uuid gvir_secret_get_config GVIR_IS_SECRET GVIR_IS_SECRET_CLASS GVIR_SECRET GVIR_SECRET_CLASS GVIR_SECRET_GET_CLASS GVIR_TYPE_SECRET GVIR_TYPE_SECRET_HANDLE GVirSecret GVirSecretClass GVirSecretPrivate gvir_secret_get_type gvir_secret_handle_get_type
libvirt-gobject-storage-pool GVirStoragePool GVirStoragePoolState gvir_storage_pool_get_name gvir_storage_pool_get_uuid gvir_storage_pool_get_active gvir_storage_pool_get_persistent gvir_storage_pool_get_config gvir_storage_pool_get_info gvir_storage_pool_refresh gvir_storage_pool_refresh_async gvir_storage_pool_refresh_finish gvir_storage_pool_get_volumes gvir_storage_pool_get_volume gvir_storage_pool_create_volume gvir_storage_pool_build gvir_storage_pool_build_async gvir_storage_pool_build_finish gvir_storage_pool_undefine gvir_storage_pool_undefine_async gvir_storage_pool_undefine_finish gvir_storage_pool_start gvir_storage_pool_start_async gvir_storage_pool_start_finish gvir_storage_pool_stop gvir_storage_pool_stop_async gvir_storage_pool_stop_finish gvir_storage_pool_delete gvir_storage_pool_delete_async gvir_storage_pool_delete_finish gvir_storage_pool_get_autostart gvir_storage_pool_set_autostart GVIR_IS_STORAGE_POOL GVIR_IS_STORAGE_POOL_CLASS GVIR_STORAGE_POOL GVIR_STORAGE_POOL_CLASS GVIR_STORAGE_POOL_GET_CLASS GVIR_TYPE_STORAGE_POOL GVIR_TYPE_STORAGE_POOL_HANDLE GVIR_TYPE_STORAGE_POOL_INFO GVirStoragePool GVirStoragePoolClass GVirStoragePoolInfo GVirStoragePoolPrivate gvir_storage_pool_get_type gvir_storage_pool_handle_get_type gvir_storage_pool_info_get_type
libvirt-gobject-storage-vol GVirStorageVol GVirStorageVolType GVirStorageVolResizeFlags gvir_storage_vol_get_name gvir_storage_vol_get_path gvir_storage_vol_delete gvir_storage_vol_get_config gvir_storage_vol_get_info gvir_storage_vol_resize gvir_storage_vol_download gvir_storage_vol_upload GVIR_IS_STORAGE_VOL GVIR_IS_STORAGE_VOL_CLASS GVIR_STORAGE_VOL GVIR_STORAGE_VOL_CLASS GVIR_STORAGE_VOL_GET_CLASS GVIR_TYPE_STORAGE_VOL GVIR_TYPE_STORAGE_VOL_HANDLE GVIR_TYPE_STORAGE_VOL_INFO GVirStorageVol GVirStorageVolClass GVirStorageVolInfo GVirStorageVolPrivate gvir_storage_vol_get_type gvir_storage_vol_handle_get_type gvir_storage_vol_info_get_type
libvirt-gobject-stream GVirStream GVirStreamSinkFunc GVirStreamSourceFunc GVirStreamIOCondition GVirStreamIOFunc gvir_stream_add_watch gvir_stream_add_watch_full gvir_stream_receive_all gvir_stream_receive gvir_stream_send_all gvir_stream_send GVIR_IS_STREAM GVIR_IS_STREAM_CLASS GVIR_STREAM GVIR_STREAM_CLASS GVIR_STREAM_GET_CLASS GVIR_TYPE_STREAM GVIR_TYPE_STREAM_HANDLE GVirStream GVirStreamClass GVirStreamPrivate gvir_stream_get_type gvir_stream_handle_get_type
libvirt-glib-1.0.0/build-aux/0000775000000000000000000000000013007136424012741 500000000000000libvirt-glib-1.0.0/build-aux/depcomp0000755000000000000000000005601613007136323014242 00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2013-05-30.07; # UTC # Copyright (C) 1999-2014 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by 'PROGRAMS ARGS'. object Object file output by 'PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputting dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac # Get the directory component of the given path, and save it in the # global variables '$dir'. Note that this directory component will # be either empty or ending with a '/' character. This is deliberate. set_dir_from () { case $1 in */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; *) dir=;; esac } # Get the suffix-stripped basename of the given path, and save it the # global variable '$base'. set_base_from () { base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` } # If no dependency file was actually created by the compiler invocation, # we still have to create a dummy depfile, to avoid errors with the # Makefile "include basename.Plo" scheme. make_dummy_depfile () { echo "#dummy" > "$depfile" } # Factor out some common post-processing of the generated depfile. # Requires the auxiliary global variable '$tmpdepfile' to be set. aix_post_process_depfile () { # If the compiler actually managed to produce a dependency file, # post-process it. if test -f "$tmpdepfile"; then # Each line is of the form 'foo.o: dependency.h'. # Do two passes, one to just change these to # $object: dependency.h # and one to simply output # dependency.h: # which is needed to avoid the deleted-header problem. { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" } > "$depfile" rm -f "$tmpdepfile" else make_dummy_depfile fi } # A tabulation character. tab=' ' # A newline character. nl=' ' # Character ranges might be problematic outside the C locale. # These definitions help. upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ lower=abcdefghijklmnopqrstuvwxyz digits=0123456789 alpha=${upper}${lower} if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Avoid interferences from the environment. gccflag= dashmflag= # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi cygpath_u="cygpath -u -f -" if test "$depmode" = msvcmsys; then # This is just like msvisualcpp but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvisualcpp fi if test "$depmode" = msvc7msys; then # This is just like msvc7 but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvc7 fi if test "$depmode" = xlc; then # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information. gccflag=-qmakedep=gcc,-MF depmode=gcc fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers. ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler. ## (see the conditional assignment to $gccflag above). ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). Also, it might not be ## supported by the other compilers which use the 'gcc' depmode. ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # The second -e expression handles DOS-style file names with drive # letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the "deleted header file" problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. ## Some versions of gcc put a space before the ':'. On the theory ## that the space means something, we add a space to the output as ## well. hp depmode also adds that space, but also prefixes the VPATH ## to the object. Take care to not repeat it in the output. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like '#:fec' to the end of the # dependency line. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \ | tr "$nl" ' ' >> "$depfile" echo >> "$depfile" # The second pass generates a dummy entry for each header file. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> "$depfile" else make_dummy_depfile fi rm -f "$tmpdepfile" ;; xlc) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts '$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then tmpdepfile1=$dir$base.u tmpdepfile2=$base.u tmpdepfile3=$dir.libs/$base.u "$@" -Wc,-M else tmpdepfile1=$dir$base.u tmpdepfile2=$dir$base.u tmpdepfile3=$dir$base.u "$@" -M fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done aix_post_process_depfile ;; tcc) # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26 # FIXME: That version still under development at the moment of writing. # Make that this statement remains true also for stable, released # versions. # It will wrap lines (doesn't matter whether long or short) with a # trailing '\', as in: # # foo.o : \ # foo.c \ # foo.h \ # # It will put a trailing '\' even on the last line, and will use leading # spaces rather than leading tabs (at least since its commit 0394caf7 # "Emit spaces for -MD"). "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'. # We have to change lines of the first kind to '$object: \'. sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile" # And for each line of the second kind, we have to emit a 'dep.h:' # dummy dependency, to avoid the deleted-header problem. sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile" rm -f "$tmpdepfile" ;; ## The order of this option in the case statement is important, since the ## shell code in configure will try each of these formats in the order ## listed in this file. A plain '-MD' option would be understood by many ## compilers, so we must ensure this comes after the gcc and icc options. pgcc) # Portland's C compiler understands '-MD'. # Will always output deps to 'file.d' where file is the root name of the # source file under compilation, even if file resides in a subdirectory. # The object file name does not affect the name of the '.d' file. # pgcc 10.2 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using '\' : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... set_dir_from "$object" # Use the source, not the object, to determine the base name, since # that's sadly what pgcc will do too. set_base_from "$source" tmpdepfile=$base.d # For projects that build the same source file twice into different object # files, the pgcc approach of using the *source* file root name can cause # problems in parallel builds. Use a locking strategy to avoid stomping on # the same $tmpdepfile. lockdir=$base.d-lock trap " echo '$0: caught signal, cleaning up...' >&2 rmdir '$lockdir' exit 1 " 1 2 13 15 numtries=100 i=$numtries while test $i -gt 0; do # mkdir is a portable test-and-set. if mkdir "$lockdir" 2>/dev/null; then # This process acquired the lock. "$@" -MD stat=$? # Release the lock. rmdir "$lockdir" break else # If the lock is being held by a different process, wait # until the winning process is done or we timeout. while test -d "$lockdir" && test $i -gt 0; do sleep 1 i=`expr $i - 1` done fi i=`expr $i - 1` done trap - 1 2 13 15 if test $i -le 0; then echo "$0: failed to acquire lock after $numtries attempts" >&2 echo "$0: check lockdir '$lockdir'" >&2 exit 1 fi if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # 'foo.d', which lands next to the object file, wherever that # happens to be. # Much of this is similar to the tru64 case; see comments there. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile" # Add 'dependent.h:' lines. sed -ne '2,${ s/^ *// s/ \\*$// s/$/:/ p }' "$tmpdepfile" >> "$depfile" else make_dummy_depfile fi rm -f "$tmpdepfile" "$tmpdepfile2" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in 'foo.d' instead, so we check for that too. # Subdirectories are respected. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then # Libtool generates 2 separate objects for the 2 libraries. These # two compilations output dependencies in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir$base.o.d # libtool 1.5 tmpdepfile2=$dir.libs/$base.o.d # Likewise. tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d "$@" -MD fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done # Same post-processing that is required for AIX mode. aix_post_process_depfile ;; msvc7) if test "$libtool" = yes; then showIncludes=-Wc,-showIncludes else showIncludes=-showIncludes fi "$@" $showIncludes > "$tmpdepfile" stat=$? grep -v '^Note: including file: ' "$tmpdepfile" if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # The first sed program below extracts the file names and escapes # backslashes for cygpath. The second sed program outputs the file # name when reading, but also accumulates all include files in the # hold buffer in order to output them again at the end. This only # works with sed implementations that can handle large buffers. sed < "$tmpdepfile" -n ' /^Note: including file: *\(.*\)/ { s//\1/ s/\\/\\\\/g p }' | $cygpath_u | sort -u | sed -n ' s/ /\\ /g s/\(.*\)/'"$tab"'\1 \\/p s/.\(.*\) \\/\1:/ H $ { s/.*/'"$tab"'/ G p }' >> "$depfile" echo >> "$depfile" # make sure the fragment doesn't end with a backslash rm -f "$tmpdepfile" ;; msvc7msys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove '-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for ':' # in the target name. This is to cope with DOS-style filenames: # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. "$@" $dashmflag | sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this sed invocation # correctly. Breaking it into two sed invocations is a workaround. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # X makedepend shift cleared=no eat=no for arg do case $cleared in no) set ""; shift cleared=yes ;; esac if test $eat = yes; then eat=no continue fi case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -arch) eat=yes ;; -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix=`echo "$object" | sed 's/^.*\././'` touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" # makedepend may prepend the VPATH from the source file name to the object. # No need to regex-escape $object, excess matching of '.' is harmless. sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process the last invocation # correctly. Breaking it into two sed invocations is a workaround. sed '1,2d' "$tmpdepfile" \ | tr ' ' "$nl" \ | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove '-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E \ | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi IFS=" " for arg do case "$arg" in -o) shift ;; $object) shift ;; "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E 2>/dev/null | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile" echo "$tab" >> "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; msvcmsys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: libvirt-glib-1.0.0/build-aux/ltmain.sh0000644000000000000000000117077113007136317014516 00000000000000#! /bin/sh ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in ## by inline-source v2014-01-03.01 # libtool (GNU libtool) 2.4.6 # Provide generalized library-building support services. # Written by Gordon Matzigkeit , 1996 # Copyright (C) 1996-2015 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # GNU Libtool is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . PROGRAM=libtool PACKAGE=libtool VERSION=2.4.6 package_revision=2.4.6 ## ------ ## ## Usage. ## ## ------ ## # Run './libtool --help' for help with using this script from the # command line. ## ------------------------------- ## ## User overridable command paths. ## ## ------------------------------- ## # After configure completes, it has a better idea of some of the # shell tools we need than the defaults used by the functions shared # with bootstrap, so set those here where they can still be over- # ridden by the user, but otherwise take precedence. : ${AUTOCONF="autoconf"} : ${AUTOMAKE="automake"} ## -------------------------- ## ## Source external libraries. ## ## -------------------------- ## # Much of our low-level functionality needs to be sourced from external # libraries, which are installed to $pkgauxdir. # Set a version string for this script. scriptversion=2015-01-20.17; # UTC # General shell script boiler plate, and helper functions. # Written by Gary V. Vaughan, 2004 # Copyright (C) 2004-2015 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # As a special exception to the GNU General Public License, if you distribute # this file as part of a program or library that is built using GNU Libtool, # you may include this file under the same distribution terms that you use # for the rest of that program. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNES FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # Please report bugs or propose patches to gary@gnu.org. ## ------ ## ## Usage. ## ## ------ ## # Evaluate this file near the top of your script to gain access to # the functions and variables defined here: # # . `echo "$0" | ${SED-sed} 's|[^/]*$||'`/build-aux/funclib.sh # # If you need to override any of the default environment variable # settings, do that before evaluating this file. ## -------------------- ## ## Shell normalisation. ## ## -------------------- ## # Some shells need a little help to be as Bourne compatible as possible. # Before doing anything else, make sure all that help has been provided! DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # NLS nuisances: We save the old values in case they are required later. _G_user_locale= _G_safe_locale= for _G_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test set = \"\${$_G_var+set}\"; then save_$_G_var=\$$_G_var $_G_var=C export $_G_var _G_user_locale=\"$_G_var=\\\$save_\$_G_var; \$_G_user_locale\" _G_safe_locale=\"$_G_var=C; \$_G_safe_locale\" fi" done # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Make sure IFS has a sensible default sp=' ' nl=' ' IFS="$sp $nl" # There are apparently some retarded systems that use ';' as a PATH separator! if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi ## ------------------------- ## ## Locate command utilities. ## ## ------------------------- ## # func_executable_p FILE # ---------------------- # Check that FILE is an executable regular file. func_executable_p () { test -f "$1" && test -x "$1" } # func_path_progs PROGS_LIST CHECK_FUNC [PATH] # -------------------------------------------- # Search for either a program that responds to --version with output # containing "GNU", or else returned by CHECK_FUNC otherwise, by # trying all the directories in PATH with each of the elements of # PROGS_LIST. # # CHECK_FUNC should accept the path to a candidate program, and # set $func_check_prog_result if it truncates its output less than # $_G_path_prog_max characters. func_path_progs () { _G_progs_list=$1 _G_check_func=$2 _G_PATH=${3-"$PATH"} _G_path_prog_max=0 _G_path_prog_found=false _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:} for _G_dir in $_G_PATH; do IFS=$_G_save_IFS test -z "$_G_dir" && _G_dir=. for _G_prog_name in $_G_progs_list; do for _exeext in '' .EXE; do _G_path_prog=$_G_dir/$_G_prog_name$_exeext func_executable_p "$_G_path_prog" || continue case `"$_G_path_prog" --version 2>&1` in *GNU*) func_path_progs_result=$_G_path_prog _G_path_prog_found=: ;; *) $_G_check_func $_G_path_prog func_path_progs_result=$func_check_prog_result ;; esac $_G_path_prog_found && break 3 done done done IFS=$_G_save_IFS test -z "$func_path_progs_result" && { echo "no acceptable sed could be found in \$PATH" >&2 exit 1 } } # We want to be able to use the functions in this file before configure # has figured out where the best binaries are kept, which means we have # to search for them ourselves - except when the results are already set # where we skip the searches. # Unless the user overrides by setting SED, search the path for either GNU # sed, or the sed that truncates its output the least. test -z "$SED" && { _G_sed_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for _G_i in 1 2 3 4 5 6 7; do _G_sed_script=$_G_sed_script$nl$_G_sed_script done echo "$_G_sed_script" 2>/dev/null | sed 99q >conftest.sed _G_sed_script= func_check_prog_sed () { _G_path_prog=$1 _G_count=0 printf 0123456789 >conftest.in while : do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo '' >> conftest.nl "$_G_path_prog" -f conftest.sed conftest.out 2>/dev/null || break diff conftest.out conftest.nl >/dev/null 2>&1 || break _G_count=`expr $_G_count + 1` if test "$_G_count" -gt "$_G_path_prog_max"; then # Best one so far, save it but keep looking for a better one func_check_prog_result=$_G_path_prog _G_path_prog_max=$_G_count fi # 10*(2^10) chars as input seems more than enough test 10 -lt "$_G_count" && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out } func_path_progs "sed gsed" func_check_prog_sed $PATH:/usr/xpg4/bin rm -f conftest.sed SED=$func_path_progs_result } # Unless the user overrides by setting GREP, search the path for either GNU # grep, or the grep that truncates its output the least. test -z "$GREP" && { func_check_prog_grep () { _G_path_prog=$1 _G_count=0 _G_path_prog_max=0 printf 0123456789 >conftest.in while : do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo 'GREP' >> conftest.nl "$_G_path_prog" -e 'GREP$' -e '-(cannot match)-' conftest.out 2>/dev/null || break diff conftest.out conftest.nl >/dev/null 2>&1 || break _G_count=`expr $_G_count + 1` if test "$_G_count" -gt "$_G_path_prog_max"; then # Best one so far, save it but keep looking for a better one func_check_prog_result=$_G_path_prog _G_path_prog_max=$_G_count fi # 10*(2^10) chars as input seems more than enough test 10 -lt "$_G_count" && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out } func_path_progs "grep ggrep" func_check_prog_grep $PATH:/usr/xpg4/bin GREP=$func_path_progs_result } ## ------------------------------- ## ## User overridable command paths. ## ## ------------------------------- ## # All uppercase variable names are used for environment variables. These # variables can be overridden by the user before calling a script that # uses them if a suitable command of that name is not already available # in the command search PATH. : ${CP="cp -f"} : ${ECHO="printf %s\n"} : ${EGREP="$GREP -E"} : ${FGREP="$GREP -F"} : ${LN_S="ln -s"} : ${MAKE="make"} : ${MKDIR="mkdir"} : ${MV="mv -f"} : ${RM="rm -f"} : ${SHELL="${CONFIG_SHELL-/bin/sh}"} ## -------------------- ## ## Useful sed snippets. ## ## -------------------- ## sed_dirname='s|/[^/]*$||' sed_basename='s|^.*/||' # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='s|\([`"$\\]\)|\\\1|g' # Same as above, but do not quote variable references. sed_double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution that turns a string into a regex matching for the # string literally. sed_make_literal_regex='s|[].[^$\\*\/]|\\&|g' # Sed substitution that converts a w32 file name or path # that contains forward slashes, into one that contains # (escaped) backslashes. A very naive implementation. sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' # Re-'\' parameter expansions in output of sed_double_quote_subst that # were '\'-ed in input to the same. If an odd number of '\' preceded a # '$' in input to sed_double_quote_subst, that '$' was protected from # expansion. Since each input '\' is now two '\'s, look for any number # of runs of four '\'s followed by two '\'s and then a '$'. '\' that '$'. _G_bs='\\' _G_bs2='\\\\' _G_bs4='\\\\\\\\' _G_dollar='\$' sed_double_backslash="\ s/$_G_bs4/&\\ /g s/^$_G_bs2$_G_dollar/$_G_bs&/ s/\\([^$_G_bs]\\)$_G_bs2$_G_dollar/\\1$_G_bs2$_G_bs$_G_dollar/g s/\n//g" ## ----------------- ## ## Global variables. ## ## ----------------- ## # Except for the global variables explicitly listed below, the following # functions in the '^func_' namespace, and the '^require_' namespace # variables initialised in the 'Resource management' section, sourcing # this file will not pollute your global namespace with anything # else. There's no portable way to scope variables in Bourne shell # though, so actually running these functions will sometimes place # results into a variable named after the function, and often use # temporary variables in the '^_G_' namespace. If you are careful to # avoid using those namespaces casually in your sourcing script, things # should continue to work as you expect. And, of course, you can freely # overwrite any of the functions or variables defined here before # calling anything to customize them. EXIT_SUCCESS=0 EXIT_FAILURE=1 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. # Allow overriding, eg assuming that you follow the convention of # putting '$debug_cmd' at the start of all your functions, you can get # bash to show function call trace with: # # debug_cmd='eval echo "${FUNCNAME[0]} $*" >&2' bash your-script-name debug_cmd=${debug_cmd-":"} exit_cmd=: # By convention, finish your script with: # # exit $exit_status # # so that you can set exit_status to non-zero if you want to indicate # something went wrong during execution without actually bailing out at # the point of failure. exit_status=$EXIT_SUCCESS # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special # positional parameter $0, within a function call, is the name of the # function. progpath=$0 # The name of this program. progname=`$ECHO "$progpath" |$SED "$sed_basename"` # Make sure we have an absolute progpath for reexecution: case $progpath in [\\/]*|[A-Za-z]:\\*) ;; *[\\/]*) progdir=`$ECHO "$progpath" |$SED "$sed_dirname"` progdir=`cd "$progdir" && pwd` progpath=$progdir/$progname ;; *) _G_IFS=$IFS IFS=${PATH_SEPARATOR-:} for progdir in $PATH; do IFS=$_G_IFS test -x "$progdir/$progname" && break done IFS=$_G_IFS test -n "$progdir" || progdir=`pwd` progpath=$progdir/$progname ;; esac ## ----------------- ## ## Standard options. ## ## ----------------- ## # The following options affect the operation of the functions defined # below, and should be set appropriately depending on run-time para- # meters passed on the command line. opt_dry_run=false opt_quiet=false opt_verbose=false # Categories 'all' and 'none' are always available. Append any others # you will pass as the first argument to func_warning from your own # code. warning_categories= # By default, display warnings according to 'opt_warning_types'. Set # 'warning_func' to ':' to elide all warnings, or func_fatal_error to # treat the next displayed warning as a fatal error. warning_func=func_warn_and_continue # Set to 'all' to display all warnings, 'none' to suppress all # warnings, or a space delimited list of some subset of # 'warning_categories' to display only the listed warnings. opt_warning_types=all ## -------------------- ## ## Resource management. ## ## -------------------- ## # This section contains definitions for functions that each ensure a # particular resource (a file, or a non-empty configuration variable for # example) is available, and if appropriate to extract default values # from pertinent package files. Call them using their associated # 'require_*' variable to ensure that they are executed, at most, once. # # It's entirely deliberate that calling these functions can set # variables that don't obey the namespace limitations obeyed by the rest # of this file, in order that that they be as useful as possible to # callers. # require_term_colors # ------------------- # Allow display of bold text on terminals that support it. require_term_colors=func_require_term_colors func_require_term_colors () { $debug_cmd test -t 1 && { # COLORTERM and USE_ANSI_COLORS environment variables take # precedence, because most terminfo databases neglect to describe # whether color sequences are supported. test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"} if test 1 = "$USE_ANSI_COLORS"; then # Standard ANSI escape sequences tc_reset='' tc_bold=''; tc_standout='' tc_red=''; tc_green='' tc_blue=''; tc_cyan='' else # Otherwise trust the terminfo database after all. test -n "`tput sgr0 2>/dev/null`" && { tc_reset=`tput sgr0` test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold` tc_standout=$tc_bold test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso` test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1` test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2` test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4` test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5` } fi } require_term_colors=: } ## ----------------- ## ## Function library. ## ## ----------------- ## # This section contains a variety of useful functions to call in your # scripts. Take note of the portable wrappers for features provided by # some modern shells, which will fall back to slower equivalents on # less featureful shells. # func_append VAR VALUE # --------------------- # Append VALUE onto the existing contents of VAR. # We should try to minimise forks, especially on Windows where they are # unreasonably slow, so skip the feature probes when bash or zsh are # being used: if test set = "${BASH_VERSION+set}${ZSH_VERSION+set}"; then : ${_G_HAVE_ARITH_OP="yes"} : ${_G_HAVE_XSI_OPS="yes"} # The += operator was introduced in bash 3.1 case $BASH_VERSION in [12].* | 3.0 | 3.0*) ;; *) : ${_G_HAVE_PLUSEQ_OP="yes"} ;; esac fi # _G_HAVE_PLUSEQ_OP # Can be empty, in which case the shell is probed, "yes" if += is # useable or anything else if it does not work. test -z "$_G_HAVE_PLUSEQ_OP" \ && (eval 'x=a; x+=" b"; test "a b" = "$x"') 2>/dev/null \ && _G_HAVE_PLUSEQ_OP=yes if test yes = "$_G_HAVE_PLUSEQ_OP" then # This is an XSI compatible shell, allowing a faster implementation... eval 'func_append () { $debug_cmd eval "$1+=\$2" }' else # ...otherwise fall back to using expr, which is often a shell builtin. func_append () { $debug_cmd eval "$1=\$$1\$2" } fi # func_append_quoted VAR VALUE # ---------------------------- # Quote VALUE and append to the end of shell variable VAR, separated # by a space. if test yes = "$_G_HAVE_PLUSEQ_OP"; then eval 'func_append_quoted () { $debug_cmd func_quote_for_eval "$2" eval "$1+=\\ \$func_quote_for_eval_result" }' else func_append_quoted () { $debug_cmd func_quote_for_eval "$2" eval "$1=\$$1\\ \$func_quote_for_eval_result" } fi # func_append_uniq VAR VALUE # -------------------------- # Append unique VALUE onto the existing contents of VAR, assuming # entries are delimited by the first character of VALUE. For example: # # func_append_uniq options " --another-option option-argument" # # will only append to $options if " --another-option option-argument " # is not already present somewhere in $options already (note spaces at # each end implied by leading space in second argument). func_append_uniq () { $debug_cmd eval _G_current_value='`$ECHO $'$1'`' _G_delim=`expr "$2" : '\(.\)'` case $_G_delim$_G_current_value$_G_delim in *"$2$_G_delim"*) ;; *) func_append "$@" ;; esac } # func_arith TERM... # ------------------ # Set func_arith_result to the result of evaluating TERMs. test -z "$_G_HAVE_ARITH_OP" \ && (eval 'test 2 = $(( 1 + 1 ))') 2>/dev/null \ && _G_HAVE_ARITH_OP=yes if test yes = "$_G_HAVE_ARITH_OP"; then eval 'func_arith () { $debug_cmd func_arith_result=$(( $* )) }' else func_arith () { $debug_cmd func_arith_result=`expr "$@"` } fi # func_basename FILE # ------------------ # Set func_basename_result to FILE with everything up to and including # the last / stripped. if test yes = "$_G_HAVE_XSI_OPS"; then # If this shell supports suffix pattern removal, then use it to avoid # forking. Hide the definitions single quotes in case the shell chokes # on unsupported syntax... _b='func_basename_result=${1##*/}' _d='case $1 in */*) func_dirname_result=${1%/*}$2 ;; * ) func_dirname_result=$3 ;; esac' else # ...otherwise fall back to using sed. _b='func_basename_result=`$ECHO "$1" |$SED "$sed_basename"`' _d='func_dirname_result=`$ECHO "$1" |$SED "$sed_dirname"` if test "X$func_dirname_result" = "X$1"; then func_dirname_result=$3 else func_append func_dirname_result "$2" fi' fi eval 'func_basename () { $debug_cmd '"$_b"' }' # func_dirname FILE APPEND NONDIR_REPLACEMENT # ------------------------------------------- # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. eval 'func_dirname () { $debug_cmd '"$_d"' }' # func_dirname_and_basename FILE APPEND NONDIR_REPLACEMENT # -------------------------------------------------------- # Perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # For efficiency, we do not delegate to the functions above but instead # duplicate the functionality here. eval 'func_dirname_and_basename () { $debug_cmd '"$_b"' '"$_d"' }' # func_echo ARG... # ---------------- # Echo program name prefixed message. func_echo () { $debug_cmd _G_message=$* func_echo_IFS=$IFS IFS=$nl for _G_line in $_G_message; do IFS=$func_echo_IFS $ECHO "$progname: $_G_line" done IFS=$func_echo_IFS } # func_echo_all ARG... # -------------------- # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "$*" } # func_echo_infix_1 INFIX ARG... # ------------------------------ # Echo program name, followed by INFIX on the first line, with any # additional lines not showing INFIX. func_echo_infix_1 () { $debug_cmd $require_term_colors _G_infix=$1; shift _G_indent=$_G_infix _G_prefix="$progname: $_G_infix: " _G_message=$* # Strip color escape sequences before counting printable length for _G_tc in "$tc_reset" "$tc_bold" "$tc_standout" "$tc_red" "$tc_green" "$tc_blue" "$tc_cyan" do test -n "$_G_tc" && { _G_esc_tc=`$ECHO "$_G_tc" | $SED "$sed_make_literal_regex"` _G_indent=`$ECHO "$_G_indent" | $SED "s|$_G_esc_tc||g"` } done _G_indent="$progname: "`echo "$_G_indent" | $SED 's|.| |g'`" " ## exclude from sc_prohibit_nested_quotes func_echo_infix_1_IFS=$IFS IFS=$nl for _G_line in $_G_message; do IFS=$func_echo_infix_1_IFS $ECHO "$_G_prefix$tc_bold$_G_line$tc_reset" >&2 _G_prefix=$_G_indent done IFS=$func_echo_infix_1_IFS } # func_error ARG... # ----------------- # Echo program name prefixed message to standard error. func_error () { $debug_cmd $require_term_colors func_echo_infix_1 " $tc_standout${tc_red}error$tc_reset" "$*" >&2 } # func_fatal_error ARG... # ----------------------- # Echo program name prefixed message to standard error, and exit. func_fatal_error () { $debug_cmd func_error "$*" exit $EXIT_FAILURE } # func_grep EXPRESSION FILENAME # ----------------------------- # Check whether EXPRESSION matches any line of FILENAME, without output. func_grep () { $debug_cmd $GREP "$1" "$2" >/dev/null 2>&1 } # func_len STRING # --------------- # Set func_len_result to the length of STRING. STRING may not # start with a hyphen. test -z "$_G_HAVE_XSI_OPS" \ && (eval 'x=a/b/c; test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \ && _G_HAVE_XSI_OPS=yes if test yes = "$_G_HAVE_XSI_OPS"; then eval 'func_len () { $debug_cmd func_len_result=${#1} }' else func_len () { $debug_cmd func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` } fi # func_mkdir_p DIRECTORY-PATH # --------------------------- # Make sure the entire path to DIRECTORY-PATH is available. func_mkdir_p () { $debug_cmd _G_directory_path=$1 _G_dir_list= if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then # Protect directory names starting with '-' case $_G_directory_path in -*) _G_directory_path=./$_G_directory_path ;; esac # While some portion of DIR does not yet exist... while test ! -d "$_G_directory_path"; do # ...make a list in topmost first order. Use a colon delimited # list incase some portion of path contains whitespace. _G_dir_list=$_G_directory_path:$_G_dir_list # If the last portion added has no slash in it, the list is done case $_G_directory_path in */*) ;; *) break ;; esac # ...otherwise throw away the child directory and loop _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"` done _G_dir_list=`$ECHO "$_G_dir_list" | $SED 's|:*$||'` func_mkdir_p_IFS=$IFS; IFS=: for _G_dir in $_G_dir_list; do IFS=$func_mkdir_p_IFS # mkdir can fail with a 'File exist' error if two processes # try to create one of the directories concurrently. Don't # stop in that case! $MKDIR "$_G_dir" 2>/dev/null || : done IFS=$func_mkdir_p_IFS # Bail out if we (or some other process) failed to create a directory. test -d "$_G_directory_path" || \ func_fatal_error "Failed to create '$1'" fi } # func_mktempdir [BASENAME] # ------------------------- # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, BASENAME is the basename for that directory. func_mktempdir () { $debug_cmd _G_template=${TMPDIR-/tmp}/${1-$progname} if test : = "$opt_dry_run"; then # Return a directory name, but don't create it in dry-run mode _G_tmpdir=$_G_template-$$ else # If mktemp works, use that first and foremost _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null` if test ! -d "$_G_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race _G_tmpdir=$_G_template-${RANDOM-0}$$ func_mktempdir_umask=`umask` umask 0077 $MKDIR "$_G_tmpdir" umask $func_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$_G_tmpdir" || \ func_fatal_error "cannot create temporary directory '$_G_tmpdir'" fi $ECHO "$_G_tmpdir" } # func_normal_abspath PATH # ------------------------ # Remove doubled-up and trailing slashes, "." path components, # and cancel out any ".." path components in PATH after making # it an absolute path. func_normal_abspath () { $debug_cmd # These SED scripts presuppose an absolute path with a trailing slash. _G_pathcar='s|^/\([^/]*\).*$|\1|' _G_pathcdr='s|^/[^/]*||' _G_removedotparts=':dotsl s|/\./|/|g t dotsl s|/\.$|/|' _G_collapseslashes='s|/\{1,\}|/|g' _G_finalslash='s|/*$|/|' # Start from root dir and reassemble the path. func_normal_abspath_result= func_normal_abspath_tpath=$1 func_normal_abspath_altnamespace= case $func_normal_abspath_tpath in "") # Empty path, that just means $cwd. func_stripname '' '/' "`pwd`" func_normal_abspath_result=$func_stripname_result return ;; # The next three entries are used to spot a run of precisely # two leading slashes without using negated character classes; # we take advantage of case's first-match behaviour. ///*) # Unusual form of absolute path, do nothing. ;; //*) # Not necessarily an ordinary path; POSIX reserves leading '//' # and for example Cygwin uses it to access remote file shares # over CIFS/SMB, so we conserve a leading double slash if found. func_normal_abspath_altnamespace=/ ;; /*) # Absolute path, do nothing. ;; *) # Relative path, prepend $cwd. func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath ;; esac # Cancel out all the simple stuff to save iterations. We also want # the path to end with a slash for ease of parsing, so make sure # there is one (and only one) here. func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"` while :; do # Processed it all yet? if test / = "$func_normal_abspath_tpath"; then # If we ascended to the root using ".." the result may be empty now. if test -z "$func_normal_abspath_result"; then func_normal_abspath_result=/ fi break fi func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$_G_pathcar"` func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$_G_pathcdr"` # Figure out what to do with it case $func_normal_abspath_tcomponent in "") # Trailing empty path component, ignore it. ;; ..) # Parent dir; strip last assembled component from result. func_dirname "$func_normal_abspath_result" func_normal_abspath_result=$func_dirname_result ;; *) # Actual path component, append it. func_append func_normal_abspath_result "/$func_normal_abspath_tcomponent" ;; esac done # Restore leading double-slash if one was found on entry. func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result } # func_notquiet ARG... # -------------------- # Echo program name prefixed message only when not in quiet mode. func_notquiet () { $debug_cmd $opt_quiet || func_echo ${1+"$@"} # A bug in bash halts the script if the last line of a function # fails when set -e is in force, so we need another command to # work around that: : } # func_relative_path SRCDIR DSTDIR # -------------------------------- # Set func_relative_path_result to the relative path from SRCDIR to DSTDIR. func_relative_path () { $debug_cmd func_relative_path_result= func_normal_abspath "$1" func_relative_path_tlibdir=$func_normal_abspath_result func_normal_abspath "$2" func_relative_path_tbindir=$func_normal_abspath_result # Ascend the tree starting from libdir while :; do # check if we have found a prefix of bindir case $func_relative_path_tbindir in $func_relative_path_tlibdir) # found an exact match func_relative_path_tcancelled= break ;; $func_relative_path_tlibdir*) # found a matching prefix func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir" func_relative_path_tcancelled=$func_stripname_result if test -z "$func_relative_path_result"; then func_relative_path_result=. fi break ;; *) func_dirname $func_relative_path_tlibdir func_relative_path_tlibdir=$func_dirname_result if test -z "$func_relative_path_tlibdir"; then # Have to descend all the way to the root! func_relative_path_result=../$func_relative_path_result func_relative_path_tcancelled=$func_relative_path_tbindir break fi func_relative_path_result=../$func_relative_path_result ;; esac done # Now calculate path; take care to avoid doubling-up slashes. func_stripname '' '/' "$func_relative_path_result" func_relative_path_result=$func_stripname_result func_stripname '/' '/' "$func_relative_path_tcancelled" if test -n "$func_stripname_result"; then func_append func_relative_path_result "/$func_stripname_result" fi # Normalisation. If bindir is libdir, return '.' else relative path. if test -n "$func_relative_path_result"; then func_stripname './' '' "$func_relative_path_result" func_relative_path_result=$func_stripname_result fi test -n "$func_relative_path_result" || func_relative_path_result=. : } # func_quote_for_eval ARG... # -------------------------- # Aesthetically quote ARGs to be evaled later. # This function returns two values: # i) func_quote_for_eval_result # double-quoted, suitable for a subsequent eval # ii) func_quote_for_eval_unquoted_result # has all characters that are still active within double # quotes backslashified. func_quote_for_eval () { $debug_cmd func_quote_for_eval_unquoted_result= func_quote_for_eval_result= while test 0 -lt $#; do case $1 in *[\\\`\"\$]*) _G_unquoted_arg=`printf '%s\n' "$1" |$SED "$sed_quote_subst"` ;; *) _G_unquoted_arg=$1 ;; esac if test -n "$func_quote_for_eval_unquoted_result"; then func_append func_quote_for_eval_unquoted_result " $_G_unquoted_arg" else func_append func_quote_for_eval_unquoted_result "$_G_unquoted_arg" fi case $_G_unquoted_arg in # Double-quote args containing shell metacharacters to delay # word splitting, command substitution and variable expansion # for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") _G_quoted_arg=\"$_G_unquoted_arg\" ;; *) _G_quoted_arg=$_G_unquoted_arg ;; esac if test -n "$func_quote_for_eval_result"; then func_append func_quote_for_eval_result " $_G_quoted_arg" else func_append func_quote_for_eval_result "$_G_quoted_arg" fi shift done } # func_quote_for_expand ARG # ------------------------- # Aesthetically quote ARG to be evaled later; same as above, # but do not quote variable references. func_quote_for_expand () { $debug_cmd case $1 in *[\\\`\"]*) _G_arg=`$ECHO "$1" | $SED \ -e "$sed_double_quote_subst" -e "$sed_double_backslash"` ;; *) _G_arg=$1 ;; esac case $_G_arg in # Double-quote args containing shell metacharacters to delay # word splitting and command substitution for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") _G_arg=\"$_G_arg\" ;; esac func_quote_for_expand_result=$_G_arg } # func_stripname PREFIX SUFFIX NAME # --------------------------------- # strip PREFIX and SUFFIX from NAME, and store in func_stripname_result. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). if test yes = "$_G_HAVE_XSI_OPS"; then eval 'func_stripname () { $debug_cmd # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are # positional parameters, so assign one to ordinary variable first. func_stripname_result=$3 func_stripname_result=${func_stripname_result#"$1"} func_stripname_result=${func_stripname_result%"$2"} }' else func_stripname () { $debug_cmd case $2 in .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;; *) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;; esac } fi # func_show_eval CMD [FAIL_EXP] # ----------------------------- # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. func_show_eval () { $debug_cmd _G_cmd=$1 _G_fail_exp=${2-':'} func_quote_for_expand "$_G_cmd" eval "func_notquiet $func_quote_for_expand_result" $opt_dry_run || { eval "$_G_cmd" _G_status=$? if test 0 -ne "$_G_status"; then eval "(exit $_G_status); $_G_fail_exp" fi } } # func_show_eval_locale CMD [FAIL_EXP] # ------------------------------------ # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. Use the saved locale for evaluation. func_show_eval_locale () { $debug_cmd _G_cmd=$1 _G_fail_exp=${2-':'} $opt_quiet || { func_quote_for_expand "$_G_cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || { eval "$_G_user_locale $_G_cmd" _G_status=$? eval "$_G_safe_locale" if test 0 -ne "$_G_status"; then eval "(exit $_G_status); $_G_fail_exp" fi } } # func_tr_sh # ---------- # Turn $1 into a string suitable for a shell variable name. # Result is stored in $func_tr_sh_result. All characters # not in the set a-zA-Z0-9_ are replaced with '_'. Further, # if $1 begins with a digit, a '_' is prepended as well. func_tr_sh () { $debug_cmd case $1 in [0-9]* | *[!a-zA-Z0-9_]*) func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'` ;; * ) func_tr_sh_result=$1 ;; esac } # func_verbose ARG... # ------------------- # Echo program name prefixed message in verbose mode only. func_verbose () { $debug_cmd $opt_verbose && func_echo "$*" : } # func_warn_and_continue ARG... # ----------------------------- # Echo program name prefixed warning message to standard error. func_warn_and_continue () { $debug_cmd $require_term_colors func_echo_infix_1 "${tc_red}warning$tc_reset" "$*" >&2 } # func_warning CATEGORY ARG... # ---------------------------- # Echo program name prefixed warning message to standard error. Warning # messages can be filtered according to CATEGORY, where this function # elides messages where CATEGORY is not listed in the global variable # 'opt_warning_types'. func_warning () { $debug_cmd # CATEGORY must be in the warning_categories list! case " $warning_categories " in *" $1 "*) ;; *) func_internal_error "invalid warning category '$1'" ;; esac _G_category=$1 shift case " $opt_warning_types " in *" $_G_category "*) $warning_func ${1+"$@"} ;; esac } # func_sort_ver VER1 VER2 # ----------------------- # 'sort -V' is not generally available. # Note this deviates from the version comparison in automake # in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a # but this should suffice as we won't be specifying old # version formats or redundant trailing .0 in bootstrap.conf. # If we did want full compatibility then we should probably # use m4_version_compare from autoconf. func_sort_ver () { $debug_cmd printf '%s\n%s\n' "$1" "$2" \ | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n -k 5,5n -k 6,6n -k 7,7n -k 8,8n -k 9,9n } # func_lt_ver PREV CURR # --------------------- # Return true if PREV and CURR are in the correct order according to # func_sort_ver, otherwise false. Use it like this: # # func_lt_ver "$prev_ver" "$proposed_ver" || func_fatal_error "..." func_lt_ver () { $debug_cmd test "x$1" = x`func_sort_ver "$1" "$2" | $SED 1q` } # Local variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC" # time-stamp-time-zone: "UTC" # End: #! /bin/sh # Set a version string for this script. scriptversion=2014-01-07.03; # UTC # A portable, pluggable option parser for Bourne shell. # Written by Gary V. Vaughan, 2010 # Copyright (C) 2010-2015 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # Please report bugs or propose patches to gary@gnu.org. ## ------ ## ## Usage. ## ## ------ ## # This file is a library for parsing options in your shell scripts along # with assorted other useful supporting features that you can make use # of too. # # For the simplest scripts you might need only: # # #!/bin/sh # . relative/path/to/funclib.sh # . relative/path/to/options-parser # scriptversion=1.0 # func_options ${1+"$@"} # eval set dummy "$func_options_result"; shift # ...rest of your script... # # In order for the '--version' option to work, you will need to have a # suitably formatted comment like the one at the top of this file # starting with '# Written by ' and ending with '# warranty; '. # # For '-h' and '--help' to work, you will also need a one line # description of your script's purpose in a comment directly above the # '# Written by ' line, like the one at the top of this file. # # The default options also support '--debug', which will turn on shell # execution tracing (see the comment above debug_cmd below for another # use), and '--verbose' and the func_verbose function to allow your script # to display verbose messages only when your user has specified # '--verbose'. # # After sourcing this file, you can plug processing for additional # options by amending the variables from the 'Configuration' section # below, and following the instructions in the 'Option parsing' # section further down. ## -------------- ## ## Configuration. ## ## -------------- ## # You should override these variables in your script after sourcing this # file so that they reflect the customisations you have added to the # option parser. # The usage line for option parsing errors and the start of '-h' and # '--help' output messages. You can embed shell variables for delayed # expansion at the time the message is displayed, but you will need to # quote other shell meta-characters carefully to prevent them being # expanded when the contents are evaled. usage='$progpath [OPTION]...' # Short help message in response to '-h' and '--help'. Add to this or # override it after sourcing this library to reflect the full set of # options your script accepts. usage_message="\ --debug enable verbose shell tracing -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all] -v, --verbose verbosely report processing --version print version information and exit -h, --help print short or long help message and exit " # Additional text appended to 'usage_message' in response to '--help'. long_help_message=" Warning categories include: 'all' show all warnings 'none' turn off all the warnings 'error' warnings are treated as fatal errors" # Help message printed before fatal option parsing errors. fatal_help="Try '\$progname --help' for more information." ## ------------------------- ## ## Hook function management. ## ## ------------------------- ## # This section contains functions for adding, removing, and running hooks # to the main code. A hook is just a named list of of function, that can # be run in order later on. # func_hookable FUNC_NAME # ----------------------- # Declare that FUNC_NAME will run hooks added with # 'func_add_hook FUNC_NAME ...'. func_hookable () { $debug_cmd func_append hookable_fns " $1" } # func_add_hook FUNC_NAME HOOK_FUNC # --------------------------------- # Request that FUNC_NAME call HOOK_FUNC before it returns. FUNC_NAME must # first have been declared "hookable" by a call to 'func_hookable'. func_add_hook () { $debug_cmd case " $hookable_fns " in *" $1 "*) ;; *) func_fatal_error "'$1' does not accept hook functions." ;; esac eval func_append ${1}_hooks '" $2"' } # func_remove_hook FUNC_NAME HOOK_FUNC # ------------------------------------ # Remove HOOK_FUNC from the list of functions called by FUNC_NAME. func_remove_hook () { $debug_cmd eval ${1}_hooks='`$ECHO "\$'$1'_hooks" |$SED "s| '$2'||"`' } # func_run_hooks FUNC_NAME [ARG]... # --------------------------------- # Run all hook functions registered to FUNC_NAME. # It is assumed that the list of hook functions contains nothing more # than a whitespace-delimited list of legal shell function names, and # no effort is wasted trying to catch shell meta-characters or preserve # whitespace. func_run_hooks () { $debug_cmd case " $hookable_fns " in *" $1 "*) ;; *) func_fatal_error "'$1' does not support hook funcions.n" ;; esac eval _G_hook_fns=\$$1_hooks; shift for _G_hook in $_G_hook_fns; do eval $_G_hook '"$@"' # store returned options list back into positional # parameters for next 'cmd' execution. eval _G_hook_result=\$${_G_hook}_result eval set dummy "$_G_hook_result"; shift done func_quote_for_eval ${1+"$@"} func_run_hooks_result=$func_quote_for_eval_result } ## --------------- ## ## Option parsing. ## ## --------------- ## # In order to add your own option parsing hooks, you must accept the # full positional parameter list in your hook function, remove any # options that you action, and then pass back the remaining unprocessed # options in '_result', escaped suitably for # 'eval'. Like this: # # my_options_prep () # { # $debug_cmd # # # Extend the existing usage message. # usage_message=$usage_message' # -s, --silent don'\''t print informational messages # ' # # func_quote_for_eval ${1+"$@"} # my_options_prep_result=$func_quote_for_eval_result # } # func_add_hook func_options_prep my_options_prep # # # my_silent_option () # { # $debug_cmd # # # Note that for efficiency, we parse as many options as we can # # recognise in a loop before passing the remainder back to the # # caller on the first unrecognised argument we encounter. # while test $# -gt 0; do # opt=$1; shift # case $opt in # --silent|-s) opt_silent=: ;; # # Separate non-argument short options: # -s*) func_split_short_opt "$_G_opt" # set dummy "$func_split_short_opt_name" \ # "-$func_split_short_opt_arg" ${1+"$@"} # shift # ;; # *) set dummy "$_G_opt" "$*"; shift; break ;; # esac # done # # func_quote_for_eval ${1+"$@"} # my_silent_option_result=$func_quote_for_eval_result # } # func_add_hook func_parse_options my_silent_option # # # my_option_validation () # { # $debug_cmd # # $opt_silent && $opt_verbose && func_fatal_help "\ # '--silent' and '--verbose' options are mutually exclusive." # # func_quote_for_eval ${1+"$@"} # my_option_validation_result=$func_quote_for_eval_result # } # func_add_hook func_validate_options my_option_validation # # You'll alse need to manually amend $usage_message to reflect the extra # options you parse. It's preferable to append if you can, so that # multiple option parsing hooks can be added safely. # func_options [ARG]... # --------------------- # All the functions called inside func_options are hookable. See the # individual implementations for details. func_hookable func_options func_options () { $debug_cmd func_options_prep ${1+"$@"} eval func_parse_options \ ${func_options_prep_result+"$func_options_prep_result"} eval func_validate_options \ ${func_parse_options_result+"$func_parse_options_result"} eval func_run_hooks func_options \ ${func_validate_options_result+"$func_validate_options_result"} # save modified positional parameters for caller func_options_result=$func_run_hooks_result } # func_options_prep [ARG]... # -------------------------- # All initialisations required before starting the option parse loop. # Note that when calling hook functions, we pass through the list of # positional parameters. If a hook function modifies that list, and # needs to propogate that back to rest of this script, then the complete # modified list must be put in 'func_run_hooks_result' before # returning. func_hookable func_options_prep func_options_prep () { $debug_cmd # Option defaults: opt_verbose=false opt_warning_types= func_run_hooks func_options_prep ${1+"$@"} # save modified positional parameters for caller func_options_prep_result=$func_run_hooks_result } # func_parse_options [ARG]... # --------------------------- # The main option parsing loop. func_hookable func_parse_options func_parse_options () { $debug_cmd func_parse_options_result= # this just eases exit handling while test $# -gt 0; do # Defer to hook functions for initial option parsing, so they # get priority in the event of reusing an option name. func_run_hooks func_parse_options ${1+"$@"} # Adjust func_parse_options positional parameters to match eval set dummy "$func_run_hooks_result"; shift # Break out of the loop if we already parsed every option. test $# -gt 0 || break _G_opt=$1 shift case $_G_opt in --debug|-x) debug_cmd='set -x' func_echo "enabling shell trace mode" $debug_cmd ;; --no-warnings|--no-warning|--no-warn) set dummy --warnings none ${1+"$@"} shift ;; --warnings|--warning|-W) test $# = 0 && func_missing_arg $_G_opt && break case " $warning_categories $1" in *" $1 "*) # trailing space prevents matching last $1 above func_append_uniq opt_warning_types " $1" ;; *all) opt_warning_types=$warning_categories ;; *none) opt_warning_types=none warning_func=: ;; *error) opt_warning_types=$warning_categories warning_func=func_fatal_error ;; *) func_fatal_error \ "unsupported warning category: '$1'" ;; esac shift ;; --verbose|-v) opt_verbose=: ;; --version) func_version ;; -\?|-h) func_usage ;; --help) func_help ;; # Separate optargs to long options (plugins may need this): --*=*) func_split_equals "$_G_opt" set dummy "$func_split_equals_lhs" \ "$func_split_equals_rhs" ${1+"$@"} shift ;; # Separate optargs to short options: -W*) func_split_short_opt "$_G_opt" set dummy "$func_split_short_opt_name" \ "$func_split_short_opt_arg" ${1+"$@"} shift ;; # Separate non-argument short options: -\?*|-h*|-v*|-x*) func_split_short_opt "$_G_opt" set dummy "$func_split_short_opt_name" \ "-$func_split_short_opt_arg" ${1+"$@"} shift ;; --) break ;; -*) func_fatal_help "unrecognised option: '$_G_opt'" ;; *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;; esac done # save modified positional parameters for caller func_quote_for_eval ${1+"$@"} func_parse_options_result=$func_quote_for_eval_result } # func_validate_options [ARG]... # ------------------------------ # Perform any sanity checks on option settings and/or unconsumed # arguments. func_hookable func_validate_options func_validate_options () { $debug_cmd # Display all warnings if -W was not given. test -n "$opt_warning_types" || opt_warning_types=" $warning_categories" func_run_hooks func_validate_options ${1+"$@"} # Bail if the options were screwed! $exit_cmd $EXIT_FAILURE # save modified positional parameters for caller func_validate_options_result=$func_run_hooks_result } ## ----------------- ## ## Helper functions. ## ## ----------------- ## # This section contains the helper functions used by the rest of the # hookable option parser framework in ascii-betical order. # func_fatal_help ARG... # ---------------------- # Echo program name prefixed message to standard error, followed by # a help hint, and exit. func_fatal_help () { $debug_cmd eval \$ECHO \""Usage: $usage"\" eval \$ECHO \""$fatal_help"\" func_error ${1+"$@"} exit $EXIT_FAILURE } # func_help # --------- # Echo long help message to standard output and exit. func_help () { $debug_cmd func_usage_message $ECHO "$long_help_message" exit 0 } # func_missing_arg ARGNAME # ------------------------ # Echo program name prefixed message to standard error and set global # exit_cmd. func_missing_arg () { $debug_cmd func_error "Missing argument for '$1'." exit_cmd=exit } # func_split_equals STRING # ------------------------ # Set func_split_equals_lhs and func_split_equals_rhs shell variables after # splitting STRING at the '=' sign. test -z "$_G_HAVE_XSI_OPS" \ && (eval 'x=a/b/c; test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \ && _G_HAVE_XSI_OPS=yes if test yes = "$_G_HAVE_XSI_OPS" then # This is an XSI compatible shell, allowing a faster implementation... eval 'func_split_equals () { $debug_cmd func_split_equals_lhs=${1%%=*} func_split_equals_rhs=${1#*=} test "x$func_split_equals_lhs" = "x$1" \ && func_split_equals_rhs= }' else # ...otherwise fall back to using expr, which is often a shell builtin. func_split_equals () { $debug_cmd func_split_equals_lhs=`expr "x$1" : 'x\([^=]*\)'` func_split_equals_rhs= test "x$func_split_equals_lhs" = "x$1" \ || func_split_equals_rhs=`expr "x$1" : 'x[^=]*=\(.*\)$'` } fi #func_split_equals # func_split_short_opt SHORTOPT # ----------------------------- # Set func_split_short_opt_name and func_split_short_opt_arg shell # variables after splitting SHORTOPT after the 2nd character. if test yes = "$_G_HAVE_XSI_OPS" then # This is an XSI compatible shell, allowing a faster implementation... eval 'func_split_short_opt () { $debug_cmd func_split_short_opt_arg=${1#??} func_split_short_opt_name=${1%"$func_split_short_opt_arg"} }' else # ...otherwise fall back to using expr, which is often a shell builtin. func_split_short_opt () { $debug_cmd func_split_short_opt_name=`expr "x$1" : 'x-\(.\)'` func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'` } fi #func_split_short_opt # func_usage # ---------- # Echo short help message to standard output and exit. func_usage () { $debug_cmd func_usage_message $ECHO "Run '$progname --help |${PAGER-more}' for full usage" exit 0 } # func_usage_message # ------------------ # Echo short help message to standard output. func_usage_message () { $debug_cmd eval \$ECHO \""Usage: $usage"\" echo $SED -n 's|^# || /^Written by/{ x;p;x } h /^Written by/q' < "$progpath" echo eval \$ECHO \""$usage_message"\" } # func_version # ------------ # Echo version message to standard output and exit. func_version () { $debug_cmd printf '%s\n' "$progname $scriptversion" $SED -n ' /(C)/!b go :more /\./!{ N s|\n# | | b more } :go /^# Written by /,/# warranty; / { s|^# || s|^# *$|| s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2| p } /^# Written by / { s|^# || p } /^warranty; /q' < "$progpath" exit $? } # Local variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC" # time-stamp-time-zone: "UTC" # End: # Set a version string. scriptversion='(GNU libtool) 2.4.6' # func_echo ARG... # ---------------- # Libtool also displays the current mode in messages, so override # funclib.sh func_echo with this custom definition. func_echo () { $debug_cmd _G_message=$* func_echo_IFS=$IFS IFS=$nl for _G_line in $_G_message; do IFS=$func_echo_IFS $ECHO "$progname${opt_mode+: $opt_mode}: $_G_line" done IFS=$func_echo_IFS } # func_warning ARG... # ------------------- # Libtool warnings are not categorized, so override funclib.sh # func_warning with this simpler definition. func_warning () { $debug_cmd $warning_func ${1+"$@"} } ## ---------------- ## ## Options parsing. ## ## ---------------- ## # Hook in the functions to make sure our own options are parsed during # the option parsing loop. usage='$progpath [OPTION]... [MODE-ARG]...' # Short help message in response to '-h'. usage_message="Options: --config show all configuration variables --debug enable verbose shell tracing -n, --dry-run display commands without modifying any files --features display basic configuration information and exit --mode=MODE use operation mode MODE --no-warnings equivalent to '-Wnone' --preserve-dup-deps don't remove duplicate dependency libraries --quiet, --silent don't print informational messages --tag=TAG use configuration variables from tag TAG -v, --verbose print more informational messages than default --version print version information -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all] -h, --help, --help-all print short, long, or detailed help message " # Additional text appended to 'usage_message' in response to '--help'. func_help () { $debug_cmd func_usage_message $ECHO "$long_help_message MODE must be one of the following: clean remove files from the build directory compile compile a source file into a libtool object execute automatically set library path, then run a program finish complete the installation of libtool libraries install install libraries or executables link create a library or an executable uninstall remove libraries from an installed directory MODE-ARGS vary depending on the MODE. When passed as first option, '--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that. Try '$progname --help --mode=MODE' for a more detailed description of MODE. When reporting a bug, please describe a test case to reproduce it and include the following information: host-triplet: $host shell: $SHELL compiler: $LTCC compiler flags: $LTCFLAGS linker: $LD (gnu? $with_gnu_ld) version: $progname (GNU libtool) 2.4.6 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q` autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q` Report bugs to . GNU libtool home page: . General help using GNU software: ." exit 0 } # func_lo2o OBJECT-NAME # --------------------- # Transform OBJECT-NAME from a '.lo' suffix to the platform specific # object suffix. lo2o=s/\\.lo\$/.$objext/ o2lo=s/\\.$objext\$/.lo/ if test yes = "$_G_HAVE_XSI_OPS"; then eval 'func_lo2o () { case $1 in *.lo) func_lo2o_result=${1%.lo}.$objext ;; * ) func_lo2o_result=$1 ;; esac }' # func_xform LIBOBJ-OR-SOURCE # --------------------------- # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise) # suffix to a '.lo' libtool-object suffix. eval 'func_xform () { func_xform_result=${1%.*}.lo }' else # ...otherwise fall back to using sed. func_lo2o () { func_lo2o_result=`$ECHO "$1" | $SED "$lo2o"` } func_xform () { func_xform_result=`$ECHO "$1" | $SED 's|\.[^.]*$|.lo|'` } fi # func_fatal_configuration ARG... # ------------------------------- # Echo program name prefixed message to standard error, followed by # a configuration failure hint, and exit. func_fatal_configuration () { func__fatal_error ${1+"$@"} \ "See the $PACKAGE documentation for more information." \ "Fatal configuration error." } # func_config # ----------- # Display the configuration for all the tags in this script. func_config () { re_begincf='^# ### BEGIN LIBTOOL' re_endcf='^# ### END LIBTOOL' # Default configuration. $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath" # Now print the configurations for the tags. for tagname in $taglist; do $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath" done exit $? } # func_features # ------------- # Display the features supported by this script. func_features () { echo "host: $host" if test yes = "$build_libtool_libs"; then echo "enable shared libraries" else echo "disable shared libraries" fi if test yes = "$build_old_libs"; then echo "enable static libraries" else echo "disable static libraries" fi exit $? } # func_enable_tag TAGNAME # ----------------------- # Verify that TAGNAME is valid, and either flag an error and exit, or # enable the TAGNAME tag. We also add TAGNAME to the global $taglist # variable here. func_enable_tag () { # Global variable: tagname=$1 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$" re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$" sed_extractcf=/$re_begincf/,/$re_endcf/p # Validate tagname. case $tagname in *[!-_A-Za-z0-9,/]*) func_fatal_error "invalid tag name: $tagname" ;; esac # Don't test for the "default" C tag, as we know it's # there but not specially marked. case $tagname in CC) ;; *) if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then taglist="$taglist $tagname" # Evaluate the configuration. Be careful to quote the path # and the sed script, to avoid splitting on whitespace, but # also don't use non-portable quotes within backquotes within # quotes we have to do it in 2 steps: extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` eval "$extractedcf" else func_error "ignoring unknown tag $tagname" fi ;; esac } # func_check_version_match # ------------------------ # Ensure that we are using m4 macros, and libtool script from the same # release of libtool. func_check_version_match () { if test "$package_revision" != "$macro_revision"; then if test "$VERSION" != "$macro_version"; then if test -z "$macro_version"; then cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from an older release. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from $PACKAGE $macro_version. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF fi else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, $progname: but the definition of this LT_INIT comes from revision $macro_revision. $progname: You should recreate aclocal.m4 with macros from revision $package_revision $progname: of $PACKAGE $VERSION and run autoconf again. _LT_EOF fi exit $EXIT_MISMATCH fi } # libtool_options_prep [ARG]... # ----------------------------- # Preparation for options parsed by libtool. libtool_options_prep () { $debug_mode # Option defaults: opt_config=false opt_dlopen= opt_dry_run=false opt_help=false opt_mode= opt_preserve_dup_deps=false opt_quiet=false nonopt= preserve_args= # Shorthand for --mode=foo, only valid as the first argument case $1 in clean|clea|cle|cl) shift; set dummy --mode clean ${1+"$@"}; shift ;; compile|compil|compi|comp|com|co|c) shift; set dummy --mode compile ${1+"$@"}; shift ;; execute|execut|execu|exec|exe|ex|e) shift; set dummy --mode execute ${1+"$@"}; shift ;; finish|finis|fini|fin|fi|f) shift; set dummy --mode finish ${1+"$@"}; shift ;; install|instal|insta|inst|ins|in|i) shift; set dummy --mode install ${1+"$@"}; shift ;; link|lin|li|l) shift; set dummy --mode link ${1+"$@"}; shift ;; uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) shift; set dummy --mode uninstall ${1+"$@"}; shift ;; esac # Pass back the list of options. func_quote_for_eval ${1+"$@"} libtool_options_prep_result=$func_quote_for_eval_result } func_add_hook func_options_prep libtool_options_prep # libtool_parse_options [ARG]... # --------------------------------- # Provide handling for libtool specific options. libtool_parse_options () { $debug_cmd # Perform our own loop to consume as many options as possible in # each iteration. while test $# -gt 0; do _G_opt=$1 shift case $_G_opt in --dry-run|--dryrun|-n) opt_dry_run=: ;; --config) func_config ;; --dlopen|-dlopen) opt_dlopen="${opt_dlopen+$opt_dlopen }$1" shift ;; --preserve-dup-deps) opt_preserve_dup_deps=: ;; --features) func_features ;; --finish) set dummy --mode finish ${1+"$@"}; shift ;; --help) opt_help=: ;; --help-all) opt_help=': help-all' ;; --mode) test $# = 0 && func_missing_arg $_G_opt && break opt_mode=$1 case $1 in # Valid mode arguments: clean|compile|execute|finish|install|link|relink|uninstall) ;; # Catch anything else as an error *) func_error "invalid argument for $_G_opt" exit_cmd=exit break ;; esac shift ;; --no-silent|--no-quiet) opt_quiet=false func_append preserve_args " $_G_opt" ;; --no-warnings|--no-warning|--no-warn) opt_warning=false func_append preserve_args " $_G_opt" ;; --no-verbose) opt_verbose=false func_append preserve_args " $_G_opt" ;; --silent|--quiet) opt_quiet=: opt_verbose=false func_append preserve_args " $_G_opt" ;; --tag) test $# = 0 && func_missing_arg $_G_opt && break opt_tag=$1 func_append preserve_args " $_G_opt $1" func_enable_tag "$1" shift ;; --verbose|-v) opt_quiet=false opt_verbose=: func_append preserve_args " $_G_opt" ;; # An option not handled by this hook function: *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;; esac done # save modified positional parameters for caller func_quote_for_eval ${1+"$@"} libtool_parse_options_result=$func_quote_for_eval_result } func_add_hook func_parse_options libtool_parse_options # libtool_validate_options [ARG]... # --------------------------------- # Perform any sanity checks on option settings and/or unconsumed # arguments. libtool_validate_options () { # save first non-option argument if test 0 -lt $#; then nonopt=$1 shift fi # preserve --debug test : = "$debug_cmd" || func_append preserve_args " --debug" case $host in # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452 # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788 *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*) # don't eliminate duplications in $postdeps and $predeps opt_duplicate_compiler_generated_deps=: ;; *) opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps ;; esac $opt_help || { # Sanity checks first: func_check_version_match test yes != "$build_libtool_libs" \ && test yes != "$build_old_libs" \ && func_fatal_configuration "not configured to build any kind of library" # Darwin sucks eval std_shrext=\"$shrext_cmds\" # Only execute mode is allowed to have -dlopen flags. if test -n "$opt_dlopen" && test execute != "$opt_mode"; then func_error "unrecognized option '-dlopen'" $ECHO "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help=$help help="Try '$progname --help --mode=$opt_mode' for more information." } # Pass back the unparsed argument list func_quote_for_eval ${1+"$@"} libtool_validate_options_result=$func_quote_for_eval_result } func_add_hook func_validate_options libtool_validate_options # Process options as early as possible so that --help and --version # can return quickly. func_options ${1+"$@"} eval set dummy "$func_options_result"; shift ## ----------- ## ## Main. ## ## ----------- ## magic='%%%MAGIC variable%%%' magic_exe='%%%MAGIC EXE variable%%%' # Global variables. extracted_archives= extracted_serial=0 # If this variable is set in any of the actions, the command in it # will be execed at the end. This prevents here-documents from being # left over by shells. exec_cmd= # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } # func_generated_by_libtool # True iff stdin has been generated by Libtool. This function is only # a basic sanity check; it will hardly flush out determined imposters. func_generated_by_libtool_p () { $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 } # func_lalib_p file # True iff FILE is a libtool '.la' library or '.lo' object file. # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_lalib_p () { test -f "$1" && $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p } # func_lalib_unsafe_p file # True iff FILE is a libtool '.la' library or '.lo' object file. # This function implements the same check as func_lalib_p without # resorting to external programs. To this end, it redirects stdin and # closes it afterwards, without saving the original file descriptor. # As a safety measure, use it only where a negative result would be # fatal anyway. Works if 'file' does not exist. func_lalib_unsafe_p () { lalib_p=no if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then for lalib_p_l in 1 2 3 4 do read lalib_p_line case $lalib_p_line in \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; esac done exec 0<&5 5<&- fi test yes = "$lalib_p" } # func_ltwrapper_script_p file # True iff FILE is a libtool wrapper script # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_script_p () { test -f "$1" && $lt_truncate_bin < "$1" 2>/dev/null | func_generated_by_libtool_p } # func_ltwrapper_executable_p file # True iff FILE is a libtool wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_executable_p () { func_ltwrapper_exec_suffix= case $1 in *.exe) ;; *) func_ltwrapper_exec_suffix=.exe ;; esac $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 } # func_ltwrapper_scriptname file # Assumes file is an ltwrapper_executable # uses $file to determine the appropriate filename for a # temporary ltwrapper_script. func_ltwrapper_scriptname () { func_dirname_and_basename "$1" "" "." func_stripname '' '.exe' "$func_basename_result" func_ltwrapper_scriptname_result=$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper } # func_ltwrapper_p file # True iff FILE is a libtool wrapper script or wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_p () { func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" } # func_execute_cmds commands fail_cmd # Execute tilde-delimited COMMANDS. # If FAIL_CMD is given, eval that upon failure. # FAIL_CMD may read-access the current command in variable CMD! func_execute_cmds () { $debug_cmd save_ifs=$IFS; IFS='~' for cmd in $1; do IFS=$sp$nl eval cmd=\"$cmd\" IFS=$save_ifs func_show_eval "$cmd" "${2-:}" done IFS=$save_ifs } # func_source file # Source FILE, adding directory component if necessary. # Note that it is not necessary on cygwin/mingw to append a dot to # FILE even if both FILE and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # 'FILE.' does not work on cygwin managed mounts. func_source () { $debug_cmd case $1 in */* | *\\*) . "$1" ;; *) . "./$1" ;; esac } # func_resolve_sysroot PATH # Replace a leading = in PATH with a sysroot. Store the result into # func_resolve_sysroot_result func_resolve_sysroot () { func_resolve_sysroot_result=$1 case $func_resolve_sysroot_result in =*) func_stripname '=' '' "$func_resolve_sysroot_result" func_resolve_sysroot_result=$lt_sysroot$func_stripname_result ;; esac } # func_replace_sysroot PATH # If PATH begins with the sysroot, replace it with = and # store the result into func_replace_sysroot_result. func_replace_sysroot () { case $lt_sysroot:$1 in ?*:"$lt_sysroot"*) func_stripname "$lt_sysroot" '' "$1" func_replace_sysroot_result='='$func_stripname_result ;; *) # Including no sysroot. func_replace_sysroot_result=$1 ;; esac } # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. # arg is usually of the form 'gcc ...' func_infer_tag () { $debug_cmd if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do func_append_quoted CC_quoted "$arg" done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` case $@ in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. func_append_quoted CC_quoted "$arg" done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` case "$@ " in " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then func_echo "unable to infer tagged configuration" func_fatal_error "specify a tag with '--tag'" # else # func_verbose "using $tagname tagged configuration" fi ;; esac fi } # func_write_libtool_object output_name pic_name nonpic_name # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. func_write_libtool_object () { write_libobj=$1 if test yes = "$build_libtool_libs"; then write_lobj=\'$2\' else write_lobj=none fi if test yes = "$build_old_libs"; then write_oldobj=\'$3\' else write_oldobj=none fi $opt_dry_run || { cat >${write_libobj}T </dev/null` if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" | $SED -e "$sed_naive_backslashify"` else func_convert_core_file_wine_to_w32_result= fi fi } # end: func_convert_core_file_wine_to_w32 # func_convert_core_path_wine_to_w32 ARG # Helper function used by path conversion functions when $build is *nix, and # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly # configured wine environment available, with the winepath program in $build's # $PATH. Assumes ARG has no leading or trailing path separator characters. # # ARG is path to be converted from $build format to win32. # Result is available in $func_convert_core_path_wine_to_w32_result. # Unconvertible file (directory) names in ARG are skipped; if no directory names # are convertible, then the result may be empty. func_convert_core_path_wine_to_w32 () { $debug_cmd # unfortunately, winepath doesn't convert paths, only file names func_convert_core_path_wine_to_w32_result= if test -n "$1"; then oldIFS=$IFS IFS=: for func_convert_core_path_wine_to_w32_f in $1; do IFS=$oldIFS func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f" if test -n "$func_convert_core_file_wine_to_w32_result"; then if test -z "$func_convert_core_path_wine_to_w32_result"; then func_convert_core_path_wine_to_w32_result=$func_convert_core_file_wine_to_w32_result else func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result" fi fi done IFS=$oldIFS fi } # end: func_convert_core_path_wine_to_w32 # func_cygpath ARGS... # Wrapper around calling the cygpath program via LT_CYGPATH. This is used when # when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2) # $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or # (2), returns the Cygwin file name or path in func_cygpath_result (input # file name or path is assumed to be in w32 format, as previously converted # from $build's *nix or MSYS format). In case (3), returns the w32 file name # or path in func_cygpath_result (input file name or path is assumed to be in # Cygwin format). Returns an empty string on error. # # ARGS are passed to cygpath, with the last one being the file name or path to # be converted. # # Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH # environment variable; do not put it in $PATH. func_cygpath () { $debug_cmd if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null` if test "$?" -ne 0; then # on failure, ensure result is empty func_cygpath_result= fi else func_cygpath_result= func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'" fi } #end: func_cygpath # func_convert_core_msys_to_w32 ARG # Convert file name or path ARG from MSYS format to w32 format. Return # result in func_convert_core_msys_to_w32_result. func_convert_core_msys_to_w32 () { $debug_cmd # awkward: cmd appends spaces to result func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null | $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"` } #end: func_convert_core_msys_to_w32 # func_convert_file_check ARG1 ARG2 # Verify that ARG1 (a file name in $build format) was converted to $host # format in ARG2. Otherwise, emit an error message, but continue (resetting # func_to_host_file_result to ARG1). func_convert_file_check () { $debug_cmd if test -z "$2" && test -n "$1"; then func_error "Could not determine host file name corresponding to" func_error " '$1'" func_error "Continuing, but uninstalled executables may not work." # Fallback: func_to_host_file_result=$1 fi } # end func_convert_file_check # func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH # Verify that FROM_PATH (a path in $build format) was converted to $host # format in TO_PATH. Otherwise, emit an error message, but continue, resetting # func_to_host_file_result to a simplistic fallback value (see below). func_convert_path_check () { $debug_cmd if test -z "$4" && test -n "$3"; then func_error "Could not determine the host path corresponding to" func_error " '$3'" func_error "Continuing, but uninstalled executables may not work." # Fallback. This is a deliberately simplistic "conversion" and # should not be "improved". See libtool.info. if test "x$1" != "x$2"; then lt_replace_pathsep_chars="s|$1|$2|g" func_to_host_path_result=`echo "$3" | $SED -e "$lt_replace_pathsep_chars"` else func_to_host_path_result=$3 fi fi } # end func_convert_path_check # func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG # Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT # and appending REPL if ORIG matches BACKPAT. func_convert_path_front_back_pathsep () { $debug_cmd case $4 in $1 ) func_to_host_path_result=$3$func_to_host_path_result ;; esac case $4 in $2 ) func_append func_to_host_path_result "$3" ;; esac } # end func_convert_path_front_back_pathsep ################################################## # $build to $host FILE NAME CONVERSION FUNCTIONS # ################################################## # invoked via '$to_host_file_cmd ARG' # # In each case, ARG is the path to be converted from $build to $host format. # Result will be available in $func_to_host_file_result. # func_to_host_file ARG # Converts the file name ARG from $build format to $host format. Return result # in func_to_host_file_result. func_to_host_file () { $debug_cmd $to_host_file_cmd "$1" } # end func_to_host_file # func_to_tool_file ARG LAZY # converts the file name ARG from $build format to toolchain format. Return # result in func_to_tool_file_result. If the conversion in use is listed # in (the comma separated) LAZY, no conversion takes place. func_to_tool_file () { $debug_cmd case ,$2, in *,"$to_tool_file_cmd",*) func_to_tool_file_result=$1 ;; *) $to_tool_file_cmd "$1" func_to_tool_file_result=$func_to_host_file_result ;; esac } # end func_to_tool_file # func_convert_file_noop ARG # Copy ARG to func_to_host_file_result. func_convert_file_noop () { func_to_host_file_result=$1 } # end func_convert_file_noop # func_convert_file_msys_to_w32 ARG # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic # conversion to w32 is not available inside the cwrapper. Returns result in # func_to_host_file_result. func_convert_file_msys_to_w32 () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then func_convert_core_msys_to_w32 "$1" func_to_host_file_result=$func_convert_core_msys_to_w32_result fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_msys_to_w32 # func_convert_file_cygwin_to_w32 ARG # Convert file name ARG from Cygwin to w32 format. Returns result in # func_to_host_file_result. func_convert_file_cygwin_to_w32 () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then # because $build is cygwin, we call "the" cygpath in $PATH; no need to use # LT_CYGPATH in this case. func_to_host_file_result=`cygpath -m "$1"` fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_cygwin_to_w32 # func_convert_file_nix_to_w32 ARG # Convert file name ARG from *nix to w32 format. Requires a wine environment # and a working winepath. Returns result in func_to_host_file_result. func_convert_file_nix_to_w32 () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then func_convert_core_file_wine_to_w32 "$1" func_to_host_file_result=$func_convert_core_file_wine_to_w32_result fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_nix_to_w32 # func_convert_file_msys_to_cygwin ARG # Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. # Returns result in func_to_host_file_result. func_convert_file_msys_to_cygwin () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then func_convert_core_msys_to_w32 "$1" func_cygpath -u "$func_convert_core_msys_to_w32_result" func_to_host_file_result=$func_cygpath_result fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_msys_to_cygwin # func_convert_file_nix_to_cygwin ARG # Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed # in a wine environment, working winepath, and LT_CYGPATH set. Returns result # in func_to_host_file_result. func_convert_file_nix_to_cygwin () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then # convert from *nix to w32, then use cygpath to convert from w32 to cygwin. func_convert_core_file_wine_to_w32 "$1" func_cygpath -u "$func_convert_core_file_wine_to_w32_result" func_to_host_file_result=$func_cygpath_result fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_nix_to_cygwin ############################################# # $build to $host PATH CONVERSION FUNCTIONS # ############################################# # invoked via '$to_host_path_cmd ARG' # # In each case, ARG is the path to be converted from $build to $host format. # The result will be available in $func_to_host_path_result. # # Path separators are also converted from $build format to $host format. If # ARG begins or ends with a path separator character, it is preserved (but # converted to $host format) on output. # # All path conversion functions are named using the following convention: # file name conversion function : func_convert_file_X_to_Y () # path conversion function : func_convert_path_X_to_Y () # where, for any given $build/$host combination the 'X_to_Y' value is the # same. If conversion functions are added for new $build/$host combinations, # the two new functions must follow this pattern, or func_init_to_host_path_cmd # will break. # func_init_to_host_path_cmd # Ensures that function "pointer" variable $to_host_path_cmd is set to the # appropriate value, based on the value of $to_host_file_cmd. to_host_path_cmd= func_init_to_host_path_cmd () { $debug_cmd if test -z "$to_host_path_cmd"; then func_stripname 'func_convert_file_' '' "$to_host_file_cmd" to_host_path_cmd=func_convert_path_$func_stripname_result fi } # func_to_host_path ARG # Converts the path ARG from $build format to $host format. Return result # in func_to_host_path_result. func_to_host_path () { $debug_cmd func_init_to_host_path_cmd $to_host_path_cmd "$1" } # end func_to_host_path # func_convert_path_noop ARG # Copy ARG to func_to_host_path_result. func_convert_path_noop () { func_to_host_path_result=$1 } # end func_convert_path_noop # func_convert_path_msys_to_w32 ARG # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic # conversion to w32 is not available inside the cwrapper. Returns result in # func_to_host_path_result. func_convert_path_msys_to_w32 () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # Remove leading and trailing path separator characters from ARG. MSYS # behavior is inconsistent here; cygpath turns them into '.;' and ';.'; # and winepath ignores them completely. func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" func_to_host_path_result=$func_convert_core_msys_to_w32_result func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_msys_to_w32 # func_convert_path_cygwin_to_w32 ARG # Convert path ARG from Cygwin to w32 format. Returns result in # func_to_host_file_result. func_convert_path_cygwin_to_w32 () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"` func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_cygwin_to_w32 # func_convert_path_nix_to_w32 ARG # Convert path ARG from *nix to w32 format. Requires a wine environment and # a working winepath. Returns result in func_to_host_file_result. func_convert_path_nix_to_w32 () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" func_to_host_path_result=$func_convert_core_path_wine_to_w32_result func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_nix_to_w32 # func_convert_path_msys_to_cygwin ARG # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. # Returns result in func_to_host_file_result. func_convert_path_msys_to_cygwin () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_msys_to_w32_result" func_to_host_path_result=$func_cygpath_result func_convert_path_check : : \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" : "$1" fi } # end func_convert_path_msys_to_cygwin # func_convert_path_nix_to_cygwin ARG # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a # a wine environment, working winepath, and LT_CYGPATH set. Returns result in # func_to_host_file_result. func_convert_path_nix_to_cygwin () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # Remove leading and trailing path separator characters from # ARG. msys behavior is inconsistent here, cygpath turns them # into '.;' and ';.', and winepath ignores them completely. func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result" func_to_host_path_result=$func_cygpath_result func_convert_path_check : : \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" : "$1" fi } # end func_convert_path_nix_to_cygwin # func_dll_def_p FILE # True iff FILE is a Windows DLL '.def' file. # Keep in sync with _LT_DLL_DEF_P in libtool.m4 func_dll_def_p () { $debug_cmd func_dll_def_p_tmp=`$SED -n \ -e 's/^[ ]*//' \ -e '/^\(;.*\)*$/d' \ -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \ -e q \ "$1"` test DEF = "$func_dll_def_p_tmp" } # func_mode_compile arg... func_mode_compile () { $debug_cmd # Get the compilation command and the source file. base_compile= srcfile=$nonopt # always keep a non-empty value in "srcfile" suppress_opt=yes suppress_output= arg_mode=normal libobj= later= pie_flag= for arg do case $arg_mode in arg ) # do not "continue". Instead, add this to base_compile lastarg=$arg arg_mode=normal ;; target ) libobj=$arg arg_mode=normal continue ;; normal ) # Accept any command-line options. case $arg in -o) test -n "$libobj" && \ func_fatal_error "you cannot specify '-o' more than once" arg_mode=target continue ;; -pie | -fpie | -fPIE) func_append pie_flag " $arg" continue ;; -shared | -static | -prefer-pic | -prefer-non-pic) func_append later " $arg" continue ;; -no-suppress) suppress_opt=no continue ;; -Xcompiler) arg_mode=arg # the next one goes into the "base_compile" arg list continue # The current "srcfile" will either be retained or ;; # replaced later. I would guess that would be a bug. -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result lastarg= save_ifs=$IFS; IFS=, for arg in $args; do IFS=$save_ifs func_append_quoted lastarg "$arg" done IFS=$save_ifs func_stripname ' ' '' "$lastarg" lastarg=$func_stripname_result # Add the arguments to base_compile. func_append base_compile " $lastarg" continue ;; *) # Accept the current argument as the source file. # The previous "srcfile" becomes the current argument. # lastarg=$srcfile srcfile=$arg ;; esac # case $arg ;; esac # case $arg_mode # Aesthetically quote the previous argument. func_append_quoted base_compile "$lastarg" done # for arg case $arg_mode in arg) func_fatal_error "you must specify an argument for -Xcompile" ;; target) func_fatal_error "you must specify a target with '-o'" ;; *) # Get the name of the library object. test -z "$libobj" && { func_basename "$srcfile" libobj=$func_basename_result } ;; esac # Recognize several different file suffixes. # If the user specifies -o file.o, it is replaced with file.lo case $libobj in *.[cCFSifmso] | \ *.ada | *.adb | *.ads | *.asm | \ *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup) func_xform "$libobj" libobj=$func_xform_result ;; esac case $libobj in *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;; *) func_fatal_error "cannot determine name of library object from '$libobj'" ;; esac func_infer_tag $base_compile for arg in $later; do case $arg in -shared) test yes = "$build_libtool_libs" \ || func_fatal_configuration "cannot build a shared library" build_old_libs=no continue ;; -static) build_libtool_libs=no build_old_libs=yes continue ;; -prefer-pic) pic_mode=yes continue ;; -prefer-non-pic) pic_mode=no continue ;; esac done func_quote_for_eval "$libobj" test "X$libobj" != "X$func_quote_for_eval_result" \ && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \ && func_warning "libobj name '$libobj' may not contain shell special characters." func_dirname_and_basename "$obj" "/" "" objname=$func_basename_result xdir=$func_dirname_result lobj=$xdir$objdir/$objname test -z "$base_compile" && \ func_fatal_help "you must specify a compilation command" # Delete any leftover library objects. if test yes = "$build_old_libs"; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2* | cegcc*) pic_mode=default ;; esac if test no = "$pic_mode" && test pass_all != "$deplibs_check_method"; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test no = "$compiler_c_o"; then output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.$objext lockfile=$output_obj.lock else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test yes = "$need_locks"; then until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done elif test warn = "$need_locks"; then if test -f "$lockfile"; then $ECHO "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support '-c' and '-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi func_append removelist " $output_obj" $ECHO "$srcfile" > "$lockfile" fi $opt_dry_run || $RM $removelist func_append removelist " $lockfile" trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32 srcfile=$func_to_tool_file_result func_quote_for_eval "$srcfile" qsrcfile=$func_quote_for_eval_result # Only build a PIC object if we are building libtool libraries. if test yes = "$build_libtool_libs"; then # Without this assignment, base_compile gets emptied. fbsd_hideous_sh_bug=$base_compile if test no != "$pic_mode"; then command="$base_compile $qsrcfile $pic_flag" else # Don't build PIC code command="$base_compile $qsrcfile" fi func_mkdir_p "$xdir$objdir" if test -z "$output_obj"; then # Place PIC objects in $objdir func_append command " -o $lobj" fi func_show_eval_locale "$command" \ 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' if test warn = "$need_locks" && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support '-c' and '-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then func_show_eval '$MV "$output_obj" "$lobj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi # Allow error messages only from the first compilation. if test yes = "$suppress_opt"; then suppress_output=' >/dev/null 2>&1' fi fi # Only build a position-dependent object if we build old libraries. if test yes = "$build_old_libs"; then if test yes != "$pic_mode"; then # Don't build PIC code command="$base_compile $qsrcfile$pie_flag" else command="$base_compile $qsrcfile $pic_flag" fi if test yes = "$compiler_c_o"; then func_append command " -o $obj" fi # Suppress compiler output if we already did a PIC compilation. func_append command "$suppress_output" func_show_eval_locale "$command" \ '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' if test warn = "$need_locks" && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support '-c' and '-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then func_show_eval '$MV "$output_obj" "$obj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi fi $opt_dry_run || { func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" # Unlock the critical section if it was locked if test no != "$need_locks"; then removelist=$lockfile $RM "$lockfile" fi } exit $EXIT_SUCCESS } $opt_help || { test compile = "$opt_mode" && func_mode_compile ${1+"$@"} } func_mode_help () { # We need to display help for each of the modes. case $opt_mode in "") # Generic help is extracted from the usage comments # at the start of this file. func_help ;; clean) $ECHO \ "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $ECHO \ "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -no-suppress do not suppress compiler output for multiple passes -prefer-pic try to build PIC objects only -prefer-non-pic try to build non-PIC objects only -shared do not build a '.o' file suitable for static linking -static only build a '.o' file suitable for static linking -Wc,FLAG pass FLAG directly to the compiler COMPILE-COMMAND is a command to be used in creating a 'standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix '.c' with the library object suffix, '.lo'." ;; execute) $ECHO \ "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to '-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $ECHO \ "Usage: $progname [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the '--dry-run' option if you just want to see what would be executed." ;; install) $ECHO \ "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the 'install' or 'cp' program. The following components of INSTALL-COMMAND are treated specially: -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $ECHO \ "Usage: $progname [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -bindir BINDIR specify path to binaries directory (for systems where libraries must be found in the PATH setting at runtime) -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE use a list of object files found in FILE to specify objects -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes) -precious-files-regex REGEX don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -shared only do dynamic linking of libtool libraries -shrext SUFFIX override the standard shared library file extension -static do not do any dynamic linking of uninstalled libtool libraries -static-libtool-libs do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] -weak LIBNAME declare that the target provides the LIBNAME interface -Wc,FLAG -Xcompiler FLAG pass linker-specific FLAG directly to the compiler -Wl,FLAG -Xlinker FLAG pass linker-specific FLAG directly to the linker -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC) All other options (arguments beginning with '-') are ignored. Every other argument is treated as a filename. Files ending in '.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in '.la', then a libtool library is created, only library objects ('.lo' files) may be specified, and '-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created using 'ar' and 'ranlib', or on Windows using 'lib'. If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $ECHO \ "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) func_fatal_help "invalid operation mode '$opt_mode'" ;; esac echo $ECHO "Try '$progname --help' for more information about other modes." } # Now that we've collected a possible --mode arg, show help if necessary if $opt_help; then if test : = "$opt_help"; then func_mode_help else { func_help noexit for opt_mode in compile link execute install finish uninstall clean; do func_mode_help done } | $SED -n '1p; 2,$s/^Usage:/ or: /p' { func_help noexit for opt_mode in compile link execute install finish uninstall clean; do echo func_mode_help done } | $SED '1d /^When reporting/,/^Report/{ H d } $x /information about other modes/d /more detailed .*MODE/d s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/' fi exit $? fi # func_mode_execute arg... func_mode_execute () { $debug_cmd # The first argument is the command name. cmd=$nonopt test -z "$cmd" && \ func_fatal_help "you must specify a COMMAND" # Handle -dlopen flags immediately. for file in $opt_dlopen; do test -f "$file" \ || func_fatal_help "'$file' is not a file" dir= case $file in *.la) func_resolve_sysroot "$file" file=$func_resolve_sysroot_result # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "'$lib' is not a valid libtool archive" # Read the libtool library. dlname= library_names= func_source "$file" # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && \ func_warning "'$file' was not linked with '-export-dynamic'" continue fi func_dirname "$file" "" "." dir=$func_dirname_result if test -f "$dir/$objdir/$dlname"; then func_append dir "/$objdir" else if test ! -f "$dir/$dlname"; then func_fatal_error "cannot find '$dlname' in '$dir' or '$dir/$objdir'" fi fi ;; *.lo) # Just add the directory containing the .lo file. func_dirname "$file" "" "." dir=$func_dirname_result ;; *) func_warning "'-dlopen' is ignored for non-libtool libraries and objects" continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir=$absdir # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic=$magic # Check if any of the arguments is a wrapper script. args= for file do case $file in -* | *.la | *.lo ) ;; *) # Do a test to see if this is really a libtool program. if func_ltwrapper_script_p "$file"; then func_source "$file" # Transform arg to wrapped name. file=$progdir/$program elif func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" func_source "$func_ltwrapper_scriptname_result" # Transform arg to wrapped name. file=$progdir/$program fi ;; esac # Quote arguments (to preserve shell metacharacters). func_append_quoted args "$file" done if $opt_dry_run; then # Display what would be done. if test -n "$shlibpath_var"; then eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" echo "export $shlibpath_var" fi $ECHO "$cmd$args" exit $EXIT_SUCCESS else if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${save_$lt_var+set}\" = set; then $lt_var=\$save_$lt_var; export $lt_var else $lt_unset $lt_var fi" done # Now prepare to actually exec the command. exec_cmd=\$cmd$args fi } test execute = "$opt_mode" && func_mode_execute ${1+"$@"} # func_mode_finish arg... func_mode_finish () { $debug_cmd libs= libdirs= admincmds= for opt in "$nonopt" ${1+"$@"} do if test -d "$opt"; then func_append libdirs " $opt" elif test -f "$opt"; then if func_lalib_unsafe_p "$opt"; then func_append libs " $opt" else func_warning "'$opt' is not a valid libtool archive" fi else func_fatal_error "invalid argument '$opt'" fi done if test -n "$libs"; then if test -n "$lt_sysroot"; then sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"` sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;" else sysroot_cmd= fi # Remove sysroot references if $opt_dry_run; then for lib in $libs; do echo "removing references to $lt_sysroot and '=' prefixes from $lib" done else tmpdir=`func_mktempdir` for lib in $libs; do $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \ > $tmpdir/tmp-la mv -f $tmpdir/tmp-la $lib done ${RM}r "$tmpdir" fi fi if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. func_execute_cmds "$finish_cmds" 'admincmds="$admincmds '"$cmd"'"' fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $opt_dry_run || eval "$cmds" || func_append admincmds " $cmds" fi done fi # Exit here if they wanted silent mode. $opt_quiet && exit $EXIT_SUCCESS if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then echo "----------------------------------------------------------------------" echo "Libraries have been installed in:" for libdir in $libdirs; do $ECHO " $libdir" done echo echo "If you ever happen to want to link against installed libraries" echo "in a given directory, LIBDIR, you must either use libtool, and" echo "specify the full pathname of the library, or use the '-LLIBDIR'" echo "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then echo " - add LIBDIR to the '$shlibpath_var' environment variable" echo " during execution" fi if test -n "$runpath_var"; then echo " - add LIBDIR to the '$runpath_var' environment variable" echo " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" $ECHO " - use the '$flag' linker flag" fi if test -n "$admincmds"; then $ECHO " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'" fi echo echo "See any operating system documentation about shared libraries for" case $host in solaris2.[6789]|solaris2.1[0-9]) echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" echo "pages." ;; *) echo "more information, such as the ld(1) and ld.so(8) manual pages." ;; esac echo "----------------------------------------------------------------------" fi exit $EXIT_SUCCESS } test finish = "$opt_mode" && func_mode_finish ${1+"$@"} # func_mode_install arg... func_mode_install () { $debug_cmd # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$SHELL" = "$nonopt" || test /bin/sh = "$nonopt" || # Allow the use of GNU shtool's install command. case $nonopt in *shtool*) :;; *) false;; esac then # Aesthetically quote it. func_quote_for_eval "$nonopt" install_prog="$func_quote_for_eval_result " arg=$1 shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. func_quote_for_eval "$arg" func_append install_prog "$func_quote_for_eval_result" install_shared_prog=$install_prog case " $install_prog " in *[\\\ /]cp\ *) install_cp=: ;; *) install_cp=false ;; esac # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=false stripme= no_mode=: for arg do arg2= if test -n "$dest"; then func_append files " $dest" dest=$arg continue fi case $arg in -d) isdir=: ;; -f) if $install_cp; then :; else prev=$arg fi ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then if test X-m = "X$prev" && test -n "$install_override_mode"; then arg2=$install_override_mode no_mode=false fi prev= else dest=$arg continue fi ;; esac # Aesthetically quote the argument. func_quote_for_eval "$arg" func_append install_prog " $func_quote_for_eval_result" if test -n "$arg2"; then func_quote_for_eval "$arg2" fi func_append install_shared_prog " $func_quote_for_eval_result" done test -z "$install_prog" && \ func_fatal_help "you must specify an install program" test -n "$prev" && \ func_fatal_help "the '$prev' option requires an argument" if test -n "$install_override_mode" && $no_mode; then if $install_cp; then :; else func_quote_for_eval "$install_override_mode" func_append install_shared_prog " -m $func_quote_for_eval_result" fi fi if test -z "$files"; then if test -z "$dest"; then func_fatal_help "no file or destination specified" else func_fatal_help "you must specify a destination" fi fi # Strip any trailing slash from the destination. func_stripname '' '/' "$dest" dest=$func_stripname_result # Check to see that the destination is a directory. test -d "$dest" && isdir=: if $isdir; then destdir=$dest destname= else func_dirname_and_basename "$dest" "" "." destdir=$func_dirname_result destname=$func_basename_result # Not a directory, so check to see that there is only one file specified. set dummy $files; shift test "$#" -gt 1 && \ func_fatal_help "'$dest' is not a directory" fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) func_fatal_help "'$destdir' must be an absolute directory name" ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic=$magic staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. func_append staticlibs " $file" ;; *.la) func_resolve_sysroot "$file" file=$func_resolve_sysroot_result # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "'$file' is not a valid libtool archive" library_names= old_library= relink_command= func_source "$file" # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) func_append current_libdirs " $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) func_append future_libdirs " $libdir" ;; esac fi func_dirname "$file" "/" "" dir=$func_dirname_result func_append dir "$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. test "$inst_prefix_dir" = "$destdir" && \ func_fatal_error "error: cannot install '$file' to a directory not ending in $libdir" if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` else relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"` fi func_warning "relinking '$file'" func_show_eval "$relink_command" \ 'func_fatal_error "error: relink '\''$file'\'' with the above command before installing it"' fi # See the names of the shared library. set dummy $library_names; shift if test -n "$1"; then realname=$1 shift srcname=$realname test -n "$relink_command" && srcname=${realname}T # Install the shared library and build the symlinks. func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ 'exit $?' tstripme=$stripme case $host_os in cygwin* | mingw* | pw32* | cegcc*) case $realname in *.dll.a) tstripme= ;; esac ;; os2*) case $realname in *_dll.a) tstripme= ;; esac ;; esac if test -n "$tstripme" && test -n "$striplib"; then func_show_eval "$striplib $destdir/$realname" 'exit $?' fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. # Try 'ln -sf' first, because the 'ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do test "$linkname" != "$realname" \ && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" done fi # Do each command in the postinstall commands. lib=$destdir/$realname func_execute_cmds "$postinstall_cmds" 'exit $?' fi # Install the pseudo-library for information purposes. func_basename "$file" name=$func_basename_result instname=$dir/${name}i func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' # Maybe install the static library, too. test -n "$old_library" && func_append staticlibs " $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile=$destdir/$destname else func_basename "$file" destfile=$func_basename_result destfile=$destdir/$destfile fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) func_lo2o "$destfile" staticdest=$func_lo2o_result ;; *.$objext) staticdest=$destfile destfile= ;; *) func_fatal_help "cannot copy a libtool object to '$destfile'" ;; esac # Install the libtool object if requested. test -n "$destfile" && \ func_show_eval "$install_prog $file $destfile" 'exit $?' # Install the old object if enabled. if test yes = "$build_old_libs"; then # Deduce the name of the old-style object file. func_lo2o "$file" staticobj=$func_lo2o_result func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' fi exit $EXIT_SUCCESS ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile=$destdir/$destname else func_basename "$file" destfile=$func_basename_result destfile=$destdir/$destfile fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext= case $file in *.exe) if test ! -f "$file"; then func_stripname '' '.exe' "$file" file=$func_stripname_result stripped_ext=.exe fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin* | *mingw*) if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" wrapper=$func_ltwrapper_scriptname_result else func_stripname '' '.exe' "$file" wrapper=$func_stripname_result fi ;; *) wrapper=$file ;; esac if func_ltwrapper_script_p "$wrapper"; then notinst_deplibs= relink_command= func_source "$wrapper" # Check the variables that should have been set. test -z "$generated_by_libtool_version" && \ func_fatal_error "invalid libtool wrapper script '$wrapper'" finalize=: for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then func_source "$lib" fi libfile=$libdir/`$ECHO "$lib" | $SED 's%^.*/%%g'` if test -n "$libdir" && test ! -f "$libfile"; then func_warning "'$lib' has not been installed in '$libdir'" finalize=false fi done relink_command= func_source "$wrapper" outputname= if test no = "$fast_install" && test -n "$relink_command"; then $opt_dry_run || { if $finalize; then tmpdir=`func_mktempdir` func_basename "$file$stripped_ext" file=$func_basename_result outputname=$tmpdir/$file # Replace the output file specification. relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'` $opt_quiet || { func_quote_for_expand "$relink_command" eval "func_echo $func_quote_for_expand_result" } if eval "$relink_command"; then : else func_error "error: relink '$file' with the above command before installing it" $opt_dry_run || ${RM}r "$tmpdir" continue fi file=$outputname else func_warning "cannot relink '$file'" fi } else # Install the binary that we compiled earlier. file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyway case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) func_stripname '' '.exe' "$destfile" destfile=$func_stripname_result ;; esac ;; esac func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' $opt_dry_run || if test -n "$outputname"; then ${RM}r "$tmpdir" fi ;; esac done for file in $staticlibs; do func_basename "$file" name=$func_basename_result # Set up the ranlib parameters. oldlib=$destdir/$name func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 tool_oldlib=$func_to_tool_file_result func_show_eval "$install_prog \$file \$oldlib" 'exit $?' if test -n "$stripme" && test -n "$old_striplib"; then func_show_eval "$old_striplib $tool_oldlib" 'exit $?' fi # Do each command in the postinstall commands. func_execute_cmds "$old_postinstall_cmds" 'exit $?' done test -n "$future_libdirs" && \ func_warning "remember to run '$progname --finish$future_libdirs'" if test -n "$current_libdirs"; then # Maybe just do a dry run. $opt_dry_run && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi } test install = "$opt_mode" && func_mode_install ${1+"$@"} # func_generate_dlsyms outputname originator pic_p # Extract symbols from dlprefiles and create ${outputname}S.o with # a dlpreopen symbol table. func_generate_dlsyms () { $debug_cmd my_outputname=$1 my_originator=$2 my_pic_p=${3-false} my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'` my_dlsyms= if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then if test -n "$NM" && test -n "$global_symbol_pipe"; then my_dlsyms=${my_outputname}S.c else func_error "not configured to extract global symbols from dlpreopened files" fi fi if test -n "$my_dlsyms"; then case $my_dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist=$output_objdir/$my_outputname.nm func_show_eval "$RM $nlist ${nlist}S ${nlist}T" # Parse the name list into a source file. func_verbose "creating $output_objdir/$my_dlsyms" $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ /* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */ /* Generated by $PROGRAM (GNU $PACKAGE) $VERSION */ #ifdef __cplusplus extern \"C\" { #endif #if defined __GNUC__ && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) #pragma GCC diagnostic ignored \"-Wstrict-prototypes\" #endif /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT_DLSYM_CONST #elif defined __osf__ /* This system does not cope well with relocations in const data. */ # define LT_DLSYM_CONST #else # define LT_DLSYM_CONST const #endif #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0) /* External symbol declarations for the compiler. */\ " if test yes = "$dlself"; then func_verbose "generating symbol list for '$output'" $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP` for progfile in $progfiles; do func_to_tool_file "$progfile" func_convert_file_msys_to_w32 func_verbose "extracting global C symbols from '$func_to_tool_file_result'" $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $opt_dry_run || { eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi if test -n "$export_symbols_regex"; then $opt_dry_run || { eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols=$output_objdir/$outputname.exp $opt_dry_run || { $RM $export_symbols eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac } else $opt_dry_run || { eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac } fi fi for dlprefile in $dlprefiles; do func_verbose "extracting global C symbols from '$dlprefile'" func_basename "$dlprefile" name=$func_basename_result case $host in *cygwin* | *mingw* | *cegcc* ) # if an import library, we need to obtain dlname if func_win32_import_lib_p "$dlprefile"; then func_tr_sh "$dlprefile" eval "curr_lafile=\$libfile_$func_tr_sh_result" dlprefile_dlbasename= if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then # Use subshell, to avoid clobbering current variable values dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"` if test -n "$dlprefile_dlname"; then func_basename "$dlprefile_dlname" dlprefile_dlbasename=$func_basename_result else # no lafile. user explicitly requested -dlpreopen . $sharedlib_from_linklib_cmd "$dlprefile" dlprefile_dlbasename=$sharedlib_from_linklib_result fi fi $opt_dry_run || { if test -n "$dlprefile_dlbasename"; then eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"' else func_warning "Could not compute DLL name from $name" eval '$ECHO ": $name " >> "$nlist"' fi func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" } else # not an import lib $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" } fi ;; *) $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" } ;; esac done $opt_dry_run || { # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $MV "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if $GREP -v "^: " < "$nlist" | if sort -k 3 /dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else $GREP -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' else echo '/* NONE */' >> "$output_objdir/$my_dlsyms" fi func_show_eval '$RM "${nlist}I"' if test -n "$global_symbol_to_import"; then eval "$global_symbol_to_import"' < "$nlist"S > "$nlist"I' fi echo >> "$output_objdir/$my_dlsyms" "\ /* The mapping between symbol names and symbols. */ typedef struct { const char *name; void *address; } lt_dlsymlist; extern LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[];\ " if test -s "$nlist"I; then echo >> "$output_objdir/$my_dlsyms" "\ static void lt_syminit(void) { LT_DLSYM_CONST lt_dlsymlist *symbol = lt_${my_prefix}_LTX_preloaded_symbols; for (; symbol->name; ++symbol) {" $SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >> "$output_objdir/$my_dlsyms" echo >> "$output_objdir/$my_dlsyms" "\ } }" fi echo >> "$output_objdir/$my_dlsyms" "\ LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[] = { {\"$my_originator\", (void *) 0}," if test -s "$nlist"I; then echo >> "$output_objdir/$my_dlsyms" "\ {\"@INIT@\", (void *) <_syminit}," fi case $need_lib_prefix in no) eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; *) eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; esac echo >> "$output_objdir/$my_dlsyms" "\ {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_${my_prefix}_LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " } # !$opt_dry_run pic_flag_for_symtable= case "$compile_command " in *" -static "*) ;; *) case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; *-*-hpux*) pic_flag_for_symtable=" $pic_flag" ;; *) $my_pic_p && pic_flag_for_symtable=" $pic_flag" ;; esac ;; esac symtab_cflags= for arg in $LTCFLAGS; do case $arg in -pie | -fpie | -fPIE) ;; *) func_append symtab_cflags " $arg" ;; esac done # Now compile the dynamic symbol file. func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' # Clean up the generated files. func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T" "${nlist}I"' # Transform the symbol file into the correct name. symfileobj=$output_objdir/${my_outputname}S.$objext case $host in *cygwin* | *mingw* | *cegcc* ) if test -f "$output_objdir/$my_outputname.def"; then compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` else compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` fi ;; *) compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` ;; esac ;; *) func_fatal_error "unknown suffix for '$my_dlsyms'" ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"` finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"` fi } # func_cygming_gnu_implib_p ARG # This predicate returns with zero status (TRUE) if # ARG is a GNU/binutils-style import library. Returns # with nonzero status (FALSE) otherwise. func_cygming_gnu_implib_p () { $debug_cmd func_to_tool_file "$1" func_convert_file_msys_to_w32 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'` test -n "$func_cygming_gnu_implib_tmp" } # func_cygming_ms_implib_p ARG # This predicate returns with zero status (TRUE) if # ARG is an MS-style import library. Returns # with nonzero status (FALSE) otherwise. func_cygming_ms_implib_p () { $debug_cmd func_to_tool_file "$1" func_convert_file_msys_to_w32 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'` test -n "$func_cygming_ms_implib_tmp" } # func_win32_libid arg # return the library type of file 'arg' # # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. # Despite the name, also deal with 64 bit binaries. func_win32_libid () { $debug_cmd win32_libid_type=unknown win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then case $nm_interface in "MS dumpbin") if func_cygming_ms_implib_p "$1" || func_cygming_gnu_implib_p "$1" then win32_nmres=import else win32_nmres= fi ;; *) func_to_tool_file "$1" func_convert_file_msys_to_w32 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" | $SED -n -e ' 1,100{ / I /{ s|.*|import| p q } }'` ;; esac case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $ECHO "$win32_libid_type" } # func_cygming_dll_for_implib ARG # # Platform-specific function to extract the # name of the DLL associated with the specified # import library ARG. # Invoked by eval'ing the libtool variable # $sharedlib_from_linklib_cmd # Result is available in the variable # $sharedlib_from_linklib_result func_cygming_dll_for_implib () { $debug_cmd sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"` } # func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs # # The is the core of a fallback implementation of a # platform-specific function to extract the name of the # DLL associated with the specified import library LIBNAME. # # SECTION_NAME is either .idata$6 or .idata$7, depending # on the platform and compiler that created the implib. # # Echos the name of the DLL associated with the # specified import library. func_cygming_dll_for_implib_fallback_core () { $debug_cmd match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"` $OBJDUMP -s --section "$1" "$2" 2>/dev/null | $SED '/^Contents of section '"$match_literal"':/{ # Place marker at beginning of archive member dllname section s/.*/====MARK====/ p d } # These lines can sometimes be longer than 43 characters, but # are always uninteresting /:[ ]*file format pe[i]\{,1\}-/d /^In archive [^:]*:/d # Ensure marker is printed /^====MARK====/p # Remove all lines with less than 43 characters /^.\{43\}/!d # From remaining lines, remove first 43 characters s/^.\{43\}//' | $SED -n ' # Join marker and all lines until next marker into a single line /^====MARK====/ b para H $ b para b :para x s/\n//g # Remove the marker s/^====MARK====// # Remove trailing dots and whitespace s/[\. \t]*$// # Print /./p' | # we now have a list, one entry per line, of the stringified # contents of the appropriate section of all members of the # archive that possess that section. Heuristic: eliminate # all those that have a first or second character that is # a '.' (that is, objdump's representation of an unprintable # character.) This should work for all archives with less than # 0x302f exports -- but will fail for DLLs whose name actually # begins with a literal '.' or a single character followed by # a '.'. # # Of those that remain, print the first one. $SED -e '/^\./d;/^.\./d;q' } # func_cygming_dll_for_implib_fallback ARG # Platform-specific function to extract the # name of the DLL associated with the specified # import library ARG. # # This fallback implementation is for use when $DLLTOOL # does not support the --identify-strict option. # Invoked by eval'ing the libtool variable # $sharedlib_from_linklib_cmd # Result is available in the variable # $sharedlib_from_linklib_result func_cygming_dll_for_implib_fallback () { $debug_cmd if func_cygming_gnu_implib_p "$1"; then # binutils import library sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"` elif func_cygming_ms_implib_p "$1"; then # ms-generated import library sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"` else # unknown sharedlib_from_linklib_result= fi } # func_extract_an_archive dir oldlib func_extract_an_archive () { $debug_cmd f_ex_an_ar_dir=$1; shift f_ex_an_ar_oldlib=$1 if test yes = "$lock_old_archive_extraction"; then lockfile=$f_ex_an_ar_oldlib.lock until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done fi func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \ 'stat=$?; rm -f "$lockfile"; exit $stat' if test yes = "$lock_old_archive_extraction"; then $opt_dry_run || rm -f "$lockfile" fi if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" fi } # func_extract_archives gentop oldlib ... func_extract_archives () { $debug_cmd my_gentop=$1; shift my_oldlibs=${1+"$@"} my_oldobjs= my_xlib= my_xabs= my_xdir= for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac func_basename "$my_xlib" my_xlib=$func_basename_result my_xlib_u=$my_xlib while :; do case " $extracted_archives " in *" $my_xlib_u "*) func_arith $extracted_serial + 1 extracted_serial=$func_arith_result my_xlib_u=lt$extracted_serial-$my_xlib ;; *) break ;; esac done extracted_archives="$extracted_archives $my_xlib_u" my_xdir=$my_gentop/$my_xlib_u func_mkdir_p "$my_xdir" case $host in *-darwin*) func_verbose "Extracting $my_xabs" # Do not bother doing anything if just a dry run $opt_dry_run || { darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` func_basename "$darwin_archive" darwin_base_archive=$func_basename_result darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` if test -n "$darwin_arches"; then darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches; do func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch" $LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" "$darwin_archive" cd "unfat-$$/$darwin_base_archive-$darwin_arch" func_extract_an_archive "`pwd`" "$darwin_base_archive" cd "$darwin_curdir" $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" done # $darwin_arches ## Okay now we've a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_basename" | sort -u` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP` $LIPO -create -output "$darwin_file" $darwin_files done # $darwin_filelist $RM -rf unfat-$$ cd "$darwin_orig_dir" else cd $darwin_orig_dir func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches } # !$opt_dry_run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP` done func_extract_archives_result=$my_oldobjs } # func_emit_wrapper [arg=no] # # Emit a libtool wrapper script on stdout. # Don't directly open a file because we may want to # incorporate the script contents within a cygwin/mingw # wrapper executable. Must ONLY be called from within # func_mode_link because it depends on a number of variables # set therein. # # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR # variable will take. If 'yes', then the emitted script # will assume that the directory where it is stored is # the $objdir directory. This is a cygwin/mingw-specific # behavior. func_emit_wrapper () { func_emit_wrapper_arg1=${1-no} $ECHO "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM (GNU $PACKAGE) $VERSION # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='$sed_quote_subst' # Be Bourne compatible if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH relink_command=\"$relink_command\" # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variables: generated_by_libtool_version='$macro_version' notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$ECHO are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then file=\"\$0\"" qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"` $ECHO "\ # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } ECHO=\"$qECHO\" fi # Very basic option parsing. These options are (a) specific to # the libtool wrapper, (b) are identical between the wrapper # /script/ and the wrapper /executable/ that is used only on # windows platforms, and (c) all begin with the string "--lt-" # (application programs are unlikely to have options that match # this pattern). # # There are only two supported options: --lt-debug and # --lt-dump-script. There is, deliberately, no --lt-help. # # The first argument to this parsing function should be the # script's $0 value, followed by "$@". lt_option_debug= func_parse_lt_options () { lt_script_arg0=\$0 shift for lt_opt do case \"\$lt_opt\" in --lt-debug) lt_option_debug=1 ;; --lt-dump-script) lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\` test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=. lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\` cat \"\$lt_dump_D/\$lt_dump_F\" exit 0 ;; --lt-*) \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2 exit 1 ;; esac done # Print the debug banner immediately: if test -n \"\$lt_option_debug\"; then echo \"$outputname:$output:\$LINENO: libtool wrapper (GNU $PACKAGE) $VERSION\" 1>&2 fi } # Used when --lt-debug. Prints its arguments to stdout # (redirection is the responsibility of the caller) func_lt_dump_args () { lt_dump_args_N=1; for lt_arg do \$ECHO \"$outputname:$output:\$LINENO: newargv[\$lt_dump_args_N]: \$lt_arg\" lt_dump_args_N=\`expr \$lt_dump_args_N + 1\` done } # Core function for launching the target application func_exec_program_core () { " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2* | *-cegcc*) $ECHO "\ if test -n \"\$lt_option_debug\"; then \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir\\\\\$program\" 1>&2 func_lt_dump_args \${1+\"\$@\"} 1>&2 fi exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $ECHO "\ if test -n \"\$lt_option_debug\"; then \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir/\$program\" 1>&2 func_lt_dump_args \${1+\"\$@\"} 1>&2 fi exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac $ECHO "\ \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 exit 1 } # A function to encapsulate launching the target application # Strips options in the --lt-* namespace from \$@ and # launches target application with the remaining arguments. func_exec_program () { case \" \$* \" in *\\ --lt-*) for lt_wr_arg do case \$lt_wr_arg in --lt-*) ;; *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; esac shift done ;; esac func_exec_program_core \${1+\"\$@\"} } # Parse options func_parse_lt_options \"\$0\" \${1+\"\$@\"} # Find the directory that this script lives in. thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\` done # Usually 'no', except on cygwin/mingw when embedded into # the cwrapper. WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then # special case for '.' if test \"\$thisdir\" = \".\"; then thisdir=\`pwd\` fi # remove .libs from thisdir case \"\$thisdir\" in *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;; $objdir ) thisdir=. ;; esac fi # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test yes = "$fast_install"; then $ECHO "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $MKDIR \"\$progdir\" else $RM \"\$progdir/\$file\" fi" $ECHO "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else \$ECHO \"\$relink_command_output\" >&2 $RM \"\$progdir/\$file\" exit 1 fi fi $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $RM \"\$progdir/\$program\"; $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } $RM \"\$progdir/\$file\" fi" else $ECHO "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $ECHO "\ if test -f \"\$progdir/\$program\"; then" # fixup the dll searchpath if we need to. # # Fix the DLL searchpath if we need to. Do this before prepending # to shlibpath, because on Windows, both are PATH and uninstalled # libraries must come first. if test -n "$dllsearchpath"; then $ECHO "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi # Export our shlibpath_var if we have one. if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $ECHO "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\` export $shlibpath_var " fi $ECHO "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. func_exec_program \${1+\"\$@\"} fi else # The program doesn't exist. \$ECHO \"\$0: error: '\$progdir/\$program' does not exist\" 1>&2 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 exit 1 fi fi\ " } # func_emit_cwrapperexe_src # emit the source code for a wrapper executable on stdout # Must ONLY be called from within func_mode_link because # it depends on a number of variable set therein. func_emit_cwrapperexe_src () { cat < #include #ifdef _MSC_VER # include # include # include #else # include # include # ifdef __CYGWIN__ # include # endif #endif #include #include #include #include #include #include #include #include #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0) /* declarations of non-ANSI functions */ #if defined __MINGW32__ # ifdef __STRICT_ANSI__ int _putenv (const char *); # endif #elif defined __CYGWIN__ # ifdef __STRICT_ANSI__ char *realpath (const char *, char *); int putenv (char *); int setenv (const char *, const char *, int); # endif /* #elif defined other_platform || defined ... */ #endif /* portability defines, excluding path handling macros */ #if defined _MSC_VER # define setmode _setmode # define stat _stat # define chmod _chmod # define getcwd _getcwd # define putenv _putenv # define S_IXUSR _S_IEXEC #elif defined __MINGW32__ # define setmode _setmode # define stat _stat # define chmod _chmod # define getcwd _getcwd # define putenv _putenv #elif defined __CYGWIN__ # define HAVE_SETENV # define FOPEN_WB "wb" /* #elif defined other platforms ... */ #endif #if defined PATH_MAX # define LT_PATHMAX PATH_MAX #elif defined MAXPATHLEN # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef S_IXOTH # define S_IXOTH 0 #endif #ifndef S_IXGRP # define S_IXGRP 0 #endif /* path handling portability macros */ #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' #endif #if defined _WIN32 || defined __MSDOS__ || defined __DJGPP__ || \ defined __OS2__ # define HAVE_DOS_BASED_FILE_SYSTEM # define FOPEN_WB "wb" # ifndef DIR_SEPARATOR_2 # define DIR_SEPARATOR_2 '\\' # endif # ifndef PATH_SEPARATOR_2 # define PATH_SEPARATOR_2 ';' # endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #ifndef FOPEN_WB # define FOPEN_WB "w" #endif #ifndef _O_BINARY # define _O_BINARY 0 #endif #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free (stale); stale = 0; } \ } while (0) #if defined LT_DEBUGWRAPPER static int lt_debug = 1; #else static int lt_debug = 0; #endif const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */ void *xmalloc (size_t num); char *xstrdup (const char *string); const char *base_name (const char *name); char *find_executable (const char *wrapper); char *chase_symlinks (const char *pathspec); int make_executable (const char *path); int check_executable (const char *path); char *strendzap (char *str, const char *pat); void lt_debugprintf (const char *file, int line, const char *fmt, ...); void lt_fatal (const char *file, int line, const char *message, ...); static const char *nonnull (const char *s); static const char *nonempty (const char *s); void lt_setenv (const char *name, const char *value); char *lt_extend_str (const char *orig_value, const char *add, int to_end); void lt_update_exe_path (const char *name, const char *value); void lt_update_lib_path (const char *name, const char *value); char **prepare_spawn (char **argv); void lt_dump_script (FILE *f); EOF cat <= 0) && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) return 1; else return 0; } int make_executable (const char *path) { int rval = 0; struct stat st; lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n", nonempty (path)); if ((!path) || (!*path)) return 0; if (stat (path, &st) >= 0) { rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); } return rval; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise Does not chase symlinks, even on platforms that support them. */ char * find_executable (const char *wrapper) { int has_slash = 0; const char *p; const char *p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; size_t tmp_len; char *concat_name; lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n", nonempty (wrapper)); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined HAVE_DOS_BASED_FILE_SYSTEM if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } #if defined HAVE_DOS_BASED_FILE_SYSTEM } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char *path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char *q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR (*q)) break; p_len = (size_t) (q - p); p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); return NULL; } char * chase_symlinks (const char *pathspec) { #ifndef S_ISLNK return xstrdup (pathspec); #else char buf[LT_PATHMAX]; struct stat s; char *tmp_pathspec = xstrdup (pathspec); char *p; int has_symlinks = 0; while (strlen (tmp_pathspec) && !has_symlinks) { lt_debugprintf (__FILE__, __LINE__, "checking path component for symlinks: %s\n", tmp_pathspec); if (lstat (tmp_pathspec, &s) == 0) { if (S_ISLNK (s.st_mode) != 0) { has_symlinks = 1; break; } /* search backwards for last DIR_SEPARATOR */ p = tmp_pathspec + strlen (tmp_pathspec) - 1; while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) p--; if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) { /* no more DIR_SEPARATORS left */ break; } *p = '\0'; } else { lt_fatal (__FILE__, __LINE__, "error accessing file \"%s\": %s", tmp_pathspec, nonnull (strerror (errno))); } } XFREE (tmp_pathspec); if (!has_symlinks) { return xstrdup (pathspec); } tmp_pathspec = realpath (pathspec, buf); if (tmp_pathspec == 0) { lt_fatal (__FILE__, __LINE__, "could not follow symlinks for %s", pathspec); } return xstrdup (tmp_pathspec); #endif } char * strendzap (char *str, const char *pat) { size_t len, patlen; assert (str != NULL); assert (pat != NULL); len = strlen (str); patlen = strlen (pat); if (patlen <= len) { str += len - patlen; if (STREQ (str, pat)) *str = '\0'; } return str; } void lt_debugprintf (const char *file, int line, const char *fmt, ...) { va_list args; if (lt_debug) { (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line); va_start (args, fmt); (void) vfprintf (stderr, fmt, args); va_end (args); } } static void lt_error_core (int exit_status, const char *file, int line, const char *mode, const char *message, va_list ap) { fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *file, int line, const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap); va_end (ap); } static const char * nonnull (const char *s) { return s ? s : "(null)"; } static const char * nonempty (const char *s) { return (s && !*s) ? "(empty)" : nonnull (s); } void lt_setenv (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_setenv) setting '%s' to '%s'\n", nonnull (name), nonnull (value)); { #ifdef HAVE_SETENV /* always make a copy, for consistency with !HAVE_SETENV */ char *str = xstrdup (value); setenv (name, str, 1); #else size_t len = strlen (name) + 1 + strlen (value) + 1; char *str = XMALLOC (char, len); sprintf (str, "%s=%s", name, value); if (putenv (str) != EXIT_SUCCESS) { XFREE (str); } #endif } } char * lt_extend_str (const char *orig_value, const char *add, int to_end) { char *new_value; if (orig_value && *orig_value) { size_t orig_value_len = strlen (orig_value); size_t add_len = strlen (add); new_value = XMALLOC (char, add_len + orig_value_len + 1); if (to_end) { strcpy (new_value, orig_value); strcpy (new_value + orig_value_len, add); } else { strcpy (new_value, add); strcpy (new_value + add_len, orig_value); } } else { new_value = xstrdup (add); } return new_value; } void lt_update_exe_path (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_update_exe_path) modifying '%s' by prepending '%s'\n", nonnull (name), nonnull (value)); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); /* some systems can't cope with a ':'-terminated path #' */ size_t len = strlen (new_value); while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1])) { new_value[--len] = '\0'; } lt_setenv (name, new_value); XFREE (new_value); } } void lt_update_lib_path (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_update_lib_path) modifying '%s' by prepending '%s'\n", nonnull (name), nonnull (value)); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); lt_setenv (name, new_value); XFREE (new_value); } } EOF case $host_os in mingw*) cat <<"EOF" /* Prepares an argument vector before calling spawn(). Note that spawn() does not by itself call the command interpreter (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") : ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); GetVersionEx(&v); v.dwPlatformId == VER_PLATFORM_WIN32_NT; }) ? "cmd.exe" : "command.com"). Instead it simply concatenates the arguments, separated by ' ', and calls CreateProcess(). We must quote the arguments since Win32 CreateProcess() interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a special way: - Space and tab are interpreted as delimiters. They are not treated as delimiters if they are surrounded by double quotes: "...". - Unescaped double quotes are removed from the input. Their only effect is that within double quotes, space and tab are treated like normal characters. - Backslashes not followed by double quotes are not special. - But 2*n+1 backslashes followed by a double quote become n backslashes followed by a double quote (n >= 0): \" -> " \\\" -> \" \\\\\" -> \\" */ #define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" #define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" char ** prepare_spawn (char **argv) { size_t argc; char **new_argv; size_t i; /* Count number of arguments. */ for (argc = 0; argv[argc] != NULL; argc++) ; /* Allocate new argument vector. */ new_argv = XMALLOC (char *, argc + 1); /* Put quoted arguments into the new argument vector. */ for (i = 0; i < argc; i++) { const char *string = argv[i]; if (string[0] == '\0') new_argv[i] = xstrdup ("\"\""); else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL) { int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL); size_t length; unsigned int backslashes; const char *s; char *quoted_string; char *p; length = 0; backslashes = 0; if (quote_around) length++; for (s = string; *s != '\0'; s++) { char c = *s; if (c == '"') length += backslashes + 1; length++; if (c == '\\') backslashes++; else backslashes = 0; } if (quote_around) length += backslashes + 1; quoted_string = XMALLOC (char, length + 1); p = quoted_string; backslashes = 0; if (quote_around) *p++ = '"'; for (s = string; *s != '\0'; s++) { char c = *s; if (c == '"') { unsigned int j; for (j = backslashes + 1; j > 0; j--) *p++ = '\\'; } *p++ = c; if (c == '\\') backslashes++; else backslashes = 0; } if (quote_around) { unsigned int j; for (j = backslashes; j > 0; j--) *p++ = '\\'; *p++ = '"'; } *p = '\0'; new_argv[i] = quoted_string; } else new_argv[i] = (char *) string; } new_argv[argc] = NULL; return new_argv; } EOF ;; esac cat <<"EOF" void lt_dump_script (FILE* f) { EOF func_emit_wrapper yes | $SED -n -e ' s/^\(.\{79\}\)\(..*\)/\1\ \2/ h s/\([\\"]\)/\\\1/g s/$/\\n/ s/\([^\n]*\).*/ fputs ("\1", f);/p g D' cat <<"EOF" } EOF } # end: func_emit_cwrapperexe_src # func_win32_import_lib_p ARG # True if ARG is an import lib, as indicated by $file_magic_cmd func_win32_import_lib_p () { $debug_cmd case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in *import*) : ;; *) false ;; esac } # func_suncc_cstd_abi # !!ONLY CALL THIS FOR SUN CC AFTER $compile_command IS FULLY EXPANDED!! # Several compiler flags select an ABI that is incompatible with the # Cstd library. Avoid specifying it if any are in CXXFLAGS. func_suncc_cstd_abi () { $debug_cmd case " $compile_command " in *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*) suncc_use_cstd_abi=no ;; *) suncc_use_cstd_abi=yes ;; esac } # func_mode_link arg... func_mode_link () { $debug_cmd case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) # It is impossible to link a dll without this setting, and # we shouldn't force the makefile maintainer to figure out # what system we are compiling for in order to pass an extra # flag for every libtool invocation. # allow_undefined=no # FIXME: Unfortunately, there are problems with the above when trying # to make a dll that has undefined symbols, in which case not # even a static library is built. For now, we need to specify # -no-undefined on the libtool link line when we can be certain # that all symbols are satisfied, otherwise we get a static library. allow_undefined=yes ;; *) allow_undefined=yes ;; esac libtool_args=$nonopt base_compile="$nonopt $@" compile_command=$nonopt finalize_command=$nonopt compile_rpath= finalize_rpath= compile_shlibpath= finalize_shlibpath= convenience= old_convenience= deplibs= old_deplibs= compiler_flags= linker_flags= dllsearchpath= lib_search_path=`pwd` inst_prefix_dir= new_inherited_linker_flags= avoid_version=no bindir= dlfiles= dlprefiles= dlself=no export_dynamic=no export_symbols= export_symbols_regex= generated= libobjs= ltlibs= module=no no_install=no objs= os2dllname= non_pic_objects= precious_files_regex= prefer_static_libs=no preload=false prev= prevarg= release= rpath= xrpath= perm_rpath= temp_rpath= thread_safe=no vinfo= vinfo_number=no weak_libs= single_module=$wl-single_module func_infer_tag $base_compile # We need to know -static, to get the right output filenames. for arg do case $arg in -shared) test yes != "$build_libtool_libs" \ && func_fatal_configuration "cannot build a shared library" build_old_libs=no break ;; -all-static | -static | -static-libtool-libs) case $arg in -all-static) if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then func_warning "complete static linking is impossible in this configuration" fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; -static) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built ;; -static-libtool-libs) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; esac build_libtool_libs=no build_old_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. while test "$#" -gt 0; do arg=$1 shift func_quote_for_eval "$arg" qarg=$func_quote_for_eval_unquoted_result func_append libtool_args " $func_quote_for_eval_result" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) func_append compile_command " @OUTPUT@" func_append finalize_command " @OUTPUT@" ;; esac case $prev in bindir) bindir=$arg prev= continue ;; dlfiles|dlprefiles) $preload || { # Add the symbol object into the linking commands. func_append compile_command " @SYMFILE@" func_append finalize_command " @SYMFILE@" preload=: } case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test no = "$dlself"; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test dlprefiles = "$prev"; then dlself=yes elif test dlfiles = "$prev" && test yes != "$dlopen_self"; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test dlfiles = "$prev"; then func_append dlfiles " $arg" else func_append dlprefiles " $arg" fi prev= continue ;; esac ;; expsyms) export_symbols=$arg test -f "$arg" \ || func_fatal_error "symbol file '$arg' does not exist" prev= continue ;; expsyms_regex) export_symbols_regex=$arg prev= continue ;; framework) case $host in *-*-darwin*) case "$deplibs " in *" $qarg.ltframework "*) ;; *) func_append deplibs " $qarg.ltframework" # this is fixed later ;; esac ;; esac prev= continue ;; inst_prefix) inst_prefix_dir=$arg prev= continue ;; mllvm) # Clang does not use LLVM to link, so we can simply discard any # '-mllvm $arg' options when doing the link step. prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat "$save_arg"` do # func_append moreargs " $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test none = "$pic_object" && test none = "$non_pic_object"; then func_fatal_error "cannot find name of object for '$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir=$func_dirname_result if test none != "$pic_object"; then # Prepend the subdirectory the object is found in. pic_object=$xdir$pic_object if test dlfiles = "$prev"; then if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then func_append dlfiles " $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test dlprefiles = "$prev"; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg=$pic_object fi # Non-PIC object. if test none != "$non_pic_object"; then # Prepend the subdirectory the object is found in. non_pic_object=$xdir$non_pic_object # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test none = "$pic_object"; then arg=$non_pic_object fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object=$pic_object func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir=$func_dirname_result func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "'$arg' is not a valid libtool object" fi fi done else func_fatal_error "link input file '$arg' does not exist" fi arg=$save_arg prev= continue ;; os2dllname) os2dllname=$arg prev= continue ;; precious_regex) precious_files_regex=$arg prev= continue ;; release) release=-$arg prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac if test rpath = "$prev"; then case "$rpath " in *" $arg "*) ;; *) func_append rpath " $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) func_append xrpath " $arg" ;; esac fi prev= continue ;; shrext) shrext_cmds=$arg prev= continue ;; weak) func_append weak_libs " $arg" prev= continue ;; xcclinker) func_append linker_flags " $qarg" func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xcompiler) func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xlinker) func_append linker_flags " $qarg" func_append compiler_flags " $wl$qarg" prev= func_append compile_command " $wl$qarg" func_append finalize_command " $wl$qarg" continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg=$arg case $arg in -all-static) if test -n "$link_static_flag"; then # See comment for -static flag below, for more details. func_append compile_command " $link_static_flag" func_append finalize_command " $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. func_fatal_error "'-allow-undefined' must not be used because it is the default" ;; -avoid-version) avoid_version=yes continue ;; -bindir) prev=bindir continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then func_fatal_error "more than one -exported-symbols argument is not allowed" fi if test X-export-symbols = "X$arg"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework) prev=framework continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) func_append compile_command " $arg" func_append finalize_command " $arg" ;; esac continue ;; -L*) func_stripname "-L" '' "$arg" if test -z "$func_stripname_result"; then if test "$#" -gt 0; then func_fatal_error "require no space between '-L' and '$1'" else func_fatal_error "need path for '-L' option" fi fi func_resolve_sysroot "$func_stripname_result" dir=$func_resolve_sysroot_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` test -z "$absdir" && \ func_fatal_error "cannot determine absolute directory name of '$dir'" dir=$absdir ;; esac case "$deplibs " in *" -L$dir "* | *" $arg "*) # Will only happen for absolute or sysroot arguments ;; *) # Preserve sysroot, but never include relative directories case $dir in [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;; *) func_append deplibs " -L$dir" ;; esac func_append lib_search_path " $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; ::) dllsearchpath=$dir;; *) func_append dllsearchpath ":$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append dllsearchpath ":$testbindir";; esac ;; esac continue ;; -l*) if test X-lc = "X$arg" || test X-lm = "X$arg"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test X-lc = "X$arg" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*) # Do not include libc due to us having libc/libc_r. test X-lc = "X$arg" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework func_append deplibs " System.ltframework" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test X-lc = "X$arg" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test X-lc = "X$arg" && continue ;; esac elif test X-lc_r = "X$arg"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi func_append deplibs " $arg" continue ;; -mllvm) prev=mllvm continue ;; -module) module=yes continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. # Darwin uses the -arch flag to determine output architecture. -model|-arch|-isysroot|--sysroot) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case "$new_inherited_linker_flags " in *" $arg "*) ;; * ) func_append new_inherited_linker_flags " $arg" ;; esac continue ;; -multi_module) single_module=$wl-multi_module continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) # The PATH hackery in wrapper scripts is required on Windows # and Darwin in order for the loader to find any dlls it needs. func_warning "'-no-install' is ignored for $host" func_warning "assuming '-no-fast-install' instead" fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -os2dllname) prev=os2dllname continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) func_stripname '-R' '' "$arg" dir=$func_stripname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; =*) func_stripname '=' '' "$dir" dir=$lt_sysroot$func_stripname_result ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac case "$xrpath " in *" $dir "*) ;; *) func_append xrpath " $dir" ;; esac continue ;; -shared) # The effects of -shared are defined in a previous loop. continue ;; -shrext) prev=shrext continue ;; -static | -static-libtool-libs) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects # would be equivalent was wrong. It would break on at least # Digital Unix and AIX. continue ;; -thread-safe) thread_safe=yes continue ;; -version-info) prev=vinfo continue ;; -version-number) prev=vinfo vinfo_number=yes continue ;; -weak) prev=weak continue ;; -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result arg= save_ifs=$IFS; IFS=, for flag in $args; do IFS=$save_ifs func_quote_for_eval "$flag" func_append arg " $func_quote_for_eval_result" func_append compiler_flags " $func_quote_for_eval_result" done IFS=$save_ifs func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Wl,*) func_stripname '-Wl,' '' "$arg" args=$func_stripname_result arg= save_ifs=$IFS; IFS=, for flag in $args; do IFS=$save_ifs func_quote_for_eval "$flag" func_append arg " $wl$func_quote_for_eval_result" func_append compiler_flags " $wl$func_quote_for_eval_result" func_append linker_flags " $func_quote_for_eval_result" done IFS=$save_ifs func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # -msg_* for osf cc -msg_*) func_quote_for_eval "$arg" arg=$func_quote_for_eval_result ;; # Flags to be passed through unchanged, with rationale: # -64, -mips[0-9] enable 64-bit mode for the SGI compiler # -r[0-9][0-9]* specify processor for the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler # +DA*, +DD* enable 64-bit mode for the HP compiler # -q* compiler args for the IBM compiler # -m*, -t[45]*, -txscale* architecture-specific flags for GCC # -F/path path to uninstalled frameworks, gcc on darwin # -p, -pg, --coverage, -fprofile-* profiling flags for GCC # -fstack-protector* stack protector flags for GCC # @file GCC response files # -tp=* Portland pgcc target processor selection # --sysroot=* for sysroot support # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization # -stdlib=* select c++ std lib with clang -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*) func_quote_for_eval "$arg" arg=$func_quote_for_eval_result func_append compile_command " $arg" func_append finalize_command " $arg" func_append compiler_flags " $arg" continue ;; -Z*) if test os2 = "`expr $host : '.*\(os2\)'`"; then # OS/2 uses -Zxxx to specify OS/2-specific options compiler_flags="$compiler_flags $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case $arg in -Zlinker | -Zstack) prev=xcompiler ;; esac continue else # Otherwise treat like 'Some other compiler flag' below func_quote_for_eval "$arg" arg=$func_quote_for_eval_result fi ;; # Some other compiler flag. -* | +*) func_quote_for_eval "$arg" arg=$func_quote_for_eval_result ;; *.$objext) # A standard object. func_append objs " $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test none = "$pic_object" && test none = "$non_pic_object"; then func_fatal_error "cannot find name of object for '$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir=$func_dirname_result test none = "$pic_object" || { # Prepend the subdirectory the object is found in. pic_object=$xdir$pic_object if test dlfiles = "$prev"; then if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then func_append dlfiles " $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test dlprefiles = "$prev"; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg=$pic_object } # Non-PIC object. if test none != "$non_pic_object"; then # Prepend the subdirectory the object is found in. non_pic_object=$xdir$non_pic_object # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test none = "$pic_object"; then arg=$non_pic_object fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object=$pic_object func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir=$func_dirname_result func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "'$arg' is not a valid libtool object" fi fi ;; *.$libext) # An archive. func_append deplibs " $arg" func_append old_deplibs " $arg" continue ;; *.la) # A libtool-controlled library. func_resolve_sysroot "$arg" if test dlfiles = "$prev"; then # This library was specified with -dlopen. func_append dlfiles " $func_resolve_sysroot_result" prev= elif test dlprefiles = "$prev"; then # The library was specified with -dlpreopen. func_append dlprefiles " $func_resolve_sysroot_result" prev= else func_append deplibs " $func_resolve_sysroot_result" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. func_quote_for_eval "$arg" arg=$func_quote_for_eval_result ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then func_append compile_command " $arg" func_append finalize_command " $arg" fi done # argument parsing loop test -n "$prev" && \ func_fatal_help "the '$prevarg' option requires an argument" if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" func_append compile_command " $arg" func_append finalize_command " $arg" fi oldlibs= # calculate the name of the file, without its directory func_basename "$output" outputname=$func_basename_result libobjs_save=$libobjs if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$ECHO \"\$$shlibpath_var\" \| \$SED \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" # Definition is injected by LT_CONFIG during libtool generation. func_munge_path_list sys_lib_dlsearch_path "$LT_SYS_LIBRARY_PATH" func_dirname "$output" "/" "" output_objdir=$func_dirname_result$objdir func_to_tool_file "$output_objdir/" tool_output_objdir=$func_to_tool_file_result # Create the object directory. func_mkdir_p "$output_objdir" # Determine the type of output case $output in "") func_fatal_help "you must specify an output file" ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if $opt_preserve_dup_deps; then case "$libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append libs " $deplib" done if test lib = "$linkmode"; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if $opt_duplicate_compiler_generated_deps; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;; esac func_append pre_post_deps " $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries notinst_path= # paths that contain not-installed libtool libraries case $linkmode in lib) passes="conv dlpreopen link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) func_fatal_help "libraries can '-dlopen' only libtool libraries: $file" ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=false newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do # The preopen pass in lib mode reverses $deplibs; put it back here # so that -L comes before libs that need it for instance... if test lib,link = "$linkmode,$pass"; then ## FIXME: Find the place where the list is rebuilt in the wrong ## order, and fix it there properly tmp_deplibs= for deplib in $deplibs; do tmp_deplibs="$deplib $tmp_deplibs" done deplibs=$tmp_deplibs fi if test lib,link = "$linkmode,$pass" || test prog,scan = "$linkmode,$pass"; then libs=$deplibs deplibs= fi if test prog = "$linkmode"; then case $pass in dlopen) libs=$dlfiles ;; dlpreopen) libs=$dlprefiles ;; link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; esac fi if test lib,dlpreopen = "$linkmode,$pass"; then # Collect and forward deplibs of preopened libtool libs for lib in $dlprefiles; do # Ignore non-libtool-libs dependency_libs= func_resolve_sysroot "$lib" case $lib in *.la) func_source "$func_resolve_sysroot_result" ;; esac # Collect preopened libtool deplibs, except any this library # has declared as weak libs for deplib in $dependency_libs; do func_basename "$deplib" deplib_base=$func_basename_result case " $weak_libs " in *" $deplib_base "*) ;; *) func_append deplibs " $deplib" ;; esac done done libs=$dlprefiles fi if test dlopen = "$pass"; then # Collect dlpreopened libraries save_deplibs=$deplibs deplibs= fi for deplib in $libs; do lib= found=false case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) if test prog,link = "$linkmode,$pass"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append compiler_flags " $deplib" if test lib = "$linkmode"; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -l*) if test lib != "$linkmode" && test prog != "$linkmode"; then func_warning "'-l' is ignored for archives/objects" continue fi func_stripname '-l' '' "$deplib" name=$func_stripname_result if test lib = "$linkmode"; then searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" else searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" fi for searchdir in $searchdirs; do for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib=$searchdir/lib$name$search_ext if test -f "$lib"; then if test .la = "$search_ext"; then found=: else found=false fi break 2 fi done done if $found; then # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test yes = "$allow_libtool_libs_with_static_runtimes"; then case " $predeps $postdeps " in *" $deplib "*) if func_lalib_p "$lib"; then library_names= old_library= func_source "$lib" for l in $old_library $library_names; do ll=$l done if test "X$ll" = "X$old_library"; then # only static version available found=false func_dirname "$lib" "" "." ladir=$func_dirname_result lib=$ladir/$old_library if test prog,link = "$linkmode,$pass"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi else # deplib doesn't seem to be a libtool library if test prog,link = "$linkmode,$pass"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs" fi continue fi ;; # -l *.ltframework) if test prog,link = "$linkmode,$pass"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" if test lib = "$linkmode"; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test conv = "$pass" && continue newdependency_libs="$deplib $newdependency_libs" func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; prog) if test conv = "$pass"; then deplibs="$deplib $deplibs" continue fi if test scan = "$pass"; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; *) func_warning "'-L' is ignored for archives/objects" ;; esac # linkmode continue ;; # -L -R*) if test link = "$pass"; then func_stripname '-R' '' "$deplib" func_resolve_sysroot "$func_stripname_result" dir=$func_resolve_sysroot_result # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) func_append xrpath " $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) func_resolve_sysroot "$deplib" lib=$func_resolve_sysroot_result ;; *.$libext) if test conv = "$pass"; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) # Linking convenience modules into shared libraries is allowed, # but linking other static libraries is non-portable. case " $dlpreconveniencelibs " in *" $deplib "*) ;; *) valid_a_lib=false case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=: fi ;; pass_all) valid_a_lib=: ;; esac if $valid_a_lib; then echo $ECHO "*** Warning: Linking the shared library $output against the" $ECHO "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" else echo $ECHO "*** Warning: Trying to link with static lib archive $deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because the file extensions .$libext of this argument makes me believe" echo "*** that it is just a static archive that I should not use here." fi ;; esac continue ;; prog) if test link != "$pass"; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test conv = "$pass"; then deplibs="$deplib $deplibs" elif test prog = "$linkmode"; then if test dlpreopen = "$pass" || test yes != "$dlopen_support" || test no = "$build_libtool_libs"; then # If there is no dlopen support or we're linking statically, # we need to preload. func_append newdlprefiles " $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append newdlfiles " $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=: continue ;; esac # case $deplib $found || test -f "$lib" \ || func_fatal_error "cannot find the library '$lib' or unhandled argument '$deplib'" # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$lib" \ || func_fatal_error "'$lib' is not a valid libtool archive" func_dirname "$lib" "" "." ladir=$func_dirname_result dlname= dlopen= dlpreopen= libdir= library_names= old_library= inherited_linker_flags= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no avoidtemprpath= # Read the .la file func_source "$lib" # Convert "-framework foo" to "foo.ltframework" if test -n "$inherited_linker_flags"; then tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'` for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do case " $new_inherited_linker_flags " in *" $tmp_inherited_linker_flag "*) ;; *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";; esac done fi dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` if test lib,link = "$linkmode,$pass" || test prog,scan = "$linkmode,$pass" || { test prog != "$linkmode" && test lib != "$linkmode"; }; then test -n "$dlopen" && func_append dlfiles " $dlopen" test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen" fi if test conv = "$pass"; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then func_fatal_error "cannot find name of link library for '$lib'" fi # It is a libtool convenience library, so add in its objects. func_append convenience " $ladir/$objdir/$old_library" func_append old_convenience " $ladir/$objdir/$old_library" elif test prog != "$linkmode" && test lib != "$linkmode"; then func_fatal_error "'$lib' is not a convenience library" fi tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if $opt_preserve_dup_deps; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done continue fi # $pass = conv # Get the name of the library we link against. linklib= if test -n "$old_library" && { test yes = "$prefer_static_libs" || test built,no = "$prefer_static_libs,$installed"; }; then linklib=$old_library else for l in $old_library $library_names; do linklib=$l done fi if test -z "$linklib"; then func_fatal_error "cannot find name of link library for '$lib'" fi # This library was specified with -dlopen. if test dlopen = "$pass"; then test -z "$libdir" \ && func_fatal_error "cannot -dlopen a convenience library: '$lib'" if test -z "$dlname" || test yes != "$dlopen_support" || test no = "$build_libtool_libs" then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. func_append dlprefiles " $lib $dependency_libs" else func_append newdlfiles " $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then func_warning "cannot determine absolute directory name of '$ladir'" func_warning "passing it literally to the linker, although it might fail" abs_ladir=$ladir fi ;; esac func_basename "$lib" laname=$func_basename_result # Find the relevant object directory and library name. if test yes = "$installed"; then if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then func_warning "library '$lib' was moved." dir=$ladir absdir=$abs_ladir libdir=$abs_ladir else dir=$lt_sysroot$libdir absdir=$lt_sysroot$libdir fi test yes = "$hardcode_automatic" && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir=$ladir absdir=$abs_ladir # Remove this search path later func_append notinst_path " $abs_ladir" else dir=$ladir/$objdir absdir=$abs_ladir/$objdir # Remove this search path later func_append notinst_path " $abs_ladir" fi fi # $installed = yes func_stripname 'lib' '.la' "$laname" name=$func_stripname_result # This library was specified with -dlpreopen. if test dlpreopen = "$pass"; then if test -z "$libdir" && test prog = "$linkmode"; then func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'" fi case $host in # special handling for platforms with PE-DLLs. *cygwin* | *mingw* | *cegcc* ) # Linker will automatically link against shared library if both # static and shared are present. Therefore, ensure we extract # symbols from the import library if a shared library is present # (otherwise, the dlopen module name will be incorrect). We do # this by putting the import library name into $newdlprefiles. # We recover the dlopen module name by 'saving' the la file # name in a special purpose variable, and (later) extracting the # dlname from the la file. if test -n "$dlname"; then func_tr_sh "$dir/$linklib" eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname" func_append newdlprefiles " $dir/$linklib" else func_append newdlprefiles " $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ func_append dlpreconveniencelibs " $dir/$old_library" fi ;; * ) # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then func_append newdlprefiles " $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ func_append dlpreconveniencelibs " $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then func_append newdlprefiles " $dir/$dlname" else func_append newdlprefiles " $dir/$linklib" fi ;; esac fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test lib = "$linkmode"; then deplibs="$dir/$old_library $deplibs" elif test prog,link = "$linkmode,$pass"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test prog = "$linkmode" && test link != "$pass"; then func_append newlib_search_path " $ladir" deplibs="$lib $deplibs" linkalldeplibs=false if test no != "$link_all_deplibs" || test -z "$library_names" || test no = "$build_libtool_libs"; then linkalldeplibs=: fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; esac # Need to link against all dependency_libs? if $linkalldeplibs; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if $opt_preserve_dup_deps; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done # for deplib continue fi # $linkmode = prog... if test prog,link = "$linkmode,$pass"; then if test -n "$library_names" && { { test no = "$prefer_static_libs" || test built,yes = "$prefer_static_libs,$installed"; } || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then # Make sure the rpath contains only unique directories. case $temp_rpath: in *"$absdir:"*) ;; *) func_append temp_rpath "$absdir:" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi # $linkmode,$pass = prog,link... if $alldeplibs && { test pass_all = "$deplibs_check_method" || { test yes = "$build_libtool_libs" && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically use_static_libs=$prefer_static_libs if test built = "$use_static_libs" && test yes = "$installed"; then use_static_libs=no fi if test -n "$library_names" && { test no = "$use_static_libs" || test -z "$old_library"; }; then case $host in *cygwin* | *mingw* | *cegcc* | *os2*) # No point in relinking DLLs because paths are not encoded func_append notinst_deplibs " $lib" need_relink=no ;; *) if test no = "$installed"; then func_append notinst_deplibs " $lib" need_relink=yes fi ;; esac # This is a shared library # Warn about portability, can't link against -module's on some # systems (darwin). Don't bleat about dlopened modules though! dlopenmodule= for dlpremoduletest in $dlprefiles; do if test "X$dlpremoduletest" = "X$lib"; then dlopenmodule=$dlpremoduletest break fi done if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then echo if test prog = "$linkmode"; then $ECHO "*** Warning: Linking the executable $output against the loadable module" else $ECHO "*** Warning: Linking the shared library $output against the loadable module" fi $ECHO "*** $linklib is not portable!" fi if test lib = "$linkmode" && test yes = "$hardcode_into_libs"; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names shift realname=$1 shift libname=`eval "\\$ECHO \"$libname_spec\""` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname=$dlname elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw* | *cegcc* | *os2*) func_arith $current - $age major=$func_arith_result versuffix=-$major ;; esac eval soname=\"$soname_spec\" else soname=$realname fi # Make a new name for the extract_expsyms_cmds to use soroot=$soname func_basename "$soroot" soname=$func_basename_result func_stripname 'lib' '.dll' "$soname" newlib=libimp-$func_stripname_result.a # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else func_verbose "extracting exported symbol list from '$soname'" func_execute_cmds "$extract_expsyms_cmds" 'exit $?' fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else func_verbose "generating import library for '$soname'" func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test prog = "$linkmode" || test relink != "$opt_mode"; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test no = "$hardcode_direct"; then add=$dir/$linklib case $host in *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;; *-*-sysv4*uw2*) add_dir=-L$dir ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) add_dir=-L$dir ;; *-*-darwin* ) # if the lib is a (non-dlopened) module then we cannot # link against it, someone is ignoring the earlier warnings if /usr/bin/file -L $add 2> /dev/null | $GREP ": [^:]* bundle" >/dev/null; then if test "X$dlopenmodule" != "X$lib"; then $ECHO "*** Warning: lib $linklib is a module, not a shared library" if test -z "$old_library"; then echo echo "*** And there doesn't seem to be a static archive available" echo "*** The link will probably fail, sorry" else add=$dir/$old_library fi elif test -n "$old_library"; then add=$dir/$old_library fi fi esac elif test no = "$hardcode_minus_L"; then case $host in *-*-sunos*) add_shlibpath=$dir ;; esac add_dir=-L$dir add=-l$name elif test no = "$hardcode_shlibpath_var"; then add_shlibpath=$dir add=-l$name else lib_linked=no fi ;; relink) if test yes = "$hardcode_direct" && test no = "$hardcode_direct_absolute"; then add=$dir/$linklib elif test yes = "$hardcode_minus_L"; then add_dir=-L$absdir # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add=-l$name elif test yes = "$hardcode_shlibpath_var"; then add_shlibpath=$dir add=-l$name else lib_linked=no fi ;; *) lib_linked=no ;; esac if test yes != "$lib_linked"; then func_fatal_configuration "unsupported hardcode properties" fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) func_append compile_shlibpath "$add_shlibpath:" ;; esac fi if test prog = "$linkmode"; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test yes != "$hardcode_direct" && test yes != "$hardcode_minus_L" && test yes = "$hardcode_shlibpath_var"; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac fi fi fi if test prog = "$linkmode" || test relink = "$opt_mode"; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test yes = "$hardcode_direct" && test no = "$hardcode_direct_absolute"; then add=$libdir/$linklib elif test yes = "$hardcode_minus_L"; then add_dir=-L$libdir add=-l$name elif test yes = "$hardcode_shlibpath_var"; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac add=-l$name elif test yes = "$hardcode_automatic"; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib"; then add=$inst_prefix_dir$libdir/$linklib else add=$libdir/$linklib fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir=-L$libdir # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add=-l$name fi if test prog = "$linkmode"; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test prog = "$linkmode"; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test unsupported != "$hardcode_direct"; then test -n "$old_library" && linklib=$old_library compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test yes = "$build_libtool_libs"; then # Not a shared library if test pass_all != "$deplibs_check_method"; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. echo $ECHO "*** Warning: This system cannot link to static lib archive $lib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have." if test yes = "$module"; then echo "*** But as you try to build a module library, libtool will still create " echo "*** a static module, that should work as long as the dlopening application" echo "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then echo echo "*** However, this would only work if libtool was able to extract symbol" echo "*** lists from a program, using 'nm' or equivalent, but libtool could" echo "*** not find such a program. So, this module is probably useless." echo "*** 'nm' from GNU binutils and a full rebuild may help." fi if test no = "$build_old_libs"; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test lib = "$linkmode"; then if test -n "$dependency_libs" && { test yes != "$hardcode_into_libs" || test yes = "$build_old_libs" || test yes = "$link_static"; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) func_stripname '-R' '' "$libdir" temp_xrpath=$func_stripname_result case " $xrpath " in *" $temp_xrpath "*) ;; *) func_append xrpath " $temp_xrpath";; esac;; *) func_append temp_deplibs " $libdir";; esac done dependency_libs=$temp_deplibs fi func_append newlib_search_path " $absdir" # Link against this library test no = "$link_static" && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" case $deplib in -L*) func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result";; *) func_resolve_sysroot "$deplib" ;; esac if $opt_preserve_dup_deps; then case "$tmp_libs " in *" $func_resolve_sysroot_result "*) func_append specialdeplibs " $func_resolve_sysroot_result" ;; esac fi func_append tmp_libs " $func_resolve_sysroot_result" done if test no != "$link_all_deplibs"; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do path= case $deplib in -L*) path=$deplib ;; *.la) func_resolve_sysroot "$deplib" deplib=$func_resolve_sysroot_result func_dirname "$deplib" "" "." dir=$func_dirname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then func_warning "cannot determine absolute directory name of '$dir'" absdir=$dir fi ;; esac if $GREP "^installed=no" $deplib > /dev/null; then case $host in *-*-darwin*) depdepl= eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names"; then for tmp in $deplibrary_names; do depdepl=$tmp done if test -f "$absdir/$objdir/$depdepl"; then depdepl=$absdir/$objdir/$depdepl darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` if test -z "$darwin_install_name"; then darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` fi func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl" func_append linker_flags " -dylib_file $darwin_install_name:$depdepl" path= fi fi ;; *) path=-L$absdir/$objdir ;; esac else eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "'$deplib' is not a valid libtool archive" test "$absdir" != "$libdir" && \ func_warning "'$deplib' seems to be moved" path=-L$absdir fi ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs if test link = "$pass"; then if test prog = "$linkmode"; then compile_deplibs="$new_inherited_linker_flags $compile_deplibs" finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" else compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` fi fi dependency_libs=$newdependency_libs if test dlpreopen = "$pass"; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test dlopen != "$pass"; then test conv = "$pass" || { # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) func_append lib_search_path " $dir" ;; esac done newlib_search_path= } if test prog,link = "$linkmode,$pass"; then vars="compile_deplibs finalize_deplibs" else vars=deplibs fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) func_append tmp_libs " $deplib" ;; esac ;; *) func_append tmp_libs " $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Add Sun CC postdeps if required: test CXX = "$tagname" && { case $host_os in linux*) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 func_suncc_cstd_abi if test no != "$suncc_use_cstd_abi"; then func_append postdeps ' -library=Cstd -library=Crun' fi ;; esac ;; solaris*) func_cc_basename "$CC" case $func_cc_basename_result in CC* | sunCC*) func_suncc_cstd_abi if test no != "$suncc_use_cstd_abi"; then func_append postdeps ' -library=Cstd -library=Crun' fi ;; esac ;; esac } # Last step: remove runtime libs from dependency_libs # (they stay in deplibs) tmp_libs= for i in $dependency_libs; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i= ;; esac if test -n "$i"; then func_append tmp_libs " $i" fi done dependency_libs=$tmp_libs done # for pass if test prog = "$linkmode"; then dlfiles=$newdlfiles fi if test prog = "$linkmode" || test lib = "$linkmode"; then dlprefiles=$newdlprefiles fi case $linkmode in oldlib) if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then func_warning "'-dlopen' is ignored for archives" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "'-l' and '-L' are ignored for archives" ;; esac test -n "$rpath" && \ func_warning "'-rpath' is ignored for archives" test -n "$xrpath" && \ func_warning "'-R' is ignored for archives" test -n "$vinfo" && \ func_warning "'-version-info/-version-number' is ignored for archives" test -n "$release" && \ func_warning "'-release' is ignored for archives" test -n "$export_symbols$export_symbols_regex" && \ func_warning "'-export-symbols' is ignored for archives" # Now set the variables for building old libraries. build_libtool_libs=no oldlibs=$output func_append objs "$old_deplibs" ;; lib) # Make sure we only generate libraries of the form 'libNAME.la'. case $outputname in lib*) func_stripname 'lib' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) test no = "$module" \ && func_fatal_help "libtool library '$output' must begin with 'lib'" if test no != "$need_lib_prefix"; then # Add the "lib" prefix for modules if required func_stripname '' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else func_stripname '' '.la' "$outputname" libname=$func_stripname_result fi ;; esac if test -n "$objs"; then if test pass_all != "$deplibs_check_method"; then func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$objs" else echo $ECHO "*** Warning: Linking the shared library $output against the non-libtool" $ECHO "*** objects $objs is not portable!" func_append libobjs " $objs" fi fi test no = "$dlself" \ || func_warning "'-dlopen self' is ignored for libtool libraries" set dummy $rpath shift test 1 -lt "$#" \ && func_warning "ignoring multiple '-rpath's for a libtool library" install_libdir=$1 oldlibs= if test -z "$rpath"; then if test yes = "$build_libtool_libs"; then # Building a libtool convenience library. # Some compilers have problems with a '.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi test -n "$vinfo" && \ func_warning "'-version-info/-version-number' is ignored for convenience libraries" test -n "$release" && \ func_warning "'-release' is ignored for convenience libraries" else # Parse the version information argument. save_ifs=$IFS; IFS=: set dummy $vinfo 0 0 0 shift IFS=$save_ifs test -n "$7" && \ func_fatal_help "too many parameters to '-version-info'" # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major=$1 number_minor=$2 number_revision=$3 # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # that has an extra 1 added just for fun # case $version_type in # correct linux to gnu/linux during the next big refactor darwin|freebsd-elf|linux|osf|windows|none) func_arith $number_major + $number_minor current=$func_arith_result age=$number_minor revision=$number_revision ;; freebsd-aout|qnx|sunos) current=$number_major revision=$number_minor age=0 ;; irix|nonstopux) func_arith $number_major + $number_minor current=$func_arith_result age=$number_minor revision=$number_minor lt_irix_increment=no ;; esac ;; no) current=$1 revision=$2 age=$3 ;; esac # Check that each of the things are valid numbers. case $current in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "CURRENT '$current' must be a nonnegative integer" func_fatal_error "'$vinfo' is not valid version information" ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "REVISION '$revision' must be a nonnegative integer" func_fatal_error "'$vinfo' is not valid version information" ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "AGE '$age' must be a nonnegative integer" func_fatal_error "'$vinfo' is not valid version information" ;; esac if test "$age" -gt "$current"; then func_error "AGE '$age' is greater than the current interface number '$current'" func_fatal_error "'$vinfo' is not valid version information" fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header func_arith $current - $age major=.$func_arith_result versuffix=$major.$age.$revision # Darwin ld doesn't like 0 for these options... func_arith $current + 1 minor_current=$func_arith_result xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision" verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" # On Darwin other compilers case $CC in nagfor*) verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision" ;; *) verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ;; esac ;; freebsd-aout) major=.$current versuffix=.$current.$revision ;; freebsd-elf) func_arith $current - $age major=.$func_arith_result versuffix=$major.$age.$revision ;; irix | nonstopux) if test no = "$lt_irix_increment"; then func_arith $current - $age else func_arith $current - $age + 1 fi major=$func_arith_result case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring=$verstring_prefix$major.$revision # Add in all the interfaces that we are compatible with. loop=$revision while test 0 -ne "$loop"; do func_arith $revision - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring=$verstring_prefix$major.$iface:$verstring done # Before this point, $major must not contain '.'. major=.$major versuffix=$major.$revision ;; linux) # correct to gnu/linux during the next big refactor func_arith $current - $age major=.$func_arith_result versuffix=$major.$age.$revision ;; osf) func_arith $current - $age major=.$func_arith_result versuffix=.$current.$age.$revision verstring=$current.$age.$revision # Add in all the interfaces that we are compatible with. loop=$age while test 0 -ne "$loop"; do func_arith $current - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring=$verstring:$iface.0 done # Make executables depend on our current version. func_append verstring ":$current.0" ;; qnx) major=.$current versuffix=.$current ;; sco) major=.$current versuffix=.$current ;; sunos) major=.$current versuffix=.$current.$revision ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 file systems. func_arith $current - $age major=$func_arith_result versuffix=-$major ;; *) func_fatal_configuration "unknown library version type '$version_type'" ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring=0.0 ;; esac if test no = "$need_version"; then versuffix= else versuffix=.0.0 fi fi # Remove version info from name if versioning should be avoided if test yes,no = "$avoid_version,$need_version"; then major= versuffix= verstring= fi # Check to see if the archive will have undefined symbols. if test yes = "$allow_undefined"; then if test unsupported = "$allow_undefined_flag"; then if test yes = "$build_old_libs"; then func_warning "undefined symbols not allowed in $host shared libraries; building static only" build_libtool_libs=no else func_fatal_error "can't build $host shared library unless -no-undefined is specified" fi fi else # Don't allow undefined symbols. allow_undefined_flag=$no_undefined_flag fi fi func_generate_dlsyms "$libname" "$libname" : func_append libobjs " $symfileobj" test " " = "$libobjs" && libobjs= if test relink != "$opt_mode"; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= tempremovelist=`$ECHO "$output_objdir/*"` for p in $tempremovelist; do case $p in *.$objext | *.gcno) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/$libname$release.*) if test -n "$precious_files_regex"; then if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi func_append removelist " $p" ;; *) ;; esac done test -n "$removelist" && \ func_show_eval "${RM}r \$removelist" fi # Now set the variables for building old libraries. if test yes = "$build_old_libs" && test convenience != "$build_libtool_libs"; then func_append oldlibs " $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; $lo2o" | $NL2SP` fi # Eliminate all temporary directories. #for path in $notinst_path; do # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"` # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"` # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"` #done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do func_replace_sysroot "$libdir" func_append temp_xrpath " -R$func_replace_sysroot_result" case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac done if test yes != "$hardcode_into_libs" || test yes = "$build_old_libs"; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles=$dlfiles dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) func_append dlfiles " $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles=$dlprefiles dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) func_append dlprefiles " $lib" ;; esac done if test yes = "$build_libtool_libs"; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework func_append deplibs " System.ltframework" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # Add libc to deplibs on all other systems if necessary. if test yes = "$build_libtool_need_lc"; then func_append deplibs " -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release= versuffix= major= newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $opt_dry_run || $RM conftest.c cat > conftest.c </dev/null` $nocaseglob else potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` fi for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null | $GREP " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib=$potent_lib while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | $SED 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;; *) potlib=`$ECHO "$potlib" | $SED 's|[^/]*$||'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | $SED -e 10q | $EGREP "$file_magic_regex" > /dev/null; then func_append newdeplibs " $a_deplib" a_deplib= break 2 fi done done fi if test -n "$a_deplib"; then droppeddeps=yes echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib"; then $ECHO "*** with $libname but no candidates were found. (...for file magic test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a file magic. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` for a_deplib in $deplibs; do case $a_deplib in -l*) func_stripname -l '' "$a_deplib" name=$func_stripname_result if test yes = "$allow_libtool_libs_with_static_runtimes"; then case " $predeps $postdeps " in *" $a_deplib "*) func_append newdeplibs " $a_deplib" a_deplib= ;; esac fi if test -n "$a_deplib"; then libname=`eval "\\$ECHO \"$libname_spec\""` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib=$potent_lib # see symlink-check above in file_magic test if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \ $EGREP "$match_pattern_regex" > /dev/null; then func_append newdeplibs " $a_deplib" a_deplib= break 2 fi done done fi if test -n "$a_deplib"; then droppeddeps=yes echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib"; then $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a regex pattern. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; none | unknown | *) newdeplibs= tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'` if test yes = "$allow_libtool_libs_with_static_runtimes"; then for i in $predeps $postdeps; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s|$i||"` done fi case $tmp_deplibs in *[!\ \ ]*) echo if test none = "$deplibs_check_method"; then echo "*** Warning: inter-library dependencies are not supported in this platform." else echo "*** Warning: inter-library dependencies are not known to be supported." fi echo "*** All declared inter-library dependencies are being dropped." droppeddeps=yes ;; esac ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library with the System framework newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac if test yes = "$droppeddeps"; then if test yes = "$module"; then echo echo "*** Warning: libtool could not satisfy all declared inter-library" $ECHO "*** dependencies of module $libname. Therefore, libtool will create" echo "*** a static module, that should work as long as the dlopening" echo "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then echo echo "*** However, this would only work if libtool was able to extract symbol" echo "*** lists from a program, using 'nm' or equivalent, but libtool could" echo "*** not find such a program. So, this module is probably useless." echo "*** 'nm' from GNU binutils and a full rebuild may help." fi if test no = "$build_old_libs"; then oldlibs=$output_objdir/$libname.$libext build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else echo "*** The inter-library dependencies that have been dropped here will be" echo "*** automatically added whenever a program is linked with this library" echo "*** or is declared to -dlopen it." if test no = "$allow_undefined"; then echo echo "*** Since this library must not contain undefined symbols," echo "*** because either the platform does not support them or" echo "*** it was explicitly requested with -no-undefined," echo "*** libtool will only create a static version of it." if test no = "$build_old_libs"; then oldlibs=$output_objdir/$libname.$libext build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" case $host in *-*-darwin*) newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append new_libs " $deplib" ;; esac done deplibs=$new_libs # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test yes = "$build_libtool_libs"; then # Remove $wl instances when linking with ld. # FIXME: should test the right _cmds variable. case $archive_cmds in *\$LD\ *) wl= ;; esac if test yes = "$hardcode_into_libs"; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath=$finalize_rpath test relink = "$opt_mode" || rpath=$compile_rpath$rpath for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then func_replace_sysroot "$libdir" libdir=$func_replace_sysroot_result if test -z "$hardcode_libdirs"; then hardcode_libdirs=$libdir else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append dep_rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_append perm_rpath " $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir=$hardcode_libdirs eval "dep_rpath=\"$hardcode_libdir_flag_spec\"" fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do func_append rpath "$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath=$finalize_shlibpath test relink = "$opt_mode" || shlibpath=$compile_shlibpath$shlibpath if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names shift realname=$1 shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname=$realname fi if test -z "$dlname"; then dlname=$soname fi lib=$output_objdir/$realname linknames= for link do func_append linknames " $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP` test "X$libobjs" = "X " && libobjs= delfiles= if test -n "$export_symbols" && test -n "$include_expsyms"; then $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" export_symbols=$output_objdir/$libname.uexp func_append delfiles " $export_symbols" fi orig_export_symbols= case $host_os in cygwin* | mingw* | cegcc*) if test -n "$export_symbols" && test -z "$export_symbols_regex"; then # exporting using user supplied symfile func_dll_def_p "$export_symbols" || { # and it's NOT already a .def file. Must figure out # which of the given symbols are data symbols and tag # them as such. So, trigger use of export_symbols_cmds. # export_symbols gets reassigned inside the "prepare # the list of exported symbols" if statement, so the # include_expsyms logic still works. orig_export_symbols=$export_symbols export_symbols= always_export_symbols=yes } fi ;; esac # Prepare the list of exported symbols if test -z "$export_symbols"; then if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then func_verbose "generating symbol list for '$libname.la'" export_symbols=$output_objdir/$libname.exp $opt_dry_run || $RM $export_symbols cmds=$export_symbols_cmds save_ifs=$IFS; IFS='~' for cmd1 in $cmds; do IFS=$save_ifs # Take the normal branch if the nm_file_list_spec branch # doesn't work or if tool conversion is not needed. case $nm_file_list_spec~$to_tool_file_cmd in *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*) try_normal_branch=yes eval cmd=\"$cmd1\" func_len " $cmd" len=$func_len_result ;; *) try_normal_branch=no ;; esac if test yes = "$try_normal_branch" \ && { test "$len" -lt "$max_cmd_len" \ || test "$max_cmd_len" -le -1; } then func_show_eval "$cmd" 'exit $?' skipped_export=false elif test -n "$nm_file_list_spec"; then func_basename "$output" output_la=$func_basename_result save_libobjs=$libobjs save_output=$output output=$output_objdir/$output_la.nm func_to_tool_file "$output" libobjs=$nm_file_list_spec$func_to_tool_file_result func_append delfiles " $output" func_verbose "creating $NM input file list: $output" for obj in $save_libobjs; do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" done > "$output" eval cmd=\"$cmd1\" func_show_eval "$cmd" 'exit $?' output=$save_output libobjs=$save_libobjs skipped_export=false else # The command line is too long to execute in one step. func_verbose "using reloadable object file for export list..." skipped_export=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break fi done IFS=$save_ifs if test -n "$export_symbols_regex" && test : != "$skipped_export"; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols=$export_symbols test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test : != "$skipped_export" && test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for '$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands, which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) func_append tmp_deplibs " $test_deplib" ;; esac done deplibs=$tmp_deplibs if test -n "$convenience"; then if test -n "$whole_archive_flag_spec" && test yes = "$compiler_needs_object" && test -z "$libobjs"; then # extract the archives, so we have objects to list. # TODO: could optimize this to just extract one archive. whole_archive_flag_spec= fi if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= else gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_extract_archives $gentop $convenience func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi fi if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" func_append linker_flags " $flag" fi # Make a backup of the uninstalled library when relinking if test relink = "$opt_mode"; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test yes = "$module" && test -n "$module_cmds"; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test : != "$skipped_export" && func_len " $test_cmds" && len=$func_len_result && test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise # or, if using GNU ld and skipped_export is not :, use a linker # script. # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output func_basename "$output" output_la=$func_basename_result # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= last_robj= k=1 if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then output=$output_objdir/$output_la.lnkscript func_verbose "creating GNU ld script: $output" echo 'INPUT (' > $output for obj in $save_libobjs do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done echo ')' >> $output func_append delfiles " $output" func_to_tool_file "$output" output=$func_to_tool_file_result elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then output=$output_objdir/$output_la.lnk func_verbose "creating linker input file list: $output" : > $output set x $save_libobjs shift firstobj= if test yes = "$compiler_needs_object"; then firstobj="$1 " shift fi for obj do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done func_append delfiles " $output" func_to_tool_file "$output" output=$firstobj\"$file_list_spec$func_to_tool_file_result\" else if test -n "$save_libobjs"; then func_verbose "creating reloadable object files..." output=$output_objdir/$output_la-$k.$objext eval test_cmds=\"$reload_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 # Loop over the list of objects to be linked. for obj in $save_libobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result if test -z "$objlist" || test "$len" -lt "$max_cmd_len"; then func_append objlist " $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test 1 -eq "$k"; then # The first file doesn't have a previous command to add. reload_objs=$objlist eval concat_cmds=\"$reload_cmds\" else # All subsequent reloadable object files will link in # the last one created. reload_objs="$objlist $last_robj" eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\" fi last_robj=$output_objdir/$output_la-$k.$objext func_arith $k + 1 k=$func_arith_result output=$output_objdir/$output_la-$k.$objext objlist=" $obj" func_len " $last_robj" func_arith $len0 + $func_len_result len=$func_arith_result fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ reload_objs="$objlist $last_robj" eval concat_cmds=\"\$concat_cmds$reload_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" fi func_append delfiles " $output" else output= fi ${skipped_export-false} && { func_verbose "generating symbol list for '$libname.la'" export_symbols=$output_objdir/$libname.exp $opt_dry_run || $RM $export_symbols libobjs=$output # Append the command to create the export file. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" fi } test -n "$save_libobjs" && func_verbose "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs=$IFS; IFS='~' for cmd in $concat_cmds; do IFS=$save_ifs $opt_quiet || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test relink = "$opt_mode"; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS=$save_ifs if test -n "$export_symbols_regex" && ${skipped_export-false}; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi ${skipped_export-false} && { if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols=$export_symbols test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for '$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands, which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi } libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test yes = "$module" && test -n "$module_cmds"; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi fi fi if test -n "$delfiles"; then # Append the command to remove temporary files to $cmds. eval cmds=\"\$cmds~\$RM $delfiles\" fi # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi save_ifs=$IFS; IFS='~' for cmd in $cmds; do IFS=$sp$nl eval cmd=\"$cmd\" IFS=$save_ifs $opt_quiet || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test relink = "$opt_mode"; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS=$save_ifs # Restore the uninstalled library and exit if test relink = "$opt_mode"; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then func_show_eval '${RM}r "$gentop"' fi fi exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' fi done # If -module or -export-dynamic was specified, set the dlname. if test yes = "$module" || test yes = "$export_dynamic"; then # On all known operating systems, these are identical. dlname=$soname fi fi ;; obj) if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then func_warning "'-dlopen' is ignored for objects" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "'-l' and '-L' are ignored for objects" ;; esac test -n "$rpath" && \ func_warning "'-rpath' is ignored for objects" test -n "$xrpath" && \ func_warning "'-R' is ignored for objects" test -n "$vinfo" && \ func_warning "'-version-info' is ignored for objects" test -n "$release" && \ func_warning "'-release' is ignored for objects" case $output in *.lo) test -n "$objs$old_deplibs" && \ func_fatal_error "cannot build library object '$output' from non-libtool objects" libobj=$output func_lo2o "$libobj" obj=$func_lo2o_result ;; *) libobj= obj=$output ;; esac # Delete the old objects. $opt_dry_run || $RM $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # if reload_cmds runs $LD directly, get rid of -Wl from # whole_archive_flag_spec and hope we can get by with turning comma # into space. case $reload_cmds in *\$LD[\ \$]*) wl= ;; esac if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'` reload_conv_objs=$reload_objs\ $tmp_whole_archive_flags else gentop=$output_objdir/${obj}x func_append generated " $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # If we're not building shared, we need to use non_pic_objs test yes = "$build_libtool_libs" || libobjs=$non_pic_objects # Create the old-style object. reload_objs=$objs$old_deplibs' '`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; /\.lib$/d; $lo2o" | $NL2SP`' '$reload_conv_objs output=$obj func_execute_cmds "$reload_cmds" 'exit $?' # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS fi test yes = "$build_libtool_libs" || { if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS } if test -n "$pic_flag" || test default != "$pic_mode"; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output=$libobj func_execute_cmds "$reload_cmds" 'exit $?' fi if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) func_stripname '' '.exe' "$output" output=$func_stripname_result.exe;; esac test -n "$vinfo" && \ func_warning "'-version-info' is ignored for programs" test -n "$release" && \ func_warning "'-release' is ignored for programs" $preload \ && test unknown,unknown,unknown = "$dlopen_support,$dlopen_self,$dlopen_self_static" \ && func_warning "'LT_INIT([dlopen])' not used. Assuming no dlopen support." case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac case $host in *-*-darwin*) # Don't allow lazy linking, it breaks C++ global constructors # But is supposedly fixed on 10.4 or later (yay!). if test CXX = "$tagname"; then case ${MACOSX_DEPLOYMENT_TARGET-10.0} in 10.[0123]) func_append compile_command " $wl-bind_at_load" func_append finalize_command " $wl-bind_at_load" ;; esac fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append new_libs " $deplib" ;; esac done compile_deplibs=$new_libs func_append compile_command " $compile_deplibs" func_append finalize_command " $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs=$libdir else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_append perm_rpath " $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; ::) dllsearchpath=$libdir;; *) func_append dllsearchpath ":$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append dllsearchpath ":$testbindir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir=$hardcode_libdirs eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath=$rpath rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs=$libdir else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) func_append finalize_perm_rpath " $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir=$hardcode_libdirs eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath=$rpath if test -n "$libobjs" && test yes = "$build_old_libs"; then # Transform all the library objects into standard objects. compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP` finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP` fi func_generate_dlsyms "$outputname" "@PROGRAM@" false # template prelinking step if test -n "$prelink_cmds"; then func_execute_cmds "$prelink_cmds" 'exit $?' fi wrappers_required=: case $host in *cegcc* | *mingw32ce*) # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. wrappers_required=false ;; *cygwin* | *mingw* ) test yes = "$build_libtool_libs" || wrappers_required=false ;; *) if test no = "$need_relink" || test yes != "$build_libtool_libs"; then wrappers_required=false fi ;; esac $wrappers_required || { # Replace the output file specification. compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'` link_command=$compile_command$compile_rpath # We have no uninstalled library dependencies, so finalize right now. exit_status=0 func_show_eval "$link_command" 'exit_status=$?' if test -n "$postlink_cmds"; then func_to_tool_file "$output" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi # Delete the generated files. if test -f "$output_objdir/${outputname}S.$objext"; then func_show_eval '$RM "$output_objdir/${outputname}S.$objext"' fi exit $exit_status } if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do func_append rpath "$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do func_append rpath "$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test yes = "$no_install"; then # We don't need to create a wrapper script. link_command=$compile_var$compile_command$compile_rpath # Replace the output file specification. link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $opt_dry_run || $RM $output # Link the executable and exit func_show_eval "$link_command" 'exit $?' if test -n "$postlink_cmds"; then func_to_tool_file "$output" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi exit $EXIT_SUCCESS fi case $hardcode_action,$fast_install in relink,*) # Fast installation is not supported link_command=$compile_var$compile_command$compile_rpath relink_command=$finalize_var$finalize_command$finalize_rpath func_warning "this platform does not like uninstalled shared libraries" func_warning "'$output' will be relinked during installation" ;; *,yes) link_command=$finalize_var$compile_command$finalize_rpath relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'` ;; *,no) link_command=$compile_var$compile_command$compile_rpath relink_command=$finalize_var$finalize_command$finalize_rpath ;; *,needless) link_command=$finalize_var$compile_command$finalize_rpath relink_command= ;; esac # Replace the output file specification. link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname func_show_eval "$link_command" 'exit $?' if test -n "$postlink_cmds"; then func_to_tool_file "$output_objdir/$outputname" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi # Now create the wrapper script. func_verbose "creating $output" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` fi # Only actually do things if not in dry run mode. $opt_dry_run || { # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) func_stripname '' '.exe' "$output" output=$func_stripname_result ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe func_stripname '' '.exe' "$outputname" outputname=$func_stripname_result ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) func_dirname_and_basename "$output" "" "." output_name=$func_basename_result output_path=$func_dirname_result cwrappersource=$output_path/$objdir/lt-$output_name.c cwrapper=$output_path/$output_name.exe $RM $cwrappersource $cwrapper trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 func_emit_cwrapperexe_src > $cwrappersource # The wrapper executable is built using the $host compiler, # because it contains $host paths and files. If cross- # compiling, it, like the target executable, must be # executed on the $host or under an emulation environment. $opt_dry_run || { $LTCC $LTCFLAGS -o $cwrapper $cwrappersource $STRIP $cwrapper } # Now, create the wrapper script for func_source use: func_ltwrapper_scriptname $cwrapper $RM $func_ltwrapper_scriptname_result trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 $opt_dry_run || { # note: this script will not be executed, so do not chmod. if test "x$build" = "x$host"; then $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result else func_emit_wrapper no > $func_ltwrapper_scriptname_result fi } ;; * ) $RM $output trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 func_emit_wrapper no > $output chmod +x $output ;; esac } exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do case $build_libtool_libs in convenience) oldobjs="$libobjs_save $symfileobj" addlibs=$convenience build_libtool_libs=no ;; module) oldobjs=$libobjs_save addlibs=$old_convenience build_libtool_libs=no ;; *) oldobjs="$old_deplibs $non_pic_objects" $preload && test -f "$symfileobj" \ && func_append oldobjs " $symfileobj" addlibs=$old_convenience ;; esac if test -n "$addlibs"; then gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_extract_archives $gentop $addlibs func_append oldobjs " $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then cmds=$old_archive_from_new_cmds else # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append oldobjs " $func_extract_archives_result" fi # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do func_basename "$obj" $ECHO "$func_basename_result" done | sort | sort -uc >/dev/null 2>&1); then : else echo "copying selected object files to avoid basename conflicts..." gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_mkdir_p "$gentop" save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do func_basename "$obj" objbase=$func_basename_result case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase func_arith $counter + 1 counter=$func_arith_result case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" func_append oldobjs " $gentop/$newobj" ;; *) func_append oldobjs " $obj" ;; esac done fi func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 tool_oldlib=$func_to_tool_file_result eval cmds=\"$old_archive_cmds\" func_len " $cmds" len=$func_len_result if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds elif test -n "$archiver_list_spec"; then func_verbose "using command file archive linking..." for obj in $oldobjs do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" done > $output_objdir/$libname.libcmd func_to_tool_file "$output_objdir/$libname.libcmd" oldobjs=" $archiver_list_spec$func_to_tool_file_result" cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts func_verbose "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs oldobjs= # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done eval test_cmds=\"$old_archive_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 for obj in $save_oldobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result func_append objlist " $obj" if test "$len" -lt "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj"; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\$concat_cmds$old_archive_cmds\" objlist= len=$len0 fi done RANLIB=$save_RANLIB oldobjs=$objlist if test -z "$oldobjs"; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi func_execute_cmds "$cmds" 'exit $?' done test -n "$generated" && \ func_show_eval "${RM}r$generated" # Now create the libtool archive. case $output in *.la) old_library= test yes = "$build_old_libs" && old_library=$libname.$libext func_verbose "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` if test yes = "$hardcode_automatic"; then relink_command= fi # Only create the output if not a dry run. $opt_dry_run || { for installed in no yes; do if test yes = "$installed"; then if test -z "$install_libdir"; then break fi output=$output_objdir/${outputname}i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) func_basename "$deplib" name=$func_basename_result func_resolve_sysroot "$deplib" eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result` test -z "$libdir" && \ func_fatal_error "'$deplib' is not a valid libtool archive" func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" ;; -L*) func_stripname -L '' "$deplib" func_replace_sysroot "$func_stripname_result" func_append newdependency_libs " -L$func_replace_sysroot_result" ;; -R*) func_stripname -R '' "$deplib" func_replace_sysroot "$func_stripname_result" func_append newdependency_libs " -R$func_replace_sysroot_result" ;; *) func_append newdependency_libs " $deplib" ;; esac done dependency_libs=$newdependency_libs newdlfiles= for lib in $dlfiles; do case $lib in *.la) func_basename "$lib" name=$func_basename_result eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "'$lib' is not a valid libtool archive" func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name" ;; *) func_append newdlfiles " $lib" ;; esac done dlfiles=$newdlfiles newdlprefiles= for lib in $dlprefiles; do case $lib in *.la) # Only pass preopened files to the pseudo-archive (for # eventual linking with the app. that links it) if we # didn't already link the preopened objects directly into # the library: func_basename "$lib" name=$func_basename_result eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "'$lib' is not a valid libtool archive" func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name" ;; esac done dlprefiles=$newdlprefiles else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;; *) abs=`pwd`"/$lib" ;; esac func_append newdlfiles " $abs" done dlfiles=$newdlfiles newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;; *) abs=`pwd`"/$lib" ;; esac func_append newdlprefiles " $abs" done dlprefiles=$newdlprefiles fi $RM $output # place dlname in correct position for cygwin # In fact, it would be nice if we could use this code for all target # systems that can't hard-code library paths into their executables # and that have no shared library path variable independent of PATH, # but it turns out we can't easily determine that from inspecting # libtool variables, so we have to hard-code the OSs to which it # applies here; at the moment, that means platforms that use the PE # object format with DLL files. See the long comment at the top of # tests/bindir.at for full details. tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) # If a -bindir argument was supplied, place the dll there. if test -n "$bindir"; then func_relative_path "$install_libdir" "$bindir" tdlname=$func_relative_path_result/$dlname else # Otherwise fall back on heuristic. tdlname=../bin/$dlname fi ;; esac $ECHO > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM (GNU $PACKAGE) $VERSION # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Linker flags that cannot go in dependency_libs. inherited_linker_flags='$new_inherited_linker_flags' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Names of additional weak libraries provided by this library weak_library_names='$weak_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test no,yes = "$installed,$need_relink"; then $ECHO >> $output "\ relink_command=\"$relink_command\"" fi done } # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' ;; esac exit $EXIT_SUCCESS } if test link = "$opt_mode" || test relink = "$opt_mode"; then func_mode_link ${1+"$@"} fi # func_mode_uninstall arg... func_mode_uninstall () { $debug_cmd RM=$nonopt files= rmforce=false exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic=$magic for arg do case $arg in -f) func_append RM " $arg"; rmforce=: ;; -*) func_append RM " $arg" ;; *) func_append files " $arg" ;; esac done test -z "$RM" && \ func_fatal_help "you must specify an RM program" rmdirs= for file in $files; do func_dirname "$file" "" "." dir=$func_dirname_result if test . = "$dir"; then odir=$objdir else odir=$dir/$objdir fi func_basename "$file" name=$func_basename_result test uninstall = "$opt_mode" && odir=$dir # Remember odir for removal later, being careful to avoid duplicates if test clean = "$opt_mode"; then case " $rmdirs " in *" $odir "*) ;; *) func_append rmdirs " $odir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if { test -L "$file"; } >/dev/null 2>&1 || { test -h "$file"; } >/dev/null 2>&1 || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif $rmforce; then continue fi rmfiles=$file case $name in *.la) # Possibly a libtool archive, so verify it. if func_lalib_p "$file"; then func_source $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do func_append rmfiles " $odir/$n" done test -n "$old_library" && func_append rmfiles " $odir/$old_library" case $opt_mode in clean) case " $library_names " in *" $dlname "*) ;; *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;; esac test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. func_execute_cmds "$postuninstall_cmds" '$rmforce || exit_status=1' fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. func_execute_cmds "$old_postuninstall_cmds" '$rmforce || exit_status=1' fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if func_lalib_p "$file"; then # Read the .lo file func_source $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" && test none != "$pic_object"; then func_append rmfiles " $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" && test none != "$non_pic_object"; then func_append rmfiles " $dir/$non_pic_object" fi fi ;; *) if test clean = "$opt_mode"; then noexename=$name case $file in *.exe) func_stripname '' '.exe' "$file" file=$func_stripname_result func_stripname '' '.exe' "$name" noexename=$func_stripname_result # $file with .exe has already been added to rmfiles, # add $file without .exe func_append rmfiles " $file" ;; esac # Do a test to see if this is a libtool program. if func_ltwrapper_p "$file"; then if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" relink_command= func_source $func_ltwrapper_scriptname_result func_append rmfiles " $func_ltwrapper_scriptname_result" else relink_command= func_source $dir/$noexename fi # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles func_append rmfiles " $odir/$name $odir/${name}S.$objext" if test yes = "$fast_install" && test -n "$relink_command"; then func_append rmfiles " $odir/lt-$name" fi if test "X$noexename" != "X$name"; then func_append rmfiles " $odir/lt-$noexename.c" fi fi fi ;; esac func_show_eval "$RM $rmfiles" 'exit_status=1' done # Try to remove the $objdir's in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then func_show_eval "rmdir $dir >/dev/null 2>&1" fi done exit $exit_status } if test uninstall = "$opt_mode" || test clean = "$opt_mode"; then func_mode_uninstall ${1+"$@"} fi test -z "$opt_mode" && { help=$generic_help func_fatal_help "you must specify a MODE" } test -z "$exec_cmd" && \ func_fatal_help "invalid operation mode '$opt_mode'" if test -n "$exec_cmd"; then eval exec "$exec_cmd" exit $EXIT_FAILURE fi exit $exit_status # The TAGs below are defined such that we never get into a situation # where we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared build_libtool_libs=no build_old_libs=yes # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: libvirt-glib-1.0.0/build-aux/glib-tap.mk0000664000000000000000000001444013004340477014716 00000000000000# GLIB - Library of useful C routines TESTS_ENVIRONMENT= \ G_TEST_SRCDIR="$(abs_srcdir)" \ G_TEST_BUILDDIR="$(abs_builddir)" \ G_DEBUG=gc-friendly \ MALLOC_CHECK_=2 \ MALLOC_PERTURB_=$$(($${RANDOM:-256} % 256)) LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/tap-driver.sh LOG_COMPILER = $(top_srcdir)/tap-test NULL = # initialize variables for unconditional += appending BUILT_SOURCES = BUILT_EXTRA_DIST = CLEANFILES = *.log *.trs DISTCLEANFILES = MAINTAINERCLEANFILES = EXTRA_DIST = TESTS = installed_test_LTLIBRARIES = installed_test_PROGRAMS = installed_test_SCRIPTS = nobase_installed_test_DATA = noinst_LTLIBRARIES = noinst_PROGRAMS = noinst_SCRIPTS = noinst_DATA = check_LTLIBRARIES = check_PROGRAMS = check_SCRIPTS = check_DATA = # We support a fairly large range of possible variables. It is expected that all types of files in a test suite # will belong in exactly one of the following variables. # # First, we support the usual automake suffixes, but in lowercase, with the customary meaning: # # test_programs, test_scripts, test_data, test_ltlibraries # # The above are used to list files that are involved in both uninstalled and installed testing. The # test_programs and test_scripts are taken to be actual testcases and will be run as part of the test suite. # Note that _data is always used with the nobase_ automake variable name to ensure that installed test data is # installed in the same way as it appears in the package layout. # # In order to mark a particular file as being only for one type of testing, use 'installed' or 'uninstalled', # like so: # # installed_test_programs, uninstalled_test_programs # installed_test_scripts, uninstalled_test_scripts # installed_test_data, uninstalled_test_data # installed_test_ltlibraries, uninstalled_test_ltlibraries # # Additionally, we support 'extra' infixes for programs and scripts. This is used for support programs/scripts # that should not themselves be run as testcases (but exist to be used from other testcases): # # test_extra_programs, installed_test_extra_programs, uninstalled_test_extra_programs # test_extra_scripts, installed_test_extra_scripts, uninstalled_test_extra_scripts # # Additionally, for _scripts and _data, we support the customary dist_ prefix so that the named script or data # file automatically end up in the tarball. # # dist_test_scripts, dist_test_data, dist_test_extra_scripts # dist_installed_test_scripts, dist_installed_test_data, dist_installed_test_extra_scripts # dist_uninstalled_test_scripts, dist_uninstalled_test_data, dist_uninstalled_test_extra_scripts # # Note that no file is automatically disted unless it appears in one of the dist_ variables. This follows the # standard automake convention of not disting programs scripts or data by default. # # test_programs, test_scripts, uninstalled_test_programs and uninstalled_test_scripts (as well as their disted # variants) will be run as part of the in-tree 'make check'. These are all assumed to be runnable under # gtester. That's a bit strange for scripts, but it's possible. TESTS += $(test_programs) $(test_scripts) $(uninstalled_test_programs) $(uninstalled_test_scripts) \ $(dist_test_scripts) $(dist_uninstalled_test_scripts) # Note: build even the installed-only targets during 'make check' to ensure that they still work. # We need to do a bit of trickery here and manage disting via EXTRA_DIST instead of using dist_ prefixes to # prevent automake from mistreating gmake functions like $(wildcard ...) and $(addprefix ...) as if they were # filenames, including removing duplicate instances of the opening part before the space, eg. '$(addprefix'. all_test_programs = $(test_programs) $(uninstalled_test_programs) $(installed_test_programs) \ $(test_extra_programs) $(uninstalled_test_extra_programs) $(installed_test_extra_programs) all_test_scripts = $(test_scripts) $(uninstalled_test_scripts) $(installed_test_scripts) \ $(test_extra_scripts) $(uninstalled_test_extra_scripts) $(installed_test_extra_scripts) all_dist_test_scripts = $(dist_test_scripts) $(dist_uninstalled_test_scripts) $(dist_installed_test_scripts) \ $(dist_test_extra_scripts) $(dist_uninstalled_test_extra_scripts) $(dist_installed_test_extra_scripts) all_test_scripts += $(all_dist_test_scripts) EXTRA_DIST += $(all_dist_test_scripts) all_test_data = $(test_data) $(uninstalled_test_data) $(installed_test_data) all_dist_test_data = $(dist_test_data) $(dist_uninstalled_test_data) $(dist_installed_test_data) all_test_data += $(all_dist_test_data) EXTRA_DIST += $(all_dist_test_data) all_test_ltlibs = $(test_ltlibraries) $(uninstalled_test_ltlibraries) $(installed_test_ltlibraries) if ENABLE_ALWAYS_BUILD_TESTS noinst_LTLIBRARIES += $(all_test_ltlibs) noinst_PROGRAMS += $(all_test_programs) noinst_SCRIPTS += $(all_test_scripts) noinst_DATA += $(all_test_data) else check_LTLIBRARIES += $(all_test_ltlibs) check_PROGRAMS += $(all_test_programs) check_SCRIPTS += $(all_test_scripts) check_DATA += $(all_test_data) endif if ENABLE_INSTALLED_TESTS installed_test_PROGRAMS += $(test_programs) $(installed_test_programs) \ $(test_extra_programs) $(installed_test_extra_programs) installed_test_SCRIPTS += $(test_scripts) $(installed_test_scripts) \ $(test_extra_scripts) $(test_installed_extra_scripts) installed_test_SCRIPTS += $(dist_test_scripts) $(dist_test_extra_scripts) \ $(dist_installed_test_scripts) $(dist_installed_test_extra_scripts) nobase_installed_test_DATA += $(test_data) $(installed_test_data) nobase_installed_test_DATA += $(dist_test_data) $(dist_installed_test_data) installed_test_LTLIBRARIES += $(test_ltlibraries) $(installed_test_ltlibraries) installed_testcases = $(test_programs) $(installed_test_programs) \ $(test_scripts) $(installed_test_scripts) \ $(dist_test_scripts) $(dist_installed_test_scripts) installed_test_meta_DATA = $(installed_testcases:=.test) %.test: %$(EXEEXT) Makefile $(AM_V_GEN) (echo '[Test]' > $@.tmp; \ echo 'Type=session' >> $@.tmp; \ echo 'Exec=$(installed_testdir)/$(notdir $<) --tap' >> $@.tmp; \ echo 'Output=TAP' >> $@.tmp; \ mv $@.tmp $@) CLEANFILES += $(installed_test_meta_DATA) endif libvirt-glib-1.0.0/build-aux/config.guess0000755000000000000000000012367213007136323015210 00000000000000#! /bin/sh # Attempt to guess a canonical system name. # Copyright 1992-2015 Free Software Foundation, Inc. timestamp='2015-01-01' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. # # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD # # Please send patches to . me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright 1992-2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown case "${UNAME_SYSTEM}" in Linux|GNU|GNU/*) # If the system lacks a compiler, then just pick glibc. # We could probably try harder. LIBC=gnu eval $set_cc_for_build cat <<-EOF > $dummy.c #include #if defined(__UCLIBC__) LIBC=uclibc #elif defined(__dietlibc__) LIBC=dietlibc #else LIBC=gnu #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` ;; esac # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; *:Bitrig:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` # Reset EXIT trap before exiting to avoid spurious non-zero exit code. exitcode=$? trap '' 0 exit $exitcode ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm*:riscos:*:*|arm*:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) echo i386-pc-auroraux${UNAME_RELEASE} exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) eval $set_cc_for_build SUN_ARCH="i386" # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH="x86_64" fi fi echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/lslpp ] ; then IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep -q __LP64__ then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) UNAME_PROCESSOR=`/usr/bin/uname -p` case ${UNAME_PROCESSOR} in amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; *:MINGW64*:*) echo ${UNAME_MACHINE}-pc-mingw64 exit ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; *:MSYS*:*) echo ${UNAME_MACHINE}-pc-msys exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; *:Interix*:*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; authenticamd | genuineintel | EM64T) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; IA64) echo ia64-unknown-interix${UNAME_RELEASE} exit ;; esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; 8664:Windows_NT:*) echo x86_64-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; aarch64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC="gnulibc1" ; fi echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; arc:Linux:*:* | arceb:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; arm*:Linux:*:*) eval $set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then echo ${UNAME_MACHINE}-unknown-linux-${LIBC} else if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi else echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf fi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; cris:Linux:*:*) echo ${UNAME_MACHINE}-axis-linux-${LIBC} exit ;; crisv32:Linux:*:*) echo ${UNAME_MACHINE}-axis-linux-${LIBC} exit ;; frv:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; hexagon:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; i*86:Linux:*:*) echo ${UNAME_MACHINE}-pc-linux-${LIBC} exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; mips:Linux:*:* | mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef ${UNAME_MACHINE} #undef ${UNAME_MACHINE}el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=${UNAME_MACHINE}el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=${UNAME_MACHINE} #else CPU= #endif #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } ;; openrisc*:Linux:*:*) echo or1k-unknown-linux-${LIBC} exit ;; or32:Linux:*:* | or1k*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; padre:Linux:*:*) echo sparc-unknown-linux-${LIBC} exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-${LIBC} exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; *) echo hppa-unknown-linux-${LIBC} ;; esac exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-${LIBC} exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-${LIBC} exit ;; ppc64le:Linux:*:*) echo powerpc64le-unknown-linux-${LIBC} exit ;; ppcle:Linux:*:*) echo powerpcle-unknown-linux-${LIBC} exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux-${LIBC} exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; tile*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-${LIBC} exit ;; x86_64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configury will decide that # this is a cross-build. echo i586-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. echo i586-pc-haiku exit ;; x86_64:Haiku:*:*) echo x86_64-unknown-haiku exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown eval $set_cc_for_build if test "$UNAME_PROCESSOR" = unknown ; then UNAME_PROCESSOR=powerpc fi if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then case $UNAME_PROCESSOR in i386) UNAME_PROCESSOR=x86_64 ;; powerpc) UNAME_PROCESSOR=powerpc64 ;; esac fi fi elif test "$UNAME_PROCESSOR" = i386 ; then # Avoid executing cc on OS X 10.9, as it ships with a stub # that puts up a graphical alert prompting to install # developer tools. Any system running Mac OS X 10.7 or # later (Darwin 11 and later) is required to have a 64-bit # processor. This is not true of the ARM version of Darwin # that Apple uses in portable devices. UNAME_PROCESSOR=x86_64 fi echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NEO-?:NONSTOP_KERNEL:*:*) echo neo-tandem-nsk${UNAME_RELEASE} exit ;; NSE-*:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; i*86:AROS:*:*) echo ${UNAME_MACHINE}-pc-aros exit ;; x86_64:VMkernel:*:*) echo ${UNAME_MACHINE}-unknown-esx exit ;; esac cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: libvirt-glib-1.0.0/build-aux/install-sh0000755000000000000000000003452313007136323014670 00000000000000#!/bin/sh # install - install a program, script, or datafile scriptversion=2013-12-25.23; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # 'make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. tab=' ' nl=' ' IFS=" $tab$nl" # Set DOITPROG to "echo" to test this script. doit=${DOITPROG-} doit_exec=${doit:-exec} # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_mkdir= # Desired mode of installed file. mode=0755 chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false is_target_a_directory=possibly usage="\ Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve the last data modification time) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test $# -ne 0; do case $1 in -c) ;; -C) copy_on_change=true;; -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" shift;; --help) echo "$usage"; exit $?;; -m) mode=$2 case $mode in *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) is_target_a_directory=always dst_arg=$2 # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac shift;; -T) is_target_a_directory=never;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done # We allow the use of options -d and -T together, by making -d # take the precedence; this is for compatibility with GNU install. if test -n "$dir_arg"; then if test -n "$dst_arg"; then echo "$0: target directory not allowed when installing a directory." >&2 exit 1 fi fi if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call 'install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then if test $# -gt 1 || test "$is_target_a_directory" = always; then if test ! -d "$dst_arg"; then echo "$0: $dst_arg: Is not a directory." >&2 exit 1 fi fi fi if test -z "$dir_arg"; then do_exit='(exit $ret); exit $ret' trap "ret=129; $do_exit" 1 trap "ret=130; $do_exit" 2 trap "ret=141; $do_exit" 13 trap "ret=143; $do_exit" 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names problematic for 'test' and other utilities. case $src in -* | [=\(\)!]) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test "$is_target_a_directory" = never; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else dstdir=`dirname "$dst"` test -d "$dstdir" dstdir_status=$? fi fi obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 if (umask $mkdir_umask && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. ls_ld_tmpdir=`ls -ld "$tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/d" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; [-=\(\)!]*) prefix='./';; *) prefix='';; esac oIFS=$IFS IFS=/ set -f set fnord $dstdir shift set +f IFS=$oIFS prefixes= for d do test X"$d" = X && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd -f "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: libvirt-glib-1.0.0/build-aux/missing0000755000000000000000000001533013007136323014256 00000000000000#! /bin/sh # Common wrapper for a few potentially missing GNU programs. scriptversion=2013-10-28.13; # UTC # Copyright (C) 1996-2014 Free Software Foundation, Inc. # Originally written by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try '$0 --help' for more information" exit 1 fi case $1 in --is-lightweight) # Used by our autoconf macros to check whether the available missing # script is modern enough. exit 0 ;; --run) # Back-compat with the calling convention used by older automake. shift ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due to PROGRAM being missing or too old. Options: -h, --help display this help and exit -v, --version output version information and exit Supported PROGRAM values: aclocal autoconf autoheader autom4te automake makeinfo bison yacc flex lex help2man Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and 'g' are ignored when checking the name. Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: unknown '$1' option" echo 1>&2 "Try '$0 --help' for more information" exit 1 ;; esac # Run the given program, remember its exit status. "$@"; st=$? # If it succeeded, we are done. test $st -eq 0 && exit 0 # Also exit now if we it failed (or wasn't found), and '--version' was # passed; such an option is passed most likely to detect whether the # program is present and works. case $2 in --version|--help) exit $st;; esac # Exit code 63 means version mismatch. This often happens when the user # tries to use an ancient version of a tool on a file that requires a # minimum version. if test $st -eq 63; then msg="probably too old" elif test $st -eq 127; then # Program was missing. msg="missing on your system" else # Program was found and executed, but failed. Give up. exit $st fi perl_URL=http://www.perl.org/ flex_URL=http://flex.sourceforge.net/ gnu_software_URL=http://www.gnu.org/software program_details () { case $1 in aclocal|automake) echo "The '$1' program is part of the GNU Automake package:" echo "<$gnu_software_URL/automake>" echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/autoconf>" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; autoconf|autom4te|autoheader) echo "The '$1' program is part of the GNU Autoconf package:" echo "<$gnu_software_URL/autoconf/>" echo "It also requires GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; esac } give_advice () { # Normalize program name to check for. normalized_program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` printf '%s\n' "'$1' is $msg." configure_deps="'configure.ac' or m4 files included by 'configure.ac'" case $normalized_program in autoconf*) echo "You should only need it if you modified 'configure.ac'," echo "or m4 files included by it." program_details 'autoconf' ;; autoheader*) echo "You should only need it if you modified 'acconfig.h' or" echo "$configure_deps." program_details 'autoheader' ;; automake*) echo "You should only need it if you modified 'Makefile.am' or" echo "$configure_deps." program_details 'automake' ;; aclocal*) echo "You should only need it if you modified 'acinclude.m4' or" echo "$configure_deps." program_details 'aclocal' ;; autom4te*) echo "You might have modified some maintainer files that require" echo "the 'autom4te' program to be rebuilt." program_details 'autom4te' ;; bison*|yacc*) echo "You should only need it if you modified a '.y' file." echo "You may want to install the GNU Bison package:" echo "<$gnu_software_URL/bison/>" ;; lex*|flex*) echo "You should only need it if you modified a '.l' file." echo "You may want to install the Fast Lexical Analyzer package:" echo "<$flex_URL>" ;; help2man*) echo "You should only need it if you modified a dependency" \ "of a man page." echo "You may want to install the GNU Help2man package:" echo "<$gnu_software_URL/help2man/>" ;; makeinfo*) echo "You should only need it if you modified a '.texi' file, or" echo "any other file indirectly affecting the aspect of the manual." echo "You might want to install the Texinfo package:" echo "<$gnu_software_URL/texinfo/>" echo "The spurious makeinfo call might also be the consequence of" echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" echo "want to install GNU make:" echo "<$gnu_software_URL/make/>" ;; *) echo "You might have modified some files without having the proper" echo "tools for further handling them. Check the 'README' file, it" echo "often tells you about the needed prerequisites for installing" echo "this package. You may also peek at any GNU archive site, in" echo "case some other package contains this missing '$1' program." ;; esac } give_advice "$1" | sed -e '1s/^/WARNING: /' \ -e '2,$s/^/ /' >&2 # Propagate the correct exit status (expected to be 127 for a program # not found, 63 for a program that failed due to version mismatch). exit $st # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: libvirt-glib-1.0.0/build-aux/test-driver0000755000000000000000000001104013007136324015050 00000000000000#! /bin/sh # test-driver - basic testsuite driver script. scriptversion=2013-07-13.22; # UTC # Copyright (C) 2011-2014 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . # Make unconditional expansion of undefined variables an error. This # helps a lot in preventing typo-related bugs. set -u usage_error () { echo "$0: $*" >&2 print_usage >&2 exit 2 } print_usage () { cat <$log_file 2>&1 estatus=$? if test $enable_hard_errors = no && test $estatus -eq 99; then tweaked_estatus=1 else tweaked_estatus=$estatus fi case $tweaked_estatus:$expect_failure in 0:yes) col=$red res=XPASS recheck=yes gcopy=yes;; 0:*) col=$grn res=PASS recheck=no gcopy=no;; 77:*) col=$blu res=SKIP recheck=no gcopy=yes;; 99:*) col=$mgn res=ERROR recheck=yes gcopy=yes;; *:yes) col=$lgn res=XFAIL recheck=no gcopy=yes;; *:*) col=$red res=FAIL recheck=yes gcopy=yes;; esac # Report the test outcome and exit status in the logs, so that one can # know whether the test passed or failed simply by looking at the '.log' # file, without the need of also peaking into the corresponding '.trs' # file (automake bug#11814). echo "$res $test_name (exit status: $estatus)" >>$log_file # Report outcome to console. echo "${col}${res}${std}: $test_name" # Register the test result, and other relevant metadata. echo ":test-result: $res" > $trs_file echo ":global-test-result: $res" >> $trs_file echo ":recheck: $recheck" >> $trs_file echo ":copy-in-global-log: $gcopy" >> $trs_file # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: libvirt-glib-1.0.0/build-aux/compile0000755000000000000000000001624513007136323014243 00000000000000#! /bin/sh # Wrapper for compilers which do not understand '-c -o'. scriptversion=2012-10-14.11; # UTC # Copyright (C) 1999-2014 Free Software Foundation, Inc. # Written by Tom Tromey . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . nl=' ' # We need space, tab and new line, in precisely that order. Quoting is # there to prevent tools from complaining about whitespace usage. IFS=" "" $nl" file_conv= # func_file_conv build_file lazy # Convert a $build file to $host form and store it in $file # Currently only supports Windows hosts. If the determined conversion # type is listed in (the comma separated) LAZY, no conversion will # take place. func_file_conv () { file=$1 case $file in / | /[!/]*) # absolute file, and not a UNC file if test -z "$file_conv"; then # lazily determine how to convert abs files case `uname -s` in MINGW*) file_conv=mingw ;; CYGWIN*) file_conv=cygwin ;; *) file_conv=wine ;; esac fi case $file_conv/,$2, in *,$file_conv,*) ;; mingw/*) file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` ;; cygwin/*) file=`cygpath -m "$file" || echo "$file"` ;; wine/*) file=`winepath -w "$file" || echo "$file"` ;; esac ;; esac } # func_cl_dashL linkdir # Make cl look for libraries in LINKDIR func_cl_dashL () { func_file_conv "$1" if test -z "$lib_path"; then lib_path=$file else lib_path="$lib_path;$file" fi linker_opts="$linker_opts -LIBPATH:$file" } # func_cl_dashl library # Do a library search-path lookup for cl func_cl_dashl () { lib=$1 found=no save_IFS=$IFS IFS=';' for dir in $lib_path $LIB do IFS=$save_IFS if $shared && test -f "$dir/$lib.dll.lib"; then found=yes lib=$dir/$lib.dll.lib break fi if test -f "$dir/$lib.lib"; then found=yes lib=$dir/$lib.lib break fi if test -f "$dir/lib$lib.a"; then found=yes lib=$dir/lib$lib.a break fi done IFS=$save_IFS if test "$found" != yes; then lib=$lib.lib fi } # func_cl_wrapper cl arg... # Adjust compile command to suit cl func_cl_wrapper () { # Assume a capable shell lib_path= shared=: linker_opts= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. eat=1 case $2 in *.o | *.[oO][bB][jJ]) func_file_conv "$2" set x "$@" -Fo"$file" shift ;; *) func_file_conv "$2" set x "$@" -Fe"$file" shift ;; esac ;; -I) eat=1 func_file_conv "$2" mingw set x "$@" -I"$file" shift ;; -I*) func_file_conv "${1#-I}" mingw set x "$@" -I"$file" shift ;; -l) eat=1 func_cl_dashl "$2" set x "$@" "$lib" shift ;; -l*) func_cl_dashl "${1#-l}" set x "$@" "$lib" shift ;; -L) eat=1 func_cl_dashL "$2" ;; -L*) func_cl_dashL "${1#-L}" ;; -static) shared=false ;; -Wl,*) arg=${1#-Wl,} save_ifs="$IFS"; IFS=',' for flag in $arg; do IFS="$save_ifs" linker_opts="$linker_opts $flag" done IFS="$save_ifs" ;; -Xlinker) eat=1 linker_opts="$linker_opts $2" ;; -*) set x "$@" "$1" shift ;; *.cc | *.CC | *.cxx | *.CXX | *.[cC]++) func_file_conv "$1" set x "$@" -Tp"$file" shift ;; *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) func_file_conv "$1" mingw set x "$@" "$file" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -n "$linker_opts"; then linker_opts="-link$linker_opts" fi exec "$@" $linker_opts exit 1 } eat= case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: compile [--help] [--version] PROGRAM [ARGS] Wrapper for compilers which do not understand '-c -o'. Remove '-o dest.o' from ARGS, run PROGRAM with the remaining arguments, and rename the output as expected. If you are trying to build a whole package this is not the right script to run: please start by reading the file 'INSTALL'. Report bugs to . EOF exit $? ;; -v | --v*) echo "compile $scriptversion" exit $? ;; cl | *[/\\]cl | cl.exe | *[/\\]cl.exe ) func_cl_wrapper "$@" # Doesn't return... ;; esac ofile= cfile= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. # So we strip '-o arg' only if arg is an object. eat=1 case $2 in *.o | *.obj) ofile=$2 ;; *) set x "$@" -o "$2" shift ;; esac ;; *.c) cfile=$1 set x "$@" "$1" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -z "$ofile" || test -z "$cfile"; then # If no '-o' option was seen then we might have been invoked from a # pattern rule where we don't need one. That is ok -- this is a # normal compilation that the losing compiler can handle. If no # '.c' file was seen then we are probably linking. That is also # ok. exec "$@" fi # Name of file we expect compiler to create. cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` # Create the lock directory. # Note: use '[/\\:.-]' here to ensure that we don't use the same name # that we are using for the .o file. Also, base the name on the expected # object file name, since that is what matters with a parallel build. lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d while true; do if mkdir "$lockdir" >/dev/null 2>&1; then break fi sleep 1 done # FIXME: race condition here if user kills between mkdir and trap. trap "rmdir '$lockdir'; exit 1" 1 2 15 # Run the compile. "$@" ret=$? if test -f "$cofile"; then test "$cofile" = "$ofile" || mv "$cofile" "$ofile" elif test -f "${cofile}bj"; then test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" fi rmdir "$lockdir" exit $ret # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: libvirt-glib-1.0.0/build-aux/check-symsorting.pl0000775000000000000000000000454313004340477016522 00000000000000#!/usr/bin/perl # Copyright (C) 2012-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 # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library. If not, see # . use strict; use warnings; die "syntax: $0 SYMFILE..." unless int(@ARGV) >= 1; my $ret = 0; my $incomment = 0; my $name; foreach my $symfile (@ARGV) { open SYMFILE, $symfile or die "cannot read $symfile: $!"; my $line = 0; my @group; while () { chomp; if ($incomment) { if (m,\*/,) { $incomment = 0; } else { # skip } } else { if (m,/\*,) { $incomment = 1; } elsif (/^(.*)\s*{\s*$/) { @group = (); $line = $.; $name = $1; } elsif (/^\s*}(.*);$/) { &check_sorting(\@group, $symfile, $line, $name); } elsif (/^\s*(global|local):/) { # skip } elsif (/^\s*\*;\s*$/) { # skip } elsif (/^\s*$/) { # skip } else { $_ =~ s/;//; push @group, $_; } } } close SYMFILE; } sub check_sorting { my $group = shift; my $symfile = shift; my $line = shift; my $name = shift; my @group = @{$group}; my @sorted = sort { lc $a cmp lc $b } @group; my $sorted = 1; my $first; my $last; # Check that symbols within a group are in order for (my $i = 0 ; $i <= $#sorted ; $i++) { if ($sorted[$i] ne $group[$i]) { $first = $i unless defined $first; $last = $i; $sorted = 0; } } if (!$sorted) { @group = splice @group, $first, ($last-$first+1); @sorted = splice @sorted, $first, ($last-$first+1); print "Symbol block $name at $symfile:$line: symbols not sorted\n"; print map { " " . $_ . "\n" } @group; print "Correct ordering\n"; print map { " " . $_ . "\n" } @sorted; print "\n"; $ret = 1; } } exit $ret; libvirt-glib-1.0.0/build-aux/config.sub0000755000000000000000000010624613007136323014651 00000000000000#! /bin/sh # Configuration validation subroutine script. # Copyright 1992-2015 Free Software Foundation, Inc. timestamp='2015-01-01' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # Please send patches to . # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright 1992-2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ knetbsd*-gnu* | netbsd*-gnu* | \ kopensolaris*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; android-linux) os=-linux-android basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray | -microblaze*) os= basic_machine=$1 ;; -bluegene*) os=-cnk ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*178) os=-lynxos178 ;; -lynx*5) os=-lynxos5 ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | aarch64 | aarch64_be \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arceb \ | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ | avr | avr32 \ | be32 | be64 \ | bfin \ | c4x | c8051 | clipper \ | d10v | d30v | dlx | dsp16xx \ | epiphany \ | fido | fr30 | frv | ft32 \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | hexagon \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | k1om \ | le32 | le64 \ | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ | mips64r5900 | mips64r5900el \ | mips64vr | mips64vrel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa32r6 | mipsisa32r6el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64r6 | mipsisa64r6el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipsr5900 | mipsr5900el \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ | nds32 | nds32le | nds32be \ | nios | nios2 | nios2eb | nios2el \ | ns16k | ns32k \ | open8 | or1k | or1knd | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle \ | pyramid \ | riscv32 | riscv64 \ | rl78 | rx \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu \ | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | ubicom32 \ | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | visium \ | we32k \ | x86 | xc16x | xstormy16 | xtensa \ | z8k | z80) basic_machine=$basic_machine-unknown ;; c54x) basic_machine=tic54x-unknown ;; c55x) basic_machine=tic55x-unknown ;; c6x) basic_machine=tic6x-unknown ;; leon|leon[3-9]) basic_machine=sparc-$basic_machine ;; m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; strongarm | thumb | xscale) basic_machine=arm-unknown ;; xgate) basic_machine=$basic_machine-unknown os=-none ;; xscaleeb) basic_machine=armeb-unknown ;; xscaleel) basic_machine=armel-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | aarch64-* | aarch64_be-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | be32-* | be64-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* \ | c8051-* | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | hexagon-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | k1om-* \ | le32-* | le64-* \ | lm32-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ | microblaze-* | microblazeel-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64octeon-* | mips64octeonel-* \ | mips64orion-* | mips64orionel-* \ | mips64r5900-* | mips64r5900el-* \ | mips64vr-* | mips64vrel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa32r6-* | mipsisa32r6el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64r6-* | mipsisa64r6el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipsr5900-* | mipsr5900el-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nds32-* | nds32le-* | nds32be-* \ | nios-* | nios2-* | nios2eb-* | nios2el-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | open8-* \ | or1k*-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | pyramid-* \ | rl78-* | romp-* | rs6000-* | rx-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ | tahoe-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tile*-* \ | tron-* \ | ubicom32-* \ | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ | vax-* \ | visium-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-* | z80-*) ;; # Recognize the basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aros) basic_machine=i386-pc os=-aros ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; bluegene*) basic_machine=powerpc-ibm os=-cnk ;; c54x-*) basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c55x-*) basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c6x-*) basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c90) basic_machine=c90-cray os=-unicos ;; cegcc) basic_machine=arm-unknown os=-cegcc ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16 | cr16-*) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; dicos) basic_machine=i686-pc os=-dicos ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; leon-*|leon[3-9]-*) basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'` ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; microblaze*) basic_machine=microblaze-xilinx ;; mingw64) basic_machine=x86_64-pc os=-mingw64 ;; mingw32) basic_machine=i686-pc os=-mingw32 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; moxiebox) basic_machine=moxie-unknown os=-moxiebox ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; msys) basic_machine=i686-pc os=-msys ;; mvs) basic_machine=i370-ibm os=-mvs ;; nacl) basic_machine=le32-unknown os=-nacl ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; neo-tandem) basic_machine=neo-tandem ;; nse-tandem) basic_machine=nse-tandem ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc | ppcbe) basic_machine=powerpc-unknown ;; ppc-* | ppcbe-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-* | ppc64p7-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos | rdos64) basic_machine=x86_64-pc os=-rdos ;; rdos32) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh5el) basic_machine=sh5le-unknown ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; strongarm-* | thumb-*) basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tile*) basic_machine=$basic_machine-unknown os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; xscale-* | xscalee[bl]-*) basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; z80-*-coff) basic_machine=z80-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -auroraux) os=-auroraux ;; -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ | -sym* | -kopensolaris* | -plan9* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* | -aros* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -bitrig* | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* | -cegcc* \ | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | -linux-newlib* | -linux-musl* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; -nacl*) ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; c8051-*) os=-elf ;; hexagon-*) os=-elf ;; tic54x-*) os=-coff ;; tic55x-*) os=-coff ;; tic6x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -cnk*|-aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: libvirt-glib-1.0.0/build-aux/check-symfile.pl0000775000000000000000000000324013004340477015745 00000000000000#!/usr/bin/perl # Copyright (C) 2012-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 # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library. If not, see # . die "syntax: $0 SYMFILE ELFLIB(S)" unless int(@ARGV) >= 2; my $symfile = shift @ARGV; my @elflibs = @ARGV; my %wantsyms; my %gotsyms; my $ret = 0; open SYMFILE, $symfile or die "cannot read $symfile: $!"; while () { next if /{/; next if /}/; next if /global:/; next if /local:/; next if /^\s*$/; next if /^\s*#/; next if /\*/; die "malformed line $_" unless /^\s*(\S+);$/; if (exists $wantsyms{$1}) { print STDERR "Symbol $1 is listed twice\n"; $ret = 1; } else { $wantsyms{$1} = 1; } } close SYMFILE; foreach my $elflib (@elflibs) { open NM, "-|", "nm", $elflib or die "cannot run 'nm $elflib': $!"; while () { next unless /^\S+\s(?:[TBD])\s(\S+)\s*$/; $gotsyms{$1} = 1; } close NM; } foreach my $sym (keys(%wantsyms)) { next if exists $gotsyms{$sym}; print STDERR "Expected symbol $sym is not in ELF library\n"; $ret = 1; } exit($ret); libvirt-glib-1.0.0/configure0000775000000000000000000203004613007136322012700 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for libvirt-glib 1.0.0. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" SHELL=${CONFIG_SHELL-/bin/sh} test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='libvirt-glib' PACKAGE_TARNAME='libvirt-glib' PACKAGE_VERSION='1.0.0' PACKAGE_STRING='libvirt-glib 1.0.0' PACKAGE_BUGREPORT='' PACKAGE_URL='' ac_unique_file="libvirt-glib/libvirt-glib-main.c" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS WITH_VALA_FALSE WITH_VALA_TRUE VAPIGEN WITH_LINUX_FALSE WITH_LINUX_TRUE HAVE_INTROSPECTION_FALSE HAVE_INTROSPECTION_TRUE INTROSPECTION_MAKEFILE INTROSPECTION_LIBS INTROSPECTION_CFLAGS INTROSPECTION_TYPELIBDIR INTROSPECTION_GIRDIR INTROSPECTION_GENERATE INTROSPECTION_COMPILER INTROSPECTION_SCANNER COVERAGE_LDFLAGS COVERAGE_CFLAGS COV_FLAGS MINGW_EXTRA_LDFLAGS CYGWIN_EXTRA_LIBADD CYGWIN_EXTRA_LDFLAGS installed_testdir installed_test_metadir ENABLE_ALWAYS_BUILD_TESTS_FALSE ENABLE_ALWAYS_BUILD_TESTS_TRUE ENABLE_INSTALLED_TESTS_FALSE ENABLE_INSTALLED_TESTS_TRUE GLIB_MKENUMS GTK_DOC_USE_REBASE_FALSE GTK_DOC_USE_REBASE_TRUE GTK_DOC_USE_LIBTOOL_FALSE GTK_DOC_USE_LIBTOOL_TRUE GTK_DOC_BUILD_PDF_FALSE GTK_DOC_BUILD_PDF_TRUE GTK_DOC_BUILD_HTML_FALSE GTK_DOC_BUILD_HTML_TRUE ENABLE_GTK_DOC_FALSE ENABLE_GTK_DOC_TRUE HAVE_GTK_DOC_FALSE HAVE_GTK_DOC_TRUE GTKDOC_DEPS_LIBS GTKDOC_DEPS_CFLAGS HTML_DIR GTKDOC_MKPDF GTKDOC_REBASE GTKDOC_CHECK_PATH GTKDOC_CHECK ALL_LINGUAS INTLTOOL_PERL GMSGFMT MSGFMT MSGMERGE XGETTEXT INTLTOOL_POLICY_RULE INTLTOOL_SERVICE_RULE INTLTOOL_THEME_RULE INTLTOOL_SCHEMAS_RULE INTLTOOL_CAVES_RULE INTLTOOL_XML_NOMERGE_RULE INTLTOOL_XML_RULE INTLTOOL_KBD_RULE INTLTOOL_XAM_RULE INTLTOOL_UI_RULE INTLTOOL_SOUNDLIST_RULE INTLTOOL_SHEET_RULE INTLTOOL_SERVER_RULE INTLTOOL_PONG_RULE INTLTOOL_OAF_RULE INTLTOOL_PROP_RULE INTLTOOL_KEYS_RULE INTLTOOL_DIRECTORY_RULE INTLTOOL_DESKTOP_RULE intltool__v_merge_options_0 intltool__v_merge_options_ INTLTOOL_V_MERGE_OPTIONS INTLTOOL__v_MERGE_0 INTLTOOL__v_MERGE_ INTLTOOL_V_MERGE INTLTOOL_EXTRACT INTLTOOL_MERGE INTLTOOL_UPDATE USE_NLS GETTEXT_PACKAGE ENABLE_TESTS_FALSE ENABLE_TESTS_TRUE LIBXML2_LIBS LIBXML2_CFLAGS GIO2_LIBS GIO2_CFLAGS GOBJECT2_LIBS GOBJECT2_CFLAGS GTHREAD2_LIBS GTHREAD2_CFLAGS GLIB2_LIBS GLIB2_CFLAGS LIBVIRT_LIBS LIBVIRT_CFLAGS PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG WARN_CFLAGS CPP LT_SYS_LIBRARY_PATH OTOOL64 OTOOL LIPO NMEDIT DSYMUTIL MANIFEST_TOOL RANLIB ac_ct_AR AR LN_S NM ac_ct_DUMPBIN DUMPBIN LD FGREP EGREP GREP SED LIBTOOL OBJDUMP DLLTOOL AS am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC LIBVIRT_GLIB_VERSION_NUMBER LIBVIRT_GLIB_VERSION_INFO LIBVIRT_GLIB_VERSION LIBVIRT_GLIB_MICRO_VERSION LIBVIRT_GLIB_MINOR_VERSION LIBVIRT_GLIB_MAJOR_VERSION GLIB2_REQUIRED LIBVIRT_REQUIRED host_os host_vendor host_cpu host build_os build_vendor build_cpu build AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_silent_rules enable_dependency_tracking enable_shared enable_static with_pic enable_fast_install with_aix_soname with_gnu_ld with_sysroot enable_libtool_lock enable_werror enable_nls with_html_dir enable_gtk_doc enable_gtk_doc_html enable_gtk_doc_pdf enable_installed_tests enable_always_build_tests enable_test_coverage enable_introspection enable_vala ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS LT_SYS_LIBRARY_PATH CPP PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR LIBVIRT_CFLAGS LIBVIRT_LIBS GLIB2_CFLAGS GLIB2_LIBS GTHREAD2_CFLAGS GTHREAD2_LIBS GOBJECT2_CFLAGS GOBJECT2_LIBS GIO2_CFLAGS GIO2_LIBS LIBXML2_CFLAGS LIBXML2_LIBS GTKDOC_DEPS_CFLAGS GTKDOC_DEPS_LIBS' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures libvirt-glib 1.0.0 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/libvirt-glib] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of libvirt-glib 1.0.0:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-silent-rules less verbose build output (undo: "make V=1") --disable-silent-rules verbose build output (undo: "make V=0") --enable-dependency-tracking do not reject slow dependency extractors --disable-dependency-tracking speeds up one-time build --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=no] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) --enable-werror Use -Werror (if supported) --disable-nls do not use Native Language Support --enable-gtk-doc use gtk-doc to build documentation [[default=no]] --enable-gtk-doc-html build documentation in html format [[default=yes]] --enable-gtk-doc-pdf build documentation in pdf format [[default=no]] --enable-installed-tests Enable installation of some test cases --enable-always-build-tests Enable always building tests during 'make all' --enable-test-coverage turn on code coverage instrumentation --enable-introspection=[no/auto/yes] Enable introspection for this build --enable-vala enable Vala binding generation Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use both] --with-aix-soname=aix|svr4|both shared library versioning (aka "SONAME") variant to provide on AIX, [default=aix]. --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-sysroot[=DIR] Search for dependent libraries within DIR (or the compiler's sysroot if not specified). --with-html-dir=PATH path to installed docs Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory LT_SYS_LIBRARY_PATH User-defined run-time library search path. CPP C preprocessor PKG_CONFIG path to pkg-config utility PKG_CONFIG_PATH directories to add to pkg-config's search path PKG_CONFIG_LIBDIR path overriding pkg-config's built-in search path LIBVIRT_CFLAGS C compiler flags for LIBVIRT, overriding pkg-config LIBVIRT_LIBS linker flags for LIBVIRT, overriding pkg-config GLIB2_CFLAGS C compiler flags for GLIB2, overriding pkg-config GLIB2_LIBS linker flags for GLIB2, overriding pkg-config GTHREAD2_CFLAGS C compiler flags for GTHREAD2, overriding pkg-config GTHREAD2_LIBS linker flags for GTHREAD2, overriding pkg-config GOBJECT2_CFLAGS C compiler flags for GOBJECT2, overriding pkg-config GOBJECT2_LIBS linker flags for GOBJECT2, overriding pkg-config GIO2_CFLAGS C compiler flags for GIO2, overriding pkg-config GIO2_LIBS linker flags for GIO2, overriding pkg-config LIBXML2_CFLAGS C compiler flags for LIBXML2, overriding pkg-config LIBXML2_LIBS linker flags for LIBXML2, overriding pkg-config GTKDOC_DEPS_CFLAGS C compiler flags for GTKDOC_DEPS, overriding pkg-config GTKDOC_DEPS_LIBS linker flags for GTKDOC_DEPS, overriding pkg-config Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to the package provider. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF libvirt-glib configure 1.0.0 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_c_try_run LINENO # ---------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by libvirt-glib $as_me 1.0.0, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_aux_dir= for ac_dir in build-aux "$srcdir"/build-aux; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. ac_config_headers="$ac_config_headers config.h" am__api_version='1.15' # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi if test "$2" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi rm -f conftest.file test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} fi if test x"${install_sh+set}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null # Check whether --enable-silent-rules was given. if test "${enable_silent_rules+set}" = set; then : enableval=$enable_silent_rules; fi case $enable_silent_rules in # ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=1;; esac am_make=${MAKE-make} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } if ${am_cv_make_support_nested_variables+:} false; then : $as_echo_n "(cached) " >&6 else if $as_echo 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 $as_echo "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AM_BACKSLASH='\' if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='libvirt-glib' VERSION='1.0.0' cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # mkdir_p='$(MKDIR_P)' # We need awk for the "check" target (and possibly the TAP driver). The # system "awk" is bad on some platforms. # Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AMTAR='$${TAR-tar}' # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar pax cpio none' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 fi fi # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 $as_echo_n "checking build system type... " >&6; } if ${ac_cv_build+:} false; then : $as_echo_n "(cached) " >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 $as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 $as_echo_n "checking host system type... " >&6; } if ${ac_cv_host+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 $as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac # Check whether --enable-silent-rules was given. if test "${enable_silent_rules+set}" = set; then : enableval=$enable_silent_rules; fi case $enable_silent_rules in # ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=0;; esac am_make=${MAKE-make} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } if ${am_cv_make_support_nested_variables+:} false; then : $as_echo_n "(cached) " >&6 else if $as_echo 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 $as_echo "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AM_BACKSLASH='\' LIBVIRT_REQUIRED=1.1.1 GLIB2_REQUIRED=2.36.0 GLIB2_TEST_REQUIRED=2.38.0 GOBJECT_INTROSPECTION_REQUIRED=1.36.0 LIBXML2_REQUIRED=2.0.0 LIBVIRT_GLIB_MAJOR_VERSION=`echo $VERSION | awk -F. '{print $1}'` LIBVIRT_GLIB_MINOR_VERSION=`echo $VERSION | awk -F. '{print $2}'` LIBVIRT_GLIB_MICRO_VERSION=`echo $VERSION | awk -F. '{print $3}'` LIBVIRT_GLIB_VERSION=$LIBVIRT_GLIB_MAJOR_VERSION.$LIBVIRT_GLIB_MINOR_VERSION.$LIBVIRT_GLIB_MICRO_VERSION$LIBVIRT_GLIB_MICRO_VERSION_SUFFIX LIBVIRT_GLIB_VERSION_NUMBER=`expr $LIBVIRT_GLIB_MAJOR_VERSION \* 1000000 + $LIBVIRT_GLIB_MINOR_VERSION \* 1000 + $LIBVIRT_GLIB_MICRO_VERSION` # In libtool terminology we need to figure out: # # CURRENT # The most recent interface number that this library implements. # # REVISION # The implementation number of the CURRENT interface. # # AGE # The difference between the newest and oldest interfaces that this # library implements. # # In other words, the library implements all the interface numbers # in the range from number `CURRENT - AGE' to `CURRENT'. # # Libtool assigns the soname version from `CURRENT - AGE', and we # don't want that to ever change in libvirt-glib, unless we need # to break ABI for some rason. # # We would, however, like the libvirt-glib version number reflected # in the so version'd symlinks, and this is based on AGE.REVISION # eg libvirt-glib.so.0.AGE.REVISION # # Assuming we do ever want to break soname version, this can # toggled. But seriously, don't ever touch this. LIBVIRT_GLIB_SONUM=0 # The following examples show what libtool will do # # Input: 0.9.14 -> libvirt-glib.so.0.9.14 # Input: 1.0.0 -> libvirt-glib.so.0.1000.0 # Input: 2.5.8 -> libvirt-glib.so.0.2005.8 # AGE=`expr $LIBVIRT_GLIB_MAJOR_VERSION '*' 1000 + $LIBVIRT_GLIB_MINOR_VERSION` REVISION=$LIBVIRT_GLIB_MICRO_VERSION CURRENT=`expr $LIBVIRT_GLIB_SONUM + $AGE` LIBVIRT_GLIB_VERSION_INFO=$CURRENT:$REVISION:$AGE ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } if ${am_cv_prog_cc_c_o+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 $as_echo "$am_cv_prog_cc_c_o" >&6; } if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from 'make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 $as_echo "$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi case `pwd` in *\ * | *\ *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; esac macro_version='2.4.6' macro_revision='2.4.6' ltmain=$ac_aux_dir/ltmain.sh # Backslashify metacharacters that are still active within # double-quoted strings. sed_quote_subst='s/\(["`$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 $as_echo_n "checking how to print strings... " >&6; } # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='printf %s\n' else # Use this function as a fallback that always works. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } ECHO='func_fallback_echo' fi # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "" } case $ECHO in printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 $as_echo "printf" >&6; } ;; print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 $as_echo "print -r" >&6; } ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 $as_echo "cat" >&6; } ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 $as_echo_n "checking for a sed that does not truncate output... " >&6; } if ${ac_cv_path_SED+:} false; then : $as_echo_n "(cached) " >&6 else ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for ac_i in 1 2 3 4 5 6 7; do ac_script="$ac_script$as_nl$ac_script" done echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed { ac_script=; unset ac_script;} if test -z "$SED"; then ac_path_SED_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_SED" || continue # Check for GNU ac_path_SED and select it if it is found. # Check for GNU $ac_path_SED case `"$ac_path_SED" --version 2>&1` in *GNU*) ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo '' >> "conftest.nl" "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_SED_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_SED="$ac_path_SED" ac_path_SED_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_SED_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_SED"; then as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 fi else ac_cv_path_SED=$SED fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 $as_echo "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 $as_echo_n "checking for fgrep... " >&6; } if ${ac_cv_path_FGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 then ac_cv_path_FGREP="$GREP -F" else if test -z "$FGREP"; then ac_path_FGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in fgrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_FGREP" || continue # Check for GNU ac_path_FGREP and select it if it is found. # Check for GNU $ac_path_FGREP case `"$ac_path_FGREP" --version 2>&1` in *GNU*) ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'FGREP' >> "conftest.nl" "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_FGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_FGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_FGREP"; then as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_FGREP=$FGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 $as_echo "$ac_cv_path_FGREP" >&6; } FGREP="$ac_cv_path_FGREP" test -z "$GREP" && GREP=grep # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test yes = "$GCC"; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 $as_echo_n "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return, which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD=$ac_prog ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test yes = "$with_gnu_ld"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if ${lt_cv_path_LD+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD=$ac_dir/$ac_prog # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if ${lt_cv_prog_gnu_ld+:} false; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 $as_echo "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } if ${lt_cv_path_NM+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM=$NM else lt_nm_to_check=${ac_tool_prefix}nm if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. tmp_nm=$ac_dir/$lt_tmp_nm if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then # Check to see if the nm accepts a BSD-compat flag. # Adding the 'sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty case $build_os in mingw*) lt_bad_file=conftest.nm/nofile ;; *) lt_bad_file=/dev/null ;; esac case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in *$lt_bad_file* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break 2 ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break 2 ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS=$lt_save_ifs done : ${lt_cv_path_NM=no} fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 $as_echo "$lt_cv_path_NM" >&6; } if test no != "$lt_cv_path_NM"; then NM=$lt_cv_path_NM else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$DUMPBIN"; then : # Let the user override the test. else if test -n "$ac_tool_prefix"; then for ac_prog in dumpbin "link -dump" do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DUMPBIN+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DUMPBIN"; then ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DUMPBIN=$ac_cv_prog_DUMPBIN if test -n "$DUMPBIN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 $as_echo "$DUMPBIN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$DUMPBIN" && break done fi if test -z "$DUMPBIN"; then ac_ct_DUMPBIN=$DUMPBIN for ac_prog in dumpbin "link -dump" do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DUMPBIN"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN if test -n "$ac_ct_DUMPBIN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 $as_echo "$ac_ct_DUMPBIN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_DUMPBIN" && break done if test "x$ac_ct_DUMPBIN" = x; then DUMPBIN=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DUMPBIN=$ac_ct_DUMPBIN fi fi case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols -headers" ;; *) DUMPBIN=: ;; esac fi if test : != "$DUMPBIN"; then NM=$DUMPBIN fi fi test -z "$NM" && NM=nm { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 $as_echo_n "checking the name lister ($NM) interface... " >&6; } if ${lt_cv_nm_interface+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&5 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&5 (eval echo "\"\$as_me:$LINENO: output\"" >&5) cat conftest.out >&5 if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 $as_echo "$lt_cv_nm_interface" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 $as_echo_n "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 $as_echo "no, using $LN_S" >&6; } fi # find the maximum length of command line arguments { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 $as_echo_n "checking the maximum length of command line arguments... " >&6; } if ${lt_cv_sys_max_cmd_len+:} false; then : $as_echo_n "(cached) " >&6 else i=0 teststring=ABCD case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; mint*) # On MiNT this can take a long time and run out of memory. lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; os2*) # The test takes a long time on OS/2. lt_cv_sys_max_cmd_len=8192 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len" && \ test undefined != "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test X`env echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test 17 != "$i" # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac fi if test -n "$lt_cv_sys_max_cmd_len"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 $as_echo "none" >&6; } fi max_cmd_len=$lt_cv_sys_max_cmd_len : ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } if ${lt_cv_to_host_file_cmd+:} false; then : $as_echo_n "(cached) " >&6 else case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 ;; esac ;; *-*-cygwin* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_noop ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin ;; esac ;; * ) # unhandled hosts (and "normal" native builds) lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac fi to_host_file_cmd=$lt_cv_to_host_file_cmd { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 $as_echo "$lt_cv_to_host_file_cmd" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } if ${lt_cv_to_tool_file_cmd+:} false; then : $as_echo_n "(cached) " >&6 else #assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 ;; esac ;; esac fi to_tool_file_cmd=$lt_cv_to_tool_file_cmd { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 $as_echo_n "checking for $LD option to reload object files... " >&6; } if ${lt_cv_ld_reload_flag+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_reload_flag='-r' fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 $as_echo "$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; *) reload_flag=" $reload_flag" ;; esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in cygwin* | mingw* | pw32* | cegcc*) if test yes != "$GCC"; then reload_cmds=false fi ;; darwin*) if test yes = "$GCC"; then reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; esac if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 $as_echo "$OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OBJDUMP"; then ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OBJDUMP="objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 $as_echo "$ac_ct_OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then OBJDUMP="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP fi else OBJDUMP="$ac_cv_prog_OBJDUMP" fi test -z "$OBJDUMP" && OBJDUMP=objdump { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 $as_echo_n "checking how to recognize dependent libraries... " >&6; } if ${lt_cv_deplibs_check_method+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # 'unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # that responds to the $file_magic_cmd with a given extended regex. # If you have 'file' or equivalent on your system and you're not sure # whether 'pass_all' will *always* work, you probably want this one. case $host_os in aix[4-9]*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[45]*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. if ( file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # Keep this pattern in sync with the one in func_win32_libid. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc*) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; haiku*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[3-9]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd* | bitrig*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; os2*) lt_cv_deplibs_check_method=pass_all ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 $as_echo "$lt_cv_deplibs_check_method" >&6; } file_magic_glob= want_nocaseglob=no if test "$build" = "$host"; then case $host_os in mingw* | pw32*) if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then want_nocaseglob=yes else file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` fi ;; esac fi file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ac_tool_prefix}dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 $as_echo "$DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DLLTOOL"; then ac_ct_DLLTOOL=$DLLTOOL # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DLLTOOL="dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 $as_echo "$ac_ct_DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DLLTOOL" = x; then DLLTOOL="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DLLTOOL=$ac_ct_DLLTOOL fi else DLLTOOL="$ac_cv_prog_DLLTOOL" fi test -z "$DLLTOOL" && DLLTOOL=dlltool { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) # two different shell functions defined in ltmain.sh; # decide which one to use based on capabilities of $DLLTOOL case `$DLLTOOL --help 2>&1` in *--identify-strict*) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; *) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; *) # fallback: assume linklib IS sharedlib lt_cv_sharedlib_from_linklib_cmd=$ECHO ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO if test -n "$ac_tool_prefix"; then for ac_prog in ar do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AR="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 $as_echo "$AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AR" && break done fi if test -z "$AR"; then ac_ct_AR=$AR for ac_prog in ar do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AR="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 $as_echo "$ac_ct_AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_AR" && break done if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi fi : ${AR=ar} : ${AR_FLAGS=cru} { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 $as_echo_n "checking for archiver @FILE support... " >&6; } if ${lt_cv_ar_at_file+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ar_at_file=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test 0 -eq "$ac_status"; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test 0 -ne "$ac_status"; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 $as_echo "$lt_cv_ar_at_file" >&6; } if test no = "$lt_cv_ar_at_file"; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi test -z "$STRIP" && STRIP=: if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 $as_echo "$RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 $as_echo "$ac_ct_RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi test -z "$RANLIB" && RANLIB=: # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in bitrig* | openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" fi case $host_os in darwin*) lock_old_archive_extraction=yes ;; *) lock_old_archive_extraction=no ;; esac # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Check for command to grab the raw symbol name followed by C symbol from nm. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } if ${lt_cv_sys_global_symbol_pipe+:} false; then : $as_echo_n "(cached) " >&6 else # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[BCDEGRST]' # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[ABCDGISTW]' ;; hpux*) if test ia64 = "$host_cpu"; then symcode='[ABCDEGRST]' fi ;; irix* | nonstopux*) symcode='[BCDEGRST]' ;; osf*) symcode='[BCDEGQRST]' ;; solaris*) symcode='[BDRT]' ;; sco3.2v5*) symcode='[DT]' ;; sysv4.2uw2*) symcode='[DT]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[ABDT]' ;; sysv4) symcode='[DFNSTU]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[ABCDGIRSTW]' ;; esac if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Gets list of data symbols to import. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" # Adjust the below global symbol transforms to fixup imported variables. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" lt_c_name_lib_hook="\ -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" else # Disable hooks by default. lt_cv_sys_global_symbol_to_import= lt_cdecl_hook= lt_c_name_hook= lt_c_name_lib_hook= fi # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n"\ $lt_cdecl_hook\ " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ $lt_c_name_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" # Transform an extracted symbol line into symbol name with lib prefix and # symbol address. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ $lt_c_name_lib_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function, # D for any global variable and I for any imported variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK '"\ " {last_section=section; section=\$ 3};"\ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Now try to grab the symbols. nlist=conftest.nm if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT_DLSYM_CONST #elif defined __osf__ /* This system does not cope well with relocations in const data. */ # define LT_DLSYM_CONST #else # define LT_DLSYM_CONST const #endif #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ LT_DLSYM_CONST struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_globsym_save_LIBS=$LIBS lt_globsym_save_CFLAGS=$CFLAGS LIBS=conftstm.$ac_objext CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest$ac_exeext; then pipe_works=yes fi LIBS=$lt_globsym_save_LIBS CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&5 fi else echo "cannot find nm_test_var in $nlist" >&5 fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 fi else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test yes = "$pipe_works"; then break else lt_cv_sys_global_symbol_pipe= fi done fi if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 $as_echo "failed" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 $as_echo "ok" >&6; } fi # Response file support. if test "$lt_cv_nm_interface" = "MS dumpbin"; then nm_file_list_spec='@' elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then nm_file_list_spec='@' fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 $as_echo_n "checking for sysroot... " >&6; } # Check whether --with-sysroot was given. if test "${with_sysroot+set}" = set; then : withval=$with_sysroot; else with_sysroot=no fi lt_sysroot= case $with_sysroot in #( yes) if test yes = "$GCC"; then lt_sysroot=`$CC --print-sysroot 2>/dev/null` fi ;; #( /*) lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ;; #( no|'') ;; #( *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 $as_echo "$with_sysroot" >&6; } as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 $as_echo "${lt_sysroot:-no}" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 $as_echo_n "checking for a working dd... " >&6; } if ${ac_cv_path_lt_DD+:} false; then : $as_echo_n "(cached) " >&6 else printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i : ${lt_DD:=$DD} if test -z "$lt_DD"; then ac_path_lt_DD_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in dd; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_lt_DD" || continue if "$ac_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: fi $ac_path_lt_DD_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_lt_DD"; then : fi else ac_cv_path_lt_DD=$lt_DD fi rm -f conftest.i conftest2.i conftest.out fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 $as_echo "$ac_cv_path_lt_DD" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 $as_echo_n "checking how to truncate binary pipes... " >&6; } if ${lt_cv_truncate_bin+:} false; then : $as_echo_n "(cached) " >&6 else printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i lt_cv_truncate_bin= if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" fi rm -f conftest.i conftest2.i conftest.out test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 $as_echo "$lt_cv_truncate_bin" >&6; } # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. func_cc_basename () { for cc_temp in $*""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` } # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then : enableval=$enable_libtool_lock; fi test no = "$enable_libtool_lock" || enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out what ABI is being produced by ac_compile, and set mode # options accordingly. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE=32 ;; *ELF-64*) HPUX_IA64_MODE=64 ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '#line '$LINENO' "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then if test yes = "$lt_cv_prog_gnu_ld"; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; mips64*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '#line '$LINENO' "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then emul=elf case `/usr/bin/file conftest.$ac_objext` in *32-bit*) emul="${emul}32" ;; *64-bit*) emul="${emul}64" ;; esac case `/usr/bin/file conftest.$ac_objext` in *MSB*) emul="${emul}btsmip" ;; *LSB*) emul="${emul}ltsmip" ;; esac case `/usr/bin/file conftest.$ac_objext` in *N32*) emul="${emul}n32" ;; esac LD="${LD-ld} -m $emul" fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. Note that the listed cases only cover the # situations where additional linker options are needed (such as when # doing 32-bit compilation for a host where ld defaults to 64-bit, or # vice versa); the common cases where no linker options are needed do # not appear in the list. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) case `/usr/bin/file conftest.o` in *x86-64*) LD="${LD-ld} -m elf32_x86_64" ;; *) LD="${LD-ld} -m elf_i386" ;; esac ;; powerpc64le-*linux*) LD="${LD-ld} -m elf32lppclinux" ;; powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; powerpcle-*linux*) LD="${LD-ld} -m elf64lppc" ;; powerpc-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -belf" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } if ${lt_cv_cc_needs_belf+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_cc_needs_belf=yes else lt_cv_cc_needs_belf=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 $as_echo "$lt_cv_cc_needs_belf" >&6; } if test yes != "$lt_cv_cc_needs_belf"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS=$SAVE_CFLAGS fi ;; *-*solaris*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) case $host in i?86-*-solaris*|x86_64-*-solaris*) LD="${LD-ld} -m elf_x86_64" ;; sparc*-*-solaris*) LD="${LD-ld} -m elf64_sparc" ;; esac # GNU ld 2.21 introduced _sol2 emulations. Use them if available. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then LD=${LD-ld}_sol2 fi ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks=$enable_libtool_lock if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. set dummy ${ac_tool_prefix}mt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$MANIFEST_TOOL"; then ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL if test -n "$MANIFEST_TOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 $as_echo "$MANIFEST_TOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_MANIFEST_TOOL"; then ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL # Extract the first word of "mt", so it can be a program name with args. set dummy mt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_MANIFEST_TOOL"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL if test -n "$ac_ct_MANIFEST_TOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_MANIFEST_TOOL" = x; then MANIFEST_TOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL fi else MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" fi test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } if ${lt_cv_path_mainfest_tool+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&5 if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 $as_echo "$lt_cv_path_mainfest_tool" >&6; } if test yes != "$lt_cv_path_mainfest_tool"; then MANIFEST_TOOL=: fi case $host_os in rhapsody* | darwin*) if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DSYMUTIL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 $as_echo "$DSYMUTIL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DSYMUTIL"; then ac_ct_DSYMUTIL=$DSYMUTIL # Extract the first word of "dsymutil", so it can be a program name with args. set dummy dsymutil; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 $as_echo "$ac_ct_DSYMUTIL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DSYMUTIL" = x; then DSYMUTIL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DSYMUTIL=$ac_ct_DSYMUTIL fi else DSYMUTIL="$ac_cv_prog_DSYMUTIL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. set dummy ${ac_tool_prefix}nmedit; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_NMEDIT+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 $as_echo "$NMEDIT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_NMEDIT"; then ac_ct_NMEDIT=$NMEDIT # Extract the first word of "nmedit", so it can be a program name with args. set dummy nmedit; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_NMEDIT="nmedit" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 $as_echo "$ac_ct_NMEDIT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_NMEDIT" = x; then NMEDIT=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac NMEDIT=$ac_ct_NMEDIT fi else NMEDIT="$ac_cv_prog_NMEDIT" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. set dummy ${ac_tool_prefix}lipo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_LIPO+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$LIPO"; then ac_cv_prog_LIPO="$LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_LIPO="${ac_tool_prefix}lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 $as_echo "$LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_LIPO"; then ac_ct_LIPO=$LIPO # Extract the first word of "lipo", so it can be a program name with args. set dummy lipo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_LIPO+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_LIPO"; then ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_LIPO="lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 $as_echo "$ac_ct_LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_LIPO" = x; then LIPO=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac LIPO=$ac_ct_LIPO fi else LIPO="$ac_cv_prog_LIPO" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. set dummy ${ac_tool_prefix}otool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL"; then ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL="${ac_tool_prefix}otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 $as_echo "$OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL"; then ac_ct_OTOOL=$OTOOL # Extract the first word of "otool", so it can be a program name with args. set dummy otool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL"; then ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL="otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 $as_echo "$ac_ct_OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL" = x; then OTOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL=$ac_ct_OTOOL fi else OTOOL="$ac_cv_prog_OTOOL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. set dummy ${ac_tool_prefix}otool64; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OTOOL64+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL64"; then ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 $as_echo "$OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL64"; then ac_ct_OTOOL64=$OTOOL64 # Extract the first word of "otool64", so it can be a program name with args. set dummy otool64; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL64"; then ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL64="otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 $as_echo "$ac_ct_OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL64" = x; then OTOOL64=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL64=$ac_ct_OTOOL64 fi else OTOOL64="$ac_cv_prog_OTOOL64" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 $as_echo_n "checking for -single_module linker flag... " >&6; } if ${lt_cv_apple_cc_single_mod+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_apple_cc_single_mod=no if test -z "$LT_MULTI_MODULE"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&5 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? # If there is a non-empty error log, and "single_module" # appears in it, assume the flag caused a linker warning if test -s conftest.err && $GREP single_module conftest.err; then cat conftest.err >&5 # Otherwise, if the output was created with a 0 exit code from # the compiler, it worked. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&5 fi rm -rf libconftest.dylib* rm -f conftest.* fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } if ${lt_cv_ld_exported_symbols_list+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_ld_exported_symbols_list=yes else lt_cv_ld_exported_symbols_list=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 $as_echo_n "checking for -force_load linker flag... " >&6; } if ${lt_cv_ld_force_load+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 echo "$AR cru libconftest.a conftest.o" >&5 $AR cru libconftest.a conftest.o 2>&5 echo "$RANLIB libconftest.a" >&5 $RANLIB libconftest.a 2>&5 cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err _lt_result=$? if test -s conftest.err && $GREP force_load conftest.err; then cat conftest.err >&5 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then lt_cv_ld_force_load=yes else cat conftest.err >&5 fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 $as_echo "$lt_cv_ld_force_load" >&6; } case $host_os in rhapsody* | darwin1.[012]) _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[91]*) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10.[012][,.]*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test yes = "$lt_cv_apple_cc_single_mod"; then _lt_dar_single_mod='$single_module' fi if test yes = "$lt_cv_ld_exported_symbols_list"; then _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' fi if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac # func_munge_path_list VARIABLE PATH # ----------------------------------- # VARIABLE is name of variable containing _space_ separated list of # directories to be munged by the contents of PATH, which is string # having a format: # "DIR[:DIR]:" # string "DIR[ DIR]" will be prepended to VARIABLE # ":DIR[:DIR]" # string "DIR[ DIR]" will be appended to VARIABLE # "DIRP[:DIRP]::[DIRA:]DIRA" # string "DIRP[ DIRP]" will be prepended to VARIABLE and string # "DIRA[ DIRA]" will be appended to VARIABLE # "DIR[:DIR]" # VARIABLE will be replaced by "DIR[ DIR]" func_munge_path_list () { case x$2 in x) ;; *:) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" ;; x:*) eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" ;; *::*) eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" ;; *) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" ;; esac } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in dlfcn.h do : ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default " if test "x$ac_cv_header_dlfcn_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DLFCN_H 1 _ACEOF fi done # Set options # Check whether --enable-shared was given. if test "${enable_shared+set}" = set; then : enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS=$lt_save_ifs ;; esac else enable_shared=yes fi # Check whether --enable-static was given. if test "${enable_static+set}" = set; then : enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS=$lt_save_ifs ;; esac else enable_static=no fi enable_win32_dll=yes case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. set dummy ${ac_tool_prefix}as; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AS+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AS"; then ac_cv_prog_AS="$AS" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AS="${ac_tool_prefix}as" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AS=$ac_cv_prog_AS if test -n "$AS"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 $as_echo "$AS" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_AS"; then ac_ct_AS=$AS # Extract the first word of "as", so it can be a program name with args. set dummy as; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_AS+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_AS"; then ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AS="as" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AS=$ac_cv_prog_ac_ct_AS if test -n "$ac_ct_AS"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 $as_echo "$ac_ct_AS" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_AS" = x; then AS="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AS=$ac_ct_AS fi else AS="$ac_cv_prog_AS" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ac_tool_prefix}dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 $as_echo "$DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DLLTOOL"; then ac_ct_DLLTOOL=$DLLTOOL # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DLLTOOL="dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 $as_echo "$ac_ct_DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DLLTOOL" = x; then DLLTOOL="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DLLTOOL=$ac_ct_DLLTOOL fi else DLLTOOL="$ac_cv_prog_DLLTOOL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 $as_echo "$OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OBJDUMP"; then ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OBJDUMP="objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 $as_echo "$ac_ct_OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then OBJDUMP="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP fi else OBJDUMP="$ac_cv_prog_OBJDUMP" fi ;; esac test -z "$AS" && AS=as test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$OBJDUMP" && OBJDUMP=objdump enable_dlopen=no # Check whether --with-pic was given. if test "${with_pic+set}" = set; then : withval=$with_pic; lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; *) pic_mode=default # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for lt_pkg in $withval; do IFS=$lt_save_ifs if test "X$lt_pkg" = "X$lt_p"; then pic_mode=yes fi done IFS=$lt_save_ifs ;; esac else pic_mode=default fi # Check whether --enable-fast-install was given. if test "${enable_fast_install+set}" = set; then : enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS=$lt_save_ifs ;; esac else enable_fast_install=yes fi shared_archive_member_spec= case $host,$enable_shared in power*-*-aix[5-9]*,yes) { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } # Check whether --with-aix-soname was given. if test "${with_aix_soname+set}" = set; then : withval=$with_aix_soname; case $withval in aix|svr4|both) ;; *) as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 ;; esac lt_cv_with_aix_soname=$with_aix_soname else if ${lt_cv_with_aix_soname+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_with_aix_soname=aix fi with_aix_soname=$lt_cv_with_aix_soname fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 $as_echo "$with_aix_soname" >&6; } if test aix != "$with_aix_soname"; then # For the AIX way of multilib, we name the shared archive member # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, # the AIX toolchain works better with OBJECT_MODE set (default 32). if test 64 = "${OBJECT_MODE-32}"; then shared_archive_member_spec=shr_64 else shared_archive_member_spec=shr fi fi ;; *) with_aix_soname=aix ;; esac # This can be used to rebuild libtool when needed LIBTOOL_DEPS=$ltmain # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' test -z "$LN_S" && LN_S="ln -s" if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 $as_echo_n "checking for objdir... " >&6; } if ${lt_cv_objdir+:} false; then : $as_echo_n "(cached) " >&6 else rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 $as_echo "$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir cat >>confdefs.h <<_ACEOF #define LT_OBJDIR "$lt_cv_objdir/" _ACEOF case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a '.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld=$lt_cv_prog_gnu_ld old_CC=$CC old_CFLAGS=$CFLAGS # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o func_cc_basename $compiler cc_basename=$func_cc_basename_result # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD=$MAGIC_CMD lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/${ac_tool_prefix}file"; then lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD=$lt_cv_path_MAGIC_CMD if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; esac fi MAGIC_CMD=$lt_cv_path_MAGIC_CMD if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 $as_echo_n "checking for file... " >&6; } if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD=$MAGIC_CMD lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/file"; then lt_cv_path_MAGIC_CMD=$ac_dir/"file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD=$lt_cv_path_MAGIC_CMD if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; esac fi MAGIC_CMD=$lt_cv_path_MAGIC_CMD if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi else MAGIC_CMD=: fi fi fi ;; esac # Use C for the default configuration in the libtool script lt_save_CC=$CC ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o objext=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then lt_prog_compiler_no_builtin_flag= if test yes = "$GCC"; then case $cc_basename in nvcc*) lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; *) lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl= lt_prog_compiler_pic= lt_prog_compiler_static= if test yes = "$GCC"; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi lt_prog_compiler_pic='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic='-DDLL_EXPORT' case $host_os in os2*) lt_prog_compiler_static='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. lt_prog_compiler_static= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) lt_prog_compiler_pic='-fPIC' ;; esac ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; *) lt_prog_compiler_pic='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 lt_prog_compiler_wl='-Xlinker ' if test -n "$lt_prog_compiler_pic"; then lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl='-Wl,' if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' else lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' case $cc_basename in nagfor*) # NAG Fortran compiler lt_prog_compiler_wl='-Wl,-Wl,,' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; esac ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' case $host_os in os2*) lt_prog_compiler_static='$wl-static' ;; esac ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static='$wl-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in # old Intel for x86_64, which still supported -KPIC. ecc*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; # Lahey Fortran 8.1. lf95*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='--shared' lt_prog_compiler_static='--static' ;; nagfor*) # NAG Fortran compiler lt_prog_compiler_wl='-Wl,-Wl,,' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; tcc*) # Fabrice Bellard et al's Tiny C Compiler lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; ccc*) lt_prog_compiler_wl='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-qpic' lt_prog_compiler_static='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='' ;; *Sun\ F* | *Sun*Fortran*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Wl,' ;; *Intel*\ [CF]*Compiler*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; *Portland\ Group*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; esac ;; esac ;; newsos6) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static='-non_shared' ;; rdos*) lt_prog_compiler_static='-non_shared' ;; solaris*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl='-Qoption ld ' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic='-Kconform_pic' lt_prog_compiler_static='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; unicos*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_can_build_shared=no ;; uts4*) lt_prog_compiler_pic='-pic' lt_prog_compiler_static='-Bstatic' ;; *) lt_prog_compiler_can_build_shared=no ;; esac fi case $host_os in # For platforms that do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic= ;; *) lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } if ${lt_cv_prog_compiler_pic+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic=$lt_prog_compiler_pic fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 $as_echo "$lt_cv_prog_compiler_pic" >&6; } lt_prog_compiler_pic=$lt_cv_prog_compiler_pic # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } if ${lt_cv_prog_compiler_pic_works+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } if test yes = "$lt_cv_prog_compiler_pic_works"; then case $lt_prog_compiler_pic in "" | " "*) ;; *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; esac else lt_prog_compiler_pic= lt_prog_compiler_can_build_shared=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if ${lt_cv_prog_compiler_static_works+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works=yes fi else lt_cv_prog_compiler_static_works=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } if test yes = "$lt_cv_prog_compiler_static_works"; then : else lt_prog_compiler_static= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } hard_links=nottested if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then # do not overwrite the value of need_locks provided by the user { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test no = "$hard_links"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= allow_undefined_flag= always_export_symbols=no archive_cmds= archive_expsym_cmds= compiler_needs_object=no enable_shared_with_static_runtimes=no export_dynamic_flag_spec= export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' hardcode_automatic=no hardcode_direct=no hardcode_direct_absolute=no hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_minus_L=no hardcode_shlibpath_var=unsupported inherit_rpath=no link_all_deplibs=unknown module_cmds= module_expsym_cmds= old_archive_from_new_cmds= old_archive_from_expsyms_cmds= thread_safe_flag_spec= whole_archive_flag_spec= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ' (' and ')$', so one must not match beginning or # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', # as well as any symbol that contains 'd'. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test yes != "$GCC"; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd* | bitrig*) with_gnu_ld=no ;; esac ld_shlibs=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test yes = "$with_gnu_ld"; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; *\ \(GNU\ Binutils\)\ [3-9]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test yes = "$lt_use_gnu_ld_interface"; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='$wl' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' export_dynamic_flag_spec='$wl--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else whole_archive_flag_spec= fi supports_anon_versioning=no case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test ia64 != "$host_cpu"; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' export_dynamic_flag_spec='$wl--export-all-symbols' allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs=no fi ;; haiku*) archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' link_all_deplibs=yes ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported shrext_cmds=.dll archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes=yes ;; interix[3-9]*) hardcode_direct=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='$wl-rpath,$libdir' export_dynamic_flag_spec='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test linux-dietlibc = "$host_os"; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test no = "$tmp_diet" then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 whole_archive_flag_spec= tmp_sharedflag='--shared' ;; nagfor*) # NAGFOR 5.3 tmp_sharedflag='-Wl,-shared' ;; xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' compiler_needs_object=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' compiler_needs_object=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi case $cc_basename in tcc*) export_dynamic_flag_spec='-rdynamic' ;; xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else ld_shlibs=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac if test no = "$ld_shlibs"; then runpath_var= hardcode_libdir_flag_spec= export_dynamic_flag_spec= whole_archive_flag_spec= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag=unsupported always_export_symbols=yes archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix[4-9]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to GNU nm, but means don't demangle to AIX nm. # Without the "-l" option, or with the "-B" option, AIX nm treats # weak defined symbols like other global defined symbols, whereas # GNU nm marks them as "W". # While the 'weak' keyword is ignored in the Export File, we need # it in the Import File for the 'aix-soname' feature, so we have # to replace the "-B" option with "-P" for AIX nm. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' else export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # have runtime linking enabled, and use it for executables. # For shared libraries, we enable/disable runtime linking # depending on the kind of the shared library created - # when "with_aix_soname,aix_use_runtimelinking" is: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,yes" lib.so shared, rtl:yes, for executables # lib.a static archive # "both,no" lib.so.V(shr.o) shared, rtl:yes # lib.a(lib.so.V) shared, rtl:no, for executables # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a(lib.so.V) shared, rtl:no # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a static archive case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then aix_use_runtimelinking=yes break fi done if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then # With aix-soname=svr4, we create the lib.so.V shared archives only, # so we don't have lib.a shared libs to link our executables. # We have to force runtime linking in this case. aix_use_runtimelinking=yes LDFLAGS="$LDFLAGS -Wl,-brtl" fi ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds='' hardcode_direct=yes hardcode_direct_absolute=yes hardcode_libdir_separator=':' link_all_deplibs=yes file_list_spec='$wl-f,' case $with_aix_soname,$aix_use_runtimelinking in aix,*) ;; # traditional, no import file svr4,* | *,yes) # use import file # The Import File defines what to hardcode. hardcode_direct=no hardcode_direct_absolute=no ;; esac if test yes = "$GCC"; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag="$shared_flag "'$wl-G' fi # Need to ensure runtime linking is disabled for the traditional # shared library, or the linker may eventually find shared libraries # /with/ Import File - we do not want to mix them. shared_flag_aix='-shared' shared_flag_svr4='-shared $wl-G' else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi shared_flag_aix='$wl-bM:SRE' shared_flag_svr4='$wl-G' fi fi export_dynamic_flag_spec='$wl-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols=yes if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an # empty executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath_+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib fi fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag else if test ia64 = "$host_cpu"; then hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' allow_undefined_flag="-z nodefs" archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath_+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib fi fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag=' $wl-bernotok' allow_undefined_flag=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec='$convenience' fi archive_cmds_need_lc=yes archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' # -brtl affects multiple linker settings, -berok does not and is overridden later compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' if test svr4 != "$with_aix_soname"; then # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' fi if test aix != "$with_aix_soname"; then archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' else # used by -dlpreopen to get the symbols archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; bsdi[45]*) export_dynamic_flag_spec=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl*) # Native MSVC hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported always_export_symbols=yes file_list_spec='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, )='true' enable_shared_with_static_runtimes=yes exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib old_postinstall_cmds='chmod 644 $oldlib' postlink_cmds='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC wrapper hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_from_new_cmds='true' # FIXME: Should let the user specify the lib program. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' enable_shared_with_static_runtimes=yes ;; esac ;; darwin* | rhapsody*) archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported if test yes = "$lt_cv_ld_force_load"; then whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' else whole_archive_flag_spec='' fi link_all_deplibs=yes allow_undefined_flag=$_lt_dar_allow_undefined case $cc_basename in ifort*|nagfor*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test yes = "$_lt_dar_can_shared"; then output_verbose_link_cmd=func_echo_all archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" else ld_shlibs=no fi ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9*) if test yes = "$GCC"; then archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' else archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec='$wl+b $wl$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes export_dynamic_flag_spec='$wl-E' ;; hpux10*) if test yes,no = "$GCC,$with_gnu_ld"; then archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test no = "$with_gnu_ld"; then hardcode_libdir_flag_spec='$wl+b $wl$libdir' hardcode_libdir_separator=: hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test yes,no = "$GCC,$with_gnu_ld"; then case $host_cpu in hppa*64*) archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 $as_echo_n "checking if $CC understands -b... " >&6; } if ${lt_cv_prog_compiler__b+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler__b=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -b" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler__b=yes fi else lt_cv_prog_compiler__b=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 $as_echo "$lt_cv_prog_compiler__b" >&6; } if test yes = "$lt_cv_prog_compiler__b"; then archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi ;; esac fi if test no = "$with_gnu_ld"; then hardcode_libdir_flag_spec='$wl+b $wl$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no hardcode_shlibpath_var=no ;; *) hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test yes = "$GCC"; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } if ${lt_cv_irix_exported_symbol+:} false; then : $as_echo_n "(cached) " >&6 else save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo (void) { return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_irix_exported_symbol=yes else lt_cv_irix_exported_symbol=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 $as_echo "$lt_cv_irix_exported_symbol" >&6; } if test yes = "$lt_cv_irix_exported_symbol"; then archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' fi else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' hardcode_libdir_separator=: inherit_rpath=yes link_all_deplibs=yes ;; linux*) case $cc_basename in tcc*) # Fabrice Bellard et al's Tiny C Compiler ld_shlibs=yes archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; newsos6) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' hardcode_libdir_separator=: hardcode_shlibpath_var=no ;; *nto* | *qnx*) ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes hardcode_shlibpath_var=no hardcode_direct_absolute=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec='$wl-rpath,$libdir' export_dynamic_flag_spec='$wl-E' else archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='$wl-rpath,$libdir' fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported shrext_cmds=.dll archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes=yes ;; osf3*) if test yes = "$GCC"; then allow_undefined_flag=' $wl-expect_unresolved $wl\*' archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test yes = "$GCC"; then allow_undefined_flag=' $wl-expect_unresolved $wl\*' archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi archive_cmds_need_lc='no' hardcode_libdir_separator=: ;; solaris*) no_undefined_flag=' -z defs' if test yes = "$GCC"; then wlarc='$wl' archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='$wl' archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. GCC discards it without '$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test yes = "$GCC"; then whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' else whole_archive_flag_spec='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs=yes ;; sunos4*) if test sequent = "$host_vendor"; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; sysv4) case $host_vendor in sni) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds='$CC -r -o $output$reload_objs' hardcode_direct=no ;; motorola) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv4.3*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag='$wl-z,text' archive_cmds_need_lc=no hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag='$wl-z,text' allow_undefined_flag='$wl-z,nodefs' archive_cmds_need_lc=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='$wl-R,$libdir' hardcode_libdir_separator=':' link_all_deplibs=yes export_dynamic_flag_spec='$wl-Bexport' runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; *) ld_shlibs=no ;; esac if test sni = "$host_vendor"; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) export_dynamic_flag_spec='$wl-Blargedynsym' ;; esac fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 $as_echo "$ld_shlibs" >&6; } test no = "$ld_shlibs" && can_build_shared=no with_gnu_ld=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc" in x|xyes) # Assume -lc should be added archive_cmds_need_lc=yes if test yes,yes = "$GCC,$enable_shared"; then case $archive_cmds in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } if ${lt_cv_archive_cmds_need_lc+:} false; then : $as_echo_n "(cached) " >&6 else $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl pic_flag=$lt_prog_compiler_pic compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag allow_undefined_flag= if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc=no else lt_cv_archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc ;; esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } if test yes = "$GCC"; then case $host_os in darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; *) lt_awk_arg='/^libraries:/' ;; esac case $host_os in mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; *) lt_sed_strip_eq='s|=/|/|g' ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` case $lt_search_path_spec in *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` ;; *) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` ;; esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary... lt_tmp_lt_search_path_spec= lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` # ...but if some path component already ends with the multilib dir we assume # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). case "$lt_multi_os_dir; $lt_search_path_spec " in "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) lt_multi_os_dir= ;; esac for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" elif test -n "$lt_multi_os_dir"; then test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS = " "; FS = "/|\n";} { lt_foo = ""; lt_count = 0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo = "/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[lt_foo]++; } if (lt_freq[lt_foo] == 1) { print lt_foo; } }'` # AWK program above erroneously prepends '/' to C:/dos/paths # for these hosts. case $host_os in mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ $SED 's|/\([A-Za-z]:\)|\1|g'` ;; esac sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=.so postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='$libname$release$shared_ext$major' ;; aix[4-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test ia64 = "$host_cpu"; then # AIX 5 supports IA64 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line '#! .'. This would cause the generated library to # depend on '.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # Using Import Files as archive members, it is possible to support # filename-based versioning of shared library archives on AIX. While # this would work for both with and without runtime linking, it will # prevent static linking of such archives. So we do filename-based # shared library versioning with .so extension only, which is used # when both runtime linking and shared linking is enabled. # Unfortunately, runtime linking may impact performance, so we do # not want this to be the default eventually. Also, we use the # versioned .so libs for executables only if there is the -brtl # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. # To allow for filename-based versioning support, we need to create # libNAME.so.V as an archive file, containing: # *) an Import File, referring to the versioned filename of the # archive as well as the shared archive member, telling the # bitwidth (32 or 64) of that shared object, and providing the # list of exported symbols of that shared object, eventually # decorated with the 'weak' keyword # *) the shared object with the F_LOADONLY flag set, to really avoid # it being seen by the linker. # At run time we better use the real file rather than another symlink, # but for link time we create the symlink libNAME.so -> libNAME.so.V case $with_aix_soname,$aix_use_runtimelinking in # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. aix,yes) # traditional libtool dynamic_linker='AIX unversionable lib.so' # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; aix,no) # traditional AIX only dynamic_linker='AIX lib.a(lib.so.V)' # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' ;; svr4,*) # full svr4 only dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,yes) # both, prefer svr4 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # unpreferred sharedlib libNAME.a needs extra handling postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,no) # both, prefer aix dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' ;; esac shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='$libname$shared_ext' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' library_names_spec='$libname.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec=$LIB if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' soname_spec='$libname$release$major$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[23].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=no sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' if test 32 = "$HPUX_IA64_MODE"; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" sys_lib_dlsearch_path_spec=/usr/lib/hpux32 else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" sys_lib_dlsearch_path_spec=/usr/lib/hpux64 fi ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[3-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test yes = "$lt_cv_prog_gnu_ld"; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; linux*android*) version_type=none # Android doesn't support versioned libraries. need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext' soname_spec='$libname$release$shared_ext' finish_cmds= shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes dynamic_linker='Android linker' # Don't embed -rpath directories since the linker doesn't support them. hardcode_libdir_flag_spec='-L$libdir' ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH if ${lt_cv_shlibpath_overrides_runpath+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : lt_cv_shlibpath_overrides_runpath=yes fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Add ABI-specific directories to the system library path. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" # Ideally, we could use ldconfig to report *all* directores which are # searched for libraries, however this is still not possible. Aside from not # being certain /sbin/ldconfig is available, command # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, # even though it is searched at run-time. Try to do the best guess by # appending ld.so.conf contents (and includes) to the search path. if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd* | bitrig*) version_type=sunos sys_lib_dlsearch_path_spec=/usr/lib need_lib_prefix=no if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then need_version=no else need_version=yes fi library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; os2*) libname_spec='$name' version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no # OS/2 can only load a DLL with a base name of 8 characters or less. soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; v=$($ECHO $release$versuffix | tr -d .-); n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); $ECHO $n$v`$shared_ext' library_names_spec='${libname}_dll.$libext' dynamic_linker='OS/2 ld.exe' shlibpath_var=BEGINLIBPATH sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test yes = "$with_gnu_ld"; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec; then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' soname_spec='$libname$shared_ext.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=sco need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test yes = "$with_gnu_ld"; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test no = "$dynamic_linker" && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test yes = "$GCC"; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec fi if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec fi # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || test -n "$runpath_var" || test yes = "$hardcode_automatic"; then # We can hardcode non-existent directories. if test no != "$hardcode_direct" && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && test no != "$hardcode_minus_L"; then # Linking always hardcodes the temporary library directory. hardcode_action=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action=unsupported fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 $as_echo "$hardcode_action" >&6; } if test relink = "$hardcode_action" || test yes = "$inherit_rpath"; then # Fast installation is not supported enable_fast_install=no elif test yes = "$shlibpath_overrides_runpath" || test no = "$enable_shared"; then # Fast installation is not necessary enable_fast_install=needless fi if test yes != "$enable_dlopen"; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen=load_add_on lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen=LoadLibrary lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen=dlopen lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl else lt_cv_dlopen=dyld lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; tpf*) # Don't try to run any link tests for TPF. We know it's impossible # because TPF is a cross-compiler, and we know how we open DSOs. lt_cv_dlopen=dlopen lt_cv_dlopen_libs= lt_cv_dlopen_self=no ;; *) ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" if test "x$ac_cv_func_shl_load" = xyes; then : lt_cv_dlopen=shl_load else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 $as_echo_n "checking for shl_load in -ldld... " >&6; } if ${ac_cv_lib_dld_shl_load+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); int main () { return shl_load (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_shl_load=yes else ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } if test "x$ac_cv_lib_dld_shl_load" = xyes; then : lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld else ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" if test "x$ac_cv_func_dlopen" = xyes; then : lt_cv_dlopen=dlopen else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 $as_echo_n "checking for dlopen in -lsvld... " >&6; } if ${ac_cv_lib_svld_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_svld_dlopen=yes else ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } if test "x$ac_cv_lib_svld_dlopen" = xyes; then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 $as_echo_n "checking for dld_link in -ldld... " >&6; } if ${ac_cv_lib_dld_dld_link+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dld_link (); int main () { return dld_link (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_dld_link=yes else ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } if test "x$ac_cv_lib_dld_dld_link" = xyes; then : lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld fi fi fi fi fi fi ;; esac if test no = "$lt_cv_dlopen"; then enable_dlopen=no else enable_dlopen=yes fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS=$CPPFLAGS test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS=$LDFLAGS wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS=$LIBS LIBS="$lt_cv_dlopen_libs $LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 $as_echo_n "checking whether a program can dlopen itself... " >&6; } if ${lt_cv_dlopen_self+:} false; then : $as_echo_n "(cached) " >&6 else if test yes = "$cross_compiling"; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisibility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 $as_echo "$lt_cv_dlopen_self" >&6; } if test yes = "$lt_cv_dlopen_self"; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } if ${lt_cv_dlopen_self_static+:} false; then : $as_echo_n "(cached) " >&6 else if test yes = "$cross_compiling"; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisibility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 $as_echo "$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS=$save_CPPFLAGS LDFLAGS=$save_LDFLAGS LIBS=$save_LIBS ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi striplib= old_striplib= { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 $as_echo_n "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP"; then striplib="$STRIP -x" old_striplib="$STRIP -S" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ;; esac fi # Report what library types will actually be built { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 $as_echo_n "checking if libtool supports shared libraries... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 $as_echo "$can_build_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 $as_echo_n "checking whether to build shared libraries... " >&6; } test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[4-9]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 $as_echo "$enable_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 $as_echo_n "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 $as_echo "$enable_static" >&6; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC=$lt_save_CC ac_config_commands="$ac_config_commands libtool" # Only expand once: $as_echo "#define _GNU_SOURCE /**/" >>confdefs.h # Autoconf 2.61a.99 and earlier don't support linking a file only # in VPATH builds. But since GNUmakefile is for maintainer use # only, it does not matter if we skip the link with older autoconf. # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH # builds, so use a shell variable to bypass this. GNUmakefile=GNUmakefile ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; } if ${gl_cv_warn_c__Werror__Wunknown_warning_option+:} false; then : $as_echo_n "(cached) " >&6 else gl_save_compiler_FLAGS="$CFLAGS" as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gl_cv_warn_c__Werror__Wunknown_warning_option=yes else gl_cv_warn_c__Werror__Wunknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$gl_save_compiler_FLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; } if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes; then : gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' else gl_unknown_warnings_are_errors= fi # Check whether --enable-werror was given. if test "${enable_werror+set}" = set; then : enableval=$enable_werror; set_werror="$enableval" else if test -d $srcdir/.git; then is_git_version=true set_werror=yes else set_werror=no fi fi # List of warnings that are not relevant / wanted # Don't care about C++ compiler compat dontwarn="$dontwarn -Wc++-compat" dontwarn="$dontwarn -Wabi" dontwarn="$dontwarn -Wdeprecated" # Don't care about ancient C standard compat dontwarn="$dontwarn -Wtraditional" # Don't care about ancient C standard compat dontwarn="$dontwarn -Wtraditional-conversion" # Ignore warnings in /usr/include dontwarn="$dontwarn -Wsystem-headers" # Happy for compiler to add struct padding dontwarn="$dontwarn -Wpadded" # GCC very confused with -O2 dontwarn="$dontwarn -Wunreachable-code" # Too many to deal with dontwarn="$dontwarn -Wconversion" # Too many to deal with dontwarn="$dontwarn -Wsign-conversion" # GNULIB gettext.h violates dontwarn="$dontwarn -Wvla" # Many GNULIB header violations dontwarn="$dontwarn -Wundef" # Need to allow bad cast for execve() dontwarn="$dontwarn -Wcast-qual" # We need to use long long in many places dontwarn="$dontwarn -Wlong-long" # We allow manual list of all enum cases without default: dontwarn="$dontwarn -Wswitch-default" # We allow optional default: instead of listing all enum values dontwarn="$dontwarn -Wswitch-enum" # Not a problem since we don't use -fstrict-overflow dontwarn="$dontwarn -Wstrict-overflow" # Not a problem since we don't use -funsafe-loop-optimizations dontwarn="$dontwarn -Wunsafe-loop-optimizations" # Things like virAsprintf mean we can't use this dontwarn="$dontwarn -Wformat-nonliteral" # Gnulib's stat-time.h violates this dontwarn="$dontwarn -Waggregate-return" # gcc 4.4.6 complains this is C++ only; gcc 4.7.0 implies this from -Wall dontwarn="$dontwarn -Wenum-compare" # gcc 4.2 treats attribute(format) as an implicit attribute(nonnull), # which triggers spurious warnings for our usage { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler's -Wformat allows NULL strings" >&5 $as_echo_n "checking whether the C compiler's -Wformat allows NULL strings... " >&6; } if ${lv_cv_gcc_wformat_null_works+:} false; then : $as_echo_n "(cached) " >&6 else save_CFLAGS=$CFLAGS CFLAGS='-Wunknown-pragmas -Werror -Wformat' cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include static __attribute__ ((__format__ (__printf__, 1, 2))) int foo (const char *fmt, ...) { return !fmt; } int main () { return foo(NULL); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : lv_cv_gcc_wformat_null_works=yes else lv_cv_gcc_wformat_null_works=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS=$save_CFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lv_cv_gcc_wformat_null_works" >&5 $as_echo "$lv_cv_gcc_wformat_null_works" >&6; } # Gnulib uses '#pragma GCC diagnostic push' to silence some # warnings, but older gcc doesn't support this. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma GCC diagnostic push works" >&5 $as_echo_n "checking whether pragma GCC diagnostic push works... " >&6; } if ${lv_cv_gcc_pragma_push_works+:} false; then : $as_echo_n "(cached) " >&6 else save_CFLAGS=$CFLAGS CFLAGS='-Wunknown-pragmas -Werror' cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #pragma GCC diagnostic push #pragma GCC diagnostic pop int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : lv_cv_gcc_pragma_push_works=yes else lv_cv_gcc_pragma_push_works=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS=$save_CFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lv_cv_gcc_pragma_push_works" >&5 $as_echo "$lv_cv_gcc_pragma_push_works" >&6; } if test $lv_cv_gcc_pragma_push_works = no; then dontwarn="$dontwarn -Wmissing-prototypes" dontwarn="$dontwarn -Wmissing-declarations" dontwarn="$dontwarn -Wcast-align" else cat >>confdefs.h <<_ACEOF #define WORKING_PRAGMA_PUSH 1 _ACEOF fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler's -Wlogical-op gives bogus warnings" >&5 $as_echo_n "checking whether the C compiler's -Wlogical-op gives bogus warnings... " >&6; } if ${lv_cv_gcc_wlogical_op_broken+:} false; then : $as_echo_n "(cached) " >&6 else save_CFLAGS="$CFLAGS" CFLAGS="-O2 -Wlogical-op -Werror" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { const char *haystack; char needle; return strchr(haystack, needle) == haystack; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : lv_cv_gcc_wlogical_op_broken=no else lv_cv_gcc_wlogical_op_broken=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS="$save_CFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lv_cv_gcc_wlogical_op_broken" >&5 $as_echo "$lv_cv_gcc_wlogical_op_broken" >&6; } # We might fundamentally need some of these disabled forever, but # ideally we'd turn many of them on dontwarn="$dontwarn -Wfloat-equal" dontwarn="$dontwarn -Wdeclaration-after-statement" dontwarn="$dontwarn -Wpacked" dontwarn="$dontwarn -Wunused-macros" dontwarn="$dontwarn -Woverlength-strings" dontwarn="$dontwarn -Wstack-protector" # g_clear_object & G_ATOMIC_OP_USE_GCC_BUILTINS causes # violations with this. XXX Fix glib ? dontwarn="$dontwarn -Wbad-function-cast" # Due to gutils.h bug in g_bit_storage wantwarn="$wantwarn -Wno-sign-conversion" wantwarn="$wantwarn -Wno-conversion" # We can't enable this due to horrible spice_usb_device_get_description # signature wantwarn="$wantwarn -Wno-format-nonliteral" # Get all possible GCC warnings if test -n "$GCC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; } if ${gl_cv_cc_nomfi_supported+:} false; then : $as_echo_n "(cached) " >&6 else gl_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : gl_cv_cc_nomfi_supported=yes else gl_cv_cc_nomfi_supported=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS="$gl_save_CFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5 $as_echo "$gl_cv_cc_nomfi_supported" >&6; } if test "$gl_cv_cc_nomfi_supported" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; } if ${gl_cv_cc_nomfi_needed+:} false; then : $as_echo_n "(cached) " >&6 else gl_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -W -Werror" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ void f (void) { typedef struct { int a; int b; } s_t; s_t s1 = { 0, }; } int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : gl_cv_cc_nomfi_needed=no else gl_cv_cc_nomfi_needed=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS="$gl_save_CFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5 $as_echo "$gl_cv_cc_nomfi_needed" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; } if ${gl_cv_cc_uninitialized_supported+:} false; then : $as_echo_n "(cached) " >&6 else gl_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Werror -Wuninitialized" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : gl_cv_cc_uninitialized_supported=yes else gl_cv_cc_uninitialized_supported=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS="$gl_save_CFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; } fi # List all gcc warning categories. # To compare this list to your installed GCC's, run this Bash command: # # comm -3 \ # <(sed -n 's/^ *\(-[^ ]*\) .*/\1/p' manywarnings.m4 | sort) \ # <(gcc --help=warnings | sed -n 's/^ \(-[^ ]*\) .*/\1/p' | sort | # grep -v -x -f <( # awk '/^[^#]/ {print maybewarn}' ../build-aux/gcc-warning.spec)) gl_manywarn_set= for gl_manywarn_item in \ -W \ -Wabi \ -Waddress \ -Waggressive-loop-optimizations \ -Wall \ -Warray-bounds \ -Wattributes \ -Wbad-function-cast \ -Wbuiltin-macro-redefined \ -Wcast-align \ -Wchar-subscripts \ -Wclobbered \ -Wcomment \ -Wcomments \ -Wcoverage-mismatch \ -Wcpp \ -Wdate-time \ -Wdeprecated \ -Wdeprecated-declarations \ -Wdisabled-optimization \ -Wdiv-by-zero \ -Wdouble-promotion \ -Wempty-body \ -Wendif-labels \ -Wenum-compare \ -Wextra \ -Wformat-contains-nul \ -Wformat-extra-args \ -Wformat-nonliteral \ -Wformat-security \ -Wformat-y2k \ -Wformat-zero-length \ -Wfree-nonheap-object \ -Wignored-qualifiers \ -Wimplicit \ -Wimplicit-function-declaration \ -Wimplicit-int \ -Winit-self \ -Winline \ -Wint-to-pointer-cast \ -Winvalid-memory-model \ -Winvalid-pch \ -Wjump-misses-init \ -Wlogical-op \ -Wmain \ -Wmaybe-uninitialized \ -Wmissing-braces \ -Wmissing-declarations \ -Wmissing-field-initializers \ -Wmissing-include-dirs \ -Wmissing-parameter-type \ -Wmissing-prototypes \ -Wmultichar \ -Wnarrowing \ -Wnested-externs \ -Wnonnull \ -Wold-style-declaration \ -Wold-style-definition \ -Wopenmp-simd \ -Woverflow \ -Woverlength-strings \ -Woverride-init \ -Wpacked \ -Wpacked-bitfield-compat \ -Wparentheses \ -Wpointer-arith \ -Wpointer-sign \ -Wpointer-to-int-cast \ -Wpragmas \ -Wreturn-local-addr \ -Wreturn-type \ -Wsequence-point \ -Wshadow \ -Wsizeof-pointer-memaccess \ -Wstack-protector \ -Wstrict-aliasing \ -Wstrict-overflow \ -Wstrict-prototypes \ -Wsuggest-attribute=const \ -Wsuggest-attribute=format \ -Wsuggest-attribute=noreturn \ -Wsuggest-attribute=pure \ -Wswitch \ -Wswitch-default \ -Wsync-nand \ -Wsystem-headers \ -Wtrampolines \ -Wtrigraphs \ -Wtype-limits \ -Wuninitialized \ -Wunknown-pragmas \ -Wunsafe-loop-optimizations \ -Wunused \ -Wunused-but-set-parameter \ -Wunused-but-set-variable \ -Wunused-function \ -Wunused-label \ -Wunused-local-typedefs \ -Wunused-macros \ -Wunused-parameter \ -Wunused-result \ -Wunused-value \ -Wunused-variable \ -Wvarargs \ -Wvariadic-macros \ -Wvector-operation-performance \ -Wvla \ -Wvolatile-register-var \ -Wwrite-strings \ \ ; do gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item" done # gcc --help=warnings outputs an unusual form for this option; list # it here so that the above 'comm' command doesn't report a false match. gl_manywarn_set="$gl_manywarn_set -Wnormalized=nfc" # These are needed for older GCC versions. if test -n "$GCC"; then case `($CC --version) 2>/dev/null` in 'gcc (GCC) '[0-3].* | \ 'gcc (GCC) '4.[0-7].*) gl_manywarn_set="$gl_manywarn_set -fdiagnostics-show-option" gl_manywarn_set="$gl_manywarn_set -funit-at-a-time" ;; esac fi # Disable specific options as needed. if test "$gl_cv_cc_nomfi_needed" = yes; then gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers" fi if test "$gl_cv_cc_uninitialized_supported" = no; then gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized" fi maybewarn=$gl_manywarn_set # Remove the ones we don't want, blacklisted earlier gl_warn_set= set x $maybewarn; shift for gl_warn_item do case " $dontwarn " in *" $gl_warn_item "*) ;; *) gl_warn_set="$gl_warn_set $gl_warn_item" ;; esac done wantwarn=$gl_warn_set # GNULIB uses '-W' (aka -Wextra) which includes a bunch of stuff. # Unfortunately, this means you can't simply use '-Wsign-compare' # with gl_MANYWARN_COMPLEMENT # So we have -W enabled, and then have to explicitly turn off... wantwarn="$wantwarn -Wno-sign-compare" # GNULIB expects this to be part of -Wc++-compat, but we turn # that one off, so we need to manually enable this again wantwarn="$wantwarn -Wjump-misses-init" # GNULIB turns on -Wformat=2 which implies -Wformat-nonliteral, # so we need to manually re-exclude it. Also, older gcc 4.2 # added an implied ATTRIBUTE_NONNULL on any parameter marked # ATTRIBUTE_FMT_PRINT, which causes -Wformat failure on our # intentional use of virReportError(code, NULL). wantwarn="$wantwarn -Wno-format-nonliteral" if test $lv_cv_gcc_wformat_null_works = no; then wantwarn="$wantwarn -Wno-format" fi # This should be < 256 really. Currently we're down to 4096, # but using 1024 bytes sized buffers (mostly for virStrerror) # stops us from going down further wantwarn="$wantwarn -Wframe-larger-than=4096" # Extra special flags case $host in aarch64-*-*) ;; *-*-linux*) wantwarn="$wantwarn -fstack-protector-strong" ;; *-*-freebsd*) wantwarn="$wantwarn -fstack-protector" wantwarn="$wantwarn -Wno-unused-command-line-argument" ;; esac wantwarn="$wantwarn -fexceptions" wantwarn="$wantwarn -fasynchronous-unwind-tables" # Need -fipa-pure-const in order to make -Wsuggest-attribute=pure # fire even without -O. wantwarn="$wantwarn -fipa-pure-const" # We should eventually enable this, but right now there are at # least 75 functions triggering warnings. wantwarn="$wantwarn -Wno-suggest-attribute=pure" wantwarn="$wantwarn -Wno-suggest-attribute=const" if test "$set_werror" = "yes" then wantwarn="$wantwarn -Werror" fi # Check for $CC support of each warning for w in $wantwarn; do as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh` gl_positive="$w" case $gl_positive in -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5 $as_echo_n "checking whether C compiler handles $w... " >&6; } if eval \${$as_gl_Warn+:} false; then : $as_echo_n "(cached) " >&6 else gl_save_compiler_FLAGS="$CFLAGS" as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$as_gl_Warn=yes" else eval "$as_gl_Warn=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$gl_save_compiler_FLAGS" fi eval ac_res=\$$as_gl_Warn { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then : as_fn_append WARN_CFLAGS " $w" fi done case $host in *-*-linux*) case $WARN_CFLAGS in *-fstack-protector-strong*) ;; *) as_gl_Warn=`$as_echo "gl_cv_warn_c_"-fstack-protector-all"" | $as_tr_sh` gl_positive=""-fstack-protector-all"" case $gl_positive in -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles \"-fstack-protector-all\"" >&5 $as_echo_n "checking whether C compiler handles \"-fstack-protector-all\"... " >&6; } if eval \${$as_gl_Warn+:} false; then : $as_echo_n "(cached) " >&6 else gl_save_compiler_FLAGS="$CFLAGS" as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$as_gl_Warn=yes" else eval "$as_gl_Warn=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$gl_save_compiler_FLAGS" fi eval ac_res=\$$as_gl_Warn { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then : as_fn_append WARN_CFLAGS " "-fstack-protector-all"" fi ;; esac ;; esac # Silence certain warnings in gnulib, and use improved glibc headers $as_echo "#define lint 1" >>confdefs.h if test "$gl_cv_warn_c__Wlogical_op" = yes && test "$lv_cv_gcc_wlogical_op_broken" = yes; then cat >>confdefs.h <<_ACEOF #define BROKEN_GCC_WLOGICALOP 1 _ACEOF fi if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 $as_echo "$ac_pt_PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } PKG_CONFIG="" fi fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBVIRT" >&5 $as_echo_n "checking for LIBVIRT... " >&6; } if test -n "$LIBVIRT_CFLAGS"; then pkg_cv_LIBVIRT_CFLAGS="$LIBVIRT_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= \$LIBVIRT_REQUIRED\""; } >&5 ($PKG_CONFIG --exists --print-errors "libvirt >= $LIBVIRT_REQUIRED") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBVIRT_CFLAGS=`$PKG_CONFIG --cflags "libvirt >= $LIBVIRT_REQUIRED" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$LIBVIRT_LIBS"; then pkg_cv_LIBVIRT_LIBS="$LIBVIRT_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= \$LIBVIRT_REQUIRED\""; } >&5 ($PKG_CONFIG --exists --print-errors "libvirt >= $LIBVIRT_REQUIRED") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBVIRT_LIBS=`$PKG_CONFIG --libs "libvirt >= $LIBVIRT_REQUIRED" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then LIBVIRT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libvirt >= $LIBVIRT_REQUIRED" 2>&1` else LIBVIRT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libvirt >= $LIBVIRT_REQUIRED" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$LIBVIRT_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (libvirt >= $LIBVIRT_REQUIRED) were not met: $LIBVIRT_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables LIBVIRT_CFLAGS and LIBVIRT_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables LIBVIRT_CFLAGS and LIBVIRT_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else LIBVIRT_CFLAGS=$pkg_cv_LIBVIRT_CFLAGS LIBVIRT_LIBS=$pkg_cv_LIBVIRT_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi # virDomainOpenGraphicsFD was introduced in libvirt 1.2.8 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for virDomainOpenGraphicsFD" >&5 $as_echo_n "checking for virDomainOpenGraphicsFD... " >&6; } if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= 1.2.8\""; } >&5 ($PKG_CONFIG --exists --print-errors "libvirt >= 1.2.8") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then $as_echo "#define HAVE_VIR_DOMAIN_OPEN_GRAPHICS_FD 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # virNetworkGetDHCPLeases was introduced in libvirt 1.2.6 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for virNetworkGetDHCPLeases" >&5 $as_echo_n "checking for virNetworkGetDHCPLeases... " >&6; } if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= 1.2.6\""; } >&5 ($PKG_CONFIG --exists --print-errors "libvirt >= 1.2.6") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then $as_echo "#define HAVE_VIR_NETWORK_GET_DHCP_LEASES 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi enable_tests=no pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB2" >&5 $as_echo_n "checking for GLIB2... " >&6; } if test -n "$GLIB2_CFLAGS"; then pkg_cv_GLIB2_CFLAGS="$GLIB2_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB2_TEST_REQUIRED\""; } >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB2_TEST_REQUIRED") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GLIB2_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB2_TEST_REQUIRED" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$GLIB2_LIBS"; then pkg_cv_GLIB2_LIBS="$GLIB2_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB2_TEST_REQUIRED\""; } >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB2_TEST_REQUIRED") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GLIB2_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB2_TEST_REQUIRED" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then GLIB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= $GLIB2_TEST_REQUIRED" 2>&1` else GLIB2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= $GLIB2_TEST_REQUIRED" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$GLIB2_PKG_ERRORS" >&5 pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB2" >&5 $as_echo_n "checking for GLIB2... " >&6; } if test -n "$GLIB2_CFLAGS"; then pkg_cv_GLIB2_CFLAGS="$GLIB2_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB2_REQUIRED\""; } >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB2_REQUIRED") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GLIB2_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB2_REQUIRED" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$GLIB2_LIBS"; then pkg_cv_GLIB2_LIBS="$GLIB2_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB2_REQUIRED\""; } >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB2_REQUIRED") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GLIB2_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB2_REQUIRED" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then GLIB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= $GLIB2_REQUIRED" 2>&1` else GLIB2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= $GLIB2_REQUIRED" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$GLIB2_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (glib-2.0 >= $GLIB2_REQUIRED) were not met: $GLIB2_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables GLIB2_CFLAGS and GLIB2_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables GLIB2_CFLAGS and GLIB2_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else GLIB2_CFLAGS=$pkg_cv_GLIB2_CFLAGS GLIB2_LIBS=$pkg_cv_GLIB2_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB2" >&5 $as_echo_n "checking for GLIB2... " >&6; } if test -n "$GLIB2_CFLAGS"; then pkg_cv_GLIB2_CFLAGS="$GLIB2_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB2_REQUIRED\""; } >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB2_REQUIRED") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GLIB2_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB2_REQUIRED" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$GLIB2_LIBS"; then pkg_cv_GLIB2_LIBS="$GLIB2_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB2_REQUIRED\""; } >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB2_REQUIRED") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GLIB2_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB2_REQUIRED" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then GLIB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= $GLIB2_REQUIRED" 2>&1` else GLIB2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= $GLIB2_REQUIRED" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$GLIB2_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (glib-2.0 >= $GLIB2_REQUIRED) were not met: $GLIB2_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables GLIB2_CFLAGS and GLIB2_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables GLIB2_CFLAGS and GLIB2_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else GLIB2_CFLAGS=$pkg_cv_GLIB2_CFLAGS GLIB2_LIBS=$pkg_cv_GLIB2_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi else GLIB2_CFLAGS=$pkg_cv_GLIB2_CFLAGS GLIB2_LIBS=$pkg_cv_GLIB2_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } enable_tests=yes fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTHREAD2" >&5 $as_echo_n "checking for GTHREAD2... " >&6; } if test -n "$GTHREAD2_CFLAGS"; then pkg_cv_GTHREAD2_CFLAGS="$GTHREAD2_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= \$GLIB2_REQUIRED\""; } >&5 ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= $GLIB2_REQUIRED") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GTHREAD2_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0 >= $GLIB2_REQUIRED" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$GTHREAD2_LIBS"; then pkg_cv_GTHREAD2_LIBS="$GTHREAD2_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= \$GLIB2_REQUIRED\""; } >&5 ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= $GLIB2_REQUIRED") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GTHREAD2_LIBS=`$PKG_CONFIG --libs "gthread-2.0 >= $GLIB2_REQUIRED" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then GTHREAD2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gthread-2.0 >= $GLIB2_REQUIRED" 2>&1` else GTHREAD2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gthread-2.0 >= $GLIB2_REQUIRED" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$GTHREAD2_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (gthread-2.0 >= $GLIB2_REQUIRED) were not met: $GTHREAD2_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables GTHREAD2_CFLAGS and GTHREAD2_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables GTHREAD2_CFLAGS and GTHREAD2_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else GTHREAD2_CFLAGS=$pkg_cv_GTHREAD2_CFLAGS GTHREAD2_LIBS=$pkg_cv_GTHREAD2_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT2" >&5 $as_echo_n "checking for GOBJECT2... " >&6; } if test -n "$GOBJECT2_CFLAGS"; then pkg_cv_GOBJECT2_CFLAGS="$GOBJECT2_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 >= \$GLIB2_REQUIRED\""; } >&5 ($PKG_CONFIG --exists --print-errors "gobject-2.0 >= $GLIB2_REQUIRED") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GOBJECT2_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 >= $GLIB2_REQUIRED" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$GOBJECT2_LIBS"; then pkg_cv_GOBJECT2_LIBS="$GOBJECT2_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 >= \$GLIB2_REQUIRED\""; } >&5 ($PKG_CONFIG --exists --print-errors "gobject-2.0 >= $GLIB2_REQUIRED") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GOBJECT2_LIBS=`$PKG_CONFIG --libs "gobject-2.0 >= $GLIB2_REQUIRED" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then GOBJECT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0 >= $GLIB2_REQUIRED" 2>&1` else GOBJECT2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0 >= $GLIB2_REQUIRED" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$GOBJECT2_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (gobject-2.0 >= $GLIB2_REQUIRED) were not met: $GOBJECT2_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables GOBJECT2_CFLAGS and GOBJECT2_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables GOBJECT2_CFLAGS and GOBJECT2_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else GOBJECT2_CFLAGS=$pkg_cv_GOBJECT2_CFLAGS GOBJECT2_LIBS=$pkg_cv_GOBJECT2_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO2" >&5 $as_echo_n "checking for GIO2... " >&6; } if test -n "$GIO2_CFLAGS"; then pkg_cv_GIO2_CFLAGS="$GIO2_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= \$GLIB2_REQUIRED\""; } >&5 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= $GLIB2_REQUIRED") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GIO2_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= $GLIB2_REQUIRED" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$GIO2_LIBS"; then pkg_cv_GIO2_LIBS="$GIO2_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= \$GLIB2_REQUIRED\""; } >&5 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= $GLIB2_REQUIRED") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GIO2_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= $GLIB2_REQUIRED" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then GIO2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= $GLIB2_REQUIRED" 2>&1` else GIO2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= $GLIB2_REQUIRED" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$GIO2_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (gio-2.0 >= $GLIB2_REQUIRED) were not met: $GIO2_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables GIO2_CFLAGS and GIO2_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables GIO2_CFLAGS and GIO2_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else GIO2_CFLAGS=$pkg_cv_GIO2_CFLAGS GIO2_LIBS=$pkg_cv_GIO2_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5 $as_echo_n "checking for LIBXML2... " >&6; } if test -n "$LIBXML2_CFLAGS"; then pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= \$LIBXML2_REQUIRED\""; } >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= $LIBXML2_REQUIRED") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= $LIBXML2_REQUIRED" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$LIBXML2_LIBS"; then pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= \$LIBXML2_REQUIRED\""; } >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= $LIBXML2_REQUIRED") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= $LIBXML2_REQUIRED" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= $LIBXML2_REQUIRED" 2>&1` else LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= $LIBXML2_REQUIRED" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$LIBXML2_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (libxml-2.0 >= $LIBXML2_REQUIRED) were not met: $LIBXML2_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables LIBXML2_CFLAGS and LIBXML2_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables LIBXML2_CFLAGS and LIBXML2_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi if test "$enable_tests" = "yes"; then ENABLE_TESTS_TRUE= ENABLE_TESTS_FALSE='#' else ENABLE_TESTS_TRUE='#' ENABLE_TESTS_FALSE= fi GETTEXT_PACKAGE=libvirt-glib cat >>confdefs.h <<_ACEOF #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 $as_echo_n "checking whether NLS is requested... " >&6; } # Check whether --enable-nls was given. if test "${enable_nls+set}" = set; then : enableval=$enable_nls; USE_NLS=$enableval else USE_NLS=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 $as_echo "$USE_NLS" >&6; } case "$am__api_version" in 1.01234) as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5 ;; *) ;; esac INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` if test -n "0.35.0"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.35.0" >&5 $as_echo_n "checking for intltool >= 0.35.0... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; } test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || as_fn_error $? "Your intltool is too old. You need intltool 0.35.0 or later." "$LINENO" 5 fi # Extract the first word of "intltool-update", so it can be a program name with args. set dummy intltool-update; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then : $as_echo_n "(cached) " >&6 else case $INTLTOOL_UPDATE in [\\/]* | ?:[\\/]*) ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE if test -n "$INTLTOOL_UPDATE"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5 $as_echo "$INTLTOOL_UPDATE" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "intltool-merge", so it can be a program name with args. set dummy intltool-merge; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_INTLTOOL_MERGE+:} false; then : $as_echo_n "(cached) " >&6 else case $INTLTOOL_MERGE in [\\/]* | ?:[\\/]*) ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE if test -n "$INTLTOOL_MERGE"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5 $as_echo "$INTLTOOL_MERGE" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "intltool-extract", so it can be a program name with args. set dummy intltool-extract; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then : $as_echo_n "(cached) " >&6 else case $INTLTOOL_EXTRACT in [\\/]* | ?:[\\/]*) ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT if test -n "$INTLTOOL_EXTRACT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5 $as_echo "$INTLTOOL_EXTRACT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5 fi if test -z "$AM_DEFAULT_VERBOSITY"; then AM_DEFAULT_VERBOSITY=1 fi INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))' INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))' INTLTOOL__v_MERGE_0='@echo " ITMRG " $@;' INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))' intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))' intltool__v_merge_options_0='-q' INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@' INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@' else INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir' fi INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' # Check the gettext tools to make sure they are GNU # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_XGETTEXT+:} false; then : $as_echo_n "(cached) " >&6 else case $XGETTEXT in [\\/]* | ?:[\\/]*) ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi XGETTEXT=$ac_cv_path_XGETTEXT if test -n "$XGETTEXT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 $as_echo "$XGETTEXT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "msgmerge", so it can be a program name with args. set dummy msgmerge; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_MSGMERGE+:} false; then : $as_echo_n "(cached) " >&6 else case $MSGMERGE in [\\/]* | ?:[\\/]*) ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi MSGMERGE=$ac_cv_path_MSGMERGE if test -n "$MSGMERGE"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 $as_echo "$MSGMERGE" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_MSGFMT+:} false; then : $as_echo_n "(cached) " >&6 else case $MSGFMT in [\\/]* | ?:[\\/]*) ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi MSGFMT=$ac_cv_path_MSGFMT if test -n "$MSGFMT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 $as_echo "$MSGFMT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_GMSGFMT+:} false; then : $as_echo_n "(cached) " >&6 else case $GMSGFMT in [\\/]* | ?:[\\/]*) ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" ;; esac fi GMSGFMT=$ac_cv_path_GMSGFMT if test -n "$GMSGFMT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 $as_echo "$GMSGFMT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5 fi xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5 fi # Extract the first word of "perl", so it can be a program name with args. set dummy perl; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_INTLTOOL_PERL+:} false; then : $as_echo_n "(cached) " >&6 else case $INTLTOOL_PERL in [\\/]* | ?:[\\/]*) ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL if test -n "$INTLTOOL_PERL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5 $as_echo "$INTLTOOL_PERL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$INTLTOOL_PERL"; then as_fn_error $? "perl not found" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5 $as_echo_n "checking for perl >= 5.8.1... " >&6; } $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 if test $? -ne 0; then as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5 else IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"` { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5 $as_echo "$IT_PERL_VERSION" >&6; } fi if test "x" != "xno-xml"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5 $as_echo_n "checking for XML::Parser... " >&6; } if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 $as_echo "ok" >&6; } else as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5 fi fi # Substitute ALL_LINGUAS so we can use it in po/Makefile gtk_doc_requires="gtk-doc >= 1.10" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5 $as_echo_n "checking for gtk-doc... " >&6; } if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5 ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then have_gtk_doc=yes else have_gtk_doc=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5 $as_echo "$have_gtk_doc" >&6; } if test "$have_gtk_doc" = "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will not be able to create source packages with 'make dist' because $gtk_doc_requires is not found." >&5 $as_echo "$as_me: WARNING: You will not be able to create source packages with 'make dist' because $gtk_doc_requires is not found." >&2;} fi # Extract the first word of "gtkdoc-check", so it can be a program name with args. set dummy gtkdoc-check; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_GTKDOC_CHECK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$GTKDOC_CHECK"; then ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK if test -n "$GTKDOC_CHECK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5 $as_echo "$GTKDOC_CHECK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "gtkdoc-check", so it can be a program name with args. set dummy gtkdoc-check; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then : $as_echo_n "(cached) " >&6 else case $GTKDOC_CHECK_PATH in [\\/]* | ?:[\\/]*) ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH if test -n "$GTKDOC_CHECK_PATH"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5 $as_echo "$GTKDOC_CHECK_PATH" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi for ac_prog in gtkdoc-rebase do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_GTKDOC_REBASE+:} false; then : $as_echo_n "(cached) " >&6 else case $GTKDOC_REBASE in [\\/]* | ?:[\\/]*) ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE if test -n "$GTKDOC_REBASE"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5 $as_echo "$GTKDOC_REBASE" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$GTKDOC_REBASE" && break done test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true" # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args. set dummy gtkdoc-mkpdf; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_GTKDOC_MKPDF+:} false; then : $as_echo_n "(cached) " >&6 else case $GTKDOC_MKPDF in [\\/]* | ?:[\\/]*) ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF if test -n "$GTKDOC_MKPDF"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5 $as_echo "$GTKDOC_MKPDF" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Check whether --with-html-dir was given. if test "${with_html_dir+set}" = set; then : withval=$with_html_dir; else with_html_dir='${datadir}/gtk-doc/html' fi HTML_DIR="$with_html_dir" # Check whether --enable-gtk-doc was given. if test "${enable_gtk_doc+set}" = set; then : enableval=$enable_gtk_doc; else enable_gtk_doc=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5 $as_echo "$enable_gtk_doc" >&6; } if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then as_fn_error $? " You must have $gtk_doc_requires installed to build documentation for $PACKAGE_NAME. Please install gtk-doc or disable building the documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5 fi if test "x$PACKAGE_NAME" != "xglib"; then pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5 $as_echo_n "checking for GTKDOC_DEPS... " >&6; } if test -n "$GTKDOC_DEPS_CFLAGS"; then pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$GTKDOC_DEPS_LIBS"; then pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1` else GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$GTKDOC_DEPS_PKG_ERRORS" >&5 : elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } : else GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi fi # Check whether --enable-gtk-doc-html was given. if test "${enable_gtk_doc_html+set}" = set; then : enableval=$enable_gtk_doc_html; else enable_gtk_doc_html=yes fi # Check whether --enable-gtk-doc-pdf was given. if test "${enable_gtk_doc_pdf+set}" = set; then : enableval=$enable_gtk_doc_pdf; else enable_gtk_doc_pdf=no fi if test -z "$GTKDOC_MKPDF"; then enable_gtk_doc_pdf=no fi if test -z "$AM_DEFAULT_VERBOSITY"; then AM_DEFAULT_VERBOSITY=1 fi if test x$have_gtk_doc = xyes; then HAVE_GTK_DOC_TRUE= HAVE_GTK_DOC_FALSE='#' else HAVE_GTK_DOC_TRUE='#' HAVE_GTK_DOC_FALSE= fi if test x$enable_gtk_doc = xyes; then ENABLE_GTK_DOC_TRUE= ENABLE_GTK_DOC_FALSE='#' else ENABLE_GTK_DOC_TRUE='#' ENABLE_GTK_DOC_FALSE= fi if test x$enable_gtk_doc_html = xyes; then GTK_DOC_BUILD_HTML_TRUE= GTK_DOC_BUILD_HTML_FALSE='#' else GTK_DOC_BUILD_HTML_TRUE='#' GTK_DOC_BUILD_HTML_FALSE= fi if test x$enable_gtk_doc_pdf = xyes; then GTK_DOC_BUILD_PDF_TRUE= GTK_DOC_BUILD_PDF_FALSE='#' else GTK_DOC_BUILD_PDF_TRUE='#' GTK_DOC_BUILD_PDF_FALSE= fi if test -n "$LIBTOOL"; then GTK_DOC_USE_LIBTOOL_TRUE= GTK_DOC_USE_LIBTOOL_FALSE='#' else GTK_DOC_USE_LIBTOOL_TRUE='#' GTK_DOC_USE_LIBTOOL_FALSE= fi if test -n "$GTKDOC_REBASE"; then GTK_DOC_USE_REBASE_TRUE= GTK_DOC_USE_REBASE_FALSE='#' else GTK_DOC_USE_REBASE_TRUE='#' GTK_DOC_USE_REBASE_FALSE= fi # Setup GLIB_MKENUMS to use glib-mkenums even if GLib is uninstalled. GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` # Check whether --enable-installed-tests was given. if test "${enable_installed_tests+set}" = set; then : enableval=$enable_installed_tests; case ${enableval} in yes) ENABLE_INSTALLED_TESTS="1" ;; no) ENABLE_INSTALLED_TESTS="" ;; *) as_fn_error $? "bad value ${enableval} for --enable-installed-tests" "$LINENO" 5 ;; esac fi if test "$ENABLE_INSTALLED_TESTS" = "1"; then ENABLE_INSTALLED_TESTS_TRUE= ENABLE_INSTALLED_TESTS_FALSE='#' else ENABLE_INSTALLED_TESTS_TRUE='#' ENABLE_INSTALLED_TESTS_FALSE= fi # Check whether --enable-always-build-tests was given. if test "${enable_always_build_tests+set}" = set; then : enableval=$enable_always_build_tests; case ${enableval} in yes) ENABLE_ALWAYS_BUILD_TESTS="1" ;; no) ENABLE_ALWAYS_BUILD_TESTS="" ;; *) as_fn_error $? "bad value ${enableval} for --enable-always-build-tests" "$LINENO" 5 ;; esac fi if test "$ENABLE_ALWAYS_BUILD_TESTS" = "1"; then ENABLE_ALWAYS_BUILD_TESTS_TRUE= ENABLE_ALWAYS_BUILD_TESTS_FALSE='#' else ENABLE_ALWAYS_BUILD_TESTS_TRUE='#' ENABLE_ALWAYS_BUILD_TESTS_FALSE= fi if test "$ENABLE_INSTALLED_TESTS" = "1"; then installed_test_metadir=${datadir}/installed-tests/libvirt-glib installed_testdir=${libexecdir}/installed-tests/libvirt-glib fi CYGWIN_EXTRA_LDFLAGS= CYGWIN_EXTRA_LIBADD= MINGW_EXTRA_LDFLAGS= case "$host" in *-*-cygwin*) CYGWIN_EXTRA_LDFLAGS="-no-undefined" CYGWIN_EXTRA_LIBADD="${INTLLIBS}" ;; *-*-mingw*) MINGW_EXTRA_LDFLAGS="-no-undefined" ;; esac # Check whether --enable-test-coverage was given. if test "${enable_test_coverage+set}" = set; then : enableval=$enable_test_coverage; case "${enableval}" in yes|no) ;; *) as_fn_error $? "bad value ${enableval} for test-coverage option" "$LINENO" 5 ;; esac else enableval=no fi enable_coverage=$enableval if test "${enable_coverage}" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fprofile-arcs" >&5 $as_echo_n "checking whether C compiler handles -fprofile-arcs... " >&6; } if ${gl_cv_warn_c__fprofile_arcs+:} false; then : $as_echo_n "(cached) " >&6 else gl_save_compiler_FLAGS="$CFLAGS" as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fprofile-arcs" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gl_cv_warn_c__fprofile_arcs=yes else gl_cv_warn_c__fprofile_arcs=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$gl_save_compiler_FLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fprofile_arcs" >&5 $as_echo "$gl_cv_warn_c__fprofile_arcs" >&6; } if test "x$gl_cv_warn_c__fprofile_arcs" = xyes; then : as_fn_append COV_FLAGS " -fprofile-arcs" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -ftest-coverage" >&5 $as_echo_n "checking whether C compiler handles -ftest-coverage... " >&6; } if ${gl_cv_warn_c__ftest_coverage+:} false; then : $as_echo_n "(cached) " >&6 else gl_save_compiler_FLAGS="$CFLAGS" as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -ftest-coverage" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gl_cv_warn_c__ftest_coverage=yes else gl_cv_warn_c__ftest_coverage=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$gl_save_compiler_FLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__ftest_coverage" >&5 $as_echo "$gl_cv_warn_c__ftest_coverage" >&6; } if test "x$gl_cv_warn_c__ftest_coverage" = xyes; then : as_fn_append COV_FLAGS " -ftest-coverage" fi COVERAGE_CFLAGS=$COV_FLAGS COVERAGE_LDFLAGS=$COV_FLAGS COV_FLAGS= fi # Check whether --enable-introspection was given. if test "${enable_introspection+set}" = set; then : enableval=$enable_introspection; else enable_introspection=auto fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5 $as_echo_n "checking for gobject-introspection... " >&6; } case $enable_introspection in #( no) : found_introspection="no (disabled, use --enable-introspection to enable)" ;; #( yes) : if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : else as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5 fi if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= \$GOBJECT_INTROSPECTION_REQUIRED\""; } >&5 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then found_introspection=yes else as_fn_error $? "You need to have gobject-introspection >= $GOBJECT_INTROSPECTION_REQUIRED installed to build libvirt-glib" "$LINENO" 5 fi ;; #( auto) : if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= \$GOBJECT_INTROSPECTION_REQUIRED\""; } >&5 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then found_introspection=yes else found_introspection=no fi enable_introspection=$found_introspection ;; #( *) : as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5 $as_echo "$found_introspection" >&6; } INTROSPECTION_SCANNER= INTROSPECTION_COMPILER= INTROSPECTION_GENERATE= INTROSPECTION_GIRDIR= INTROSPECTION_TYPELIBDIR= if test "x$found_introspection" = "xyes"; then INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0` INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0` INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0` INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0` INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)" INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0` INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0` INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection fi if test "x$found_introspection" = "xyes"; then HAVE_INTROSPECTION_TRUE= HAVE_INTROSPECTION_FALSE='#' else HAVE_INTROSPECTION_TRUE='#' HAVE_INTROSPECTION_FALSE= fi with_linux=no case $host in *-*-linux*) with_linux=yes ;; esac if test "$with_linux" = "yes"; then WITH_LINUX_TRUE= WITH_LINUX_FALSE='#' else WITH_LINUX_TRUE='#' WITH_LINUX_FALSE= fi # Check whether --enable-vala was given. if test "${enable_vala+set}" = set; then : enableval=$enable_vala; else enable_vala=check fi if test "x$enable_introspection" = "xyes" ; then if test "x$enable_vala" != "xno" ; then # Extract the first word of "vapigen", so it can be a program name with args. set dummy vapigen; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_VAPIGEN+:} false; then : $as_echo_n "(cached) " >&6 else case $VAPIGEN in [\\/]* | ?:[\\/]*) ac_cv_path_VAPIGEN="$VAPIGEN" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_VAPIGEN="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_VAPIGEN" && ac_cv_path_VAPIGEN="no" ;; esac fi VAPIGEN=$ac_cv_path_VAPIGEN if test -n "$VAPIGEN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VAPIGEN" >&5 $as_echo "$VAPIGEN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$VAPIGEN" == "xno"; then if test "x$enable_vala" == "xcheck" ; then enable_vala=no else as_fn_error $? "Cannot find the \"vapigen\" binary in your PATH" "$LINENO" 5 fi fi fi if test "x$enable_vala" != "xno" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking $VAPIGEN support for --metadatadir" >&5 $as_echo_n "checking $VAPIGEN support for --metadatadir... " >&6; } $VAPIGEN --help | grep metadatadir 1>/dev/null 2>&1 if test $? != 0 ; then if test "x$enable_vala" == "xcheck" ; then enable_vala=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } else as_fn_error $? "\"vapigen\" binary in your PATH is too old (< 0.13)" "$LINENO" 5 fi else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test "x$enable_vala" = "xcheck" ; then enable_vala=yes fi fi if test "x$enable_vala" = "xyes"; then WITH_VALA_TRUE= WITH_VALA_FALSE='#' else WITH_VALA_TRUE='#' WITH_VALA_FALSE= fi ac_config_files="$ac_config_files Makefile libvirt-glib/Makefile libvirt-gconfig/Makefile libvirt-gconfig/tests/Makefile libvirt-gobject/Makefile examples/Makefile vapi/Makefile docs/Makefile docs/libvirt-glib/Makefile docs/libvirt-glib/version.xml docs/libvirt-gobject/Makefile docs/libvirt-gconfig/Makefile po/Makefile.in tests/Makefile libvirt-glib-1.0.pc libvirt-gconfig-1.0.pc libvirt-gobject-1.0.pc libvirt-glib.spec mingw-libvirt-glib.spec" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 $as_echo_n "checking that generated files are newer than configure... " >&6; } if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 $as_echo "done" >&6; } if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi ac_config_commands="$ac_config_commands po/stamp-it" if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_INSTALLED_TESTS_TRUE}" && test -z "${ENABLE_INSTALLED_TESTS_FALSE}"; then as_fn_error $? "conditional \"ENABLE_INSTALLED_TESTS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_ALWAYS_BUILD_TESTS_TRUE}" && test -z "${ENABLE_ALWAYS_BUILD_TESTS_FALSE}"; then as_fn_error $? "conditional \"ENABLE_ALWAYS_BUILD_TESTS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${WITH_LINUX_TRUE}" && test -z "${WITH_LINUX_FALSE}"; then as_fn_error $? "conditional \"WITH_LINUX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${WITH_VALA_TRUE}" && test -z "${WITH_VALA_FALSE}"; then as_fn_error $? "conditional \"WITH_VALA\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by libvirt-glib $as_me 1.0.0, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_links="$ac_config_links" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration links: $config_links Configuration commands: $config_commands Report bugs to the package provider." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ libvirt-glib config.status 1.0.0 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } # Quote evaled strings. for var in AS \ DLLTOOL \ OBJDUMP \ SHELL \ ECHO \ PATH_SEPARATOR \ SED \ GREP \ EGREP \ FGREP \ LD \ NM \ LN_S \ lt_SP2NL \ lt_NL2SP \ reload_flag \ deplibs_check_method \ file_magic_cmd \ file_magic_glob \ want_nocaseglob \ sharedlib_from_linklib_cmd \ AR \ AR_FLAGS \ archiver_list_spec \ STRIP \ RANLIB \ CC \ CFLAGS \ compiler \ lt_cv_sys_global_symbol_pipe \ lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_import \ lt_cv_sys_global_symbol_to_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ lt_cv_nm_interface \ nm_file_list_spec \ lt_cv_truncate_bin \ lt_prog_compiler_no_builtin_flag \ lt_prog_compiler_pic \ lt_prog_compiler_wl \ lt_prog_compiler_static \ lt_cv_prog_compiler_c_o \ need_locks \ MANIFEST_TOOL \ DSYMUTIL \ NMEDIT \ LIPO \ OTOOL \ OTOOL64 \ shrext_cmds \ export_dynamic_flag_spec \ whole_archive_flag_spec \ compiler_needs_object \ with_gnu_ld \ allow_undefined_flag \ no_undefined_flag \ hardcode_libdir_flag_spec \ hardcode_libdir_separator \ exclude_expsyms \ include_expsyms \ file_list_spec \ variables_saved_for_relink \ libname_spec \ library_names_spec \ soname_spec \ install_override_mode \ finish_eval \ old_striplib \ striplib; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in reload_cmds \ old_postinstall_cmds \ old_postuninstall_cmds \ old_archive_cmds \ extract_expsyms_cmds \ old_archive_from_new_cmds \ old_archive_from_expsyms_cmds \ archive_cmds \ archive_expsym_cmds \ module_cmds \ module_expsym_cmds \ export_symbols_cmds \ prelink_cmds \ postlink_cmds \ postinstall_cmds \ postuninstall_cmds \ finish_cmds \ sys_lib_search_path_spec \ configure_time_dlsearch_path \ configure_time_lt_sys_library_path; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done ac_aux_dir='$ac_aux_dir' # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi PACKAGE='$PACKAGE' VERSION='$VERSION' RM='$RM' ofile='$ofile' GNUmakefile=$GNUmakefile _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "libvirt-glib/Makefile") CONFIG_FILES="$CONFIG_FILES libvirt-glib/Makefile" ;; "libvirt-gconfig/Makefile") CONFIG_FILES="$CONFIG_FILES libvirt-gconfig/Makefile" ;; "libvirt-gconfig/tests/Makefile") CONFIG_FILES="$CONFIG_FILES libvirt-gconfig/tests/Makefile" ;; "libvirt-gobject/Makefile") CONFIG_FILES="$CONFIG_FILES libvirt-gobject/Makefile" ;; "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; "vapi/Makefile") CONFIG_FILES="$CONFIG_FILES vapi/Makefile" ;; "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; "docs/libvirt-glib/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libvirt-glib/Makefile" ;; "docs/libvirt-glib/version.xml") CONFIG_FILES="$CONFIG_FILES docs/libvirt-glib/version.xml" ;; "docs/libvirt-gobject/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libvirt-gobject/Makefile" ;; "docs/libvirt-gconfig/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libvirt-gconfig/Makefile" ;; "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; "libvirt-glib-1.0.pc") CONFIG_FILES="$CONFIG_FILES libvirt-glib-1.0.pc" ;; "libvirt-gconfig-1.0.pc") CONFIG_FILES="$CONFIG_FILES libvirt-gconfig-1.0.pc" ;; "libvirt-gobject-1.0.pc") CONFIG_FILES="$CONFIG_FILES libvirt-gobject-1.0.pc" ;; "libvirt-glib.spec") CONFIG_FILES="$CONFIG_FILES libvirt-glib.spec" ;; "mingw-libvirt-glib.spec") CONFIG_FILES="$CONFIG_FILES mingw-libvirt-glib.spec" ;; "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi # Compute "$ac_file"'s index in $config_headers. _am_arg="$ac_file" _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :L) # # CONFIG_LINK # if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then : else # Prefer the file from the source tree if names are identical. if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then ac_source=$srcdir/$ac_source fi { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;} if test ! -r "$ac_source"; then as_fn_error $? "$ac_source: file not found" "$LINENO" 5 fi rm -f "$ac_file" # Try a relative symlink, then a hard link, then a copy. case $ac_source in [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; *) ac_rel_source=$ac_top_build_prefix$ac_source ;; esac ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || ln "$ac_source" "$ac_file" 2>/dev/null || cp -p "$ac_source" "$ac_file" || as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 fi ;; :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named 'Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running 'make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "$am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ;; "libtool":C) # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi cfgfile=${ofile}T trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # Generated automatically by $as_me ($PACKAGE) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # Provide generalized library-building support services. # Written by Gordon Matzigkeit, 1996 # Copyright (C) 2014 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # GNU Libtool is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of of the License, or # (at your option) any later version. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program or library that is built # using GNU Libtool, you may include this file under the same # distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # The names of the tagged configurations supported by this script. available_tags='' # Configured defaults for sys_lib_dlsearch_path munging. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} # ### BEGIN LIBTOOL CONFIG # Which release of libtool.m4 was used? macro_version=$macro_version macro_revision=$macro_revision # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Assembler program. AS=$lt_AS # DLL creation program. DLLTOOL=$lt_DLLTOOL # Object dumper program. OBJDUMP=$lt_OBJDUMP # What type of objects to build. pic_mode=$pic_mode # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # Shared archive member basename,for filename based shared library versioning on AIX. shared_archive_member_spec=$shared_archive_member_spec # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # An echo program that protects backslashes. ECHO=$lt_ECHO # The PATH separator for the build system. PATH_SEPARATOR=$lt_PATH_SEPARATOR # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="\$SED -e 1s/^X//" # A grep program that handles long lines. GREP=$lt_GREP # An ERE matcher. EGREP=$lt_EGREP # A literal string matcher. FGREP=$lt_FGREP # A BSD- or MS-compatible name lister. NM=$lt_NM # Whether we need soft or hard links. LN_S=$lt_LN_S # What is the maximum length of a command? max_cmd_len=$max_cmd_len # Object file suffix (normally "o"). objext=$ac_objext # Executable file suffix (normally ""). exeext=$exeext # whether the shell understands "unset". lt_unset=$lt_unset # turn spaces into newlines. SP2NL=$lt_lt_SP2NL # turn newlines into spaces. NL2SP=$lt_lt_NL2SP # convert \$build file names to \$host format. to_host_file_cmd=$lt_cv_to_host_file_cmd # convert \$build files to toolchain format. to_tool_file_cmd=$lt_cv_to_tool_file_cmd # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method = "file_magic". file_magic_cmd=$lt_file_magic_cmd # How to find potential files when deplibs_check_method = "file_magic". file_magic_glob=$lt_file_magic_glob # Find potential files using nocaseglob when deplibs_check_method = "file_magic". want_nocaseglob=$lt_want_nocaseglob # Command to associate shared and link libraries. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd # The archiver. AR=$lt_AR # Flags to create an archive. AR_FLAGS=$lt_AR_FLAGS # How to feed a file listing to the archiver. archiver_list_spec=$lt_archiver_list_spec # A symbol stripping program. STRIP=$lt_STRIP # Commands used to install an old-style archive. RANLIB=$lt_RANLIB old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Whether to use a lock for old archive extraction. lock_old_archive_extraction=$lock_old_archive_extraction # A C compiler. LTCC=$lt_CC # LTCC compiler flags. LTCFLAGS=$lt_CFLAGS # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm into a list of symbols to manually relocate. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import # Transform the output of nm in a C name address pair. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # Transform the output of nm in a C name address pair when lib prefix is needed. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix # The name lister interface. nm_interface=$lt_lt_cv_nm_interface # Specify filename containing input files for \$NM. nm_file_list_spec=$lt_nm_file_list_spec # The root where to search for dependent libraries,and where our libraries should be installed. lt_sysroot=$lt_sysroot # Command to truncate a binary pipe. lt_truncate_bin=$lt_lt_cv_truncate_bin # The name of the directory that contains temporary libtool files. objdir=$objdir # Used to examine libraries when file_magic_cmd begins with "file". MAGIC_CMD=$MAGIC_CMD # Must we lock files when doing compilation? need_locks=$lt_need_locks # Manifest tool. MANIFEST_TOOL=$lt_MANIFEST_TOOL # Tool to manipulate archived DWARF debug symbol files on Mac OS X. DSYMUTIL=$lt_DSYMUTIL # Tool to change global to local symbols on Mac OS X. NMEDIT=$lt_NMEDIT # Tool to manipulate fat objects and archives on Mac OS X. LIPO=$lt_LIPO # ldd/readelf like tool for Mach-O binaries on Mac OS X. OTOOL=$lt_OTOOL # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. OTOOL64=$lt_OTOOL64 # Old archive suffix (normally "a"). libext=$libext # Shared library suffix (normally ".so"). shrext_cmds=$lt_shrext_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Variables whose values should be saved in libtool wrapper scripts and # restored at link time. variables_saved_for_relink=$lt_variables_saved_for_relink # Do we need the "lib" prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Library versioning type. version_type=$version_type # Shared library runtime path variable. runpath_var=$runpath_var # Shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Permission mode override for installation of shared libraries. install_override_mode=$lt_install_override_mode # Command to use after installation of a shared archive. postinstall_cmds=$lt_postinstall_cmds # Command to use after uninstallation of a shared archive. postuninstall_cmds=$lt_postuninstall_cmds # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # As "finish_cmds", except a single script fragment to be evaled but # not shown. finish_eval=$lt_finish_eval # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Compile-time system search path for libraries. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Detected run-time system search path for libraries. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # The linker used to build libraries. LD=$lt_LD # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds # A language specific compiler. CC=$lt_compiler # Is the compiler the GNU compiler? with_gcc=$GCC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \$shlibpath_var if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds # Specify filename containing input files. file_list_spec=$lt_file_list_spec # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # ### END LIBTOOL CONFIG _LT_EOF cat <<'_LT_EOF' >> "$cfgfile" # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE # func_munge_path_list VARIABLE PATH # ----------------------------------- # VARIABLE is name of variable containing _space_ separated list of # directories to be munged by the contents of PATH, which is string # having a format: # "DIR[:DIR]:" # string "DIR[ DIR]" will be prepended to VARIABLE # ":DIR[:DIR]" # string "DIR[ DIR]" will be appended to VARIABLE # "DIRP[:DIRP]::[DIRA:]DIRA" # string "DIRP[ DIRP]" will be prepended to VARIABLE and string # "DIRA[ DIRA]" will be appended to VARIABLE # "DIR[:DIR]" # VARIABLE will be replaced by "DIR[ DIR]" func_munge_path_list () { case x$2 in x) ;; *:) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" ;; x:*) eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" ;; *::*) eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" ;; *) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" ;; esac } # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. func_cc_basename () { for cc_temp in $*""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` } # ### END FUNCTIONS SHARED WITH CONFIGURE _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac ltmain=$ac_aux_dir/ltmain.sh # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ;; "po/stamp-it":C) if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5 fi rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp" >"po/stamp-it.tmp" sed '/^#/d s/^[[].*] *// /^[ ]*$/d '"s|^| $ac_top_srcdir/|" \ "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES" sed '/^POTFILES =/,/[^\\]$/ { /^POTFILES =/!d r po/POTFILES } ' "po/Makefile.in" >"po/Makefile" rm -f "po/Makefile.tmp" mv "po/stamp-it.tmp" "po/stamp-it" ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi libvirt-glib-1.0.0/tap-driver.sh0000775000000000000000000004606713004340477013422 00000000000000#! /bin/sh # Copyright (C) 2011-2013 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . scriptversion=2011-12-27.17; # UTC # Make unconditional expansion of undefined variables an error. This # helps a lot in preventing typo-related bugs. set -u me=tap-driver.sh fatal () { echo "$me: fatal: $*" >&2 exit 1 } usage_error () { echo "$me: $*" >&2 print_usage >&2 exit 2 } print_usage () { cat < # trap : 1 3 2 13 15 if test $merge -gt 0; then exec 2>&1 else exec 2>&3 fi "$@" echo $? ) | LC_ALL=C ${AM_TAP_AWK-awk} \ -v me="$me" \ -v test_script_name="$test_name" \ -v log_file="$log_file" \ -v trs_file="$trs_file" \ -v expect_failure="$expect_failure" \ -v merge="$merge" \ -v ignore_exit="$ignore_exit" \ -v comments="$comments" \ -v diag_string="$diag_string" \ ' # FIXME: the usages of "cat >&3" below could be optimized when using # FIXME: GNU awk, and/on systems that supports /dev/fd/. # Implementation note: in what follows, `result_obj` will be an # associative array that (partly) simulates a TAP result object # from the `TAP::Parser` perl module. ## ----------- ## ## FUNCTIONS ## ## ----------- ## function fatal(msg) { print me ": " msg | "cat >&2" exit 1 } function abort(where) { fatal("internal error " where) } # Convert a boolean to a "yes"/"no" string. function yn(bool) { return bool ? "yes" : "no"; } function add_test_result(result) { if (!test_results_index) test_results_index = 0 test_results_list[test_results_index] = result test_results_index += 1 test_results_seen[result] = 1; } # Whether the test script should be re-run by "make recheck". function must_recheck() { for (k in test_results_seen) if (k != "XFAIL" && k != "PASS" && k != "SKIP") return 1 return 0 } # Whether the content of the log file associated to this test should # be copied into the "global" test-suite.log. function copy_in_global_log() { for (k in test_results_seen) if (k != "PASS") return 1 return 0 } # FIXME: this can certainly be improved ... function get_global_test_result() { if ("ERROR" in test_results_seen) return "ERROR" if ("FAIL" in test_results_seen || "XPASS" in test_results_seen) return "FAIL" all_skipped = 1 for (k in test_results_seen) if (k != "SKIP") all_skipped = 0 if (all_skipped) return "SKIP" return "PASS"; } function stringify_result_obj(result_obj) { if (result_obj["is_unplanned"] || result_obj["number"] != testno) return "ERROR" if (plan_seen == LATE_PLAN) return "ERROR" if (result_obj["directive"] == "TODO") return result_obj["is_ok"] ? "XPASS" : "XFAIL" if (result_obj["directive"] == "SKIP") return result_obj["is_ok"] ? "SKIP" : COOKED_FAIL; if (length(result_obj["directive"])) abort("in function stringify_result_obj()") return result_obj["is_ok"] ? COOKED_PASS : COOKED_FAIL } function decorate_result(result) { color_name = color_for_result[result] if (color_name) return color_map[color_name] "" result "" color_map["std"] # If we are not using colorized output, or if we do not know how # to colorize the given result, we should return it unchanged. return result } function report(result, details) { if (result ~ /^(X?(PASS|FAIL)|SKIP|ERROR)/) { msg = ": " test_script_name add_test_result(result) } else if (result == "#") { msg = " " test_script_name ":" } else { abort("in function report()") } if (length(details)) msg = msg " " details # Output on console might be colorized. print decorate_result(result) msg # Log the result in the log file too, to help debugging (this is # especially true when said result is a TAP error or "Bail out!"). print result msg | "cat >&3"; } function testsuite_error(error_message) { report("ERROR", "- " error_message) } function handle_tap_result() { details = result_obj["number"]; if (length(result_obj["description"])) details = details " " result_obj["description"] if (plan_seen == LATE_PLAN) { details = details " # AFTER LATE PLAN"; } else if (result_obj["is_unplanned"]) { details = details " # UNPLANNED"; } else if (result_obj["number"] != testno) { details = sprintf("%s # OUT-OF-ORDER (expecting %d)", details, testno); } else if (result_obj["directive"]) { details = details " # " result_obj["directive"]; if (length(result_obj["explanation"])) details = details " " result_obj["explanation"] } report(stringify_result_obj(result_obj), details) } # `skip_reason` should be empty whenever planned > 0. function handle_tap_plan(planned, skip_reason) { planned += 0 # Avoid getting confused if, say, `planned` is "00" if (length(skip_reason) && planned > 0) abort("in function handle_tap_plan()") if (plan_seen) { # Error, only one plan per stream is acceptable. testsuite_error("multiple test plans") return; } planned_tests = planned # The TAP plan can come before or after *all* the TAP results; we speak # respectively of an "early" or a "late" plan. If we see the plan line # after at least one TAP result has been seen, assume we have a late # plan; in this case, any further test result seen after the plan will # be flagged as an error. plan_seen = (testno >= 1 ? LATE_PLAN : EARLY_PLAN) # If testno > 0, we have an error ("too many tests run") that will be # automatically dealt with later, so do not worry about it here. If # $plan_seen is true, we have an error due to a repeated plan, and that # has already been dealt with above. Otherwise, we have a valid "plan # with SKIP" specification, and should report it as a particular kind # of SKIP result. if (planned == 0 && testno == 0) { if (length(skip_reason)) skip_reason = "- " skip_reason; report("SKIP", skip_reason); } } function extract_tap_comment(line) { if (index(line, diag_string) == 1) { # Strip leading `diag_string` from `line`. line = substr(line, length(diag_string) + 1) # And strip any leading and trailing whitespace left. sub("^[ \t]*", "", line) sub("[ \t]*$", "", line) # Return what is left (if any). return line; } return ""; } # When this function is called, we know that line is a TAP result line, # so that it matches the (perl) RE "^(not )?ok\b". function setup_result_obj(line) { # Get the result, and remove it from the line. result_obj["is_ok"] = (substr(line, 1, 2) == "ok" ? 1 : 0) sub("^(not )?ok[ \t]*", "", line) # If the result has an explicit number, get it and strip it; otherwise, # automatically assing the next progresive number to it. if (line ~ /^[0-9]+$/ || line ~ /^[0-9]+[^a-zA-Z0-9_]/) { match(line, "^[0-9]+") # The final `+ 0` is to normalize numbers with leading zeros. result_obj["number"] = substr(line, 1, RLENGTH) + 0 line = substr(line, RLENGTH + 1) } else { result_obj["number"] = testno } if (plan_seen == LATE_PLAN) # No further test results are acceptable after a "late" TAP plan # has been seen. result_obj["is_unplanned"] = 1 else if (plan_seen && testno > planned_tests) result_obj["is_unplanned"] = 1 else result_obj["is_unplanned"] = 0 # Strip trailing and leading whitespace. sub("^[ \t]*", "", line) sub("[ \t]*$", "", line) # This will have to be corrected if we have a "TODO"/"SKIP" directive. result_obj["description"] = line result_obj["directive"] = "" result_obj["explanation"] = "" if (index(line, "#") == 0) return # No possible directive, nothing more to do. # Directives are case-insensitive. rx = "[ \t]*#[ \t]*([tT][oO][dD][oO]|[sS][kK][iI][pP])[ \t]*" # See whether we have the directive, and if yes, where. pos = match(line, rx "$") if (!pos) pos = match(line, rx "[^a-zA-Z0-9_]") # If there was no TAP directive, we have nothing more to do. if (!pos) return # Let`s now see if the TAP directive has been escaped. For example: # escaped: ok \# SKIP # not escaped: ok \\# SKIP # escaped: ok \\\\\# SKIP # not escaped: ok \ # SKIP if (substr(line, pos, 1) == "#") { bslash_count = 0 for (i = pos; i > 1 && substr(line, i - 1, 1) == "\\"; i--) bslash_count += 1 if (bslash_count % 2) return # Directive was escaped. } # Strip the directive and its explanation (if any) from the test # description. result_obj["description"] = substr(line, 1, pos - 1) # Now remove the test description from the line, that has been dealt # with already. line = substr(line, pos) # Strip the directive, and save its value (normalized to upper case). sub("^[ \t]*#[ \t]*", "", line) result_obj["directive"] = toupper(substr(line, 1, 4)) line = substr(line, 5) # Now get the explanation for the directive (if any), with leading # and trailing whitespace removed. sub("^[ \t]*", "", line) sub("[ \t]*$", "", line) result_obj["explanation"] = line } function get_test_exit_message(status) { if (status == 0) return "" if (status !~ /^[1-9][0-9]*$/) abort("getting exit status") if (status < 127) exit_details = "" else if (status == 127) exit_details = " (command not found?)" else if (status >= 128 && status <= 255) exit_details = sprintf(" (terminated by signal %d?)", status - 128) else if (status > 256 && status <= 384) # We used to report an "abnormal termination" here, but some Korn # shells, when a child process die due to signal number n, can leave # in $? an exit status of 256+n instead of the more standard 128+n. # Apparently, both behaviours are allowed by POSIX (2008), so be # prepared to handle them both. See also Austing Group report ID # 0000051 exit_details = sprintf(" (terminated by signal %d?)", status - 256) else # Never seen in practice. exit_details = " (abnormal termination)" return sprintf("exited with status %d%s", status, exit_details) } function write_test_results() { print ":global-test-result: " get_global_test_result() > trs_file print ":recheck: " yn(must_recheck()) > trs_file print ":copy-in-global-log: " yn(copy_in_global_log()) > trs_file for (i = 0; i < test_results_index; i += 1) print ":test-result: " test_results_list[i] > trs_file close(trs_file); } BEGIN { ## ------- ## ## SETUP ## ## ------- ## '"$init_colors"' # Properly initialized once the TAP plan is seen. planned_tests = 0 COOKED_PASS = expect_failure ? "XPASS": "PASS"; COOKED_FAIL = expect_failure ? "XFAIL": "FAIL"; # Enumeration-like constants to remember which kind of plan (if any) # has been seen. It is important that NO_PLAN evaluates "false" as # a boolean. NO_PLAN = 0 EARLY_PLAN = 1 LATE_PLAN = 2 testno = 0 # Number of test results seen so far. bailed_out = 0 # Whether a "Bail out!" directive has been seen. # Whether the TAP plan has been seen or not, and if yes, which kind # it is ("early" is seen before any test result, "late" otherwise). plan_seen = NO_PLAN ## --------- ## ## PARSING ## ## --------- ## is_first_read = 1 while (1) { # Involutions required so that we are able to read the exit status # from the last input line. st = getline if (st < 0) # I/O error. fatal("I/O error while reading from input stream") else if (st == 0) # End-of-input { if (is_first_read) abort("in input loop: only one input line") break } if (is_first_read) { is_first_read = 0 nextline = $0 continue } else { curline = nextline nextline = $0 $0 = curline } # Copy any input line verbatim into the log file. print | "cat >&3" # Parsing of TAP input should stop after a "Bail out!" directive. if (bailed_out) continue # TAP test result. if ($0 ~ /^(not )?ok$/ || $0 ~ /^(not )?ok[^a-zA-Z0-9_]/) { testno += 1 setup_result_obj($0) handle_tap_result() } # TAP plan (normal or "SKIP" without explanation). else if ($0 ~ /^1\.\.[0-9]+[ \t]*$/) { # The next two lines will put the number of planned tests in $0. sub("^1\\.\\.", "") sub("[^0-9]*$", "") handle_tap_plan($0, "") continue } # TAP "SKIP" plan, with an explanation. else if ($0 ~ /^1\.\.0+[ \t]*#/) { # The next lines will put the skip explanation in $0, stripping # any leading and trailing whitespace. This is a little more # tricky in truth, since we want to also strip a potential leading # "SKIP" string from the message. sub("^[^#]*#[ \t]*(SKIP[: \t][ \t]*)?", "") sub("[ \t]*$", ""); handle_tap_plan(0, $0) } # "Bail out!" magic. # Older versions of prove and TAP::Harness (e.g., 3.17) did not # recognize a "Bail out!" directive when preceded by leading # whitespace, but more modern versions (e.g., 3.23) do. So we # emulate the latter, "more modern" behaviour. else if ($0 ~ /^[ \t]*Bail out!/) { bailed_out = 1 # Get the bailout message (if any), with leading and trailing # whitespace stripped. The message remains stored in `$0`. sub("^[ \t]*Bail out![ \t]*", ""); sub("[ \t]*$", ""); # Format the error message for the bailout_message = "Bail out!" if (length($0)) bailout_message = bailout_message " " $0 testsuite_error(bailout_message) } # Maybe we have too look for dianogtic comments too. else if (comments != 0) { comment = extract_tap_comment($0); if (length(comment)) report("#", comment); } } ## -------- ## ## FINISH ## ## -------- ## # A "Bail out!" directive should cause us to ignore any following TAP # error, as well as a non-zero exit status from the TAP producer. if (!bailed_out) { if (!plan_seen) { testsuite_error("missing test plan") } else if (planned_tests != testno) { bad_amount = testno > planned_tests ? "many" : "few" testsuite_error(sprintf("too %s tests run (expected %d, got %d)", bad_amount, planned_tests, testno)) } if (!ignore_exit) { # Fetch exit status from the last line. exit_message = get_test_exit_message(nextline) if (exit_message) testsuite_error(exit_message) } } write_test_results() exit 0 } # End of "BEGIN" block. ' # TODO: document that we consume the file descriptor 3 :-( } 3>"$log_file" test $? -eq 0 || fatal "I/O or internal error" # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: libvirt-glib-1.0.0/examples/0000775000000000000000000000000013007136424012665 500000000000000libvirt-glib-1.0.0/examples/Makefile.am0000664000000000000000000000126013004340477014642 00000000000000 noinst_PROGRAMS = event-test conn-test EXTRA_DIST = event-test.py config-demo.py event_test_CFLAGS = \ $(WARN_CFLAGS) \ $(GLIB2_CFLAGS) \ $(LIBVIRT_CFLAGS) \ -I$(top_srcdir) event_test_SOURCES = \ event-test.c event_test_LDADD = \ ../libvirt-glib/libvirt-glib-1.0.la \ $(LIBVIRT_LIBS) \ $(GLIB2_LIBS) conn_test_CFLAGS = \ $(WARN_CFLAGS) \ $(GLIB2_CFLAGS) \ $(LIBVIRT_CFLAGS) \ $(LIBXML2_CFLAGS) \ -I$(top_srcdir) conn_test_SOURCES = \ conn-test.c conn_test_LDADD = \ ../libvirt-gobject/libvirt-gobject-1.0.la \ ../libvirt-gconfig/libvirt-gconfig-1.0.la \ ../libvirt-glib/libvirt-glib-1.0.la \ $(LIBVIRT_LIBS) \ $(GLIB2_LIBS) \ $(GOBJECT2_LIBS) libvirt-glib-1.0.0/examples/event-test.c0000664000000000000000000001217413004340477015056 00000000000000#include #include #include #include #include #include #define STREQ(a,b) (strcmp((a),(b)) == 0) #ifndef ATTRIBUTE_UNUSED #define ATTRIBUTE_UNUSED __attribute__((__unused__)) #endif /* Prototypes */ const char *eventToString(int event); int myDomainEventCallback1 (virConnectPtr conn, virDomainPtr dom, int event, int detail, void *opaque); int myDomainEventCallback2 (virConnectPtr conn, virDomainPtr dom, int event, int detail, void *opaque); void usage(const char *pname); /* Callback functions */ const char *eventToString(int event) { const char *ret = NULL; switch(event) { case VIR_DOMAIN_EVENT_DEFINED: ret ="Defined"; break; case VIR_DOMAIN_EVENT_UNDEFINED: ret ="Undefined"; break; case VIR_DOMAIN_EVENT_STARTED: ret ="Started"; break; case VIR_DOMAIN_EVENT_SUSPENDED: ret ="Suspended"; break; case VIR_DOMAIN_EVENT_RESUMED: ret ="Resumed"; break; case VIR_DOMAIN_EVENT_STOPPED: ret ="Stopped"; break; default: ret ="Unknown Event"; } return ret; } static const char *eventDetailToString(int event, int detail) { const char *ret = ""; switch(event) { case VIR_DOMAIN_EVENT_DEFINED: if (detail == VIR_DOMAIN_EVENT_DEFINED_ADDED) ret = "Added"; else if (detail == VIR_DOMAIN_EVENT_DEFINED_UPDATED) ret = "Updated"; break; case VIR_DOMAIN_EVENT_UNDEFINED: if (detail == VIR_DOMAIN_EVENT_UNDEFINED_REMOVED) ret = "Removed"; break; case VIR_DOMAIN_EVENT_STARTED: switch (detail) { case VIR_DOMAIN_EVENT_STARTED_BOOTED: ret = "Booted"; break; case VIR_DOMAIN_EVENT_STARTED_MIGRATED: ret = "Migrated"; break; case VIR_DOMAIN_EVENT_STARTED_RESTORED: ret = "Restored"; break; default: break; } break; case VIR_DOMAIN_EVENT_SUSPENDED: if (detail == VIR_DOMAIN_EVENT_SUSPENDED_PAUSED) ret = "Unpaused"; else if (detail == VIR_DOMAIN_EVENT_SUSPENDED_MIGRATED) ret = "Migrated"; break; case VIR_DOMAIN_EVENT_RESUMED: if (detail == VIR_DOMAIN_EVENT_RESUMED_UNPAUSED) ret = "Unpaused"; else if (detail == VIR_DOMAIN_EVENT_RESUMED_MIGRATED) ret = "Migrated"; break; case VIR_DOMAIN_EVENT_STOPPED: switch (detail) { case VIR_DOMAIN_EVENT_STOPPED_SHUTDOWN: ret = "Shutdown"; break; case VIR_DOMAIN_EVENT_STOPPED_DESTROYED: ret = "Destroyed"; break; case VIR_DOMAIN_EVENT_STOPPED_CRASHED: ret = "Crashed"; break; case VIR_DOMAIN_EVENT_STOPPED_MIGRATED: ret = "Migrated"; break; case VIR_DOMAIN_EVENT_STOPPED_SAVED: ret = "Failed"; break; case VIR_DOMAIN_EVENT_STOPPED_FAILED: ret = "Failed"; break; default: break; } break; default: break; } return ret; } int myDomainEventCallback1 (virConnectPtr conn ATTRIBUTE_UNUSED, virDomainPtr dom, int event, int detail, void *opaque ATTRIBUTE_UNUSED) { printf("%s EVENT: Domain %s(%d) %s: %s\n", __FUNCTION__, virDomainGetName(dom), virDomainGetID(dom), eventToString(event), eventDetailToString(event, detail)); return 0; } int myDomainEventCallback2 (virConnectPtr conn ATTRIBUTE_UNUSED, virDomainPtr dom, int event, int detail, void *opaque ATTRIBUTE_UNUSED) { printf("%s EVENT: Domain %s(%d) %s: %s\n", __FUNCTION__, virDomainGetName(dom), virDomainGetID(dom), eventToString(event), eventDetailToString(event, detail)); return 0; } /* main test functions */ void usage(const char *pname) { printf("%s uri\n", pname); } int main(int argc, char **argv) { GMainLoop *loop; gvir_init(&argc, &argv); if(argc > 1 && STREQ(argv[1],"--help")) { usage(argv[0]); return -1; } loop = g_main_loop_new(g_main_context_default(), 1); gvir_event_register(); virConnectPtr dconn = NULL; dconn = virConnectOpen (argv[1] ? argv[1] : NULL); if (!dconn) { printf("error opening\n"); return -1; } g_debug("Registering domain event cbs"); /* Add 2 callbacks to prove this works with more than just one */ virConnectDomainEventRegister(dconn, myDomainEventCallback1, NULL, NULL); virConnectDomainEventRegister(dconn, myDomainEventCallback2, NULL, NULL); g_main_loop_run(loop); if (virConnectClose(dconn) < 0) printf("error closing\n"); printf("done\n"); return 0; } libvirt-glib-1.0.0/examples/event-test.py0000664000000000000000000000327313004340477015264 00000000000000 from gi.repository import Gtk import libvirt import getopt import sys from gi.repository import LibvirtGLib; def eventToString(event): eventStrings = ( "Added", "Removed", "Started", "Suspended", "Resumed", "Stopped", "Saved", "Restored" ); return eventStrings[event]; def myDomainEventCallback1 (conn, dom, event, detail, opaque): print "myDomainEventCallback1 EVENT: Domain %s(%s) %s" % (dom.name(), dom.ID(), eventToString(event)) def myDomainEventCallback2 (conn, dom, event, detail, opaque): print "myDomainEventCallback2 EVENT: Domain %s(%s) %s" % (dom.name(), dom.ID(), eventToString(event)) def usage(): print "usage: "+os.path.basename(sys.argv[0])+" [uri]" print " uri will default to qemu:///system" def main(): try: opts, args = getopt.getopt(sys.argv[1:], "h", ["help"] ) except getopt.GetoptError, err: # print help information and exit: print str(err) # will print something like "option -a not recognized" usage() sys.exit(2) for o, a in opts: if o in ("-h", "--help"): usage() sys.exit() if len(sys.argv) > 1: uri = sys.argv[1] else: uri = "qemu:///system" print "Using uri:" + uri LibvirtGLib.init(0, "") LibvirtGLib.event_register() vc = libvirt.open(uri) #Add 2 callbacks to prove this works with more than just one vc.domainEventRegister(myDomainEventCallback1,None) vc.domainEventRegister(myDomainEventCallback2,None) Gtk.main() if __name__ == "__main__": main() libvirt-glib-1.0.0/examples/Makefile.in0000664000000000000000000006207313007136323014660 00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ noinst_PROGRAMS = event-test$(EXEEXT) conn-test$(EXEEXT) subdir = examples ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/glibtests.m4 \ $(top_srcdir)/m4/intltool.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/manywarnings.m4 \ $(top_srcdir)/m4/virt-compile-warnings.m4 \ $(top_srcdir)/m4/virt-gettext.m4 $(top_srcdir)/m4/warnings.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = PROGRAMS = $(noinst_PROGRAMS) am_conn_test_OBJECTS = conn_test-conn-test.$(OBJEXT) conn_test_OBJECTS = $(am_conn_test_OBJECTS) am__DEPENDENCIES_1 = conn_test_DEPENDENCIES = ../libvirt-gobject/libvirt-gobject-1.0.la \ ../libvirt-gconfig/libvirt-gconfig-1.0.la \ ../libvirt-glib/libvirt-glib-1.0.la $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = conn_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(conn_test_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_event_test_OBJECTS = event_test-event-test.$(OBJEXT) event_test_OBJECTS = $(am_event_test_OBJECTS) event_test_DEPENDENCIES = ../libvirt-glib/libvirt-glib-1.0.la \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) event_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(event_test_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(conn_test_SOURCES) $(event_test_SOURCES) DIST_SOURCES = $(conn_test_SOURCES) $(event_test_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in \ $(top_srcdir)/build-aux/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ COVERAGE_CFLAGS = @COVERAGE_CFLAGS@ COVERAGE_LDFLAGS = @COVERAGE_LDFLAGS@ COV_FLAGS = @COV_FLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ CYGWIN_EXTRA_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@ CYGWIN_EXTRA_LIBADD = @CYGWIN_EXTRA_LIBADD@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GIO2_CFLAGS = @GIO2_CFLAGS@ GIO2_LIBS = @GIO2_LIBS@ GLIB2_CFLAGS = @GLIB2_CFLAGS@ GLIB2_LIBS = @GLIB2_LIBS@ GLIB2_REQUIRED = @GLIB2_REQUIRED@ GLIB_MKENUMS = @GLIB_MKENUMS@ GMSGFMT = @GMSGFMT@ GOBJECT2_CFLAGS = @GOBJECT2_CFLAGS@ GOBJECT2_LIBS = @GOBJECT2_LIBS@ GREP = @GREP@ GTHREAD2_CFLAGS = @GTHREAD2_CFLAGS@ GTHREAD2_LIBS = @GTHREAD2_LIBS@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HTML_DIR = @HTML_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBVIRT_CFLAGS = @LIBVIRT_CFLAGS@ LIBVIRT_GLIB_MAJOR_VERSION = @LIBVIRT_GLIB_MAJOR_VERSION@ LIBVIRT_GLIB_MICRO_VERSION = @LIBVIRT_GLIB_MICRO_VERSION@ LIBVIRT_GLIB_MINOR_VERSION = @LIBVIRT_GLIB_MINOR_VERSION@ LIBVIRT_GLIB_VERSION = @LIBVIRT_GLIB_VERSION@ LIBVIRT_GLIB_VERSION_INFO = @LIBVIRT_GLIB_VERSION_INFO@ LIBVIRT_GLIB_VERSION_NUMBER = @LIBVIRT_GLIB_VERSION_NUMBER@ LIBVIRT_LIBS = @LIBVIRT_LIBS@ LIBVIRT_REQUIRED = @LIBVIRT_REQUIRED@ LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ LIBXML2_LIBS = @LIBXML2_LIBS@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MINGW_EXTRA_LDFLAGS = @MINGW_EXTRA_LDFLAGS@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VAPIGEN = @VAPIGEN@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ installed_test_metadir = @installed_test_metadir@ installed_testdir = @installed_testdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = event-test.py config-demo.py event_test_CFLAGS = \ $(WARN_CFLAGS) \ $(GLIB2_CFLAGS) \ $(LIBVIRT_CFLAGS) \ -I$(top_srcdir) event_test_SOURCES = \ event-test.c event_test_LDADD = \ ../libvirt-glib/libvirt-glib-1.0.la \ $(LIBVIRT_LIBS) \ $(GLIB2_LIBS) conn_test_CFLAGS = \ $(WARN_CFLAGS) \ $(GLIB2_CFLAGS) \ $(LIBVIRT_CFLAGS) \ $(LIBXML2_CFLAGS) \ -I$(top_srcdir) conn_test_SOURCES = \ conn-test.c conn_test_LDADD = \ ../libvirt-gobject/libvirt-gobject-1.0.la \ ../libvirt-gconfig/libvirt-gconfig-1.0.la \ ../libvirt-glib/libvirt-glib-1.0.la \ $(LIBVIRT_LIBS) \ $(GLIB2_LIBS) \ $(GOBJECT2_LIBS) all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu examples/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list conn-test$(EXEEXT): $(conn_test_OBJECTS) $(conn_test_DEPENDENCIES) $(EXTRA_conn_test_DEPENDENCIES) @rm -f conn-test$(EXEEXT) $(AM_V_CCLD)$(conn_test_LINK) $(conn_test_OBJECTS) $(conn_test_LDADD) $(LIBS) event-test$(EXEEXT): $(event_test_OBJECTS) $(event_test_DEPENDENCIES) $(EXTRA_event_test_DEPENDENCIES) @rm -f event-test$(EXEEXT) $(AM_V_CCLD)$(event_test_LINK) $(event_test_OBJECTS) $(event_test_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/conn_test-conn-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/event_test-event-test.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< conn_test-conn-test.o: conn-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(conn_test_CFLAGS) $(CFLAGS) -MT conn_test-conn-test.o -MD -MP -MF $(DEPDIR)/conn_test-conn-test.Tpo -c -o conn_test-conn-test.o `test -f 'conn-test.c' || echo '$(srcdir)/'`conn-test.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/conn_test-conn-test.Tpo $(DEPDIR)/conn_test-conn-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='conn-test.c' object='conn_test-conn-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(conn_test_CFLAGS) $(CFLAGS) -c -o conn_test-conn-test.o `test -f 'conn-test.c' || echo '$(srcdir)/'`conn-test.c conn_test-conn-test.obj: conn-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(conn_test_CFLAGS) $(CFLAGS) -MT conn_test-conn-test.obj -MD -MP -MF $(DEPDIR)/conn_test-conn-test.Tpo -c -o conn_test-conn-test.obj `if test -f 'conn-test.c'; then $(CYGPATH_W) 'conn-test.c'; else $(CYGPATH_W) '$(srcdir)/conn-test.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/conn_test-conn-test.Tpo $(DEPDIR)/conn_test-conn-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='conn-test.c' object='conn_test-conn-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(conn_test_CFLAGS) $(CFLAGS) -c -o conn_test-conn-test.obj `if test -f 'conn-test.c'; then $(CYGPATH_W) 'conn-test.c'; else $(CYGPATH_W) '$(srcdir)/conn-test.c'; fi` event_test-event-test.o: event-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(event_test_CFLAGS) $(CFLAGS) -MT event_test-event-test.o -MD -MP -MF $(DEPDIR)/event_test-event-test.Tpo -c -o event_test-event-test.o `test -f 'event-test.c' || echo '$(srcdir)/'`event-test.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/event_test-event-test.Tpo $(DEPDIR)/event_test-event-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='event-test.c' object='event_test-event-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(event_test_CFLAGS) $(CFLAGS) -c -o event_test-event-test.o `test -f 'event-test.c' || echo '$(srcdir)/'`event-test.c event_test-event-test.obj: event-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(event_test_CFLAGS) $(CFLAGS) -MT event_test-event-test.obj -MD -MP -MF $(DEPDIR)/event_test-event-test.Tpo -c -o event_test-event-test.obj `if test -f 'event-test.c'; then $(CYGPATH_W) 'event-test.c'; else $(CYGPATH_W) '$(srcdir)/event-test.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/event_test-event-test.Tpo $(DEPDIR)/event_test-event-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='event-test.c' object='event_test-event-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(event_test_CFLAGS) $(CFLAGS) -c -o event_test-event-test.obj `if test -f 'event-test.c'; then $(CYGPATH_W) 'event-test.c'; else $(CYGPATH_W) '$(srcdir)/event-test.c'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstPROGRAMS cscopelist-am ctags \ ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libvirt-glib-1.0.0/examples/config-demo.py0000664000000000000000000000632713004340477015360 00000000000000#!/usr/bin/python from gi.repository import LibvirtGConfig; domain = LibvirtGConfig.Domain.new() domain.set_virt_type(LibvirtGConfig.DomainVirtType.KVM) domain.set_name("foo") domain.set_memory(1024*1024) # 1 GB domain.set_vcpus(2) domain.set_lifecycle(LibvirtGConfig.DomainLifecycleEvent.ON_POWEROFF, LibvirtGConfig.DomainLifecycleAction.DESTROY) domain.set_virt_type(LibvirtGConfig.DomainVirtType.KVM) clock = LibvirtGConfig.DomainClock.new() clock.set_offset(LibvirtGConfig.DomainClockOffset.UTC) domain.set_clock(clock) os = LibvirtGConfig.DomainOs.new() os.set_os_type(LibvirtGConfig.DomainOsType.HVM) os.set_arch("x86_64") devices = [ LibvirtGConfig.DomainOsBootDevice.CDROM, LibvirtGConfig.DomainOsBootDevice.NETWORK ] os.set_boot_devices(devices) domain.set_os(os) disk = LibvirtGConfig.DomainDisk.new() disk.set_type(LibvirtGConfig.DomainDiskType.FILE) disk.set_guest_device_type(LibvirtGConfig.DomainDiskGuestDeviceType.DISK) disk.set_source("/tmp/foo/bar") disk.set_driver_name("qemu") disk.set_driver_format(LibvirtGConfig.DomainDiskFormat.QCOW2) disk.set_target_bus(LibvirtGConfig.DomainDiskBus.IDE) disk.set_target_dev("hda") domain.add_device(disk) interface = LibvirtGConfig.DomainInterfaceNetwork.new() interface.set_source("default") filterref = LibvirtGConfig.DomainInterfaceFilterref.new() filterref.set_name("clean-traffic") parameter = LibvirtGConfig.DomainInterfaceFilterrefParameter.new() parameter.set_name("IP") parameter.set_value("205.23.12.40") filterref.add_parameter(parameter) interface.set_filterref(filterref) domain.add_device(interface) interface = LibvirtGConfig.DomainInterfaceUser.new() interface.set_ifname("eth0") interface.set_link_state(LibvirtGConfig.DomainInterfaceLinkState.UP) interface.set_mac("00:11:22:33:44:55") interface.set_model("foo") domain.add_device(interface) input = LibvirtGConfig.DomainInput.new() input.set_device_type(LibvirtGConfig.DomainInputDeviceType.TABLET) input.set_bus(LibvirtGConfig.DomainInputBus.USB) domain.add_device(input) graphics = LibvirtGConfig.DomainGraphicsSpice.new() graphics.set_port(1234) graphics.set_gl(True) domain.add_device(graphics) video = LibvirtGConfig.DomainVideo.new() video.set_model(LibvirtGConfig.DomainVideoModel.VIRTIO) video.set_accel3d(True) domain.add_device(video) console = LibvirtGConfig.DomainConsole.new() pty = LibvirtGConfig.DomainChardevSourcePty.new() console.set_source(pty) domain.add_device(console) print domain.to_xml() pool = LibvirtGConfig.StoragePool.new() pool.set_pool_type(LibvirtGConfig.StoragePoolType.DIR) pool_source = LibvirtGConfig.StoragePoolSource.new() pool_source.set_directory("/foo/bar") pool.set_source(pool_source) perms = LibvirtGConfig.StoragePermissions.new() perms.set_owner(1001) perms.set_group(1005) perms.set_mode(0744) perms.set_label("virt_image_t") pool_target = LibvirtGConfig.StoragePoolTarget.new() pool_target.set_path("/dev/disk/by-path") pool_target.set_permissions(perms) pool.set_target(pool_target) print pool.to_xml() vol = LibvirtGConfig.StorageVol.new() vol.set_name("my-vol") vol.set_capacity(0xdeadbeef) vol_target = LibvirtGConfig.StorageVolTarget.new() vol_target.set_format("qcow2") vol_target.set_permissions(perms) vol.set_target(vol_target) print vol.to_xml() libvirt-glib-1.0.0/examples/conn-test.c0000664000000000000000000000476113004340477014675 00000000000000/* * conn-test.c: test libvirt gobject integration * * Copyright (C) 2010-2011 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 * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Daniel P. Berrange */ #include #include static void do_connection_open(GObject *source, GAsyncResult *res, gpointer opaque G_GNUC_UNUSED) { GVirConnection *conn = GVIR_CONNECTION(source); GError *err = NULL; gchar *hv_name = NULL; gulong hv_version = 0; guint major, minor, micro; if (!gvir_connection_open_finish(conn, res, &err)) { g_error("%s", err->message); } g_print("Connected to libvirt\n"); if (!(hv_name = gvir_connection_get_hypervisor_name(conn, &err))) { g_error("%s", err->message); } g_print("Hypervisor name: %s\n", hv_name); if (!(hv_version = gvir_connection_get_version(conn, &err))) { g_error("%s", err->message); } major = hv_version / 1000000; hv_version %= 1000000; minor = hv_version / 1000; micro = hv_version % 1000; g_print("Hypervisor version: %u.%u.%u\n", major, minor, micro); g_free(hv_name); g_object_unref(conn); } static void quit(gpointer data, GObject *where_the_object_was G_GNUC_UNUSED) { GMainLoop *loop = data; g_main_loop_quit(loop); } int main(int argc, char **argv) { GVirConnection *conn; GMainLoop *loop; gvir_init_object(&argc, &argv); if (argc != 2) { g_error("syntax: %s URI", argv[0]); return 1; } loop = g_main_loop_new(g_main_context_default(), TRUE); conn = gvir_connection_new(argv[1]); g_object_weak_ref(G_OBJECT(conn), quit, loop); gvir_connection_open_async(conn, NULL, do_connection_open, loop); g_main_loop_run(loop); g_main_loop_unref(loop); return 0; } libvirt-glib-1.0.0/maint.mk0000664000000000000000000016007513004340477012443 00000000000000# -*-Makefile-*- # This Makefile fragment tries to be general-purpose enough to be # used by many projects via the gnulib maintainer-makefile module. ## Copyright (C) 2001-2011 Free Software Foundation, Inc. ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program. If not, see . # This is reported not to work with make-3.79.1 # ME := $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)) ME := maint.mk # Diagnostic for continued use of deprecated variable. # Remove in 2013 ifneq ($(build_aux),) $(error "$(ME): \ set $$(_build-aux) relative to $$(srcdir) instead of $$(build_aux)") endif # Do not save the original name or timestamp in the .tar.gz file. # Use --rsyncable if available. gzip_rsyncable := \ $(shell gzip --help 2>/dev/null|grep rsyncable >/dev/null \ && printf %s --rsyncable) GZIP_ENV = '--no-name --best $(gzip_rsyncable)' GIT = git VC = $(GIT) VC_LIST = $(srcdir)/$(_build-aux)/vc-list-files -C $(srcdir) # You can override this variable in cfg.mk to set your own regexp # matching files to ignore. VC_LIST_ALWAYS_EXCLUDE_REGEX ?= ^$$ # This is to preprocess robustly the output of $(VC_LIST), so that even # when $(srcdir) is a pathological name like "....", the leading sed command # removes only the intended prefix. _dot_escaped_srcdir = $(subst .,\.,$(srcdir)) # Post-process $(VC_LIST) output, prepending $(srcdir)/, but only # when $(srcdir) is not ".". ifeq ($(srcdir),.) _prepend_srcdir_prefix = else _prepend_srcdir_prefix = | sed 's|^|$(srcdir)/|' endif # In order to be able to consistently filter "."-relative names, # (i.e., with no $(srcdir) prefix), this definition is careful to # remove any $(srcdir) prefix, and to restore what it removes. _sc_excl = \ $(if $(exclude_file_name_regexp--$@),$(exclude_file_name_regexp--$@),^$$) VC_LIST_EXCEPT = \ $(VC_LIST) | sed 's|^$(_dot_escaped_srcdir)/||' \ | if test -f $(srcdir)/.x-$@; then grep -vEf $(srcdir)/.x-$@; \ else grep -Ev -e "$${VC_LIST_EXCEPT_DEFAULT-ChangeLog}"; fi \ | grep -Ev -e '($(VC_LIST_ALWAYS_EXCLUDE_REGEX)|$(_sc_excl))' \ $(_prepend_srcdir_prefix) ifeq ($(origin prev_version_file), undefined) prev_version_file = $(srcdir)/.prev-version endif PREV_VERSION := $(shell cat $(prev_version_file) 2>/dev/null) VERSION_REGEXP = $(subst .,\.,$(VERSION)) PREV_VERSION_REGEXP = $(subst .,\.,$(PREV_VERSION)) ifeq ($(VC),$(GIT)) this-vc-tag = v$(VERSION) this-vc-tag-regexp = v$(VERSION_REGEXP) else tag-package = $(shell echo "$(PACKAGE)" | tr '[:lower:]' '[:upper:]') tag-this-version = $(subst .,_,$(VERSION)) this-vc-tag = $(tag-package)-$(tag-this-version) this-vc-tag-regexp = $(this-vc-tag) endif my_distdir = $(PACKAGE)-$(VERSION) # Old releases are stored here. release_archive_dir ?= ../release # Override gnu_rel_host and url_dir_list in cfg.mk if these are not right. # Use alpha.gnu.org for alpha and beta releases. # Use ftp.gnu.org for stable releases. gnu_ftp_host-alpha = alpha.gnu.org gnu_ftp_host-beta = alpha.gnu.org gnu_ftp_host-stable = ftp.gnu.org gnu_rel_host ?= $(gnu_ftp_host-$(RELEASE_TYPE)) ifeq ($(gnu_rel_host),ftp.gnu.org) url_dir_list ?= http://ftpmirror.gnu.org/$(PACKAGE) else url_dir_list ?= ftp://$(gnu_rel_host)/gnu/$(PACKAGE) endif # Override this in cfg.mk if you are using a different format in your # NEWS file. today = $(shell date +%Y-%m-%d) # Select which lines of NEWS are searched for $(news-check-regexp). # This is a sed line number spec. The default says that we search # lines 1..10 of NEWS for $(news-check-regexp). # If you want to search only line 3 or only lines 20-22, use "3" or "20,22". news-check-lines-spec ?= 1,10 news-check-regexp ?= '^\*.* $(VERSION_REGEXP) \($(today)\)' # Prevent programs like 'sort' from considering distinct strings to be equal. # Doing it here saves us from having to set LC_ALL elsewhere in this file. export LC_ALL = C ## --------------- ## ## Sanity checks. ## ## --------------- ## _cfg_mk := $(shell test -f $(srcdir)/cfg.mk && echo '$(srcdir)/cfg.mk') # Collect the names of rules starting with `sc_'. syntax-check-rules := $(sort $(shell sed -n 's/^\(sc_[a-zA-Z0-9_-]*\):.*/\1/p' \ $(srcdir)/$(ME) $(_cfg_mk))) .PHONY: $(syntax-check-rules) ifeq ($(shell $(VC_LIST) >/dev/null 2>&1; echo $$?),0) local-checks-available += $(syntax-check-rules) else local-checks-available += no-vc-detected no-vc-detected: @echo "No version control files detected; skipping syntax check" endif .PHONY: $(local-checks-available) # Arrange to print the name of each syntax-checking rule just before running it. $(syntax-check-rules): %: %.m sc_m_rules_ = $(patsubst %, %.m, $(syntax-check-rules)) .PHONY: $(sc_m_rules_) $(sc_m_rules_): @echo $(patsubst sc_%.m, %, $@) @date +%s.%N > .sc-start-$(basename $@) # Compute and print the elapsed time for each syntax-check rule. sc_z_rules_ = $(patsubst %, %.z, $(syntax-check-rules)) .PHONY: $(sc_z_rules_) $(sc_z_rules_): %.z: % @end=$$(date +%s.%N); \ start=$$(cat .sc-start-$*); \ rm -f .sc-start-$*; \ awk -v s=$$start -v e=$$end \ 'END {printf "%.2f $(patsubst sc_%,%,$*)\n", e - s}' < /dev/null # The patsubst here is to replace each sc_% rule with its sc_%.z wrapper # that computes and prints elapsed time. local-check := \ $(patsubst sc_%, sc_%.z, \ $(filter-out $(local-checks-to-skip), $(local-checks-available))) syntax-check: $(local-check) # _sc_search_regexp # # This macro searches for a given construct in the selected files and # then takes some action. # # Parameters (shell variables): # # prohibit | require # # Regular expression (ERE) denoting either a forbidden construct # or a required construct. Those arguments are exclusive. # # in_vc_files | in_files # # grep-E-style regexp denoting the files to check. If no files # are specified the default are all the files that are under # version control. # # containing | non_containing # # Select the files (non) containing strings matching this regexp. # If both arguments are specified then CONTAINING takes # precedence. # # with_grep_options # # Extra options for grep. # # ignore_case # # Ignore case. # # halt # # Message to display before to halting execution. # # Finally, you may exempt files based on an ERE matching file names. # For example, to exempt from the sc_space_tab check all files with the # .diff suffix, set this Make variable: # # exclude_file_name_regexp--sc_space_tab = \.diff$ # # Note that while this functionality is mostly inherited via VC_LIST_EXCEPT, # when filtering by name via in_files, we explicitly filter out matching # names here as well. # By default, _sc_search_regexp does not ignore case. export ignore_case = _ignore_case = $$(test -n "$$ignore_case" && printf %s -i || :) define _sc_say_and_exit dummy=; : so we do not need a semicolon before each use; \ { printf '%s\n' "$(ME): $$msg" 1>&2; exit 1; }; endef # _sc_search_regexp used to be named _prohibit_regexp. However, # upgrading to the new definition and leaving the old name undefined # would usually convert each custom rule using $(_prohibit_regexp) # (usually defined in cfg.mk) into a no-op. This definition ensures # that people know right away if they're still using the old name. # FIXME: remove in 2012. _prohibit_regexp = \ $(error '*** you need to s/_prohibit_regexp/_sc_search_regexp/, and adapt') define _sc_search_regexp dummy=; : so we do not need a semicolon before each use; \ \ : Check arguments; \ test -n "$$prohibit" && test -n "$$require" \ && { msg='Cannot specify both prohibit and require' \ $(_sc_say_and_exit) } || :; \ test -z "$$prohibit" && test -z "$$require" \ && { msg='Should specify either prohibit or require' \ $(_sc_say_and_exit) } || :; \ test -n "$$in_vc_files" && test -n "$$in_files" \ && { msg='Cannot specify both in_vc_files and in_files' \ $(_sc_say_and_exit) } || :; \ test "x$$halt" != x \ || { msg='halt not defined' $(_sc_say_and_exit) }; \ \ : Filter by file name; \ if test -n "$$in_files"; then \ files=$$(find $(srcdir) | grep -E "$$in_files" \ | grep -Ev '$(exclude_file_name_regexp--$@)'); \ else \ files=$$($(VC_LIST_EXCEPT)); \ if test -n "$$in_vc_files"; then \ files=$$(echo "$$files" | grep -E "$$in_vc_files"); \ fi; \ fi; \ \ : Filter by content; \ test -n "$$files" && test -n "$$containing" \ && { files=$$(grep -l "$$containing" $$files); } || :; \ test -n "$$files" && test -n "$$non_containing" \ && { files=$$(grep -vl "$$non_containing" $$files); } || :; \ \ : Check for the construct; \ if test -n "$$files"; then \ if test -n "$$prohibit"; then \ grep $$with_grep_options $(_ignore_case) -nE "$$prohibit" $$files \ && { msg="$$halt" $(_sc_say_and_exit) } || :; \ else \ grep $$with_grep_options $(_ignore_case) -LE "$$require" $$files \ | grep . \ && { msg="$$halt" $(_sc_say_and_exit) } || :; \ fi \ else :; \ fi || :; endef sc_avoid_if_before_free: @$(srcdir)/$(_build-aux)/useless-if-before-free \ $(useless_free_options) \ $$($(VC_LIST_EXCEPT) | grep -v useless-if-before-free) && \ { echo '$(ME): found useless "if" before "free" above' 1>&2; \ exit 1; } || : sc_cast_of_argument_to_free: @prohibit='\&2; exit 1; } || : # Pass EXIT_*, not number, to usage, exit, and error (when exiting) # Convert all uses automatically, via these two commands: # git grep -l '\&2; \ exit 1; } || : # Error messages should not start with a capital letter sc_error_message_uppercase: @grep -nEA2 '[^rp]error *\(' $$($(VC_LIST_EXCEPT)) \ | grep -E '"[A-Z]' \ | grep -vE '"FATAL|"WARNING|"Java|"C#|PRIuMAX' && \ { echo '$(ME): found capitalized error message' 1>&2; \ exit 1; } || : # Error messages should not end with a period sc_error_message_period: @grep -nEA2 '[^rp]error *\(' $$($(VC_LIST_EXCEPT)) \ | grep -E '[^."]\."' && \ { echo '$(ME): found error message ending in period' 1>&2; \ exit 1; } || : sc_file_system: @prohibit=file''system \ ignore_case=1 \ halt='found use of "file''system"; spell it "file system"' \ $(_sc_search_regexp) # Don't use cpp tests of this symbol. All code assumes config.h is included. sc_prohibit_have_config_h: @prohibit='^# *if.*HAVE''_CONFIG_H' \ halt='found use of HAVE''_CONFIG_H; remove' \ $(_sc_search_regexp) # Nearly all .c files must include . However, we also permit this # via inclusion of a package-specific header, if cfg.mk specified one. # config_h_header must be suitable for grep -E. config_h_header ?= sc_require_config_h: @require='^# *include $(config_h_header)' \ in_vc_files='\.c$$' \ halt='the above files do not include ' \ $(_sc_search_regexp) # You must include before including any other header file. # This can possibly be via a package-specific header, if given by cfg.mk. sc_require_config_h_first: @if $(VC_LIST_EXCEPT) | grep -l '\.c$$' > /dev/null; then \ fail=0; \ for i in $$($(VC_LIST_EXCEPT) | grep '\.c$$'); do \ grep '^# *include\>' $$i | sed 1q \ | grep -E '^# *include $(config_h_header)' > /dev/null \ || { echo $$i; fail=1; }; \ done; \ test $$fail = 1 && \ { echo '$(ME): the above files include some other header' \ 'before ' 1>&2; exit 1; } || :; \ else :; \ fi sc_prohibit_HAVE_MBRTOWC: @prohibit='\bHAVE_MBRTOWC\b' \ halt="do not use $$prohibit; it is always defined" \ $(_sc_search_regexp) # To use this "command" macro, you must first define two shell variables: # h: the header name, with no enclosing <> or "" # re: a regular expression that matches IFF something provided by $h is used. define _sc_header_without_use dummy=; : so we do not need a semicolon before each use; \ h_esc=`echo '[<"]'"$$h"'[">]'|sed 's/\./\\\\./g'`; \ if $(VC_LIST_EXCEPT) | grep -l '\.c$$' > /dev/null; then \ files=$$(grep -l '^# *include '"$$h_esc" \ $$($(VC_LIST_EXCEPT) | grep '\.c$$')) && \ grep -LE "$$re" $$files | grep . && \ { echo "$(ME): the above files include $$h but don't use it" \ 1>&2; exit 1; } || :; \ else :; \ fi endef # Prohibit the inclusion of assert.h without an actual use of assert. sc_prohibit_assert_without_use: @h='assert.h' re='\new(file => "/dev/stdin")->as_string'|sed 's/\?://g' # Note this was produced by the above: # _xa1 = \ #x(((2n?)?re|c(har)?|n(re|m)|z)alloc|alloc_(oversized|die)|m(alloc|emdup)|strdup) # But we can do better, in at least two ways: # 1) take advantage of two "dup"-suffixed strings: # x(((2n?)?re|c(har)?|n(re|m)|[mz])alloc|alloc_(oversized|die)|(mem|str)dup) # 2) notice that "c(har)?|[mz]" is equivalent to the shorter and more readable # "char|[cmz]" # x(((2n?)?re|char|n(re|m)|[cmz])alloc|alloc_(oversized|die)|(mem|str)dup) _xa1 = x(((2n?)?re|char|n(re|m)|[cmz])alloc|alloc_(oversized|die)|(mem|str)dup) _xa2 = X([CZ]|N?M)ALLOC sc_prohibit_xalloc_without_use: @h='xalloc.h' \ re='\<($(_xa1)|$(_xa2)) *\('\ $(_sc_header_without_use) # Extract function names: # perl -lne '/^(?:extern )?(?:void|char) \*?(\w+) *\(/ and print $1' lib/hash.h _hash_re = \ clear|delete|free|get_(first|next)|insert|lookup|print_statistics|reset_tuning _hash_fn = \<($(_hash_re)) *\( _hash_struct = (struct )?\<[Hh]ash_(table|tuning)\> sc_prohibit_hash_without_use: @h='hash.h' \ re='$(_hash_fn)|$(_hash_struct)'\ $(_sc_header_without_use) sc_prohibit_cloexec_without_use: @h='cloexec.h' re='\<(set_cloexec_flag|dup_cloexec) *\(' \ $(_sc_header_without_use) sc_prohibit_posixver_without_use: @h='posixver.h' re='\' \ halt='do not use HAVE''_FCNTL_H or O'_NDELAY \ $(_sc_search_regexp) # FIXME: warn about definitions of EXIT_FAILURE, EXIT_SUCCESS, STREQ # Each nonempty ChangeLog line must start with a year number, or a TAB. sc_changelog: @prohibit='^[^12 ]' \ in_vc_files='^ChangeLog$$' \ halt='found unexpected prefix in a ChangeLog' \ $(_sc_search_regexp) # Ensure that each .c file containing a "main" function also # calls set_program_name. sc_program_name: @require='set_program_name *\(m?argv\[0\]\);' \ in_vc_files='\.c$$' \ containing='\
/dev/null \ && : || { die=1; echo $$i; } \ done; \ test $$die = 1 && \ { echo 1>&2 '$(ME): the final line in each of the above is not:'; \ echo 1>&2 'Exit something'; \ exit 1; } || :; \ fi sc_trailing_blank: @prohibit='[ ]$$' \ halt='found trailing blank(s)' \ $(_sc_search_regexp) # Match lines like the following, but where there is only one space # between the options and the description: # -D, --all-repeated[=delimit-method] print all duplicate lines\n longopt_re = --[a-z][0-9A-Za-z-]*(\[?=[0-9A-Za-z-]*\]?)? sc_two_space_separator_in_usage: @prohibit='^ *(-[A-Za-z],)? $(longopt_re) [^ ].*\\$$' \ halt='help2man requires at least two spaces between an option and its description'\ $(_sc_search_regexp) # A regexp matching function names like "error" that may be used # to emit translatable messages. _gl_translatable_diag_func_re ?= error # Look for diagnostics that aren't marked for translation. # This won't find any for which error's format string is on a separate line. sc_unmarked_diagnostics: @grep -nE \ '\<$(_gl_translatable_diag_func_re) *\([^"]*"[^"]*[a-z]{3}' \ $$($(VC_LIST_EXCEPT)) \ | grep -Ev '(_|ngettext ?)\(' && \ { echo '$(ME): found unmarked diagnostic(s)' 1>&2; \ exit 1; } || : # Avoid useless parentheses like those in this example: # #if defined (SYMBOL) || defined (SYM2) sc_useless_cpp_parens: @prohibit='^# *if .*defined *\(' \ halt='found useless parentheses in cpp directive' \ $(_sc_search_regexp) # List headers for which HAVE_HEADER_H is always true, assuming you are # using the appropriate gnulib module. CAUTION: for each "unnecessary" # #if HAVE_HEADER_H that you remove, be sure that your project explicitly # requires the gnulib module that guarantees the usability of that header. gl_assured_headers_ = \ cd $(gnulib_dir)/lib && echo *.in.h|sed 's/\.in\.h//g' # Convert the list of names to upper case, and replace each space with "|". az_ = abcdefghijklmnopqrstuvwxyz AZ_ = ABCDEFGHIJKLMNOPQRSTUVWXYZ gl_header_upper_case_or_ = \ $$($(gl_assured_headers_) \ | tr $(az_)/.- $(AZ_)___ \ | tr -s ' ' '|' \ ) sc_prohibit_always_true_header_tests: @or=$(gl_header_upper_case_or_); \ re="HAVE_($$or)_H"; \ prohibit='\<'"$$re"'\>' \ halt=$$(printf '%s\n' \ 'do not test the above HAVE_
_H symbol(s);' \ ' with the corresponding gnulib module, they are always true') \ $(_sc_search_regexp) # ================================================================== gl_other_headers_ ?= \ intprops.h \ openat.h \ stat-macros.h # Perl -lne code to extract "significant" cpp-defined symbols from a # gnulib header file, eliminating a few common false-positives. # The exempted names below are defined only conditionally in gnulib, # and hence sometimes must/may be defined in application code. gl_extract_significant_defines_ = \ /^\# *define ([^_ (][^ (]*)(\s*\(|\s+\w+)/\ && $$2 !~ /(?:rpl_|_used_without_)/\ && $$1 !~ /^(?:NSIG|ENODATA)$$/\ && $$1 !~ /^(?:SA_RESETHAND|SA_RESTART)$$/\ and print $$1 # Create a list of regular expressions matching the names # of macros that are guaranteed to be defined by parts of gnulib. define def_sym_regex gen_h=$(gl_generated_headers_); \ (cd $(gnulib_dir)/lib; \ for f in *.in.h $(gl_other_headers_); do \ test -f $$f \ && perl -lne '$(gl_extract_significant_defines_)' $$f; \ done; \ ) | sort -u \ | sed 's/^/^ *# *(define|undef) */;s/$$/\\>/' endef # Don't define macros that we already get from gnulib header files. sc_prohibit_always-defined_macros: @if test -d $(gnulib_dir); then \ case $$(echo all: | grep -l -f - Makefile) in Makefile);; *) \ echo '$(ME): skipping $@: you lack GNU grep' 1>&2; exit 0;; \ esac; \ $(def_sym_regex) | grep -E -f - $$($(VC_LIST_EXCEPT)) \ && { echo '$(ME): define the above via some gnulib .h file' \ 1>&2; exit 1; } || :; \ fi # ================================================================== # Prohibit checked in backup files. sc_prohibit_backup_files: @$(VC_LIST) | grep '~$$' && \ { echo '$(ME): found version controlled backup file' 1>&2; \ exit 1; } || : # Require the latest GPL. sc_GPL_version: @prohibit='either ''version [^3]' \ halt='GPL vN, N!=3' \ $(_sc_search_regexp) # Require the latest GFDL. Two regexp, since some .texi files end up # line wrapping between 'Free Documentation License,' and 'Version'. _GFDL_regexp = (Free ''Documentation.*Version 1\.[^3]|Version 1\.[^3] or any) sc_GFDL_version: @prohibit='$(_GFDL_regexp)' \ halt='GFDL vN, N!=3' \ $(_sc_search_regexp) # Don't use Texinfo's @acronym{}. # http://lists.gnu.org/archive/html/bug-gnulib/2010-03/msg00321.html texinfo_suffix_re_ ?= \.(txi|texi(nfo)?)$$ sc_texinfo_acronym: @prohibit='@acronym\{' \ in_vc_files='$(texinfo_suffix_re_)' \ halt='found use of Texinfo @acronym{}' \ $(_sc_search_regexp) cvs_keywords = \ Author|Date|Header|Id|Name|Locker|Log|RCSfile|Revision|Source|State sc_prohibit_cvs_keyword: @prohibit='\$$($(cvs_keywords))\$$' \ halt='do not use CVS keyword expansion' \ $(_sc_search_regexp) # This Perl code is slightly obfuscated. Not only is each "$" doubled # because it's in a Makefile, but the $$c's are comments; we cannot # use "#" due to the way the script ends up concatenated onto one line. # It would be much more concise, and would produce better output (including # counts) if written as: # perl -ln -0777 -e '/\n(\n+)$/ and print "$ARGV: ".length $1' ... # but that would be far less efficient, reading the entire contents # of each file, rather than just the last two bytes of each. # In addition, while the code below detects both blank lines and a missing # newline at EOF, the above detects only the former. # # This is a perl script that is expected to be the single-quoted argument # to a command-line "-le". The remaining arguments are file names. # Print the name of each file that ends in exactly one newline byte. # I.e., warn if there are blank lines (2 or more newlines), or if the # last byte is not a newline. However, currently we don't complain # about any file that contains exactly one byte. # Exit nonzero if at least one such file is found, otherwise, exit 0. # Warn about, but otherwise ignore open failure. Ignore seek/read failure. # # Use this if you want to remove trailing empty lines from selected files: # perl -pi -0777 -e 's/\n\n+$/\n/' files... # require_exactly_one_NL_at_EOF_ = \ foreach my $$f (@ARGV) \ { \ open F, "<", $$f or (warn "failed to open $$f: $$!\n"), next; \ my $$p = sysseek (F, -2, 2); \ my $$c = "seek failure probably means file has < 2 bytes; ignore"; \ my $$last_two_bytes; \ defined $$p and $$p = sysread F, $$last_two_bytes, 2; \ close F; \ $$c = "ignore read failure"; \ $$p && ($$last_two_bytes eq "\n\n" \ || substr ($$last_two_bytes,1) ne "\n") \ and (print $$f), $$fail=1; \ } \ END { exit defined $$fail } sc_prohibit_empty_lines_at_EOF: @perl -le '$(require_exactly_one_NL_at_EOF_)' $$($(VC_LIST_EXCEPT)) \ || { echo '$(ME): empty line(s) or no newline at EOF' \ 1>&2; exit 1; } || : # Make sure we don't use st_blocks. Use ST_NBLOCKS instead. # This is a bit of a kludge, since it prevents use of the string # even in comments, but for now it does the job with no false positives. sc_prohibit_stat_st_blocks: @prohibit='[.>]st_blocks' \ halt='do not use st_blocks; use ST_NBLOCKS' \ $(_sc_search_regexp) # Make sure we don't define any S_IS* macros in src/*.c files. # They're already defined via gnulib's sys/stat.h replacement. sc_prohibit_S_IS_definition: @prohibit='^ *# *define *S_IS' \ halt='do not define S_IS* macros; include ' \ $(_sc_search_regexp) # Perl block to convert a match to FILE_NAME:LINENO:TEST, # that is shared by two definitions below. perl_filename_lineno_text_ = \ -e ' {' \ -e ' $$n = ($$` =~ tr/\n/\n/ + 1);' \ -e ' ($$v = $$&) =~ s/\n/\\n/g;' \ -e ' print "$$ARGV:$$n:$$v\n";' \ -e ' }' prohibit_doubled_word_RE_ ?= \ /\b(then?|[iao]n|i[fst]|but|f?or|at|and|[dt]o)\s+\1\b/gims prohibit_doubled_word_ = \ -e 'while ($(prohibit_doubled_word_RE_))' \ $(perl_filename_lineno_text_) # Define this to a regular expression that matches # any filename:dd:match lines you want to ignore. # The default is to ignore no matches. ignore_doubled_word_match_RE_ ?= ^$$ sc_prohibit_doubled_word: @perl -n -0777 $(prohibit_doubled_word_) $$($(VC_LIST_EXCEPT)) \ | grep -vE '$(ignore_doubled_word_match_RE_)' \ | grep . && { echo '$(ME): doubled words' 1>&2; exit 1; } || : # A regular expression matching undesirable combinations of words like # "can not"; this matches them even when the two words appear on different # lines, but not when there is an intervening delimiter like "#" or "*". prohibit_undesirable_word_seq_RE_ ?= \ /\bcan\s+not\b/gims prohibit_undesirable_word_seq_ = \ -e 'while ($(prohibit_undesirable_word_seq_RE_))' \ $(perl_filename_lineno_text_) # Define this to a regular expression that matches # any filename:dd:match lines you want to ignore. # The default is to ignore no matches. ignore_undesirable_word_sequence_RE_ ?= ^$$ sc_prohibit_undesirable_word_seq: @perl -n -0777 $(prohibit_undesirable_word_seq_) \ $$($(VC_LIST_EXCEPT)) \ | grep -vE '$(ignore_undesirable_word_sequence_RE_)' | grep . \ && { echo '$(ME): undesirable word sequence' >&2; exit 1; } || : _ptm1 = use "test C1 && test C2", not "test C1 -''a C2" _ptm2 = use "test C1 || test C2", not "test C1 -''o C2" # Using test's -a and -o operators is not portable. # We prefer test over [, since the latter is spelled [[ in configure.ac. sc_prohibit_test_minus_ao: @prohibit='(\ /dev/null \ || { fail=1; echo 1>&2 "$(ME): $$p uses proper_name_utf8"; }; \ done; \ test $$fail = 1 && \ { echo 1>&2 '$(ME): the above do not link with any ICONV library'; \ exit 1; } || :; \ fi # Warn about "c0nst struct Foo const foo[]", # but not about "char const *const foo" or "#define const const". sc_redundant_const: @prohibit='\bconst\b[[:space:][:alnum:]]{2,}\bconst\b' \ halt='redundant "const" in declarations' \ $(_sc_search_regexp) sc_const_long_option: @grep '^ *static.*struct option ' $$($(VC_LIST_EXCEPT)) \ | grep -Ev 'const struct option|struct option const' && { \ echo 1>&2 '$(ME): add "const" to the above declarations'; \ exit 1; } || : NEWS_hash = \ $$(sed -n '/^\*.* $(PREV_VERSION_REGEXP) ([0-9-]*)/,$$p' \ $(srcdir)/NEWS \ | perl -0777 -pe \ 's/^Copyright.+?Free\sSoftware\sFoundation,\sInc\.\n//ms' \ | md5sum - \ | sed 's/ .*//') # Ensure that we don't accidentally insert an entry into an old NEWS block. sc_immutable_NEWS: @if test -f $(srcdir)/NEWS; then \ test "$(NEWS_hash)" = '$(old_NEWS_hash)' && : || \ { echo '$(ME): you have modified old NEWS' 1>&2; exit 1; }; \ fi # Update the hash stored above. Do this after each release and # for any corrections to old entries. update-NEWS-hash: NEWS perl -pi -e 's/^(old_NEWS_hash[ \t]+:?=[ \t]+).*/$${1}'"$(NEWS_hash)/" \ $(srcdir)/cfg.mk # Ensure that we use only the standard $(VAR) notation, # not @...@ in Makefile.am, now that we can rely on automake # to emit a definition for each substituted variable. # However, there is still one case in which @VAR@ use is not just # legitimate, but actually required: when augmenting an automake-defined # variable with a prefix. For example, gettext uses this: # MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@ # otherwise, makeinfo would put German or French (current locale) # navigation hints in the otherwise-English documentation. # # Allow the package to add exceptions via a hook in cfg.mk; # for example, @PRAGMA_SYSTEM_HEADER@ can be permitted by # setting this to ' && !/PRAGMA_SYSTEM_HEADER/'. _makefile_at_at_check_exceptions ?= sc_makefile_at_at_check: @perl -ne '/\@[A-Z_0-9]+\@/' \ -e ' && !/([A-Z_0-9]+)\s+=.*\@\1\@$$/' \ -e ''$(_makefile_at_at_check_exceptions) \ -e 'and (print "$$ARGV:$$.: $$_"), $$m=1; END {exit !$$m}' \ $$($(VC_LIST_EXCEPT) | grep -E '(^|/)(Makefile\.am|[^/]+\.mk)$$') \ && { echo '$(ME): use $$(...), not @...@' 1>&2; exit 1; } || : news-check: NEWS if sed -n $(news-check-lines-spec)p $(srcdir)/NEWS \ | grep -E $(news-check-regexp) >/dev/null; then \ :; \ else \ echo 'NEWS: $$(news-check-regexp) failed to match' 1>&2; \ exit 1; \ fi sc_makefile_TAB_only_indentation: @prohibit='^ [ ]{8}' \ in_vc_files='akefile|\.mk$$' \ halt='found TAB-8-space indentation' \ $(_sc_search_regexp) sc_m4_quote_check: @prohibit='(AC_DEFINE(_UNQUOTED)?|AC_DEFUN)\([^[]' \ in_vc_files='(^configure\.ac|\.m4)$$' \ halt='quote the first arg to AC_DEF*' \ $(_sc_search_regexp) fix_po_file_diag = \ 'you have changed the set of files with translatable diagnostics;\n\ apply the above patch\n' # Verify that all source files using _() are listed in po/POTFILES.in. po_file ?= $(srcdir)/po/POTFILES.in generated_files ?= $(srcdir)/lib/*.[ch] sc_po_check: @if test -f $(po_file); then \ grep -E -v '^(#|$$)' $(po_file) \ | grep -v '^src/false\.c$$' | sort > $@-1; \ files=; \ for file in $$($(VC_LIST_EXCEPT)) $(generated_files); do \ test -r $$file || continue; \ case $$file in \ *.m4|*.mk) continue ;; \ *.?|*.??) ;; \ *) continue;; \ esac; \ case $$file in \ *.[ch]) \ base=`expr " $$file" : ' \(.*\)\..'`; \ { test -f $$base.l || test -f $$base.y; } && continue;; \ esac; \ files="$$files $$file"; \ done; \ grep -E -l '\b(N?_|gettext *)\([^)"]*("|$$)' $$files \ | sed 's|^$(_dot_escaped_srcdir)/||' | sort -u > $@-2; \ diff -u -L $(po_file) -L $(po_file) $@-1 $@-2 \ || { printf '$(ME): '$(fix_po_file_diag) 1>&2; exit 1; }; \ rm -f $@-1 $@-2; \ fi # Sometimes it is useful to change the PATH environment variable # in Makefiles. When doing so, it's better not to use the Unix-centric # path separator of `:', but rather the automake-provided `$(PATH_SEPARATOR)'. msg = '$(ME): Do not use `:'\'' above; use $$(PATH_SEPARATOR) instead' sc_makefile_path_separator_check: @prohibit='PATH[=].*:' \ in_vc_files='akefile|\.mk$$' \ halt=$(msg) \ $(_sc_search_regexp) # Check that `make alpha' will not fail at the end of the process, # i.e., when pkg-M.N.tar.xz already exists (either in "." or in ../release) # and is read-only. writable-files: if test -d $(release_archive_dir); then \ for file in $(DIST_ARCHIVES); do \ for p in ./ $(release_archive_dir)/; do \ test -e $$p$$file || continue; \ test -w $$p$$file \ || { echo ERROR: $$p$$file is not writable; fail=1; }; \ done; \ done; \ test "$$fail" && exit 1 || : ; \ else :; \ fi v_etc_file = $(gnulib_dir)/lib/version-etc.c sample-test = tests/sample-test texi = doc/$(PACKAGE).texi # Make sure that the copyright date in $(v_etc_file) is up to date. # Do the same for the $(sample-test) and the main doc/.texi file. sc_copyright_check: @require='enum { COPYRIGHT_YEAR = '$$(date +%Y)' };' \ in_files=$(v_etc_file) \ halt='out of date copyright in $(v_etc_file); update it' \ $(_sc_search_regexp) @require='# Copyright \(C\) '$$(date +%Y)' Free' \ in_vc_files=$(sample-test) \ halt='out of date copyright in $(sample-test); update it' \ $(_sc_search_regexp) @require='Copyright @copyright\{\} .*'$$(date +%Y)' Free' \ in_vc_files=$(texi) \ halt='out of date copyright in $(texi); update it' \ $(_sc_search_regexp) # If tests/help-version exists and seems to be new enough, assume that its # use of init.sh and path_prepend_ is correct, and ensure that every other # use of init.sh is identical. # This is useful because help-version cross-checks prog --version # with $(VERSION), which verifies that its path_prepend_ invocation # sets PATH correctly. This is an inexpensive way to ensure that # the other init.sh-using tests also get it right. _hv_file ?= $(srcdir)/tests/help-version _hv_regex_weak ?= ^ *\. .*/init\.sh" # Fix syntax-highlighters " _hv_regex_strong ?= ^ *\. "\$${srcdir=\.}/init\.sh" sc_cross_check_PATH_usage_in_tests: @if test -f $(_hv_file); then \ grep -l 'VERSION mismatch' $(_hv_file) >/dev/null \ || { echo "$@: skipped: no such file: $(_hv_file)" 1>&2; \ exit 0; }; \ grep -lE '$(_hv_regex_strong)' $(_hv_file) >/dev/null \ || { echo "$@: $(_hv_file) lacks conforming use of init.sh" 1>&2; \ exit 1; }; \ good=$$(grep -E '$(_hv_regex_strong)' $(_hv_file)); \ grep -LFx "$$good" \ $$(grep -lE '$(_hv_regex_weak)' $$($(VC_LIST_EXCEPT))) \ | grep . && \ { echo "$(ME): the above files use path_prepend_ inconsistently" \ 1>&2; exit 1; } || :; \ fi # #if HAVE_... will evaluate to false for any non numeric string. # That would be flagged by using -Wundef, however gnulib currently # tests many undefined macros, and so we can't enable that option. # So at least preclude common boolean strings as macro values. sc_Wundef_boolean: @prohibit='^#define.*(yes|no|true|false)$$' \ in_files='$(CONFIG_INCLUDE)' \ halt='Use 0 or 1 for macro values' \ $(_sc_search_regexp) # Even if you use pathmax.h to guarantee that PATH_MAX is defined, it might # not be constant, or might overflow a stack. In general, use PATH_MAX as # a limit, not an array or alloca size. sc_prohibit_path_max_allocation: @prohibit='(\balloca *\([^)]*|\[[^]]*)PATH_MAX' \ halt='Avoid stack allocations of size PATH_MAX' \ $(_sc_search_regexp) sc_vulnerable_makefile_CVE-2009-4029: @prohibit='perm -777 -exec chmod a\+rwx|chmod 777 \$$\(distdir\)' \ in_files=$$(find $(srcdir) -name Makefile.in) \ halt=$$(printf '%s\n' \ 'the above files are vulnerable; beware of running' \ ' "make dist*" rules, and upgrade to fixed automake' \ ' see http://bugzilla.redhat.com/542609 for details') \ $(_sc_search_regexp) vc-diff-check: (unset CDPATH; cd $(srcdir) && $(VC) diff) > vc-diffs || : if test -s vc-diffs; then \ cat vc-diffs; \ echo "Some files are locally modified:" 1>&2; \ exit 1; \ else \ rm vc-diffs; \ fi rel-files = $(DIST_ARCHIVES) gnulib_dir ?= $(srcdir)/gnulib gnulib-version = $$(cd $(gnulib_dir) && git describe) bootstrap-tools ?= autoconf,automake,gnulib # If it's not already specified, derive the GPG key ID from # the signed tag we've just applied to mark this release. gpg_key_ID ?= \ $$(git cat-file tag v$(VERSION) > .ann-sig \ && gpgv .ann-sig - < /dev/null 2>&1 \ | sed -n '/.*key ID \([0-9A-F]*\)/s//\1/p'; rm -f .ann-sig) translation_project_ ?= coordinator@translationproject.org # Make info-gnu the default only for a stable release. ifeq ($(RELEASE_TYPE),stable) announcement_Cc_ ?= $(translation_project_), $(PACKAGE_BUGREPORT) announcement_mail_headers_ ?= \ To: info-gnu@gnu.org \ Cc: $(announcement_Cc_) \ Mail-Followup-To: $(PACKAGE_BUGREPORT) else announcement_Cc_ ?= $(translation_project_) announcement_mail_headers_ ?= \ To: $(PACKAGE_BUGREPORT) \ Cc: $(announcement_Cc_) endif announcement: NEWS ChangeLog $(rel-files) @$(srcdir)/$(_build-aux)/announce-gen \ --mail-headers='$(announcement_mail_headers_)' \ --release-type=$(RELEASE_TYPE) \ --package=$(PACKAGE) \ --prev=$(PREV_VERSION) \ --curr=$(VERSION) \ --gpg-key-id=$(gpg_key_ID) \ --news=$(srcdir)/NEWS \ --bootstrap-tools=$(bootstrap-tools) \ --gnulib-version=$(gnulib-version) \ --no-print-checksums \ $(addprefix --url-dir=, $(url_dir_list)) ## ---------------- ## ## Updating files. ## ## ---------------- ## ftp-gnu = ftp://ftp.gnu.org/gnu www-gnu = http://www.gnu.org upload_dest_dir_ ?= $(PACKAGE) emit_upload_commands: @echo ===================================== @echo ===================================== @echo "$(srcdir)/$(_build-aux)/gnupload $(GNUPLOADFLAGS) \\" @echo " --to $(gnu_rel_host):$(upload_dest_dir_) \\" @echo " $(rel-files)" @echo '# send the ~/announce-$(my_distdir) e-mail' @echo ===================================== @echo ===================================== define emit-commit-log printf '%s\n' 'maint: post-release administrivia' '' \ '* NEWS: Add header line for next release.' \ '* .prev-version: Record previous version.' \ '* cfg.mk (old_NEWS_hash): Auto-update.' endef .PHONY: no-submodule-changes no-submodule-changes: if test -d $(srcdir)/.git; then \ diff=$$(cd $(srcdir) && git submodule -q foreach \ git diff-index --name-only HEAD) \ || exit 1; \ case $$diff in '') ;; \ *) echo '$(ME): submodule files are locally modified:'; \ echo "$$diff"; exit 1;; esac; \ else \ : ; \ fi submodule-checks ?= no-submodule-changes public-submodule-commit # Ensure that each sub-module commit we're using is public. # Without this, it is too easy to tag and release code that # cannot be built from a fresh clone. .PHONY: public-submodule-commit public-submodule-commit: $(AM_V_GEN)if test -d $(srcdir)/.git; then \ cd $(srcdir) && \ git submodule --quiet foreach test '$$(git rev-parse $$sha1)' \ = '$$(git merge-base origin $$sha1)' \ || { echo '$(ME): found non-public submodule commit' >&2; \ exit 1; }; \ else \ : ; \ fi # This rule has a high enough utility/cost ratio that it should be a # dependent of "check" by default. However, some of us do occasionally # commit a temporary change that deliberately points to a non-public # submodule commit, and want to be able to use rules like "make check". # In that case, run e.g., "make check gl_public_submodule_commit=" # to disable this test. gl_public_submodule_commit ?= public-submodule-commit check: $(gl_public_submodule_commit) .PHONY: alpha beta stable ALL_RECURSIVE_TARGETS += alpha beta stable alpha beta stable: $(local-check) writable-files $(submodule-checks) test $@ = stable \ && { echo $(VERSION) | grep -E '^[0-9]+(\.[0-9]+)+$$' \ || { echo "invalid version string: $(VERSION)" 1>&2; exit 1;};}\ || : $(MAKE) vc-diff-check $(MAKE) news-check $(MAKE) distcheck $(MAKE) dist XZ_OPT=-9ev $(MAKE) $(release-prep-hook) RELEASE_TYPE=$@ $(MAKE) -s emit_upload_commands RELEASE_TYPE=$@ # Override this in cfg.mk if you follow different procedures. release-prep-hook ?= release-prep gl_noteworthy_news_ = * Noteworthy changes in release ?.? (????-??-??) [?] .PHONY: release-prep release-prep: case $$RELEASE_TYPE in alpha|beta|stable) ;; \ *) echo "invalid RELEASE_TYPE: $$RELEASE_TYPE" 1>&2; exit 1;; esac $(MAKE) --no-print-directory -s announcement > ~/announce-$(my_distdir) if test -d $(release_archive_dir); then \ ln $(rel-files) $(release_archive_dir); \ chmod a-w $(rel-files); \ fi echo $(VERSION) > $(prev_version_file) $(MAKE) update-NEWS-hash perl -pi -e '$$. == 3 and print "$(gl_noteworthy_news_)\n\n\n"' NEWS $(emit-commit-log) > .ci-msg $(VC) commit -F .ci-msg -a rm .ci-msg # Override this with e.g., -s $(srcdir)/some_other_name.texi # if the default $(PACKAGE)-derived name doesn't apply. gendocs_options_ ?= .PHONY: web-manual web-manual: @test -z "$(manual_title)" \ && { echo define manual_title in cfg.mk 1>&2; exit 1; } || : @cd '$(srcdir)/doc'; \ $(SHELL) ../$(_build-aux)/gendocs.sh $(gendocs_options_) \ -o '$(abs_builddir)/doc/manual' \ --email $(PACKAGE_BUGREPORT) $(PACKAGE) \ "$(PACKAGE_NAME) - $(manual_title)" @echo " *** Upload the doc/manual directory to web-cvs." # Code Coverage init-coverage: $(MAKE) $(AM_MAKEFLAGS) clean lcov --directory . --zerocounters COVERAGE_CCOPTS ?= "-g --coverage" COVERAGE_OUT ?= doc/coverage build-coverage: $(MAKE) $(AM_MAKEFLAGS) CFLAGS=$(COVERAGE_CCOPTS) CXXFLAGS=$(COVERAGE_CCOPTS) $(MAKE) $(AM_MAKEFLAGS) CFLAGS=$(COVERAGE_CCOPTS) CXXFLAGS=$(COVERAGE_CCOPTS) check mkdir -p $(COVERAGE_OUT) lcov --directory . --output-file $(COVERAGE_OUT)/$(PACKAGE).info \ --capture gen-coverage: genhtml --output-directory $(COVERAGE_OUT) \ $(COVERAGE_OUT)/$(PACKAGE).info \ --highlight --frames --legend \ --title "$(PACKAGE_NAME)" coverage: init-coverage build-coverage gen-coverage # Update gettext files. PACKAGE ?= $(shell basename $(PWD)) PO_DOMAIN ?= $(PACKAGE) POURL = http://translationproject.org/latest/$(PO_DOMAIN)/ PODIR ?= po refresh-po: rm -f $(PODIR)/*.po && \ echo "$(ME): getting translations into po (please ignore the robots.txt ERROR 404)..." && \ wget --no-verbose --directory-prefix $(PODIR) --no-directories --recursive --level 1 --accept .po --accept .po.1 $(POURL) && \ echo 'en@boldquot' > $(PODIR)/LINGUAS && \ echo 'en@quot' >> $(PODIR)/LINGUAS && \ ls $(PODIR)/*.po | sed 's/\.po//' | sed 's,$(PODIR)/,,' | sort >> $(PODIR)/LINGUAS # Running indent once is not idempotent, but running it twice is. INDENT_SOURCES ?= $(C_SOURCES) .PHONY: indent indent: indent $(INDENT_SOURCES) indent $(INDENT_SOURCES) # If you want to set UPDATE_COPYRIGHT_* environment variables, # put the assignments in this variable. update-copyright-env ?= # Run this rule once per year (usually early in January) # to update all FSF copyright year lists in your project. # If you have an additional project-specific rule, # add it in cfg.mk along with a line 'update-copyright: prereq'. # By default, exclude all variants of COPYING; you can also # add exemptions (such as ChangeLog..* for rotated change logs) # in the file .x-update-copyright. .PHONY: update-copyright update-copyright: grep -l -w Copyright \ $$(export VC_LIST_EXCEPT_DEFAULT=COPYING && $(VC_LIST_EXCEPT)) \ | $(update-copyright-env) xargs $(srcdir)/$(_build-aux)/$@ # This tight_scope test is skipped with a warning if $(_gl_TS_headers) is not # overridden and $(_gl_TS_dir)/Makefile.am does not mention noinst_HEADERS. # NOTE: to override any _gl_TS_* default value, you must # define the variable(s) using "export" in cfg.mk. _gl_TS_dir ?= src ALL_RECURSIVE_TARGETS += sc_tight_scope sc_tight_scope: tight-scope.mk @fail=0; \ if ! grep '^ *export _gl_TS_headers *=' $(srcdir)/cfg.mk \ > /dev/null \ && ! grep -w noinst_HEADERS $(srcdir)/$(_gl_TS_dir)/Makefile.am \ > /dev/null 2>&1; then \ echo '$(ME): skipping $@'; \ else \ $(MAKE) -s -C $(_gl_TS_dir) \ -f Makefile \ -f $(abs_top_srcdir)/cfg.mk \ -f $(abs_top_builddir)/$< \ _gl_tight_scope \ || fail=1; \ fi; \ rm -f $<; \ exit $$fail tight-scope.mk: $(ME) @rm -f $@ $@-t @perl -ne '/^# TS-start/.../^# TS-end/ and print' $(ME) > $@-t @chmod a=r $@-t && mv $@-t $@ ifeq (a,b) # TS-start # Most functions should have static scope. # Any that don't must be marked with `extern', but `main' # and `usage' are exceptions: they're always extern, but # do not need to be marked. Symbols matching `__.*' are # reserved by the compiler, so are automatically excluded below. _gl_TS_unmarked_extern_functions ?= main usage _gl_TS_function_match ?= /^(?:$(_gl_TS_extern)) +.*?(\S+) *\(/ # If your project uses a macro like "XTERN", then put # the following in cfg.mk to override this default: # export _gl_TS_extern = extern|XTERN _gl_TS_extern ?= extern # The second nm|grep checks for file-scope variables with `extern' scope. # Without gnulib's progname module, you might put program_name here. # Symbols matching `__.*' are reserved by the compiler, # so are automatically excluded below. _gl_TS_unmarked_extern_vars ?= # NOTE: the _match variables are perl expressions -- not mere regular # expressions -- so that you can extend them to match other patterns # and easily extract matched variable names. # For example, if your project declares some global variables via # a macro like this: GLOBAL(type, var_name, initializer), then you # can override this definition to automatically extract those names: # export _gl_TS_var_match = \ # /^(?:$(_gl_TS_extern)) .*?\**(\w+)(\[.*?\])?;/ || /\bGLOBAL\(.*?,\s*(.*?),/ _gl_TS_var_match ?= /^(?:$(_gl_TS_extern)) .*?(\w+)(\[.*?\])?;/ # The names of object files in (or relative to) $(_gl_TS_dir). _gl_TS_obj_files ?= *.$(OBJEXT) # Files in which to search for the one-line style extern declarations. # $(_gl_TS_dir)-relative. _gl_TS_headers ?= $(noinst_HEADERS) .PHONY: _gl_tight_scope _gl_tight_scope: $(bin_PROGRAMS) t=exceptions-$$$$; \ trap 's=$$?; rm -f $$t; exit $$s' 0; \ for sig in 1 2 3 13 15; do \ eval "trap 'v=`expr $$sig + 128`; (exit $$v); exit $$v' $$sig"; \ done; \ src=`for f in $(SOURCES); do \ test -f $$f && d= || d=$(srcdir)/; echo $$d$$f; done`; \ hdr=`for f in $(_gl_TS_headers); do \ test -f $$f && d= || d=$(srcdir)/; echo $$d$$f; done`; \ ( printf '^%s$$\n' '__.*' $(_gl_TS_unmarked_extern_functions); \ grep -h -A1 '^extern .*[^;]$$' $$src \ | grep -vE '^(extern |--)' | sed 's/ .*//'; \ perl -lne \ '$(_gl_TS_function_match) and print "^$$1\$$"' $$hdr; \ ) | sort -u > $$t; \ nm -e $(_gl_TS_obj_files) | sed -n 's/.* T //p'|grep -Ev -f $$t \ && { echo the above functions should have static scope >&2; \ exit 1; } || : ; \ ( printf '^%s$$\n' '__.*' $(_gl_TS_unmarked_extern_vars); \ perl -lne '$(_gl_TS_var_match) and print "^$$1\$$"' $$hdr *.h \ ) | sort -u > $$t; \ nm -e $(_gl_TS_obj_files) | sed -n 's/.* [BCDGRS] //p' \ | sort -u | grep -Ev -f $$t \ && { echo the above variables should have static scope >&2; \ exit 1; } || : # TS-end endif libvirt-glib-1.0.0/README0000664000000000000000000000653413004340477011661 00000000000000libvirt-glib ============ libvirt is a C toolkit to interact with the virtualization capabilities of recent versions of Linux (and other OSes). It is free software available under the GNU Lesser General Public License. Virtualization on the Linux Operating System means the ability to run multiple instances of Operating Systems concurrently on a single hardware system where the basic resources are driven by a Linux instance. The library aim at providing long term stable C API initially for the Xen paravirtualization but should be able to integrate other virtualization mechanisms if needed. libvirt-glib wraps libvirt to provide a high-level object-oriented API better suited for glib-based applications, via three libraries: - libvirt-glib - GLib main loop integration & misc helper APIs - libvirt-gconfig - GObjects for manipulating libvirt XML documents - libvirt-gobject - GObjects for managing libvirt objects libvirt-glib is Free Software and licenced under LGPLv2+. The latest official releases can be found at: ftp://libvirt.org/libvirt/glib/ NB: at this time, libvirt-glib is *NOT* considered API/ABI stable. Future releases may still include API/ABI incompatible changes. Dependencies / supported platforms ================================== The libvirt-glib projects attempts to be moderately conservative about updating the minimum required versions of external package dependencies, to strike a balance between enabling use of new features while minimizing inconvenience for downstream developers on distro platforms with specific shipped versions. There are roughly two classes of Linux distro - short lifetime (Fedora, Ubuntu non-LTS, etc) and extended lifetime (RHEL, CentOS, Debian, Ubuntu LTS). Based on this classification, the libvirt-glib project will generally aim to ensure build support for - Most recent 2 releases of short lifetime distros - Most recent major release of extended lifetime distros, with most recent 2 minor updates The project will consider RHEL, Fedora, Debian, Ubuntu LTS, Ubuntu, OpenSUSE and SUSE (SLES/SLED) distros to be a representative subset of distros when determining min required versions of external deps that is reasonable to target. Other distros of similar release vintage will typically have similar versions to at least one of these distros. In the case of Debian, the project may at times choose to require use of an update from the backports repository. At any time, it may be possible to build on versions of distros that are older than those implied by this policy, but the project will not guarantee this remains the case in future releases. The min required package versions of external dependencies may be raised in future releases based on this distro build target policy. The packages required to build libvirt-glib are - glib-2.0 - gobject-2.0 - libxml-2.0 - libvirt Functionality is optionally enhanced by the following packages: - gobject-introspection - Vala (build-time only) Patches submissions =================== Patch submissions are welcomed from any interested contributor. Please send them to the main libvir-list mailing list libvir-list@redhat.com Questions about usage / deployment can be send to the end users mailing list libvirt-users@redhat.com For further information about mailing lists & contacting the developers, please consult http://libvirt.org/contact.html --End libvirt-glib-1.0.0/AUTHORS.in0000664000000000000000000000060313004340477012445 00000000000000 libvirt-glib Authors ==================== The primary maintainers of libvirt-glib are: Christophe Fergeau Daniel P. Berrange Marc-André Lureau Zeeshan Ali (Khattak) Patches have been received from: #authorslist# ... send patches to get your name added ... libvirt-glib-1.0.0/libvirt-glib-1.0.pc.in0000664000000000000000000000050313004340477014602 00000000000000prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ Name: libvirt-glib Version: @VERSION@ Description: libvirt glib library Requires: glib-2.0 Libs: -L${libdir} -lvirt-glib-1.0 Libs.private: @LIBVIRT_LIBS@ @GLIB2_LIBS@ Cflags: -I${includedir}/libvirt-glib-1.0 @LIBVIRT_CFLAGS@ @GLIB2_CFLAGS@ libvirt-glib-1.0.0/ChangeLog0000664000000000000000000040631613007136424012553 000000000000002016-11-04 Daniel P. Berrange Update NEWS for 1.0.0 release bump release to 1.0.0 to match libvirt numbering scheme Switch to follow the libvirt release numbering scheme - Major is incremented at start of each year - Minor is incremented each release during a year - Micro is reserved for stable branch releases (if any) 2016-11-04 Christophe Fergeau tests: Don't leak xml data in test-gconfig-device-unknown 2016-11-04 Zeeshan Ali gconfig,tests: Add test case for unknown devices 2016-11-03 Zeeshan Ali gconfig,tests: Separate XML loading function We'll need to load XML from file in another function, that will be added in a following patch. gconfig: Create objects for all domain device nodes Currently we can and do get into serious trouble with this kind of code: devices = gvir_config_domain_get_devices(domain); gvir_config_domain_set_devices(domain, domain); since the first call above won't return a complete list of objects present in the domain but only the ones we have specific classes for and the second call above overwrites all device nodes under the domain. This lately made Boxes break against the latest libvirt, where a new device node was made compulsory[1]. Although we should add support for all know domain devices ASAP, new devices will be added in future and this can happen again. So let's first ensure that gvir_config_domain_get_devices() always returns all devices under the domain. All unknown/unimplemented devices will now be returned as the very generic DomainDevice objects. Once we add support for a particular device, there will be no API/ABI breakage since the new class will inherit from DomainDevice class. [1] https://bugzilla.redhat.com/show_bug.cgi?id=1388091 2016-11-01 Zeeshan Ali gconfig: DomainDevice now instantiable We'll need to instatiate DomainDevice baseclass itself for unknown (think new devices added to libvirt XML) devices in a following patch. This change makes that possible. This doesn't break any API or ABI to the best of my knowledge and this assumption was confirmed by Emmanuele Bassi and Tim-Philipp Muller. gconfig: Allow schema to be NULL Validation (if attempted) should just fail in this case instead of crashing. 2016-08-02 Daniel P. Berrange Delete the manually written python binding The python binding only supports python2, only supports 1 single API in libvirt-glib and has not even been enabled in RPM builds since Fedora 15. Any distro these days should have gobject introspection and pygobject available, so there's no compelling reason to continue to have the python binding exist. 2016-07-28 Daniel P. Berrange Remove accidental debug code which changed version Fix check for libvirt optional functions The checks for virDomainOpenGraphicsFD and virNetworkGetDHCPLeases in configure are simply trying to compile and link a test program. This was assuming that libvirt was installed in /usr/lib & /usr/include, which is not always the case. Using a pkg-config version check avoids needing to compile and thus avoids the bad assumptions about install locations. Avoid unused variable in DHCP lease finalize method If the network DHCP lease support is not detected, the build will generate a warning / error: libvirt-gobject-network-dhcp-lease.c: In function 'gvir_network_dhcp_lease_finalize': libvirt-gobject-network-dhcp-lease.c:99:27: error: unused variable 'lease' [-Werror=unused-variable] GVirNetworkDHCPLease *lease = GVIR_NETWORK_DHCP_LEASE(object); ^~~~~ cc1: all warnings being treated as errors 2016-07-27 Guido Günther docs: Document gvir_connection_get_{storage_pools,networks,domains} In contrast to libvirt itself all get_* methods need to prefetch the corresponding information first so document this. Acked-by: Christophe Fergeau 2016-07-25 Zeeshan Ali (Khattak) tests: Add test for GVirConfigDomainHostdevPci API 2016-07-25 Christophe Fergeau gconfig: Add GVirConfigDomainAddressPci getters They will be useful to do more checks in the GVirDomainDeviceHostdev unit test. 2016-07-25 Zeeshan Ali (Khattak) gconfig: Add GVirConfigDomainHostdevPci Add API to read and write PCI hostdev nodes. 2016-07-22 Zeeshan Ali (Khattak) gconfig: Add GVirConfigDomainHostdev Add API to read and write domain/devices/hostdev nodes. This patch only adds the baseclass and hence is not useful on it's own. A more specific subclass to represent PCI devices will be added in a following patch. 2016-07-21 Christophe Fergeau gconfig: Add gvir_config_object_has_child 2016-07-21 Zeeshan Ali (Khattak) gconfig: Add gvir_config_domain_video_get_model() Add a getter for model of domain video device. 2016-02-26 Marc-André Lureau config: add accel3d setter Learn to set the accel3d attribute on video model. config: add virtio video model config: add spice gl child Learn to set "gl" on spice (to have -spice gl=on on qemu) tests: fix potential crash The idle source is not always removed and may crash next tests 2016-02-14 Marc-André Lureau build-sys: fix gir introspection warnings Enable GIR warnings and fix them, since they are all useful. 2015-12-26 Michal Privoznik libvirt-glib-1.0.pc.in: Correctly mark variable In the pkg-config file for libvirt-glib we have a typo: Libs.private: @LIBVIRT_LIBS @GLIB2_LIBS@ Noticed the missing '@' after LIBVIRT_LIBS? Well, I just did. 2015-12-16 Daniel P. Berrange Post release version bump Update NEWS for 0.2.3 release Refresh translations from zanata 2015-12-07 Michal Privoznik Drop unused finalize function After 1225a160ac3b4 where I'm dropping some unused variables, the functions I was touching became sort of redundant too. Specifically, gvir_domain_disk_finalize() and gvir_domain_interface_finalize(). 2015-12-05 Michal Privoznik gobject: Drop some unused variables After abe983ddf8a569 there are some variables, that are unused: CC libvirt_gobject_1_0_la-libvirt-gobject-domain-disk.lo CC libvirt_gobject_1_0_la-libvirt-gobject-domain-interface.lo CC libvirt_gobject_1_0_la-libvirt-gobject-domain.lo CC libvirt_gobject_1_0_la-libvirt-gobject-interface.lo ../../libvirt-gobject/libvirt-gobject-domain-interface.c: In function 'gvir_domain_interface_finalize': ../../libvirt-gobject/libvirt-gobject-domain-interface.c:54:26: error: unused variable 'self' [-Werror=unused-variable] GVirDomainInterface *self = GVIR_DOMAIN_INTERFACE(object); ^ cc1: all warnings being treated as errors Makefile:724: recipe for target 'libvirt_gobject_1_0_la-libvirt-gobject-domain-interface.lo' failed make[3]: *** [libvirt_gobject_1_0_la-libvirt-gobject-domain-interface.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... ../../libvirt-gobject/libvirt-gobject-domain-disk.c: In function 'gvir_domain_disk_finalize': ../../libvirt-gobject/libvirt-gobject-domain-disk.c:54:21: error: unused variable 'self' [-Werror=unused-variable] GVirDomainDisk *self = GVIR_DOMAIN_DISK(object); ^ cc1: all warnings being treated as errors Makefile:717: recipe for target 'libvirt_gobject_1_0_la-libvirt-gobject-domain-disk.lo' failed 2015-12-04 Zeeshan Ali (Khattak) gobject,gconfig: Drop redundant debug logging The g_debug messages in libvirt-gobject creation/destruction were to aid troubleshooting of object reference leaks. GObject has built-in systemtap probes that allow the same to be achieved in a more flexible manner, so the g_debug calls can be removed 2015-11-26 Zeeshan Ali (Khattak) gobject: Port to GTask API Drop usage of deprecated GSimpleAsyncResult API. 2015-11-23 Zeeshan Ali (Khattak) gobject,gconfig: Drop redundant glib compatibility code We already require and use glib >= 2.36 so there is no reason to keep around code to ensure compatibility with glib older than that. gobject: Add wrapper virDomainSetTime() 2015-09-23 Zeeshan Ali (Khattak) gobject: Correct docs for gvir_storage_pool_get_info() The returned GVirStoragePoolInfo pointer is not a GObject so it must not be unrefed using g_object_unref(). Since gvir_storage_pool_info_free() is private function, callers must either use g_slice_free() or g_boxed_free(). 2015-07-24 Daniel P. Berrange configure.ac: update min required versions Based on the distro target policy we have the following min versions in various distros libvirt glib2 gobject-introspection RHEL 7.0: 1.1.1 2.36.3 1.36.0 Fedora 21: 1.2.9 2.42.1 1.42.0 Ubuntu 14.10: 1.2.8 2.42.0 1.41.0 Ubuntu LTS 14.04: 1.2.2 2.40.0 1.40.0 Suse 12.0: 1.2.5 2.38.2 1.38.0 OpenSUSE 13.1: 1.1.2 2.38.2 1.38.0 Debian 8: 1.2.9 2.42.0 1.42.0 Which means we can reasonably depend on libvirt >= 1.1.1 glib2 >= 2.36.0 gobject-introspection >= 1.36.0 NB, choosen 2.36.0 rather than 2.36.3 because they are API compatible, the micro digit just indicates a bug fix release. README: formally document intended platform support targets Give users an indication of what distro platforms the project intends to be buildable on. This policy will be used to decide when it is appropriate to increase the minimum required versions of external dependancies. As an example, as of July 1st 2015, this policy would aim to pick the min versions based on what's available across the following sample distros: - RHEL: 7.0, 7.1 - Fedora: 21, 22 - Ubuntu LTS: 14.04 (Trusty) - Ubuntu: 14.10 (Utopic), 15.04 (Vivid) - Suse: 12.0 - OpenSUSE: 13.1, 13.2 - Debian: 8.0 (Jessie) 2015-07-22 Christophe Fergeau examples: Don't leak mainloop in conn-test.c The program exits right after this, so it's no big deal, but this gives us a clean valgrind --leak-check=full output. gconfig: Use GVirConfigObject helpers for