Codebase list libvirt-glib / d14bf12
New upstream version 0.1.2 Guido Günther 11 years ago
155 changed file(s) with 9736 addition(s) and 1823 deletion(s). Raw diff Collapse all Expand all
1212 Guido Günther <agx@sigxcpu.org>
1313 Nirbheek Chauhan <nirbheek@gentoo.org>
1414 Michal Privoznik <mprivozn@redhat.com>
15 Jovanka Gulicoska <jovanka.gulicoska@gmail.com>
1516
1617 ... send patches to get your name added ...
0 2012-08-20 Daniel P. Berrange <berrange@redhat.com>
1
2 Update NEWS for 0.1.2 release
3
4 Don't hold events lock when dispatching free callbacks
5 The _event_timeout_remove and _event_handle_remove methods
6 were holding onto the global lock when invoking the free
7 callback. This is a violation of the libvirt events API
8 contract which requires free callbacks to be invoked in
9 a re-entrant safe context.
10
11 2012-08-09 Christophe Fergeau <cfergeau@redhat.com>
12
13 Fix small typo in error message ('downlaod')
14
15 2012-08-07 Marc-André Lureau <marcandre.lureau@redhat.com>
16
17 libvirt-gobject.sym: fix resume() symbols version
18
19 Post-release version bump
20
21 2012-08-07 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
22
23 Add async variant of gvir_domain_resume()
24
25 2012-08-06 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
26
27 Release 0.1.1
28
29 2012-08-03 Jovanka Gulicoska <jovanka.gulicoska@gmail.com>
30
31 Add bindings for virDomainSnapshotCreateFlags
32
33 Add bindings for virDomainSnapshotCreateXML()
34
35 2012-07-31 Jovanka Gulicoska <jovanka.gulicoska@gmail.com>
36
37 Add bindings for virDomainRestore*()
38
39 2012-07-20 Marc-André Lureau <marcandre.lureau@redhat.com>
40
41 gobject: add GVir.DomainShutdownFlags binding
42
43 2012-07-18 Marc-André Lureau <marcandre.lureau@redhat.com>
44
45 gobject: add GVir.DomainXMLFlags binding
46
47 Post-release version bump
48
49 2012-07-16 Daniel P. Berrange <berrange@redhat.com>
50
51 Update NEWS for 0.1.0 release
52
53 Add Jovanka Gulicoska to AUTHORS
54
55 2012-07-14 Jovanka Gulicoska <jovanka.gulicoska@gmail.com>
56
57 Add bindings for virStorageDownload() & virStorageUpload()
58
59 Add bindings for virDomainSave*()
60
61 2012-06-27 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
62
63 Test cases for new domain CPU APIs
64
65 Add GVirConfigDomainCpu class
66 API to handle 'domain/cpu' nodes.
67
68 Make GVirConfigCapabilitiesCpu.get_features virtual
69 Also provide helper function for subclasses that will have the exact
70 same implementation except that they'll return instances of another type
71 (subclasses of GVirConfigDomainCpuFeature rather than
72 GVirConfigDomainCpuFeature itself).
73
74 2012-06-26 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
75
76 Add GVirConfigDomainCpuFeature class
77 API to handle 'domain/cpu/feature' nodes.
78
79 Add gvir_config_capabilities_cpu_feature_set_name()
80 Setter for CapabilitiesCpuFeature.name.
81
82 Setters for CapabilitiesCpuTopology props
83
84 Add gvir_config_capabilities_cpu_topology_new*
85 Provide constructor methods for GVirConfigCapabilitiesCpuTopology.
86
87 Setters/adders for GVirConfigCapabilitiesCpu props
88 - gvir_config_capabilities_cpu_add_feature
89 - gvir_config_capabilities_cpu_set_topology
90
91 2012-06-25 Christophe Fergeau <cfergeau@redhat.com>
92
93 Add API doc for GVirConfigDomainControllerUsb
94
95 2012-06-25 Daniel P. Berrange <berrange@redhat.com>
96
97 Bump version to 0.1.0
98
99 Update NEWS for 0.0.9 release
100
101 Move gvir_config_domain_filesys_set_ram_usage sym to correct version block
102
103 Tweaks to mingw-libvirt-glib.spec.in
104
105 Add support for domain filesystems with type=bind|ram
106 This adds support for filesystems with type=bind or type=ram,
107
108 eg
109
110 <filesystem type='bind'>
111 <source dir="/some/guest/file"/>
112 <target dir=/other/guest/file"/>
113 </filesystem>
114
115 And
116
117 <filesystem type='ram'>
118 <source usage='102400'/>
119 <target dir='/run'/>
120 </filesystem>
121
122 2012-06-25 Christophe Fergeau <cfergeau@redhat.com>
123
124 mainloop: don't reschedule deleted timeouts/watches
125 The deletion of libvirt timeouts/watches is done in 2 steps:
126 - the first step is synchronous and unregisters the timeout/watch
127 from glib mainloop
128 - the second step is asynchronous and triggered from the first step.
129 It releases the memory used for bookkeeping for the timeout/watch
130 being deleted
131
132 This is done this way to avoid some possible deadlocks when
133 reentering the sync callback while freeing the memory associated
134 with the timeout/watch.
135
136 However, it's possible to call gvir_event_update_handle after
137 gvir_event_remove_handle but before _event_handle_remove does
138 the final cleanup. When this happen, _update_handle will reregister
139 the handle with glib mainloop, and bad things will happen when
140 a glib callback is triggered for this event after _event_handle_remove
141 has freed the memory associated with this handle watch.
142
143 This commit marks the timeouts and watches as removed in the
144 synchronous _remove callback and makes sure removed timeouts/watches
145 are ignored in _update callbacks.
146
147 mainloop: protect 'handles' and 'timeouts' against concurrent accesses
148 Timeout and watch deletion is done from an idle callback. However,
149 we cannot assume that all libvirt event calls (the callbacks passed
150 to virEventRegisterImpl) will be done from the mainloop thread. It's
151 thus possible that a libvirt event call will run a thread while
152 one of the idle deletion callbacks runs.
153 Given that the 'handles' and 'timeouts' arrays are shared among all
154 threads, we need to make sure we hold the 'eventlock' mutex before
155 modifying them.
156
157 mainloop: remove unused gvir_event_{handle,timeout}_update arg
158
159 mainloop: add missing debug message
160 All timeout and watch additions/updates/removals are logged except
161 successful watch updates. This commit adds such a log message.
162
163 mainloop: improve handle operations debug messages
164 Make sure the watch ID and the address of the structure libvirt-glib
165 uses to watch the handle are always printed to make tracking operation
166 on the same watch easier.
167
168 2012-06-23 Marc-André Lureau <marcandre.lureau@redhat.com>
169
170 Add async version of gvir_domain_start
171
172 2012-06-20 Daniel P. Berrange <berrange@redhat.com>
173
174 Switch over to mingw64 toolchain for Windows builds
175
176 2012-06-19 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
177
178 Add getter for GVirConfigDomainOs.os_type
179
180 2012-06-18 Daniel P. Berrange <berrange@redhat.com>
181
182 Remove bogus check against -1 of gvir_config_genum_get_value return value
183 The gvir_config_domain_disk class was checking the return value
184 of gvir_config_genum_get_value against -1. This is impossible,
185 since this method will return the default enum value
186
187 Fix generation of filesystem device source XML element
188 When setting the filesystem source type, the code forgot to
189 update priv->type. Thus when setting the source element,
190 the incorrect attribute was being used.
191
192 2012-06-13 Christophe Fergeau <cfergeau@redhat.com>
193
194 build: allow building with newer glibc-headers and -O0
195 Commit log and autoconf snippet written by Eric Blake for libvirt.
196
197 glibc 2.15 (on Fedora 17) coupled with explicit disabling of
198 optimization during development dies a painful death:
199
200 In file included from /usr/include/limits.h:27:0,
201 from /usr/lib/gcc/x86_64-redhat-linux/4.7.0/include/limits.h:169,.
202 from /usr/lib/gcc/x86_64-redhat-linux/4.7.0/include/syslimits.h:7,
203 from /usr/lib/gcc/x86_64-redhat-linux/4.7.0/include/limits.h:34,
204 from util/bitmap.c:26:
205 /usr/include/features.h:314:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp]
206 cc1: all warnings being treated as errors
207
208 Work around this by only conditionally defining _FORTIFY_SOURCE,
209 in the case where glibc can actually use it. The trick is using
210 AH_VERBATIM instead of AC_DEFINE.
211
212 * m4/virt-compile-warnings.m4 (LIBVIRT_GLIB_COMPILE_WARNINGS): Squelch
213 _FORTIFY_SOURCE when needed to avoid glibc #warnings.
214
215 2012-06-04 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
216
217 API to get/set domain title
218
219 2012-06-01 Michal Privoznik <mprivozn@redhat.com>
220
221 glib-events: Allow zero timeouts for timer
222 In libvirt, it's perfectly possible and widely used to have disabled
223 timers (timeout=-1) and fire them up 'randomly' with timeout=0.
224 However, with current mapping into glib mainloop it's not possible
225 and causing troubles.
226
227 2012-05-25 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
228
229 API to deal with topology information of CPU capabilities
230
231 Add gvir_config_object_get_attribute_uint64()
232 Another internal libvirt-gconfig helper to get uint64 XML attributes.
233
234 2012-05-23 Christophe Fergeau <cfergeau@redhat.com>
235
236 Check arguments to public libvirt-gobject methods
237 Some public methods in libvirt-gobject don't have g_return_if_fail
238 checks on their arguments. It happens that GNOME Boxes tries to call
239 gvir_connection_find_storage_pool_by_name with a NULL GVirConnection
240 causing a crash https://bugzilla.gnome.org/show_bug.cgi?id=676216 While
241 GNOME Boxes needs to be fixed not to pass an invalid value to this
242 function, it's better if libvirt-object sanity checks the argument it is
243 passed by the caller before using them. In this commit, I've went over
244 all libvirt-gobject public functions to add g_return_if_fail checks
245 where needed.
246
247 2012-05-22 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
248
249 Add getter for GVirConfigDomainOS.arch
250
251 2012-05-21 Christophe Fergeau <cfergeau@redhat.com>
252
253 Check arguments to public GVirConfigObject methods
254 GVirConfigObject public methods don't have g_return_if_fail checks
255 on their arguments. It happens that GNOME Boxes tries to call
256 gvir_config_object_to_xml with a NULL GVirConfigObject causing a
257 crash https://bugzilla.gnome.org/show_bug.cgi?id=676308
258 While GNOME Boxes needs to be fixed not to pass an invalid value
259 to gvir_config_object_to_xml, it's better if libvirt-gconfig sanity
260 checks the argument it is passed by the caller before using them.
261
262 2012-05-16 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
263
264 Add getter for GVirConfigDomain.virt_type
265
266 2012-05-15 Christophe Fergeau <cfergeau@redhat.com>
267
268 Make sure %with_vala is defined for newer RHELs
269 We want to build the vala bindings on recent RHELs. Given than
270 %with_introspection is defined for fedora >= 15 and rhel > 6 which
271 are exactly the versions for which we want to build the vala bindings,
272 and given that the vala bindings are to be disabled when introspection
273 is disabled, we can set %with_vala to the same value as %with_introspection.
274
275 2012-05-15 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
276
277 Forgotten fixes to capabilities API test app
278
279 2012-05-14 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
280
281 Add missing domain OS type enums
282
283 Add some tests for new capabilities APIs
284
285 Add guest capabilities API
286 Not quite complete but its a good start.
287
288 Add host capabilities API
289 Not quite complete but its a good start.
290
291 2012-05-11 Christophe Fergeau <cfergeau@redhat.com>
292
293 Make memory-handling more explicit in API doc
294 Explain how the return value of the (transfer full) methods should
295 be freed. I also made some cosmetic changes in the API doc of some
296 of the files as I was modifying them.
297
298 2012-05-11 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
299
300 API to get capabilities from connection
301
302 Add gvir_config_domain_os_get_boot_devices()
303
304 Allow unsetting of object properties
305 This changes gvir_config_object_attach_replace to accept a NULL
306 child object. Since we need to be able to find the node to remove
307 when this happens, gvir_config_object_attach_replace gets a third
308 argument with the name of the node to add/remove.
309
310 Allow unsetting of string properties
311 This changes gvir_config_object_set_node_content to accept a NULL
312 content and to remove the corresponding node when this happens
313
314 Add gvir_config_domain_get_os()
315
316 2012-05-10 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
317
318 More internal helpers for GVirConfigObject subclasses
319 - gvir_config_object_get_child()
320 - gvir_config_object_get_child_with_type()
321
322 2012-05-09 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
323
324 Correct gvir_config_domain_source_pty_set_path()
325 This function should set 'path' as attribute of 'source' node rather
326 than as child node.
327
328 2012-05-08 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
329
330 Remove a redundant struct field
331
332 2012-05-02 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
333
334 Corrections to satisfy latest GIR
335
336 2012-05-02 Daniel P. Berrange <berrange@redhat.com>
337
338 Add complete docs for the Libvirt GLib library
339 Flesh out the section intros for each of the Libvirt GLib
340 library modules, providing using examples where needed, and
341 adding any missing function docs.
342
343 2012-05-01 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
344
345 Bump version
346
0347 2012-04-27 Daniel P. Berrange <berrange@redhat.com>
1348
2349 Prep NEWS for 0.0.8 release
00 Installation Instructions
11 *************************
22
3 Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation,
3 Copyright (C) 1994-1996, 1999-2002, 2004-2012 Free Software Foundation,
44 Inc.
55
66 Copying and distribution of this file, with or without modification,
308308 overridden in the site shell script).
309309
310310 Unfortunately, this technique does not work for `CONFIG_SHELL' due to
311 an Autoconf bug. Until the bug is fixed you can use this workaround:
312
313 CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
311 an Autoconf limitation. Until the limitation is lifted, you can use
312 this workaround:
313
314 CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
314315
315316 `configure' Invocation
316317 ======================
366367
367368 `configure' also accepts some other, not widely useful, options. Run
368369 `configure --help' for more details.
369
66 pkgconfig_DATA = libvirt-glib-1.0.pc libvirt-gconfig-1.0.pc libvirt-gobject-1.0.pc
77
88 EXTRA_DIST = $(PACKAGE).spec \
9 $(PACKAGE).spec.in \
10 mingw-$(PACKAGE).spec.in \
911 $(pkgconfig_DATA:%.pc=%.pc.in) \
1012 GNUmakefile \
1113 maint.mk \
12 cfg.mk
14 cfg.mk \
15 $(NULL)
1316
1417 DISTCLEAN_FILES = $(PACKAGE).spec $(pkgconfig_DATA)
1518
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
0 # Makefile.in generated by automake 1.12.2 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1514 @SET_MAKE@
1615
1716 VPATH = @srcdir@
17 am__make_dryrun = \
18 { \
19 am__dry=no; \
20 case $$MAKEFLAGS in \
21 *\\[\ \ ]*) \
22 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
23 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
24 *) \
25 for am__flg in $$MAKEFLAGS; do \
26 case $$am__flg in \
27 *=*|--*) ;; \
28 *n*) am__dry=yes; break;; \
29 esac; \
30 done;; \
31 esac; \
32 test $$am__dry = yes; \
33 }
1834 pkgdatadir = $(datadir)/@PACKAGE@
1935 pkgincludedir = $(includedir)/@PACKAGE@
2036 pkglibdir = $(libdir)/@PACKAGE@
4056 $(srcdir)/libvirt-glib-1.0.pc.in \
4157 $(srcdir)/libvirt-glib.spec.in \
4258 $(srcdir)/libvirt-gobject-1.0.pc.in \
43 $(srcdir)/mingw32-libvirt-glib.spec.in $(top_srcdir)/configure \
59 $(srcdir)/mingw-libvirt-glib.spec.in \
60 $(top_srcdir)/build-aux/compile \
61 $(top_srcdir)/build-aux/config.guess \
62 $(top_srcdir)/build-aux/config.sub \
63 $(top_srcdir)/build-aux/install-sh \
64 $(top_srcdir)/build-aux/ltmain.sh \
65 $(top_srcdir)/build-aux/missing $(top_srcdir)/configure \
4466 AUTHORS COPYING ChangeLog INSTALL NEWS build-aux/compile \
45 build-aux/config.guess build-aux/config.sub build-aux/depcomp \
67 build-aux/config.guess build-aux/config.sub \
4668 build-aux/install-sh build-aux/ltmain.sh build-aux/missing
4769 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
4870 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
5981 CONFIG_HEADER = config.h
6082 CONFIG_CLEAN_FILES = libvirt-glib-1.0.pc libvirt-gconfig-1.0.pc \
6183 libvirt-gobject-1.0.pc libvirt-glib.spec \
62 mingw32-libvirt-glib.spec
84 mingw-libvirt-glib.spec
6385 CONFIG_CLEAN_VPATH_FILES =
86 AM_V_P = $(am__v_P_@AM_V@)
87 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
88 am__v_P_0 = false
89 am__v_P_1 = :
6490 AM_V_GEN = $(am__v_GEN_@AM_V@)
6591 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
66 am__v_GEN_0 = @echo " GEN " $@;
92 am__v_GEN_0 = @echo " GEN " $@;
93 am__v_GEN_1 =
6794 AM_V_at = $(am__v_at_@AM_V@)
6895 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
6996 am__v_at_0 = @
97 am__v_at_1 =
7098 SOURCES =
7199 DIST_SOURCES =
72100 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
76104 install-pdf-recursive install-ps-recursive install-recursive \
77105 installcheck-recursive installdirs-recursive pdf-recursive \
78106 ps-recursive uninstall-recursive
107 am__can_run_installinfo = \
108 case $$AM_UPDATE_INFO_DIR in \
109 n|no|NO) false;; \
110 *) (install-info --version) >/dev/null 2>&1;; \
111 esac
79112 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
80113 am__vpath_adj = case $$p in \
81114 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
109142 distclean-recursive maintainer-clean-recursive
110143 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
111144 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
112 distdir dist dist-all distcheck
145 cscope distdir dist dist-all distcheck
113146 ETAGS = etags
114147 CTAGS = ctags
148 CSCOPE = cscope
115149 DIST_SUBDIRS = $(SUBDIRS)
116150 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
117151 distdir = $(PACKAGE)-$(VERSION)
122156 && rm -rf "$(distdir)" \
123157 || { sleep 5 && rm -rf "$(distdir)"; }; \
124158 else :; fi
159 am__post_remove_distdir = $(am__remove_distdir)
125160 am__relativize = \
126161 dir0=`pwd`; \
127162 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
149184 reldir="$$dir2"
150185 DIST_ARCHIVES = $(distdir).tar.gz
151186 GZIP_ENV = --best
187 DIST_TARGETS = dist-gzip
152188 distuninstallcheck_listfiles = find . -type f -print
153189 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
154190 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
320356 pkgconfigdir = $(libdir)/pkgconfig
321357 pkgconfig_DATA = libvirt-glib-1.0.pc libvirt-gconfig-1.0.pc libvirt-gobject-1.0.pc
322358 EXTRA_DIST = $(PACKAGE).spec \
359 $(PACKAGE).spec.in \
360 mingw-$(PACKAGE).spec.in \
323361 $(pkgconfig_DATA:%.pc=%.pc.in) \
324362 GNUmakefile \
325363 maint.mk \
326 cfg.mk
364 cfg.mk \
365 $(NULL)
327366
328367 DISTCLEAN_FILES = $(PACKAGE).spec $(pkgconfig_DATA)
329368 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc=yes --enable-introspection=yes
388427 cd $(top_builddir) && $(SHELL) ./config.status $@
389428 libvirt-glib.spec: $(top_builddir)/config.status $(srcdir)/libvirt-glib.spec.in
390429 cd $(top_builddir) && $(SHELL) ./config.status $@
391 mingw32-libvirt-glib.spec: $(top_builddir)/config.status $(srcdir)/mingw32-libvirt-glib.spec.in
430 mingw-libvirt-glib.spec: $(top_builddir)/config.status $(srcdir)/mingw-libvirt-glib.spec.in
392431 cd $(top_builddir) && $(SHELL) ./config.status $@
393432
394433 mostlyclean-libtool:
401440 -rm -f libtool config.lt
402441 install-pkgconfigDATA: $(pkgconfig_DATA)
403442 @$(NORMAL_INSTALL)
404 test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
405443 @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
444 if test -n "$$list"; then \
445 echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \
446 $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \
447 fi; \
406448 for p in $$list; do \
407449 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
408450 echo "$$d$$p"; \
419461 dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir)
420462
421463 # This directory's subdirectories are mostly independent; you can cd
422 # into them and run `make' without going through this Makefile.
423 # To change the values of `make' variables: instead of editing Makefiles,
424 # (1) if the variable is set in `config.status', edit `config.status'
425 # (which will cause the Makefiles to be regenerated when you run `make');
426 # (2) otherwise, pass the desired values on the `make' command line.
427 $(RECURSIVE_TARGETS):
464 # into them and run 'make' without going through this Makefile.
465 # To change the values of 'make' variables: instead of editing Makefiles,
466 # (1) if the variable is set in 'config.status', edit 'config.status'
467 # (which will cause the Makefiles to be regenerated when you run 'make');
468 # (2) otherwise, pass the desired values on the 'make' command line.
469 $(RECURSIVE_TARGETS) $(RECURSIVE_CLEAN_TARGETS):
428470 @fail= failcom='exit 1'; \
429471 for f in x $$MAKEFLAGS; do \
430472 case $$f in \
434476 done; \
435477 dot_seen=no; \
436478 target=`echo $@ | sed s/-recursive//`; \
437 list='$(SUBDIRS)'; for subdir in $$list; do \
479 case "$@" in \
480 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
481 *) list='$(SUBDIRS)' ;; \
482 esac; \
483 for subdir in $$list; do \
438484 echo "Making $$target in $$subdir"; \
439485 if test "$$subdir" = "."; then \
440486 dot_seen=yes; \
448494 if test "$$dot_seen" = "no"; then \
449495 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
450496 fi; test -z "$$fail"
451
452 $(RECURSIVE_CLEAN_TARGETS):
453 @fail= failcom='exit 1'; \
454 for f in x $$MAKEFLAGS; do \
455 case $$f in \
456 *=* | --[!k]*);; \
457 *k*) failcom='fail=yes';; \
458 esac; \
459 done; \
460 dot_seen=no; \
461 case "$@" in \
462 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
463 *) list='$(SUBDIRS)' ;; \
464 esac; \
465 rev=''; for subdir in $$list; do \
466 if test "$$subdir" = "."; then :; else \
467 rev="$$subdir $$rev"; \
468 fi; \
469 done; \
470 rev="$$rev ."; \
471 target=`echo $@ | sed s/-recursive//`; \
472 for subdir in $$rev; do \
473 echo "Making $$target in $$subdir"; \
474 if test "$$subdir" = "."; then \
475 local_target="$$target-am"; \
476 else \
477 local_target="$$target"; \
478 fi; \
479 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
480 || eval $$failcom; \
481 done && test -z "$$fail"
482497 tags-recursive:
483498 list='$(SUBDIRS)'; for subdir in $$list; do \
484499 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
486501 ctags-recursive:
487502 list='$(SUBDIRS)'; for subdir in $$list; do \
488503 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
504 done
505 cscopelist-recursive:
506 list='$(SUBDIRS)'; for subdir in $$list; do \
507 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) cscopelist); \
489508 done
490509
491510 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
550569 && $(am__cd) $(top_srcdir) \
551570 && gtags -i $(GTAGS_ARGS) "$$here"
552571
572 cscope: cscope.files
573 test ! -s cscope.files \
574 || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
575
576 clean-cscope:
577 -rm -f cscope.files
578
579 cscope.files: clean-cscope cscopelist-recursive cscopelist
580
581 cscopelist: cscopelist-recursive $(HEADERS) $(SOURCES) $(LISP)
582 list='$(SOURCES) $(HEADERS) $(LISP)'; \
583 case "$(srcdir)" in \
584 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
585 *) sdir=$(subdir)/$(srcdir) ;; \
586 esac; \
587 for i in $$list; do \
588 if test -f "$$i"; then \
589 echo "$(subdir)/$$i"; \
590 else \
591 echo "$$sdir/$$i"; \
592 fi; \
593 done >> $(top_builddir)/cscope.files
594
553595 distclean-tags:
554596 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
597 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
555598
556599 distdir: $(DISTFILES)
557600 $(am__remove_distdir)
587630 done
588631 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
589632 if test "$$subdir" = .; then :; else \
590 test -d "$(distdir)/$$subdir" \
591 || $(MKDIR_P) "$(distdir)/$$subdir" \
592 || exit 1; \
593 fi; \
594 done
595 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
596 if test "$$subdir" = .; then :; else \
633 $(am__make_dryrun) \
634 || test -d "$(distdir)/$$subdir" \
635 || $(MKDIR_P) "$(distdir)/$$subdir" \
636 || exit 1; \
597637 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
598638 $(am__relativize); \
599639 new_distdir=$$reldir; \
625665 || chmod -R a+r "$(distdir)"
626666 dist-gzip: distdir
627667 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
628 $(am__remove_distdir)
668 $(am__post_remove_distdir)
629669
630670 dist-bzip2: distdir
631671 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
632 $(am__remove_distdir)
672 $(am__post_remove_distdir)
633673
634674 dist-lzip: distdir
635675 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
636 $(am__remove_distdir)
637
638 dist-lzma: distdir
639 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
640 $(am__remove_distdir)
676 $(am__post_remove_distdir)
641677
642678 dist-xz: distdir
643679 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
644 $(am__remove_distdir)
680 $(am__post_remove_distdir)
645681
646682 dist-tarZ: distdir
647683 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
648 $(am__remove_distdir)
684 $(am__post_remove_distdir)
649685
650686 dist-shar: distdir
651687 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
652 $(am__remove_distdir)
688 $(am__post_remove_distdir)
653689
654690 dist-zip: distdir
655691 -rm -f $(distdir).zip
656692 zip -rq $(distdir).zip $(distdir)
657 $(am__remove_distdir)
658
659 dist dist-all: distdir
660 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
661 $(am__remove_distdir)
693 $(am__post_remove_distdir)
694
695 dist dist-all:
696 $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
697 $(am__post_remove_distdir)
662698
663699 # This target untars the dist file and tries a VPATH configuration. Then
664700 # it guarantees that the distribution is self-contained by making another
669705 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
670706 *.tar.bz2*) \
671707 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
672 *.tar.lzma*) \
673 lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
674708 *.tar.lz*) \
675709 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
676710 *.tar.xz*) \
682716 *.zip*) \
683717 unzip $(distdir).zip ;;\
684718 esac
685 chmod -R a-w $(distdir); chmod a+w $(distdir)
719 chmod -R a-w $(distdir); chmod u+w $(distdir)
686720 mkdir $(distdir)/_build
687721 mkdir $(distdir)/_inst
688722 chmod a-w $(distdir)
716750 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
717751 && cd "$$am__cwd" \
718752 || exit 1
719 $(am__remove_distdir)
753 $(am__post_remove_distdir)
720754 @(echo "$(distdir) archives ready for distribution: "; \
721755 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
722756 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
855889 uninstall-am: uninstall-pkgconfigDATA
856890
857891 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
858 ctags-recursive install-am install-strip tags-recursive
892 cscopelist-recursive ctags-recursive install-am install-strip \
893 tags-recursive
859894
860895 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
861 all all-am am--refresh check check-am clean clean-generic \
862 clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
863 dist-gzip dist-hook dist-lzip dist-lzma dist-shar dist-tarZ \
896 all all-am am--refresh check check-am clean clean-cscope \
897 clean-generic clean-libtool cscope cscopelist \
898 cscopelist-recursive ctags ctags-recursive dist dist-all \
899 dist-bzip2 dist-gzip dist-hook dist-lzip dist-shar dist-tarZ \
864900 dist-xz dist-zip distcheck distclean distclean-generic \
865901 distclean-hdr distclean-libtool distclean-tags distcleancheck \
866902 distdir distuninstallcheck dvi dvi-am html html-am info \
00 libvirt-glib News
11 =================
2
3 0.1.2 - Aug 20, 2012
4 ====================
5
6 - Add async binding for virDomainResume
7 - Fix deadlock in event loop handle/timer removal
8
9 0.1.1 - Aug 06, 2012
10 ====================
11
12 - Add bindings for virDomainSnapshotCreate*().
13 - Add bindings for virDomainRestore*().
14 - Add GVir.DomainShutdownFlags() binding.
15 - Add GVir.DomainXMLFlags binding.
16
17 0.1.0 - Jul 16, 2012
18 ====================
19
20 - Add setters for capabilities CPU config object
21 - Add constructor for capabilities CPU config object
22 - Add config object for domain CPU schema
23 - Add bindings for domain save APIs
24 - Add bindings for storage volume upload/download
25
26 0.0.9 - Jun 25, 2012
27 ====================
28 - Full API docs for libvirt-glib library
29 - Add API for getting domain OS config
30 - Add API for getting domain OS boot devices
31 - Add APIs for querying host capabilities
32 - Add missing domain OS type enum values
33 - Add API for getting domain virt type
34 - Add comprehensive API arg checking
35 - Add API for getting domain arch
36 - Allow zero timeouts in timer
37 - Fix build with newer glibc-headers and -O0
38 - Fix generation of filesystem source element
39 - Port to use Mingw64 toolchain for automated builds
40 - Add async API for starting domains
41 - Fix thread safety of event loop timeouts/watches
42 - Add support for filesystem type=bind|ram
243
344 0.0.8 - Apr 27, 2012
445 ====================
0 # generated automatically by aclocal 1.11.3 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
4 # Inc.
0 # generated automatically by aclocal 1.12.2 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2012 Free Software Foundation, Inc.
3
54 # This file is free software; the Free Software Foundation
65 # gives unlimited permission to copy and/or distribute it,
76 # with or without modifications, as long as this notice is preserved.
1716 [m4_warning([this file was generated for autoconf 2.68.
1817 You have another version of autoconf. It may work, but is not guaranteed to.
1918 If you have problems, you may need to regenerate the build system entirely.
20 To do so, use the procedure documented by the package, typically `autoreconf'.])])
19 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
2120
2221 dnl -*- mode: autoconf -*-
2322
245244 fi[]dnl
246245 ])# PKG_CHECK_MODULES
247246
248 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
249 # Foundation, Inc.
250 #
251 # This file is free software; the Free Software Foundation
252 # gives unlimited permission to copy and/or distribute it,
253 # with or without modifications, as long as this notice is preserved.
254
255 # serial 1
247 # Copyright (C) 2002-2012 Free Software Foundation, Inc.
248 #
249 # This file is free software; the Free Software Foundation
250 # gives unlimited permission to copy and/or distribute it,
251 # with or without modifications, as long as this notice is preserved.
252
253 # serial 8
256254
257255 # AM_AUTOMAKE_VERSION(VERSION)
258256 # ----------------------------
260258 # generated from the m4 files accompanying Automake X.Y.
261259 # (This private macro should not be called outside this file.)
262260 AC_DEFUN([AM_AUTOMAKE_VERSION],
263 [am__api_version='1.11'
261 [am__api_version='1.12'
264262 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
265263 dnl require some minimum version. Point them to the right macro.
266 m4_if([$1], [1.11.3], [],
264 m4_if([$1], [1.12.2], [],
267265 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
268266 ])
269267
279277 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
280278 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
281279 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
282 [AM_AUTOMAKE_VERSION([1.11.3])dnl
280 [AM_AUTOMAKE_VERSION([1.12.2])dnl
283281 m4_ifndef([AC_AUTOCONF_VERSION],
284282 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
285283 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
286284
287285 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
288286
289 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
290 #
291 # This file is free software; the Free Software Foundation
292 # gives unlimited permission to copy and/or distribute it,
293 # with or without modifications, as long as this notice is preserved.
294
295 # serial 1
287 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
288 #
289 # This file is free software; the Free Software Foundation
290 # gives unlimited permission to copy and/or distribute it,
291 # with or without modifications, as long as this notice is preserved.
292
293 # serial 2
296294
297295 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
298 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
299 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
296 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
297 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
300298 #
301299 # Of course, Automake must honor this variable whenever it calls a
302300 # tool from the auxiliary directory. The problem is that $srcdir (and
315313 #
316314 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
317315 # are both prefixed by $srcdir. In an in-source build this is usually
318 # harmless because $srcdir is `.', but things will broke when you
316 # harmless because $srcdir is '.', but things will broke when you
319317 # start a VPATH build or use an absolute $srcdir.
320318 #
321319 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
341339
342340 # AM_CONDITIONAL -*- Autoconf -*-
343341
344 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
345 # Free Software Foundation, Inc.
346 #
347 # This file is free software; the Free Software Foundation
348 # gives unlimited permission to copy and/or distribute it,
349 # with or without modifications, as long as this notice is preserved.
350
351 # serial 9
342 # Copyright (C) 1997-2012 Free Software Foundation, Inc.
343 #
344 # This file is free software; the Free Software Foundation
345 # gives unlimited permission to copy and/or distribute it,
346 # with or without modifications, as long as this notice is preserved.
347
348 # serial 10
352349
353350 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
354351 # -------------------------------------
355352 # Define a conditional.
356353 AC_DEFUN([AM_CONDITIONAL],
357 [AC_PREREQ(2.52)dnl
358 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
359 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
354 [AC_PREREQ([2.52])dnl
355 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
356 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
360357 AC_SUBST([$1_TRUE])dnl
361358 AC_SUBST([$1_FALSE])dnl
362359 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
375372 Usually this means the macro was only invoked conditionally.]])
376373 fi])])
377374
378 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
379 # 2010, 2011 Free Software Foundation, Inc.
380 #
381 # This file is free software; the Free Software Foundation
382 # gives unlimited permission to copy and/or distribute it,
383 # with or without modifications, as long as this notice is preserved.
384
385 # serial 12
386
387 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
375 # Copyright (C) 1999-2012 Free Software Foundation, Inc.
376 #
377 # This file is free software; the Free Software Foundation
378 # gives unlimited permission to copy and/or distribute it,
379 # with or without modifications, as long as this notice is preserved.
380
381 # serial 17
382
383 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
388384 # written in clear, in which case automake, when reading aclocal.m4,
389385 # will think it sees a *use*, and therefore will trigger all it's
390386 # C support machinery. Also note that it means that autoscan, seeing
394390 # _AM_DEPENDENCIES(NAME)
395391 # ----------------------
396392 # See how the compiler implements dependency checking.
397 # NAME is "CC", "CXX", "GCJ", or "OBJC".
393 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
398394 # We try a few techniques and use that to set a single cache variable.
399395 #
400396 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
407403 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
408404 AC_REQUIRE([AM_DEP_TRACK])dnl
409405
410 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
411 [$1], CXX, [depcc="$CXX" am_compiler_list=],
412 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
413 [$1], UPC, [depcc="$UPC" am_compiler_list=],
414 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
415 [depcc="$$1" am_compiler_list=])
406 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
407 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
408 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
409 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
410 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
411 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
412 [depcc="$$1" am_compiler_list=])
416413
417414 AC_CACHE_CHECK([dependency style of $depcc],
418415 [am_cv_$1_dependencies_compiler_type],
420417 # We make a subdir and do the tests there. Otherwise we can end up
421418 # making bogus files that we don't know about and never remove. For
422419 # instance it was reported that on HP-UX the gcc test will end up
423 # making a dummy file named `D' -- because `-MD' means `put the output
424 # in D'.
420 # making a dummy file named 'D' -- because '-MD' means "put the output
421 # in D".
425422 rm -rf conftest.dir
426423 mkdir conftest.dir
427424 # Copy depcomp to subdir because otherwise we won't find it if we're
461458 : > sub/conftest.c
462459 for i in 1 2 3 4 5 6; do
463460 echo '#include "conftst'$i'.h"' >> sub/conftest.c
464 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
465 # Solaris 8's {/usr,}/bin/sh.
466 touch sub/conftst$i.h
461 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
462 # Solaris 10 /bin/sh.
463 echo '/* dummy */' > sub/conftst$i.h
467464 done
468465 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
469466
470 # We check with `-c' and `-o' for the sake of the "dashmstdout"
467 # We check with '-c' and '-o' for the sake of the "dashmstdout"
471468 # mode. It turns out that the SunPro C++ compiler does not properly
472 # handle `-M -o', and we need to detect this. Also, some Intel
473 # versions had trouble with output in subdirs
469 # handle '-M -o', and we need to detect this. Also, some Intel
470 # versions had trouble with output in subdirs.
474471 am__obj=sub/conftest.${OBJEXT-o}
475472 am__minus_obj="-o $am__obj"
476473 case $depmode in
479476 test "$am__universal" = false || continue
480477 ;;
481478 nosideeffect)
482 # after this tag, mechanisms are not by side-effect, so they'll
483 # only be used when explicitly requested
479 # After this tag, mechanisms are not by side-effect, so they'll
480 # only be used when explicitly requested.
484481 if test "x$enable_dependency_tracking" = xyes; then
485482 continue
486483 else
488485 fi
489486 ;;
490487 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
491 # This compiler won't grok `-c -o', but also, the minuso test has
488 # This compiler won't grok '-c -o', but also, the minuso test has
492489 # not run yet. These depmodes are late enough in the game, and
493490 # so weak that their functioning should not be impacted.
494491 am__obj=conftest.${OBJEXT-o}
536533 # AM_SET_DEPDIR
537534 # -------------
538535 # Choose a directory name for dependency files.
539 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
536 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
540537 AC_DEFUN([AM_SET_DEPDIR],
541538 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
542539 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
546543 # AM_DEP_TRACK
547544 # ------------
548545 AC_DEFUN([AM_DEP_TRACK],
549 [AC_ARG_ENABLE(dependency-tracking,
550 [ --disable-dependency-tracking speeds up one-time build
551 --enable-dependency-tracking do not reject slow dependency extractors])
546 [AC_ARG_ENABLE([dependency-tracking], [dnl
547 AS_HELP_STRING(
548 [--enable-dependency-tracking],
549 [do not reject slow dependency extractors])
550 AS_HELP_STRING(
551 [--disable-dependency-tracking],
552 [speeds up one-time build])])
552553 if test "x$enable_dependency_tracking" != xno; then
553554 am_depcomp="$ac_aux_dir/depcomp"
554555 AMDEPBACKSLASH='\'
563564
564565 # Generate code to set up dependency tracking. -*- Autoconf -*-
565566
566 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
567 # Free Software Foundation, Inc.
568 #
569 # This file is free software; the Free Software Foundation
570 # gives unlimited permission to copy and/or distribute it,
571 # with or without modifications, as long as this notice is preserved.
572
573 #serial 5
567 # Copyright (C) 1999-2012 Free Software Foundation, Inc.
568 #
569 # This file is free software; the Free Software Foundation
570 # gives unlimited permission to copy and/or distribute it,
571 # with or without modifications, as long as this notice is preserved.
572
573 # serial 6
574574
575575 # _AM_OUTPUT_DEPENDENCY_COMMANDS
576576 # ------------------------------
589589 # Strip MF so we end up with the name of the file.
590590 mf=`echo "$mf" | sed -e 's/:.*$//'`
591591 # Check whether this is an Automake generated Makefile or not.
592 # We used to match only the files named `Makefile.in', but
592 # We used to match only the files named 'Makefile.in', but
593593 # some people rename them; so instead we look at the file content.
594594 # Grep'ing the first line is not enough: some people post-process
595595 # each Makefile.in and add a new line on top of each file to say so.
601601 continue
602602 fi
603603 # Extract the definition of DEPDIR, am__include, and am__quote
604 # from the Makefile without running `make'.
604 # from the Makefile without running 'make'.
605605 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
606606 test -z "$DEPDIR" && continue
607607 am__include=`sed -n 's/^am__include = //p' < "$mf"`
608608 test -z "am__include" && continue
609609 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
610 # When using ansi2knr, U may be empty or an underscore; expand it
611 U=`sed -n 's/^U = //p' < "$mf"`
612610 # Find all dependency output files, they are included files with
613611 # $(DEPDIR) in their names. We invoke sed twice because it is the
614612 # simplest approach to changing $(DEPDIR) to its actual value in the
615613 # expansion.
616614 for file in `sed -n "
617615 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
618 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
616 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
619617 # Make sure the directory exists.
620618 test -f "$dirpart/$file" && continue
621619 fdir=`AS_DIRNAME(["$file"])`
633631 # This macro should only be invoked once -- use via AC_REQUIRE.
634632 #
635633 # This code is only required when automatic dependency tracking
636 # is enabled. FIXME. This creates each `.P' file that we will
634 # is enabled. FIXME. This creates each '.P' file that we will
637635 # need in order to bootstrap the dependency handling code.
638636 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
639637 [AC_CONFIG_COMMANDS([depfiles],
641639 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
642640 ])
643641
644 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
645 # Free Software Foundation, Inc.
642 # Copyright (C) 1996-2012 Free Software Foundation, Inc.
646643 #
647644 # This file is free software; the Free Software Foundation
648645 # gives unlimited permission to copy and/or distribute it,
655652
656653 # Do all the work for Automake. -*- Autoconf -*-
657654
658 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
659 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
660 #
661 # This file is free software; the Free Software Foundation
662 # gives unlimited permission to copy and/or distribute it,
663 # with or without modifications, as long as this notice is preserved.
664
665 # serial 16
655 # Copyright (C) 1996-2012 Free Software Foundation, Inc.
656 #
657 # This file is free software; the Free Software Foundation
658 # gives unlimited permission to copy and/or distribute it,
659 # with or without modifications, as long as this notice is preserved.
660
661 # serial 19
666662
667663 # This macro actually does too much. Some checks are only needed if
668664 # your package does certain things. But this isn't really a big deal.
708704 # Define the identity of the package.
709705 dnl Distinguish between old-style and new-style calls.
710706 m4_ifval([$2],
711 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
707 [AC_DIAGNOSE([obsolete],
708 [$0: two- and three-arguments forms are deprecated. For more info, see:
709 http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_INIT_AUTOMAKE-invocation])
710 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
712711 AC_SUBST([PACKAGE], [$1])dnl
713712 AC_SUBST([VERSION], [$2])],
714713 [_AM_SET_OPTIONS([$1])dnl
715714 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
716 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
715 m4_if(
716 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
717 [ok:ok],,
717718 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
718719 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
719720 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
720721
721722 _AM_IF_OPTION([no-define],,
722 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
723 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
723 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
724 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
724725
725726 # Some tools Automake needs.
726727 AC_REQUIRE([AM_SANITY_CHECK])dnl
727728 AC_REQUIRE([AC_ARG_PROGRAM])dnl
728 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
729 AM_MISSING_PROG(AUTOCONF, autoconf)
730 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
731 AM_MISSING_PROG(AUTOHEADER, autoheader)
732 AM_MISSING_PROG(MAKEINFO, makeinfo)
729 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
730 AM_MISSING_PROG([AUTOCONF], [autoconf])
731 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
732 AM_MISSING_PROG([AUTOHEADER], [autoheader])
733 AM_MISSING_PROG([MAKEINFO], [makeinfo])
733734 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
734735 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
735 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
736 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
737 # For better backward compatibility. To be removed once Automake 1.9.x
738 # dies out for good. For more background, see:
739 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
740 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
741 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
736742 # We need awk for the "check" target. The system "awk" is bad on
737743 # some platforms.
738744 AC_REQUIRE([AC_PROG_AWK])dnl
743749 [_AM_PROG_TAR([v7])])])
744750 _AM_IF_OPTION([no-dependencies],,
745751 [AC_PROVIDE_IFELSE([AC_PROG_CC],
746 [_AM_DEPENDENCIES(CC)],
747 [define([AC_PROG_CC],
748 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
752 [_AM_DEPENDENCIES([CC])],
753 [m4_define([AC_PROG_CC],
754 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
749755 AC_PROVIDE_IFELSE([AC_PROG_CXX],
750 [_AM_DEPENDENCIES(CXX)],
751 [define([AC_PROG_CXX],
752 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
756 [_AM_DEPENDENCIES([CXX])],
757 [m4_define([AC_PROG_CXX],
758 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
753759 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
754 [_AM_DEPENDENCIES(OBJC)],
755 [define([AC_PROG_OBJC],
756 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
760 [_AM_DEPENDENCIES([OBJC])],
761 [m4_define([AC_PROG_OBJC],
762 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
763 dnl Support for Objective C++ was only introduced in Autoconf 2.65,
764 dnl but we still cater to Autoconf 2.62.
765 m4_ifdef([AC_PROG_OBJCXX],
766 [AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
767 [_AM_DEPENDENCIES([OBJCXX])],
768 [m4_define([AC_PROG_OBJCXX],
769 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])])dnl
757770 ])
758771 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
759 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
760 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
772 dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the
773 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
761774 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
762775 AC_CONFIG_COMMANDS_PRE(dnl
763776 [m4_provide_if([_AM_COMPILER_EXEEXT],
764777 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
765778 ])
766779
767 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
780 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
768781 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
769782 dnl mangled by Autoconf and run in a shell conditional statement.
770783 m4_define([_AC_COMPILER_EXEEXT],
792805 done
793806 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
794807
795 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
796 # Inc.
797 #
798 # This file is free software; the Free Software Foundation
799 # gives unlimited permission to copy and/or distribute it,
800 # with or without modifications, as long as this notice is preserved.
801
802 # serial 1
808 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
809 #
810 # This file is free software; the Free Software Foundation
811 # gives unlimited permission to copy and/or distribute it,
812 # with or without modifications, as long as this notice is preserved.
813
814 # serial 8
803815
804816 # AM_PROG_INSTALL_SH
805817 # ------------------
814826 install_sh="\${SHELL} $am_aux_dir/install-sh"
815827 esac
816828 fi
817 AC_SUBST(install_sh)])
818
819 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
829 AC_SUBST([install_sh])])
830
831 # Copyright (C) 2003-2012 Free Software Foundation, Inc.
820832 #
821833 # This file is free software; the Free Software Foundation
822834 # gives unlimited permission to copy and/or distribute it,
839851
840852 # Check to see how 'make' treats includes. -*- Autoconf -*-
841853
842 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
843 #
844 # This file is free software; the Free Software Foundation
845 # gives unlimited permission to copy and/or distribute it,
846 # with or without modifications, as long as this notice is preserved.
847
848 # serial 4
854 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
855 #
856 # This file is free software; the Free Software Foundation
857 # gives unlimited permission to copy and/or distribute it,
858 # with or without modifications, as long as this notice is preserved.
859
860 # serial 5
849861
850862 # AM_MAKE_INCLUDE()
851863 # -----------------
864876 _am_result=none
865877 # First try GNU make style include.
866878 echo "include confinc" > confmf
867 # Ignore all kinds of additional output from `make'.
879 # Ignore all kinds of additional output from 'make'.
868880 case `$am_make -s -f confmf 2> /dev/null` in #(
869881 *the\ am__doit\ target*)
870882 am__include=include
889901 rm -f confinc confmf
890902 ])
891903
892 # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
893 # Free Software Foundation, Inc.
904 # Copyright (C) 1999-2012 Free Software Foundation, Inc.
894905 #
895906 # This file is free software; the Free Software Foundation
896907 # gives unlimited permission to copy and/or distribute it,
926937
927938 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
928939
929 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
930 # Free Software Foundation, Inc.
931 #
932 # This file is free software; the Free Software Foundation
933 # gives unlimited permission to copy and/or distribute it,
934 # with or without modifications, as long as this notice is preserved.
935
936 # serial 6
940 # Copyright (C) 1997-2012 Free Software Foundation, Inc.
941 #
942 # This file is free software; the Free Software Foundation
943 # gives unlimited permission to copy and/or distribute it,
944 # with or without modifications, as long as this notice is preserved.
945
946 # serial 7
937947
938948 # AM_MISSING_PROG(NAME, PROGRAM)
939949 # ------------------------------
963973 am_missing_run="$MISSING --run "
964974 else
965975 am_missing_run=
966 AC_MSG_WARN([`missing' script is too old or missing])
967 fi
968 ])
969
970 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
971 # Inc.
972 #
973 # This file is free software; the Free Software Foundation
974 # gives unlimited permission to copy and/or distribute it,
975 # with or without modifications, as long as this notice is preserved.
976
977 # serial 1
978
979 # AM_PROG_MKDIR_P
980 # ---------------
981 # Check for `mkdir -p'.
982 AC_DEFUN([AM_PROG_MKDIR_P],
983 [AC_PREREQ([2.60])dnl
984 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
985 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
986 dnl while keeping a definition of mkdir_p for backward compatibility.
987 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
988 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
989 dnl Makefile.ins that do not define MKDIR_P, so we do our own
990 dnl adjustment using top_builddir (which is defined more often than
991 dnl MKDIR_P).
992 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
993 case $mkdir_p in
994 [[\\/$]]* | ?:[[\\/]]*) ;;
995 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
996 esac
976 AC_MSG_WARN(['missing' script is too old or missing])
977 fi
997978 ])
998979
999980 # Helper functions for option handling. -*- Autoconf -*-
1000981
1001 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
1002 # Foundation, Inc.
1003 #
1004 # This file is free software; the Free Software Foundation
1005 # gives unlimited permission to copy and/or distribute it,
1006 # with or without modifications, as long as this notice is preserved.
1007
1008 # serial 5
982 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
983 #
984 # This file is free software; the Free Software Foundation
985 # gives unlimited permission to copy and/or distribute it,
986 # with or without modifications, as long as this notice is preserved.
987
988 # serial 6
1009989
1010990 # _AM_MANGLE_OPTION(NAME)
1011991 # -----------------------
1016996 # --------------------
1017997 # Set option NAME. Presently that only means defining a flag for this option.
1018998 AC_DEFUN([_AM_SET_OPTION],
1019 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
999 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
10201000
10211001 # _AM_SET_OPTIONS(OPTIONS)
10221002 # ------------------------
10321012
10331013 # Check to make sure that the build environment is sane. -*- Autoconf -*-
10341014
1035 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
1036 # Free Software Foundation, Inc.
1037 #
1038 # This file is free software; the Free Software Foundation
1039 # gives unlimited permission to copy and/or distribute it,
1040 # with or without modifications, as long as this notice is preserved.
1041
1042 # serial 5
1015 # Copyright (C) 1996-2012 Free Software Foundation, Inc.
1016 #
1017 # This file is free software; the Free Software Foundation
1018 # gives unlimited permission to copy and/or distribute it,
1019 # with or without modifications, as long as this notice is preserved.
1020
1021 # serial 9
10431022
10441023 # AM_SANITY_CHECK
10451024 # ---------------
10461025 AC_DEFUN([AM_SANITY_CHECK],
10471026 [AC_MSG_CHECKING([whether build environment is sane])
1048 # Just in case
1049 sleep 1
1050 echo timestamp > conftest.file
10511027 # Reject unsafe characters in $srcdir or the absolute working directory
10521028 # name. Accept space and tab only in the latter.
10531029 am_lf='
10581034 esac
10591035 case $srcdir in
10601036 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1061 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
1037 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
10621038 esac
10631039
1064 # Do `set' in a subshell so we don't clobber the current shell's
1040 # Do 'set' in a subshell so we don't clobber the current shell's
10651041 # arguments. Must try -L first in case configure is actually a
10661042 # symlink; some systems play weird games with the mod time of symlinks
10671043 # (eg FreeBSD returns the mod time of the symlink's containing
10681044 # directory).
10691045 if (
1070 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1071 if test "$[*]" = "X"; then
1072 # -L didn't work.
1073 set X `ls -t "$srcdir/configure" conftest.file`
1074 fi
1075 rm -f conftest.file
1076 if test "$[*]" != "X $srcdir/configure conftest.file" \
1077 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1078
1079 # If neither matched, then we have a broken ls. This can happen
1080 # if, for instance, CONFIG_SHELL is bash and it inherits a
1081 # broken ls alias from the environment. This has actually
1082 # happened. Such a system could not be considered "sane".
1083 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1084 alias in your environment])
1085 fi
1086
1046 am_has_slept=no
1047 for am_try in 1 2; do
1048 echo "timestamp, slept: $am_has_slept" > conftest.file
1049 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1050 if test "$[*]" = "X"; then
1051 # -L didn't work.
1052 set X `ls -t "$srcdir/configure" conftest.file`
1053 fi
1054 if test "$[*]" != "X $srcdir/configure conftest.file" \
1055 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1056
1057 # If neither matched, then we have a broken ls. This can happen
1058 # if, for instance, CONFIG_SHELL is bash and it inherits a
1059 # broken ls alias from the environment. This has actually
1060 # happened. Such a system could not be considered "sane".
1061 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1062 alias in your environment])
1063 fi
1064 if test "$[2]" = conftest.file || test $am_try -eq 2; then
1065 break
1066 fi
1067 # Just in case.
1068 sleep 1
1069 am_has_slept=yes
1070 done
10871071 test "$[2]" = conftest.file
10881072 )
10891073 then
10931077 AC_MSG_ERROR([newly created file is older than distributed files!
10941078 Check your system clock])
10951079 fi
1096 AC_MSG_RESULT(yes)])
1097
1098 # Copyright (C) 2009, 2011 Free Software Foundation, Inc.
1099 #
1100 # This file is free software; the Free Software Foundation
1101 # gives unlimited permission to copy and/or distribute it,
1102 # with or without modifications, as long as this notice is preserved.
1103
1104 # serial 2
1080 AC_MSG_RESULT([yes])
1081 # If we didn't sleep, we still need to ensure time stamps of config.status and
1082 # generated files are strictly newer.
1083 am_sleep_pid=
1084 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1085 ( sleep 1 ) &
1086 am_sleep_pid=$!
1087 fi
1088 AC_CONFIG_COMMANDS_PRE(
1089 [AC_MSG_CHECKING([that generated files are newer than configure])
1090 if test -n "$am_sleep_pid"; then
1091 # Hide warnings about reused PIDs.
1092 wait $am_sleep_pid 2>/dev/null
1093 fi
1094 AC_MSG_RESULT([done])])
1095 rm -f conftest.file
1096 ])
1097
1098 # Copyright (C) 2009-2012 Free Software Foundation, Inc.
1099 #
1100 # This file is free software; the Free Software Foundation
1101 # gives unlimited permission to copy and/or distribute it,
1102 # with or without modifications, as long as this notice is preserved.
1103
1104 # serial 3
11051105
11061106 # AM_SILENT_RULES([DEFAULT])
11071107 # --------------------------
11081108 # Enable less verbose build rules; with the default set to DEFAULT
1109 # (`yes' being less verbose, `no' or empty being verbose).
1109 # ("yes" being less verbose, "no" or empty being verbose).
11101110 AC_DEFUN([AM_SILENT_RULES],
1111 [AC_ARG_ENABLE([silent-rules],
1112 [ --enable-silent-rules less verbose build output (undo: `make V=1')
1113 --disable-silent-rules verbose build output (undo: `make V=0')])
1114 case $enable_silent_rules in
1115 yes) AM_DEFAULT_VERBOSITY=0;;
1116 no) AM_DEFAULT_VERBOSITY=1;;
1117 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1111 [AC_ARG_ENABLE([silent-rules], [dnl
1112 AS_HELP_STRING(
1113 [--enable-silent-rules],
1114 [less verbose build output (undo: "make V=1")])
1115 AS_HELP_STRING(
1116 [--disable-silent-rules],
1117 [verbose build output (undo: "make V=0")])dnl
1118 ])
1119 case $enable_silent_rules in @%:@ (((
1120 yes) AM_DEFAULT_VERBOSITY=0;;
1121 no) AM_DEFAULT_VERBOSITY=1;;
1122 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
11181123 esac
11191124 dnl
1120 dnl A few `make' implementations (e.g., NonStop OS and NextStep)
1125 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
11211126 dnl do not support nested variable expansions.
11221127 dnl See automake bug#9928 and bug#10237.
11231128 am_make=${MAKE-make}
11351140 am_cv_make_support_nested_variables=no
11361141 fi])
11371142 if test $am_cv_make_support_nested_variables = yes; then
1138 dnl Using `$V' instead of `$(V)' breaks IRIX make.
1143 dnl Using '$V' instead of '$(V)' breaks IRIX make.
11391144 AM_V='$(V)'
11401145 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11411146 else
11521157 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
11531158 ])
11541159
1155 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
1156 #
1157 # This file is free software; the Free Software Foundation
1158 # gives unlimited permission to copy and/or distribute it,
1159 # with or without modifications, as long as this notice is preserved.
1160
1161 # serial 1
1160 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
1161 #
1162 # This file is free software; the Free Software Foundation
1163 # gives unlimited permission to copy and/or distribute it,
1164 # with or without modifications, as long as this notice is preserved.
1165
1166 # serial 2
11621167
11631168 # AM_PROG_INSTALL_STRIP
11641169 # ---------------------
1165 # One issue with vendor `install' (even GNU) is that you can't
1170 # One issue with vendor 'install' (even GNU) is that you can't
11661171 # specify the program used to strip binaries. This is especially
11671172 # annoying in cross-compiling environments, where the build's strip
11681173 # is unlikely to handle the host's binaries.
11691174 # Fortunately install-sh will honor a STRIPPROG variable, so we
1170 # always use install-sh in `make install-strip', and initialize
1175 # always use install-sh in "make install-strip", and initialize
11711176 # STRIPPROG with the value of the STRIP variable (set by the user).
11721177 AC_DEFUN([AM_PROG_INSTALL_STRIP],
11731178 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1174 # Installed binaries are usually stripped using `strip' when the user
1175 # run `make install-strip'. However `strip' might not be the right
1179 # Installed binaries are usually stripped using 'strip' when the user
1180 # run "make install-strip". However 'strip' might not be the right
11761181 # tool to use in cross-compilation environments, therefore Automake
1177 # will honor the `STRIP' environment variable to overrule this program.
1178 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1182 # will honor the 'STRIP' environment variable to overrule this program.
1183 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
11791184 if test "$cross_compiling" != no; then
11801185 AC_CHECK_TOOL([STRIP], [strip], :)
11811186 fi
11821187 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11831188 AC_SUBST([INSTALL_STRIP_PROGRAM])])
11841189
1185 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
1190 # Copyright (C) 2006-2012 Free Software Foundation, Inc.
11861191 #
11871192 # This file is free software; the Free Software Foundation
11881193 # gives unlimited permission to copy and/or distribute it,
12031208
12041209 # Check how to create a tarball. -*- Autoconf -*-
12051210
1206 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
1207 #
1208 # This file is free software; the Free Software Foundation
1209 # gives unlimited permission to copy and/or distribute it,
1210 # with or without modifications, as long as this notice is preserved.
1211
1212 # serial 2
1211 # Copyright (C) 2004-2012 Free Software Foundation, Inc.
1212 #
1213 # This file is free software; the Free Software Foundation
1214 # gives unlimited permission to copy and/or distribute it,
1215 # with or without modifications, as long as this notice is preserved.
1216
1217 # serial 3
12131218
12141219 # _AM_PROG_TAR(FORMAT)
12151220 # --------------------
12161221 # Check how to create a tarball in format FORMAT.
1217 # FORMAT should be one of `v7', `ustar', or `pax'.
1222 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
12181223 #
12191224 # Substitute a variable $(am__tar) that is a command
12201225 # writing to stdout a FORMAT-tarball containing the directory
12371242 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
12381243 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
12391244 # Do not fold the above two line into one, because Tru64 sh and
1240 # Solaris sh will not grok spaces in the rhs of `-'.
1245 # Solaris sh will not grok spaces in the rhs of '-'.
12411246 for _am_tool in $_am_tools
12421247 do
12431248 case $_am_tool in
00 #! /bin/sh
11 # Wrapper for compilers which do not understand '-c -o'.
22
3 scriptversion=2012-01-04.17; # UTC
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009, 2010, 2012 Free
6 # Software Foundation, Inc.
3 scriptversion=2012-03-05.13; # UTC
4
5 # Copyright (C) 1999-2012 Free Software Foundation, Inc.
76 # Written by Tom Tromey <tromey@cygnus.com>.
87 #
98 # This program is free software; you can redistribute it and/or modify
7675 esac
7776 ;;
7877 esac
78 }
79
80 # func_cl_dashL linkdir
81 # Make cl look for libraries in LINKDIR
82 func_cl_dashL ()
83 {
84 func_file_conv "$1"
85 if test -z "$lib_path"; then
86 lib_path=$file
87 else
88 lib_path="$lib_path;$file"
89 fi
90 linker_opts="$linker_opts -LIBPATH:$file"
91 }
92
93 # func_cl_dashl library
94 # Do a library search-path lookup for cl
95 func_cl_dashl ()
96 {
97 lib=$1
98 found=no
99 save_IFS=$IFS
100 IFS=';'
101 for dir in $lib_path $LIB
102 do
103 IFS=$save_IFS
104 if $shared && test -f "$dir/$lib.dll.lib"; then
105 found=yes
106 lib=$dir/$lib.dll.lib
107 break
108 fi
109 if test -f "$dir/$lib.lib"; then
110 found=yes
111 lib=$dir/$lib.lib
112 break
113 fi
114 done
115 IFS=$save_IFS
116
117 if test "$found" != yes; then
118 lib=$lib.lib
119 fi
79120 }
80121
81122 # func_cl_wrapper cl arg...
108149 ;;
109150 esac
110151 ;;
152 -I)
153 eat=1
154 func_file_conv "$2" mingw
155 set x "$@" -I"$file"
156 shift
157 ;;
111158 -I*)
112159 func_file_conv "${1#-I}" mingw
113160 set x "$@" -I"$file"
114161 shift
115162 ;;
163 -l)
164 eat=1
165 func_cl_dashl "$2"
166 set x "$@" "$lib"
167 shift
168 ;;
116169 -l*)
117 lib=${1#-l}
118 found=no
119 save_IFS=$IFS
120 IFS=';'
121 for dir in $lib_path $LIB
122 do
123 IFS=$save_IFS
124 if $shared && test -f "$dir/$lib.dll.lib"; then
125 found=yes
126 set x "$@" "$dir/$lib.dll.lib"
127 break
128 fi
129 if test -f "$dir/$lib.lib"; then
130 found=yes
131 set x "$@" "$dir/$lib.lib"
132 break
133 fi
134 done
135 IFS=$save_IFS
136
137 test "$found" != yes && set x "$@" "$lib.lib"
138 shift
170 func_cl_dashl "${1#-l}"
171 set x "$@" "$lib"
172 shift
173 ;;
174 -L)
175 eat=1
176 func_cl_dashL "$2"
139177 ;;
140178 -L*)
141 func_file_conv "${1#-L}"
142 if test -z "$lib_path"; then
143 lib_path=$file
144 else
145 lib_path="$lib_path;$file"
146 fi
147 linker_opts="$linker_opts -LIBPATH:$file"
179 func_cl_dashL "${1#-L}"
148180 ;;
149181 -static)
150182 shared=false
33 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
44 # 2011, 2012 Free Software Foundation, Inc.
55
6 timestamp='2012-01-01'
6 timestamp='2012-06-10'
77
88 # This file is free software; you can redistribute it and/or modify it
99 # under the terms of the GNU General Public License as published by
1616 # General Public License for more details.
1717 #
1818 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
21 # 02110-1301, USA.
19 # along with this program; if not, see <http://www.gnu.org/licenses/>.
2220 #
2321 # As a special exception to the GNU General Public License, if you
2422 # distribute this file as part of a program that contains a
862860 i*86:Minix:*:*)
863861 echo ${UNAME_MACHINE}-pc-minix
864862 exit ;;
863 aarch64:Linux:*:*)
864 echo ${UNAME_MACHINE}-unknown-linux-gnu
865 exit ;;
866 aarch64_be:Linux:*:*)
867 UNAME_MACHINE=aarch64_be
868 echo ${UNAME_MACHINE}-unknown-linux-gnu
869 exit ;;
865870 alpha:Linux:*:*)
866871 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
867872 EV5) UNAME_MACHINE=alphaev5 ;;
12501255 NEO-?:NONSTOP_KERNEL:*:*)
12511256 echo neo-tandem-nsk${UNAME_RELEASE}
12521257 exit ;;
1253 NSE-?:NONSTOP_KERNEL:*:*)
1258 NSE-*:NONSTOP_KERNEL:*:*)
12541259 echo nse-tandem-nsk${UNAME_RELEASE}
12551260 exit ;;
12561261 NSR-?:NONSTOP_KERNEL:*:*)
13181323 exit ;;
13191324 i*86:AROS:*:*)
13201325 echo ${UNAME_MACHINE}-pc-aros
1326 exit ;;
1327 x86_64:VMkernel:*:*)
1328 echo ${UNAME_MACHINE}-unknown-esx
13211329 exit ;;
13221330 esac
13231331
33 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
44 # 2011, 2012 Free Software Foundation, Inc.
55
6 timestamp='2012-01-01'
6 timestamp='2012-04-18'
77
88 # This file is (in principle) common to ALL GNU software.
99 # The presence of a machine in this file suggests that SOME GNU software
2020 # GNU General Public License for more details.
2121 #
2222 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write to the Free Software
24 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
25 # 02110-1301, USA.
23 # along with this program; if not, see <http://www.gnu.org/licenses/>.
2624 #
2725 # As a special exception to the GNU General Public License, if you
2826 # distribute this file as part of a program that contains a
131129 os=-$maybe_os
132130 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
133131 ;;
132 android-linux)
133 os=-linux-android
134 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
135 ;;
134136 *)
135137 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
136138 if [ $basic_machine != $1 ]
222224 -isc*)
223225 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
224226 ;;
227 -lynx*178)
228 os=-lynxos178
229 ;;
230 -lynx*5)
231 os=-lynxos5
232 ;;
225233 -lynx*)
226234 os=-lynxos
227235 ;;
246254 # Some are omitted here because they have special meanings below.
247255 1750a | 580 \
248256 | a29k \
257 | aarch64 | aarch64_be \
249258 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
250259 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
251260 | am33_2.0 \
318327 c6x)
319328 basic_machine=tic6x-unknown
320329 ;;
321 m6811 | m68hc11 | m6812 | m68hc12 | picochip)
330 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
322331 basic_machine=$basic_machine-unknown
323332 os=-none
324333 ;;
331340 strongarm | thumb | xscale)
332341 basic_machine=arm-unknown
333342 ;;
334
343 xgate)
344 basic_machine=$basic_machine-unknown
345 os=-none
346 ;;
335347 xscaleeb)
336348 basic_machine=armeb-unknown
337349 ;;
354366 # Recognize the basic CPU types with company name.
355367 580-* \
356368 | a29k-* \
369 | aarch64-* | aarch64_be-* \
357370 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
358371 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
359372 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
15291542 c4x-* | tic4x-*)
15301543 os=-coff
15311544 ;;
1545 hexagon-*)
1546 os=-elf
1547 ;;
15321548 tic54x-*)
15331549 os=-coff
15341550 ;;
00 #! /bin/sh
11 # depcomp - compile a program generating dependencies as side-effects
22
3 scriptversion=2011-12-04.11; # UTC
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010,
6 # 2011 Free Software Foundation, Inc.
3 scriptversion=2012-03-27.16; # UTC
4
5 # Copyright (C) 1999-2012 Free Software Foundation, Inc.
76
87 # This program is free software; you can redistribute it and/or modify
98 # it under the terms of the GNU General Public License as published by
2726
2827 case $1 in
2928 '')
30 echo "$0: No command. Try \`$0 --help' for more information." 1>&2
29 echo "$0: No command. Try '$0 --help' for more information." 1>&2
3130 exit 1;
3231 ;;
3332 -h | --h*)
3938
4039 Environment variables:
4140 depmode Dependency tracking mode.
42 source Source file read by `PROGRAMS ARGS'.
43 object Object file output by `PROGRAMS ARGS'.
41 source Source file read by 'PROGRAMS ARGS'.
42 object Object file output by 'PROGRAMS ARGS'.
4443 DEPDIR directory where to store dependencies.
4544 depfile Dependency file to output.
4645 tmpdepfile Temporary file to use when outputting dependencies.
5655 ;;
5756 esac
5857
58 # A tabulation character.
59 tab=' '
60 # A newline character.
61 nl='
62 '
63
5964 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
6065 echo "depcomp: Variables source, object and depmode must be set" 1>&2
6166 exit 1
99104 # slashes to satisfy depend.m4
100105 cygpath_u='sed s,\\\\,/,g'
101106 depmode=msvc7
107 fi
108
109 if test "$depmode" = xlc; then
110 # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency informations.
111 gccflag=-qmakedep=gcc,-MF
112 depmode=gcc
102113 fi
103114
104115 case "$depmode" in
155166 ## The second -e expression handles DOS-style file names with drive letters.
156167 sed -e 's/^[^:]*: / /' \
157168 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
158 ## This next piece of magic avoids the `deleted header file' problem.
169 ## This next piece of magic avoids the "deleted header file" problem.
159170 ## The problem is that when a header file which appears in a .P file
160171 ## is deleted, the dependency causes make to die (because there is
161172 ## typically no way to rebuild the header). We avoid this by adding
162173 ## dummy dependencies for each header file. Too bad gcc doesn't do
163174 ## this for us directly.
164 tr ' ' '
165 ' < "$tmpdepfile" |
166 ## Some versions of gcc put a space before the `:'. On the theory
175 tr ' ' "$nl" < "$tmpdepfile" |
176 ## Some versions of gcc put a space before the ':'. On the theory
167177 ## that the space means something, we add a space to the output as
168178 ## well. hp depmode also adds that space, but also prefixes the VPATH
169179 ## to the object. Take care to not repeat it in the output.
202212 # clever and replace this with sed code, as IRIX sed won't handle
203213 # lines with more than a fixed number of characters (4096 in
204214 # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
205 # the IRIX cc adds comments like `#:fec' to the end of the
215 # the IRIX cc adds comments like '#:fec' to the end of the
206216 # dependency line.
207 tr ' ' '
208 ' < "$tmpdepfile" \
217 tr ' ' "$nl" < "$tmpdepfile" \
209218 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
210 tr '
211 ' ' ' >> "$depfile"
219 tr "$nl" ' ' >> "$depfile"
212220 echo >> "$depfile"
213221
214222 # The second pass generates a dummy entry for each header file.
215 tr ' ' '
216 ' < "$tmpdepfile" \
223 tr ' ' "$nl" < "$tmpdepfile" \
217224 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
218225 >> "$depfile"
219226 else
225232 rm -f "$tmpdepfile"
226233 ;;
227234
235 xlc)
236 # This case exists only to let depend.m4 do its work. It works by
237 # looking at the text of this script. This case will never be run,
238 # since it is checked for above.
239 exit 1
240 ;;
241
228242 aix)
229243 # The C for AIX Compiler uses -M and outputs the dependencies
230244 # in a .u file. In older versions, this file always lives in the
231 # current directory. Also, the AIX compiler puts `$object:' at the
245 # current directory. Also, the AIX compiler puts '$object:' at the
232246 # start of each line; $object doesn't have directory information.
233247 # Version 6 uses the directory in both cases.
234248 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
258272 test -f "$tmpdepfile" && break
259273 done
260274 if test -f "$tmpdepfile"; then
261 # Each line is of the form `foo.o: dependent.h'.
275 # Each line is of the form 'foo.o: dependent.h'.
262276 # Do two passes, one to just change these to
263 # `$object: dependent.h' and one to simply `dependent.h:'.
277 # '$object: dependent.h' and one to simply 'dependent.h:'.
264278 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
265 # That's a tab and a space in the [].
266 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
279 sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
267280 else
268281 # The sourcefile does not contain any dependencies, so just
269282 # store a dummy comment line, to avoid errors with the Makefile
274287 ;;
275288
276289 icc)
277 # Intel's C compiler understands `-MD -MF file'. However on
278 # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
290 # Intel's C compiler anf tcc (Tiny C Compiler) understand '-MD -MF file'.
291 # However on
292 # $CC -MD -MF foo.d -c -o sub/foo.o sub/foo.c
279293 # ICC 7.0 will fill foo.d with something like
280294 # foo.o: sub/foo.c
281295 # foo.o: sub/foo.h
282 # which is wrong. We want:
296 # which is wrong. We want
283297 # sub/foo.o: sub/foo.c
284298 # sub/foo.o: sub/foo.h
285299 # sub/foo.c:
286300 # sub/foo.h:
287301 # ICC 7.1 will output
288302 # foo.o: sub/foo.c sub/foo.h
289 # and will wrap long lines using \ :
303 # and will wrap long lines using '\':
290304 # foo.o: sub/foo.c ... \
291305 # sub/foo.h ... \
292306 # ...
293
307 # tcc 0.9.26 (FIXME still under development at the moment of writing)
308 # will emit a similar output, but also prepend the continuation lines
309 # with horizontal tabulation characters.
294310 "$@" -MD -MF "$tmpdepfile"
295311 stat=$?
296312 if test $stat -eq 0; then :
299315 exit $stat
300316 fi
301317 rm -f "$depfile"
302 # Each line is of the form `foo.o: dependent.h',
303 # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
318 # Each line is of the form 'foo.o: dependent.h',
319 # or 'foo.o: dep1.h dep2.h \', or ' dep3.h dep4.h \'.
304320 # Do two passes, one to just change these to
305 # `$object: dependent.h' and one to simply `dependent.h:'.
306 sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
307 # Some versions of the HPUX 10.20 sed can't process this invocation
308 # correctly. Breaking it into two sed invocations is a workaround.
309 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
310 sed -e 's/$/ :/' >> "$depfile"
321 # '$object: dependent.h' and one to simply 'dependent.h:'.
322 sed -e "s/^[ $tab][ $tab]*/ /" -e "s,^[^:]*:,$object :," \
323 < "$tmpdepfile" > "$depfile"
324 sed '
325 s/[ '"$tab"'][ '"$tab"']*/ /g
326 s/^ *//
327 s/ *\\*$//
328 s/^[^:]*: *//
329 /^$/d
330 /:$/d
331 s/$/ :/
332 ' < "$tmpdepfile" >> "$depfile"
311333 rm -f "$tmpdepfile"
312334 ;;
313335
343365 done
344366 if test -f "$tmpdepfile"; then
345367 sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
346 # Add `dependent.h:' lines.
368 # Add 'dependent.h:' lines.
347369 sed -ne '2,${
348370 s/^ *//
349371 s/ \\*$//
358380
359381 tru64)
360382 # The Tru64 compiler uses -MD to generate dependencies as a side
361 # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
383 # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
362384 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
363 # dependencies in `foo.d' instead, so we check for that too.
385 # dependencies in 'foo.d' instead, so we check for that too.
364386 # Subdirectories are respected.
365387 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
366388 test "x$dir" = "x$object" && dir=
406428 done
407429 if test -f "$tmpdepfile"; then
408430 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
409 # That's a tab and a space in the [].
410 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
431 sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
411432 else
412433 echo "#dummy" > "$depfile"
413434 fi
442463 p
443464 }' | $cygpath_u | sort -u | sed -n '
444465 s/ /\\ /g
445 s/\(.*\)/ \1 \\/p
466 s/\(.*\)/'"$tab"'\1 \\/p
446467 s/.\(.*\) \\/\1:/
447468 H
448469 $ {
449 s/.*/ /
470 s/.*/'"$tab"'/
450471 G
451472 p
452473 }' >> "$depfile"
477498 shift
478499 fi
479500
480 # Remove `-o $object'.
501 # Remove '-o $object'.
481502 IFS=" "
482503 for arg
483504 do
497518 done
498519
499520 test -z "$dashmflag" && dashmflag=-M
500 # Require at least two characters before searching for `:'
521 # Require at least two characters before searching for ':'
501522 # in the target name. This is to cope with DOS-style filenames:
502 # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
523 # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
503524 "$@" $dashmflag |
504 sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
525 sed 's:^['"$tab"' ]*[^:'"$tab"' ][^:][^:]*\:['"$tab"' ]*:'"$object"'\: :' > "$tmpdepfile"
505526 rm -f "$depfile"
506527 cat < "$tmpdepfile" > "$depfile"
507 tr ' ' '
508 ' < "$tmpdepfile" | \
528 tr ' ' "$nl" < "$tmpdepfile" | \
509529 ## Some versions of the HPUX 10.20 sed can't process this invocation
510530 ## correctly. Breaking it into two sed invocations is a workaround.
511531 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
561581 # makedepend may prepend the VPATH from the source file name to the object.
562582 # No need to regex-escape $object, excess matching of '.' is harmless.
563583 sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
564 sed '1,2d' "$tmpdepfile" | tr ' ' '
565 ' | \
584 sed '1,2d' "$tmpdepfile" | tr ' ' "$nl" | \
566585 ## Some versions of the HPUX 10.20 sed can't process this invocation
567586 ## correctly. Breaking it into two sed invocations is a workaround.
568587 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
582601 shift
583602 fi
584603
585 # Remove `-o $object'.
604 # Remove '-o $object'.
586605 IFS=" "
587606 for arg
588607 do
651670 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
652671 rm -f "$depfile"
653672 echo "$object : \\" > "$depfile"
654 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
655 echo " " >> "$depfile"
673 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile"
674 echo "$tab" >> "$depfile"
656675 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
657676 rm -f "$tmpdepfile"
658677 ;;
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2011-01-19.21; # UTC
3 scriptversion=2011-11-20.07; # UTC
44
55 # This originates from X11R5 (mit/util/scripts/install.sh), which was
66 # later released in X11R6 (xc/config/util/install.sh) with the
3434 # FSF changes to this file are in the public domain.
3535 #
3636 # Calling this script install-sh is preferred over install.sh, to prevent
37 # `make' implicit rules from creating a file called install from it
37 # 'make' implicit rules from creating a file called install from it
3838 # when there is no Makefile.
3939 #
4040 # This script is compatible with the BSD install script, but was written
155155 -s) stripcmd=$stripprog;;
156156
157157 -t) dst_arg=$2
158 # Protect names problematic for `test' and other utilities.
158 # Protect names problematic for 'test' and other utilities.
159159 case $dst_arg in
160160 -* | [=\(\)!]) dst_arg=./$dst_arg;;
161161 esac
189189 fi
190190 shift # arg
191191 dst_arg=$arg
192 # Protect names problematic for `test' and other utilities.
192 # Protect names problematic for 'test' and other utilities.
193193 case $dst_arg in
194194 -* | [=\(\)!]) dst_arg=./$dst_arg;;
195195 esac
201201 echo "$0: no input file specified." >&2
202202 exit 1
203203 fi
204 # It's OK to call `install-sh -d' without argument.
204 # It's OK to call 'install-sh -d' without argument.
205205 # This can happen when creating conditional directories.
206206 exit 0
207207 fi
239239
240240 for src
241241 do
242 # Protect names problematic for `test' and other utilities.
242 # Protect names problematic for 'test' and other utilities.
243243 case $src in
244244 -* | [=\(\)!]) src=./$src;;
245245 esac
353353 if test -z "$dir_arg" || {
354354 # Check for POSIX incompatibilities with -m.
355355 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
356 # other-writeable bit of parent directory when it shouldn't.
356 # other-writable bit of parent directory when it shouldn't.
357357 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
358358 ls_ld_tmpdir=`ls -ld "$tmpdir"`
359359 case $ls_ld_tmpdir in
00 #! /bin/sh
11 # Common stub for a few missing GNU programs while installing.
22
3 scriptversion=2012-01-06.13; # UTC
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
6 # 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
3 scriptversion=2012-01-06.18; # UTC
4
5 # Copyright (C) 1996-2012 Free Software Foundation, Inc.
76 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
87
98 # This program is free software; you can redistribute it and/or modify
2524 # the same distribution terms that you use for the rest of that program.
2625
2726 if test $# -eq 0; then
28 echo 1>&2 "Try \`$0 --help' for more information"
27 echo 1>&2 "Try '$0 --help' for more information"
2928 exit 1
3029 fi
3130
3332 sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
3433 sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
3534
36 # In the cases where this matters, `missing' is being run in the
35 # In the cases where this matters, 'missing' is being run in the
3736 # srcdir already.
3837 if test -f configure.ac; then
3938 configure_ac=configure.ac
6463 echo "\
6564 $0 [OPTION]... PROGRAM [ARGUMENT]...
6665
67 Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
66 Handle 'PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
6867 error status if there is no known handling for PROGRAM.
6968
7069 Options:
7372 --run try to run the given command, and emulate it if it fails
7473
7574 Supported PROGRAM values:
76 aclocal touch file \`aclocal.m4'
77 autoconf touch file \`configure'
78 autoheader touch file \`config.h.in'
75 aclocal touch file 'aclocal.m4'
76 autoconf touch file 'configure'
77 autoheader touch file 'config.h.in'
7978 autom4te touch the output file, or create a stub one
80 automake touch all \`Makefile.in' files
81 bison create \`y.tab.[ch]', if possible, from existing .[ch]
82 flex create \`lex.yy.c', if possible, from existing .c
79 automake touch all 'Makefile.in' files
80 bison create 'y.tab.[ch]', if possible, from existing .[ch]
81 flex create 'lex.yy.c', if possible, from existing .c
8382 help2man touch the output file
84 lex create \`lex.yy.c', if possible, from existing .c
83 lex create 'lex.yy.c', if possible, from existing .c
8584 makeinfo touch the output file
86 yacc create \`y.tab.[ch]', if possible, from existing .[ch]
87
88 Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
89 \`g' are ignored when checking the name.
85 yacc create 'y.tab.[ch]', if possible, from existing .[ch]
86
87 Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
88 'g' are ignored when checking the name.
9089
9190 Send bug reports to <bug-automake@gnu.org>."
9291 exit $?
9897 ;;
9998
10099 -*)
101 echo 1>&2 "$0: Unknown \`$1' option"
102 echo 1>&2 "Try \`$0 --help' for more information"
100 echo 1>&2 "$0: Unknown '$1' option"
101 echo 1>&2 "Try '$0 --help' for more information"
103102 exit 1
104103 ;;
105104
126125 exit 1
127126 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
128127 # Could not run --version or --help. This is probably someone
129 # running `$TOOL --version' or `$TOOL --help' to check whether
128 # running '$TOOL --version' or '$TOOL --help' to check whether
130129 # $TOOL exists and not knowing $TOOL uses missing.
131130 exit 1
132131 fi
138137 case $program in
139138 aclocal*)
140139 echo 1>&2 "\
141 WARNING: \`$1' is $msg. You should only need it if
142 you modified \`acinclude.m4' or \`${configure_ac}'. You might want
143 to install the \`Automake' and \`Perl' packages. Grab them from
140 WARNING: '$1' is $msg. You should only need it if
141 you modified 'acinclude.m4' or '${configure_ac}'. You might want
142 to install the Automake and Perl packages. Grab them from
144143 any GNU archive site."
145144 touch aclocal.m4
146145 ;;
147146
148147 autoconf*)
149148 echo 1>&2 "\
150 WARNING: \`$1' is $msg. You should only need it if
151 you modified \`${configure_ac}'. You might want to install the
152 \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
149 WARNING: '$1' is $msg. You should only need it if
150 you modified '${configure_ac}'. You might want to install the
151 Autoconf and GNU m4 packages. Grab them from any GNU
153152 archive site."
154153 touch configure
155154 ;;
156155
157156 autoheader*)
158157 echo 1>&2 "\
159 WARNING: \`$1' is $msg. You should only need it if
160 you modified \`acconfig.h' or \`${configure_ac}'. You might want
161 to install the \`Autoconf' and \`GNU m4' packages. Grab them
158 WARNING: '$1' is $msg. You should only need it if
159 you modified 'acconfig.h' or '${configure_ac}'. You might want
160 to install the Autoconf and GNU m4 packages. Grab them
162161 from any GNU archive site."
163162 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
164163 test -z "$files" && files="config.h"
175174
176175 automake*)
177176 echo 1>&2 "\
178 WARNING: \`$1' is $msg. You should only need it if
179 you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
180 You might want to install the \`Automake' and \`Perl' packages.
177 WARNING: '$1' is $msg. You should only need it if
178 you modified 'Makefile.am', 'acinclude.m4' or '${configure_ac}'.
179 You might want to install the Automake and Perl packages.
181180 Grab them from any GNU archive site."
182181 find . -type f -name Makefile.am -print |
183182 sed 's/\.am$/.in/' |
186185
187186 autom4te*)
188187 echo 1>&2 "\
189 WARNING: \`$1' is needed, but is $msg.
188 WARNING: '$1' is needed, but is $msg.
190189 You might have modified some files without having the
191190 proper tools for further handling them.
192 You can get \`$1' as part of \`Autoconf' from any GNU
191 You can get '$1' as part of Autoconf from any GNU
193192 archive site."
194193
195194 file=`echo "$*" | sed -n "$sed_output"`
209208
210209 bison*|yacc*)
211210 echo 1>&2 "\
212 WARNING: \`$1' $msg. You should only need it if
213 you modified a \`.y' file. You may need the \`Bison' package
211 WARNING: '$1' $msg. You should only need it if
212 you modified a '.y' file. You may need the Bison package
214213 in order for those modifications to take effect. You can get
215 \`Bison' from any GNU archive site."
214 Bison from any GNU archive site."
216215 rm -f y.tab.c y.tab.h
217216 if test $# -ne 1; then
218217 eval LASTARG=\${$#}
239238
240239 lex*|flex*)
241240 echo 1>&2 "\
242 WARNING: \`$1' is $msg. You should only need it if
243 you modified a \`.l' file. You may need the \`Flex' package
241 WARNING: '$1' is $msg. You should only need it if
242 you modified a '.l' file. You may need the Flex package
244243 in order for those modifications to take effect. You can get
245 \`Flex' from any GNU archive site."
244 Flex from any GNU archive site."
246245 rm -f lex.yy.c
247246 if test $# -ne 1; then
248247 eval LASTARG=\${$#}
262261
263262 help2man*)
264263 echo 1>&2 "\
265 WARNING: \`$1' is $msg. You should only need it if
264 WARNING: '$1' is $msg. You should only need it if
266265 you modified a dependency of a manual page. You may need the
267 \`Help2man' package in order for those modifications to take
268 effect. You can get \`Help2man' from any GNU archive site."
266 Help2man package in order for those modifications to take
267 effect. You can get Help2man from any GNU archive site."
269268
270269 file=`echo "$*" | sed -n "$sed_output"`
271270 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
280279
281280 makeinfo*)
282281 echo 1>&2 "\
283 WARNING: \`$1' is $msg. You should only need it if
284 you modified a \`.texi' or \`.texinfo' file, or any other file
282 WARNING: '$1' is $msg. You should only need it if
283 you modified a '.texi' or '.texinfo' file, or any other file
285284 indirectly affecting the aspect of the manual. The spurious
286 call might also be the consequence of using a buggy \`make' (AIX,
287 DU, IRIX). You might want to install the \`Texinfo' package or
288 the \`GNU make' package. Grab either from any GNU archive site."
285 call might also be the consequence of using a buggy 'make' (AIX,
286 DU, IRIX). You might want to install the Texinfo package or
287 the GNU make package. Grab either from any GNU archive site."
289288 # The file to touch is that specified with -o ...
290289 file=`echo "$*" | sed -n "$sed_output"`
291290 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
309308
310309 *)
311310 echo 1>&2 "\
312 WARNING: \`$1' is needed, and is $msg.
311 WARNING: '$1' is needed, and is $msg.
313312 You might have modified some files without having the
314 proper tools for further handling them. Check the \`README' file,
313 proper tools for further handling them. Check the 'README' file,
315314 it often tells you about the needed prerequisites for installing
316315 this package. You may also peek at any GNU archive site, in case
317 some other package would contain this missing \`$1' program."
316 some other package would contain this missing '$1' program."
318317 exit 1
319318 ;;
320319 esac
123123 test $$fail = 0
124124
125125
126 exclude_file_name_regexp--sc_bindtextdomain = ^(libvirt-gconfig/tests|examples)/
126 exclude_file_name_regexp--sc_bindtextdomain = ^(libvirt-gconfig/tests|examples)/|libvirt-glib/libvirt-glib-event.c|libvirt-glib/libvirt-glib-main.c
127127
128128 exclude_file_name_regexp--sc_preprocessor_indentation = ^*/*.[ch]
129129
00 /* config.h.in. Generated from configure.ac by autoheader. */
1
2 /* Enable compile-time and run-time bounds-checking, and some warnings,
3 without upsetting newer glibc. */
4 #if defined __OPTIMIZE__ && __OPTIMIZE__
5 # define _FORTIFY_SOURCE 2
6 #endif
7
18
29 /* Define to 1 if you have the <dlfcn.h> header file. */
310 #undef HAVE_DLFCN_H
6673 /* enable GObject introspection support */
6774 #undef WITH_GOBJECT_INTROSPECTION
6875
69 /* enable compile-time and run-time bounds-checking, and some warnings */
70 #undef _FORTIFY_SOURCE
71
7276 /* Enable GNU extensions */
7377 #undef _GNU_SOURCE
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for libvirt-glib 0.0.8.
2 # Generated by GNU Autoconf 2.68 for libvirt-glib 0.1.2.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
566566 # Identity of this package.
567567 PACKAGE_NAME='libvirt-glib'
568568 PACKAGE_TARNAME='libvirt-glib'
569 PACKAGE_VERSION='0.0.8'
570 PACKAGE_STRING='libvirt-glib 0.0.8'
569 PACKAGE_VERSION='0.1.2'
570 PACKAGE_STRING='libvirt-glib 0.1.2'
571571 PACKAGE_BUGREPORT=''
572572 PACKAGE_URL=''
573573
13801380 # Omit some internal or obsolete options to make the list less imposing.
13811381 # This message is too long to be a string in the A/UX 3.1 sh.
13821382 cat <<_ACEOF
1383 \`configure' configures libvirt-glib 0.0.8 to adapt to many kinds of systems.
1383 \`configure' configures libvirt-glib 0.1.2 to adapt to many kinds of systems.
13841384
13851385 Usage: $0 [OPTION]... [VAR=VALUE]...
13861386
14501450
14511451 if test -n "$ac_init_help"; then
14521452 case $ac_init_help in
1453 short | recursive ) echo "Configuration of libvirt-glib 0.0.8:";;
1453 short | recursive ) echo "Configuration of libvirt-glib 0.1.2:";;
14541454 esac
14551455 cat <<\_ACEOF
14561456
14581458 --disable-option-checking ignore unrecognized --enable/--with options
14591459 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
14601460 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1461 --enable-silent-rules less verbose build output (undo: `make V=1')
1462 --disable-silent-rules verbose build output (undo: `make V=0')
1463 --disable-dependency-tracking speeds up one-time build
1464 --enable-dependency-tracking do not reject slow dependency extractors
1461 --enable-silent-rules less verbose build output (undo: "make V=1")
1462 --disable-silent-rules verbose build output (undo: "make V=0")
1463 --enable-dependency-tracking
1464 do not reject slow dependency extractors
1465 --disable-dependency-tracking
1466 speeds up one-time build
14651467 --enable-shared[=PKGS] build shared libraries [default=yes]
14661468 --enable-static[=PKGS] build static libraries [default=yes]
14671469 --enable-fast-install[=PKGS]
15971599 test -n "$ac_init_help" && exit $ac_status
15981600 if $ac_init_version; then
15991601 cat <<\_ACEOF
1600 libvirt-glib configure 0.0.8
1602 libvirt-glib configure 0.1.2
16011603 generated by GNU Autoconf 2.68
16021604
16031605 Copyright (C) 2010 Free Software Foundation, Inc.
18751877 This file contains any messages produced by compilers while
18761878 running configure, to aid debugging if configure makes a mistake.
18771879
1878 It was created by libvirt-glib $as_me 0.0.8, which was
1880 It was created by libvirt-glib $as_me 0.1.2, which was
18791881 generated by GNU Autoconf 2.68. Invocation command line was
18801882
18811883 $ $0 $@
22562258 ac_config_headers="$ac_config_headers config.h"
22572259
22582260
2259 am__api_version='1.11'
2261 am__api_version='1.12'
22602262
22612263 # Find a good install program. We prefer a C program (faster),
22622264 # so one script is as good as another. But avoid the broken or
23532355
23542356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
23552357 $as_echo_n "checking whether build environment is sane... " >&6; }
2356 # Just in case
2357 sleep 1
2358 echo timestamp > conftest.file
23592358 # Reject unsafe characters in $srcdir or the absolute working directory
23602359 # name. Accept space and tab only in the latter.
23612360 am_lf='
23662365 esac
23672366 case $srcdir in
23682367 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2369 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2368 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
23702369 esac
23712370
2372 # Do `set' in a subshell so we don't clobber the current shell's
2371 # Do 'set' in a subshell so we don't clobber the current shell's
23732372 # arguments. Must try -L first in case configure is actually a
23742373 # symlink; some systems play weird games with the mod time of symlinks
23752374 # (eg FreeBSD returns the mod time of the symlink's containing
23762375 # directory).
23772376 if (
2378 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2379 if test "$*" = "X"; then
2380 # -L didn't work.
2381 set X `ls -t "$srcdir/configure" conftest.file`
2382 fi
2383 rm -f conftest.file
2384 if test "$*" != "X $srcdir/configure conftest.file" \
2385 && test "$*" != "X conftest.file $srcdir/configure"; then
2386
2387 # If neither matched, then we have a broken ls. This can happen
2388 # if, for instance, CONFIG_SHELL is bash and it inherits a
2389 # broken ls alias from the environment. This has actually
2390 # happened. Such a system could not be considered "sane".
2391 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2392 alias in your environment" "$LINENO" 5
2393 fi
2394
2377 am_has_slept=no
2378 for am_try in 1 2; do
2379 echo "timestamp, slept: $am_has_slept" > conftest.file
2380 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2381 if test "$*" = "X"; then
2382 # -L didn't work.
2383 set X `ls -t "$srcdir/configure" conftest.file`
2384 fi
2385 if test "$*" != "X $srcdir/configure conftest.file" \
2386 && test "$*" != "X conftest.file $srcdir/configure"; then
2387
2388 # If neither matched, then we have a broken ls. This can happen
2389 # if, for instance, CONFIG_SHELL is bash and it inherits a
2390 # broken ls alias from the environment. This has actually
2391 # happened. Such a system could not be considered "sane".
2392 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2393 alias in your environment" "$LINENO" 5
2394 fi
2395 if test "$2" = conftest.file || test $am_try -eq 2; then
2396 break
2397 fi
2398 # Just in case.
2399 sleep 1
2400 am_has_slept=yes
2401 done
23952402 test "$2" = conftest.file
23962403 )
23972404 then
24032410 fi
24042411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24052412 $as_echo "yes" >&6; }
2413 # If we didn't sleep, we still need to ensure time stamps of config.status and
2414 # generated files are strictly newer.
2415 am_sleep_pid=
2416 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2417 ( sleep 1 ) &
2418 am_sleep_pid=$!
2419 fi
2420
2421 rm -f conftest.file
2422
24062423 test "$program_prefix" != NONE &&
24072424 program_transform_name="s&^&$program_prefix&;$program_transform_name"
24082425 # Use a double $ so make ignores it.
24292446 am_missing_run="$MISSING --run "
24302447 else
24312448 am_missing_run=
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2433 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2450 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
24342451 fi
24352452
24362453 if test x"${install_sh}" != xset; then
24422459 esac
24432460 fi
24442461
2445 # Installed binaries are usually stripped using `strip' when the user
2446 # run `make install-strip'. However `strip' might not be the right
2462 # Installed binaries are usually stripped using 'strip' when the user
2463 # run "make install-strip". However 'strip' might not be the right
24472464 # tool to use in cross-compilation environments, therefore Automake
2448 # will honor the `STRIP' environment variable to overrule this program.
2465 # will honor the 'STRIP' environment variable to overrule this program.
24492466 if test "$cross_compiling" != no; then
24502467 if test -n "$ac_tool_prefix"; then
24512468 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
25842601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
25852602 $as_echo "$MKDIR_P" >&6; }
25862603
2587 mkdir_p="$MKDIR_P"
2588 case $mkdir_p in
2589 [\\/$]* | ?:[\\/]*) ;;
2590 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2591 esac
2592
25932604 for ac_prog in gawk mawk nawk awk
25942605 do
25952606 # Extract the first word of "$ac_prog", so it can be a program name with args.
26942705
26952706 # Define the identity of the package.
26962707 PACKAGE='libvirt-glib'
2697 VERSION='0.0.8'
2708 VERSION='0.1.2'
26982709
26992710
27002711 cat >>confdefs.h <<_ACEOF
27212732
27222733
27232734 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2735
2736 # For better backward compatibility. To be removed once Automake 1.9.x
2737 # dies out for good. For more background, see:
2738 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2739 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2740 mkdir_p='$(MKDIR_P)'
27242741
27252742 # We need awk for the "check" target. The system "awk" is bad on
27262743 # some platforms.
28112828 enableval=$enable_silent_rules;
28122829 fi
28132830
2814 case $enable_silent_rules in
2815 yes) AM_DEFAULT_VERBOSITY=0;;
2816 no) AM_DEFAULT_VERBOSITY=1;;
2817 *) AM_DEFAULT_VERBOSITY=0;;
2831 case $enable_silent_rules in # (((
2832 yes) AM_DEFAULT_VERBOSITY=0;;
2833 no) AM_DEFAULT_VERBOSITY=1;;
2834 *) AM_DEFAULT_VERBOSITY=0;;
28182835 esac
28192836 am_make=${MAKE-make}
28202837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
36753692 _am_result=none
36763693 # First try GNU make style include.
36773694 echo "include confinc" > confmf
3678 # Ignore all kinds of additional output from `make'.
3695 # Ignore all kinds of additional output from 'make'.
36793696 case `$am_make -s -f confmf 2> /dev/null` in #(
36803697 *the\ am__doit\ target*)
36813698 am__include=include
37313748 # We make a subdir and do the tests there. Otherwise we can end up
37323749 # making bogus files that we don't know about and never remove. For
37333750 # instance it was reported that on HP-UX the gcc test will end up
3734 # making a dummy file named `D' -- because `-MD' means `put the output
3735 # in D'.
3751 # making a dummy file named 'D' -- because '-MD' means "put the output
3752 # in D".
37363753 rm -rf conftest.dir
37373754 mkdir conftest.dir
37383755 # Copy depcomp to subdir because otherwise we won't find it if we're
37673784 : > sub/conftest.c
37683785 for i in 1 2 3 4 5 6; do
37693786 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3770 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3771 # Solaris 8's {/usr,}/bin/sh.
3772 touch sub/conftst$i.h
3787 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3788 # Solaris 10 /bin/sh.
3789 echo '/* dummy */' > sub/conftst$i.h
37733790 done
37743791 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
37753792
3776 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3793 # We check with '-c' and '-o' for the sake of the "dashmstdout"
37773794 # mode. It turns out that the SunPro C++ compiler does not properly
3778 # handle `-M -o', and we need to detect this. Also, some Intel
3779 # versions had trouble with output in subdirs
3795 # handle '-M -o', and we need to detect this. Also, some Intel
3796 # versions had trouble with output in subdirs.
37803797 am__obj=sub/conftest.${OBJEXT-o}
37813798 am__minus_obj="-o $am__obj"
37823799 case $depmode in
37853802 test "$am__universal" = false || continue
37863803 ;;
37873804 nosideeffect)
3788 # after this tag, mechanisms are not by side-effect, so they'll
3789 # only be used when explicitly requested
3805 # After this tag, mechanisms are not by side-effect, so they'll
3806 # only be used when explicitly requested.
37903807 if test "x$enable_dependency_tracking" = xyes; then
37913808 continue
37923809 else
37943811 fi
37953812 ;;
37963813 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3797 # This compiler won't grok `-c -o', but also, the minuso test has
3814 # This compiler won't grok '-c -o', but also, the minuso test has
37983815 # not run yet. These depmodes are late enough in the game, and
37993816 # so weak that their functioning should not be impacted.
38003817 am__obj=conftest.${OBJEXT-o}
1234212359
1234312360 # Use improved glibc headers
1234412361
12345 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
12346
1234712362
1234812363 # Extra special flags
1234912364 case $host in
1414514160 fi
1414614161
1414714162
14148 ac_config_files="$ac_config_files Makefile libvirt-glib/Makefile libvirt-gconfig/Makefile libvirt-gconfig/tests/Makefile libvirt-gobject/Makefile examples/Makefile python/Makefile vapi/Makefile docs/Makefile docs/libvirt-glib/Makefile docs/libvirt-gobject/Makefile docs/libvirt-gconfig/Makefile libvirt-glib-1.0.pc libvirt-gconfig-1.0.pc libvirt-gobject-1.0.pc libvirt-glib.spec mingw32-libvirt-glib.spec"
14163 ac_config_files="$ac_config_files Makefile libvirt-glib/Makefile libvirt-gconfig/Makefile libvirt-gconfig/tests/Makefile libvirt-gobject/Makefile examples/Makefile python/Makefile vapi/Makefile docs/Makefile docs/libvirt-glib/Makefile docs/libvirt-glib/version.xml docs/libvirt-gobject/Makefile docs/libvirt-gconfig/Makefile libvirt-glib-1.0.pc libvirt-gconfig-1.0.pc libvirt-gobject-1.0.pc libvirt-glib.spec mingw-libvirt-glib.spec"
1414914164
1415014165 cat >confcache <<\_ACEOF
1415114166 # This file is a shell script that caches the results of configure
1425614271 LTLIBOBJS=$ac_ltlibobjs
1425714272
1425814273
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14275 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14276 if test -n "$am_sleep_pid"; then
14277 # Hide warnings about reused PIDs.
14278 wait $am_sleep_pid 2>/dev/null
14279 fi
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14281 $as_echo "done" >&6; }
1425914282 if test -n "$EXEEXT"; then
1426014283 am__EXEEXT_TRUE=
1426114284 am__EXEEXT_FALSE='#'
1471314736 # report actual input values of CONFIG_FILES etc. instead of their
1471414737 # values after options handling.
1471514738 ac_log="
14716 This file was extended by libvirt-glib $as_me 0.0.8, which was
14739 This file was extended by libvirt-glib $as_me 0.1.2, which was
1471714740 generated by GNU Autoconf 2.68. Invocation command line was
1471814741
1471914742 CONFIG_FILES = $CONFIG_FILES
1478314806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1478414807 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1478514808 ac_cs_version="\\
14786 libvirt-glib config.status 0.0.8
14809 libvirt-glib config.status 0.1.2
1478714810 configured by $0, generated by GNU Autoconf 2.68,
1478814811 with options \\"\$ac_cs_config\\"
1478914812
1520615229 "vapi/Makefile") CONFIG_FILES="$CONFIG_FILES vapi/Makefile" ;;
1520715230 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
1520815231 "docs/libvirt-glib/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libvirt-glib/Makefile" ;;
15232 "docs/libvirt-glib/version.xml") CONFIG_FILES="$CONFIG_FILES docs/libvirt-glib/version.xml" ;;
1520915233 "docs/libvirt-gobject/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libvirt-gobject/Makefile" ;;
1521015234 "docs/libvirt-gconfig/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libvirt-gconfig/Makefile" ;;
1521115235 "libvirt-glib-1.0.pc") CONFIG_FILES="$CONFIG_FILES libvirt-glib-1.0.pc" ;;
1521215236 "libvirt-gconfig-1.0.pc") CONFIG_FILES="$CONFIG_FILES libvirt-gconfig-1.0.pc" ;;
1521315237 "libvirt-gobject-1.0.pc") CONFIG_FILES="$CONFIG_FILES libvirt-gobject-1.0.pc" ;;
1521415238 "libvirt-glib.spec") CONFIG_FILES="$CONFIG_FILES libvirt-glib.spec" ;;
15215 "mingw32-libvirt-glib.spec") CONFIG_FILES="$CONFIG_FILES mingw32-libvirt-glib.spec" ;;
15239 "mingw-libvirt-glib.spec") CONFIG_FILES="$CONFIG_FILES mingw-libvirt-glib.spec" ;;
1521615240
1521715241 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1521815242 esac
1585415878 # Strip MF so we end up with the name of the file.
1585515879 mf=`echo "$mf" | sed -e 's/:.*$//'`
1585615880 # Check whether this is an Automake generated Makefile or not.
15857 # We used to match only the files named `Makefile.in', but
15881 # We used to match only the files named 'Makefile.in', but
1585815882 # some people rename them; so instead we look at the file content.
1585915883 # Grep'ing the first line is not enough: some people post-process
1586015884 # each Makefile.in and add a new line on top of each file to say so.
1588815912 continue
1588915913 fi
1589015914 # Extract the definition of DEPDIR, am__include, and am__quote
15891 # from the Makefile without running `make'.
15915 # from the Makefile without running 'make'.
1589215916 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1589315917 test -z "$DEPDIR" && continue
1589415918 am__include=`sed -n 's/^am__include = //p' < "$mf"`
1589515919 test -z "am__include" && continue
1589615920 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15897 # When using ansi2knr, U may be empty or an underscore; expand it
15898 U=`sed -n 's/^U = //p' < "$mf"`
1589915921 # Find all dependency output files, they are included files with
1590015922 # $(DEPDIR) in their names. We invoke sed twice because it is the
1590115923 # simplest approach to changing $(DEPDIR) to its actual value in the
1590215924 # expansion.
1590315925 for file in `sed -n "
1590415926 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15905 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15927 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
1590615928 # Make sure the directory exists.
1590715929 test -f "$dirpart/$file" && continue
1590815930 fdir=`$as_dirname -- "$file" ||
0 AC_INIT(libvirt-glib, 0.0.8)
0 AC_INIT(libvirt-glib, 0.1.2)
11 AC_CONFIG_SRCDIR(libvirt-glib/libvirt-glib-main.c)
22 AC_CONFIG_AUX_DIR([build-aux])
33 AM_CONFIG_HEADER(config.h)
258258 vapi/Makefile
259259 docs/Makefile
260260 docs/libvirt-glib/Makefile
261 docs/libvirt-glib/version.xml
261262 docs/libvirt-gobject/Makefile
262263 docs/libvirt-gconfig/Makefile
263264 libvirt-glib-1.0.pc
264265 libvirt-gconfig-1.0.pc
265266 libvirt-gobject-1.0.pc
266267 libvirt-glib.spec
267 mingw32-libvirt-glib.spec)
268 mingw-libvirt-glib.spec)
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
0 # Makefile.in generated by automake 1.12.2 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1413
1514 @SET_MAKE@
1615 VPATH = @srcdir@
16 am__make_dryrun = \
17 { \
18 am__dry=no; \
19 case $$MAKEFLAGS in \
20 *\\[\ \ ]*) \
21 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
22 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
23 *) \
24 for am__flg in $$MAKEFLAGS; do \
25 case $$am__flg in \
26 *=*|--*) ;; \
27 *n*) am__dry=yes; break;; \
28 esac; \
29 done;; \
30 esac; \
31 test $$am__dry = yes; \
32 }
1733 pkgdatadir = $(datadir)/@PACKAGE@
1834 pkgincludedir = $(includedir)/@PACKAGE@
1935 pkglibdir = $(libdir)/@PACKAGE@
4763 CONFIG_HEADER = $(top_builddir)/config.h
4864 CONFIG_CLEAN_FILES =
4965 CONFIG_CLEAN_VPATH_FILES =
66 AM_V_P = $(am__v_P_@AM_V@)
67 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
68 am__v_P_0 = false
69 am__v_P_1 = :
5070 AM_V_GEN = $(am__v_GEN_@AM_V@)
5171 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
52 am__v_GEN_0 = @echo " GEN " $@;
72 am__v_GEN_0 = @echo " GEN " $@;
73 am__v_GEN_1 =
5374 AM_V_at = $(am__v_at_@AM_V@)
5475 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
5576 am__v_at_0 = @
77 am__v_at_1 =
5678 SOURCES =
5779 DIST_SOURCES =
5880 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
6284 install-pdf-recursive install-ps-recursive install-recursive \
6385 installcheck-recursive installdirs-recursive pdf-recursive \
6486 ps-recursive uninstall-recursive
87 am__can_run_installinfo = \
88 case $$AM_UPDATE_INFO_DIR in \
89 n|no|NO) false;; \
90 *) (install-info --version) >/dev/null 2>&1;; \
91 esac
6592 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
6693 distclean-recursive maintainer-clean-recursive
6794 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
300327 -rm -rf .libs _libs
301328
302329 # This directory's subdirectories are mostly independent; you can cd
303 # into them and run `make' without going through this Makefile.
304 # To change the values of `make' variables: instead of editing Makefiles,
305 # (1) if the variable is set in `config.status', edit `config.status'
306 # (which will cause the Makefiles to be regenerated when you run `make');
307 # (2) otherwise, pass the desired values on the `make' command line.
308 $(RECURSIVE_TARGETS):
330 # into them and run 'make' without going through this Makefile.
331 # To change the values of 'make' variables: instead of editing Makefiles,
332 # (1) if the variable is set in 'config.status', edit 'config.status'
333 # (which will cause the Makefiles to be regenerated when you run 'make');
334 # (2) otherwise, pass the desired values on the 'make' command line.
335 $(RECURSIVE_TARGETS) $(RECURSIVE_CLEAN_TARGETS):
309336 @fail= failcom='exit 1'; \
310337 for f in x $$MAKEFLAGS; do \
311338 case $$f in \
315342 done; \
316343 dot_seen=no; \
317344 target=`echo $@ | sed s/-recursive//`; \
318 list='$(SUBDIRS)'; for subdir in $$list; do \
345 case "$@" in \
346 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
347 *) list='$(SUBDIRS)' ;; \
348 esac; \
349 for subdir in $$list; do \
319350 echo "Making $$target in $$subdir"; \
320351 if test "$$subdir" = "."; then \
321352 dot_seen=yes; \
329360 if test "$$dot_seen" = "no"; then \
330361 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
331362 fi; test -z "$$fail"
332
333 $(RECURSIVE_CLEAN_TARGETS):
334 @fail= failcom='exit 1'; \
335 for f in x $$MAKEFLAGS; do \
336 case $$f in \
337 *=* | --[!k]*);; \
338 *k*) failcom='fail=yes';; \
339 esac; \
340 done; \
341 dot_seen=no; \
342 case "$@" in \
343 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
344 *) list='$(SUBDIRS)' ;; \
345 esac; \
346 rev=''; for subdir in $$list; do \
347 if test "$$subdir" = "."; then :; else \
348 rev="$$subdir $$rev"; \
349 fi; \
350 done; \
351 rev="$$rev ."; \
352 target=`echo $@ | sed s/-recursive//`; \
353 for subdir in $$rev; do \
354 echo "Making $$target in $$subdir"; \
355 if test "$$subdir" = "."; then \
356 local_target="$$target-am"; \
357 else \
358 local_target="$$target"; \
359 fi; \
360 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
361 || eval $$failcom; \
362 done && test -z "$$fail"
363363 tags-recursive:
364364 list='$(SUBDIRS)'; for subdir in $$list; do \
365365 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
367367 ctags-recursive:
368368 list='$(SUBDIRS)'; for subdir in $$list; do \
369369 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
370 done
371 cscopelist-recursive:
372 list='$(SUBDIRS)'; for subdir in $$list; do \
373 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) cscopelist); \
370374 done
371375
372376 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
431435 && $(am__cd) $(top_srcdir) \
432436 && gtags -i $(GTAGS_ARGS) "$$here"
433437
438 cscopelist: cscopelist-recursive $(HEADERS) $(SOURCES) $(LISP)
439 list='$(SOURCES) $(HEADERS) $(LISP)'; \
440 case "$(srcdir)" in \
441 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
442 *) sdir=$(subdir)/$(srcdir) ;; \
443 esac; \
444 for i in $$list; do \
445 if test -f "$$i"; then \
446 echo "$(subdir)/$$i"; \
447 else \
448 echo "$$sdir/$$i"; \
449 fi; \
450 done >> $(top_builddir)/cscope.files
451
434452 distclean-tags:
435453 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
436454
466484 done
467485 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
468486 if test "$$subdir" = .; then :; else \
469 test -d "$(distdir)/$$subdir" \
470 || $(MKDIR_P) "$(distdir)/$$subdir" \
471 || exit 1; \
472 fi; \
473 done
474 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
475 if test "$$subdir" = .; then :; else \
487 $(am__make_dryrun) \
488 || test -d "$(distdir)/$$subdir" \
489 || $(MKDIR_P) "$(distdir)/$$subdir" \
490 || exit 1; \
476491 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
477492 $(am__relativize); \
478493 new_distdir=$$reldir; \
593608
594609 uninstall-am:
595610
596 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
597 install-am install-strip tags-recursive
611 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) \
612 cscopelist-recursive ctags-recursive install-am install-strip \
613 tags-recursive
598614
599615 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
600616 all all-am check check-am clean clean-generic clean-libtool \
601 ctags ctags-recursive distclean distclean-generic \
602 distclean-libtool distclean-tags distdir dvi dvi-am html \
603 html-am info info-am install install-am install-data \
604 install-data-am install-dvi install-dvi-am install-exec \
605 install-exec-am install-html install-html-am install-info \
606 install-info-am install-man install-pdf install-pdf-am \
607 install-ps install-ps-am install-strip installcheck \
608 installcheck-am installdirs installdirs-am maintainer-clean \
609 maintainer-clean-generic mostlyclean mostlyclean-generic \
610 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
611 uninstall uninstall-am
617 cscopelist cscopelist-recursive ctags ctags-recursive \
618 distclean distclean-generic distclean-libtool distclean-tags \
619 distdir dvi dvi-am html html-am info info-am install \
620 install-am install-data install-data-am install-dvi \
621 install-dvi-am install-exec install-exec-am install-html \
622 install-html-am install-info install-info-am install-man \
623 install-pdf install-pdf-am install-ps install-ps-am \
624 install-strip installcheck installcheck-am installdirs \
625 installdirs-am maintainer-clean maintainer-clean-generic \
626 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
627 ps ps-am tags tags-recursive uninstall uninstall-am
612628
613629
614630 # Tell versions [3.59,3.63) of GNU make to not export all variables.
77 <TITLE>GVirConfigCapabilities</TITLE>
88 GVirConfigCapabilities
99 GVirConfigCapabilitiesClass
10 gvir_config_capabilities_get_guests
11 gvir_config_capabilities_get_host
1012 gvir_config_capabilities_new
1113 gvir_config_capabilities_new_from_xml
1214 <SUBSECTION Standard>
2123 </SECTION>
2224
2325 <SECTION>
26 <FILE>libvirt-gconfig-capabilities-cpu</FILE>
27 <TITLE>GVirConfigCapabilitiesCpu</TITLE>
28 GVirConfigCapabilitiesCpu
29 GVirConfigCapabilitiesCpuClass
30 gvir_config_capabilities_cpu_add_feature
31 gvir_config_capabilities_cpu_get_arch
32 gvir_config_capabilities_cpu_get_features
33 gvir_config_capabilities_cpu_get_topology
34 gvir_config_capabilities_cpu_set_topology
35 <SUBSECTION Standard>
36 GVIR_CONFIG_CAPABILITIES_CPU
37 GVIR_CONFIG_CAPABILITIES_CPU_CLASS
38 GVIR_CONFIG_CAPABILITIES_CPU_GET_CLASS
39 GVIR_CONFIG_IS_CAPABILITIES_CPU
40 GVIR_CONFIG_IS_CAPABILITIES_CPU_CLASS
41 GVIR_CONFIG_TYPE_CAPABILITIES_CPU
42 GVirConfigCapabilitiesCpuPrivate
43 gvir_config_capabilities_cpu_get_type
44 </SECTION>
45
46 <SECTION>
47 <FILE>libvirt-gconfig-capabilities-cpu-feature</FILE>
48 <TITLE>GVirConfigCapabilitiesCpuFeature</TITLE>
49 GVirConfigCapabilitiesCpuFeature
50 GVirConfigCapabilitiesCpuFeatureClass
51 gvir_config_capabilities_cpu_feature_get_name
52 gvir_config_capabilities_cpu_feature_set_name
53 <SUBSECTION Standard>
54 GVIR_CONFIG_CAPABILITIES_CPU_FEATURE
55 GVIR_CONFIG_CAPABILITIES_CPU_FEATURE_CLASS
56 GVIR_CONFIG_CAPABILITIES_CPU_FEATURE_GET_CLASS
57 GVIR_CONFIG_IS_CAPABILITIES_CPU_FEATURE
58 GVIR_CONFIG_IS_CAPABILITIES_CPU_FEATURE_CLASS
59 GVIR_CONFIG_TYPE_CAPABILITIES_CPU_FEATURE
60 GVirConfigCapabilitiesCpuFeaturePrivate
61 gvir_config_capabilities_cpu_feature_get_type
62 </SECTION>
63
64 <SECTION>
65 <FILE>libvirt-gconfig-capabilities-cpu-private</FILE>
66 gvir_config_capabilities_cpu_get_features_with_type
67 </SECTION>
68
69 <SECTION>
70 <FILE>libvirt-gconfig-capabilities-cpu-topology</FILE>
71 <TITLE>GVirConfigCapabilitiesCpuTopology</TITLE>
72 GVirConfigCapabilitiesCpuTopology
73 GVirConfigCapabilitiesCpuTopologyClass
74 gvir_config_capabilities_cpu_topology_get_cores
75 gvir_config_capabilities_cpu_topology_get_sockets
76 gvir_config_capabilities_cpu_topology_get_threads
77 gvir_config_capabilities_cpu_topology_new
78 gvir_config_capabilities_cpu_topology_new_from_xml
79 gvir_config_capabilities_cpu_topology_set_cores
80 gvir_config_capabilities_cpu_topology_set_sockets
81 gvir_config_capabilities_cpu_topology_set_threads
82 <SUBSECTION Standard>
83 GVIR_CONFIG_CAPABILITIES_CPU_TOPOLOGY
84 GVIR_CONFIG_CAPABILITIES_CPU_TOPOLOGY_CLASS
85 GVIR_CONFIG_CAPABILITIES_CPU_TOPOLOGY_GET_CLASS
86 GVIR_CONFIG_IS_CAPABILITIES_CPU_TOPOLOGY
87 GVIR_CONFIG_IS_CAPABILITIES_CPU_TOPOLOGY_CLASS
88 GVIR_CONFIG_TYPE_CAPABILITIES_CPU_TOPOLOGY
89 GVirConfigCapabilitiesCpuTopologyPrivate
90 gvir_config_capabilities_cpu_topology_get_type
91 </SECTION>
92
93 <SECTION>
94 <FILE>libvirt-gconfig-capabilities-guest</FILE>
95 <TITLE>GVirConfigCapabilitiesGuest</TITLE>
96 GVirConfigCapabilitiesGuest
97 GVirConfigCapabilitiesGuestClass
98 gvir_config_capabilities_guest_get_arch
99 gvir_config_capabilities_guest_get_features
100 gvir_config_capabilities_guest_get_os_type
101 <SUBSECTION Standard>
102 GVIR_CONFIG_CAPABILITIES_GUEST
103 GVIR_CONFIG_CAPABILITIES_GUEST_CLASS
104 GVIR_CONFIG_CAPABILITIES_GUEST_GET_CLASS
105 GVIR_CONFIG_IS_CAPABILITIES_GUEST
106 GVIR_CONFIG_IS_CAPABILITIES_GUEST_CLASS
107 GVIR_CONFIG_TYPE_CAPABILITIES_GUEST
108 GVirConfigCapabilitiesGuestPrivate
109 gvir_config_capabilities_guest_get_type
110 </SECTION>
111
112 <SECTION>
113 <FILE>libvirt-gconfig-capabilities-guest-arch</FILE>
114 <TITLE>GVirConfigCapabilitiesGuestArch</TITLE>
115 GVirConfigCapabilitiesGuestArch
116 GVirConfigCapabilitiesGuestArchClass
117 gvir_config_capabilities_guest_arch_get_domains
118 gvir_config_capabilities_guest_arch_get_emulator
119 gvir_config_capabilities_guest_arch_get_name
120 <SUBSECTION Standard>
121 GVIR_CONFIG_CAPABILITIES_GUEST_ARCH
122 GVIR_CONFIG_CAPABILITIES_GUEST_ARCH_CLASS
123 GVIR_CONFIG_CAPABILITIES_GUEST_ARCH_GET_CLASS
124 GVIR_CONFIG_IS_CAPABILITIES_GUEST_ARCH
125 GVIR_CONFIG_IS_CAPABILITIES_GUEST_ARCH_CLASS
126 GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_ARCH
127 GVirConfigCapabilitiesGuestArchPrivate
128 gvir_config_capabilities_guest_arch_get_type
129 </SECTION>
130
131 <SECTION>
132 <FILE>libvirt-gconfig-capabilities-guest-domain</FILE>
133 <TITLE>GVirConfigCapabilitiesGuestDomain</TITLE>
134 GVirConfigCapabilitiesGuestDomain
135 GVirConfigCapabilitiesGuestDomainClass
136 gvir_config_capabilities_guest_domain_get_emulator
137 gvir_config_capabilities_guest_domain_get_virt_type
138 <SUBSECTION Standard>
139 GVIR_CONFIG_CAPABILITIES_GUEST_DOMAIN
140 GVIR_CONFIG_CAPABILITIES_GUEST_DOMAIN_CLASS
141 GVIR_CONFIG_CAPABILITIES_GUEST_DOMAIN_GET_CLASS
142 GVIR_CONFIG_IS_CAPABILITIES_GUEST_DOMAIN
143 GVIR_CONFIG_IS_CAPABILITIES_GUEST_DOMAIN_CLASS
144 GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_DOMAIN
145 GVirConfigCapabilitiesGuestDomainPrivate
146 gvir_config_capabilities_guest_domain_get_type
147 </SECTION>
148
149 <SECTION>
150 <FILE>libvirt-gconfig-capabilities-guest-feature</FILE>
151 <TITLE>GVirConfigCapabilitiesGuestFeature</TITLE>
152 GVirConfigCapabilitiesGuestFeature
153 GVirConfigCapabilitiesGuestFeatureClass
154 gvir_config_capabilities_guest_feature_get_name
155 <SUBSECTION Standard>
156 GVIR_CONFIG_CAPABILITIES_GUEST_FEATURE
157 GVIR_CONFIG_CAPABILITIES_GUEST_FEATURE_CLASS
158 GVIR_CONFIG_CAPABILITIES_GUEST_FEATURE_GET_CLASS
159 GVIR_CONFIG_IS_CAPABILITIES_GUEST_FEATURE
160 GVIR_CONFIG_IS_CAPABILITIES_GUEST_FEATURE_CLASS
161 GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_FEATURE
162 GVirConfigCapabilitiesGuestFeaturePrivate
163 gvir_config_capabilities_guest_feature_get_type
164 </SECTION>
165
166 <SECTION>
167 <FILE>libvirt-gconfig-capabilities-host</FILE>
168 <TITLE>GVirConfigCapabilitiesHost</TITLE>
169 GVirConfigCapabilitiesHost
170 GVirConfigCapabilitiesHostClass
171 gvir_config_capabilities_host_get_cpu
172 gvir_config_capabilities_host_get_uuid
173 <SUBSECTION Standard>
174 GVIR_CONFIG_CAPABILITIES_HOST
175 GVIR_CONFIG_CAPABILITIES_HOST_CLASS
176 GVIR_CONFIG_CAPABILITIES_HOST_GET_CLASS
177 GVIR_CONFIG_IS_CAPABILITIES_HOST
178 GVIR_CONFIG_IS_CAPABILITIES_HOST_CLASS
179 GVIR_CONFIG_TYPE_CAPABILITIES_HOST
180 GVirConfigCapabilitiesHostPrivate
181 gvir_config_capabilities_host_get_type
182 </SECTION>
183
184 <SECTION>
24185 <FILE>libvirt-gconfig-domain</FILE>
25186 <TITLE>GVirConfigDomain</TITLE>
26187 GVirConfigDomain
29190 GVirConfigDomainLifecycleEvent
30191 GVirConfigDomainVirtType
31192 gvir_config_domain_add_device
193 gvir_config_domain_get_cpu
32194 gvir_config_domain_get_custom_xml
33195 gvir_config_domain_get_description
34196 gvir_config_domain_get_devices
35197 gvir_config_domain_get_features
36198 gvir_config_domain_get_memory
37199 gvir_config_domain_get_name
200 gvir_config_domain_get_os
201 gvir_config_domain_get_title
38202 gvir_config_domain_get_vcpus
203 gvir_config_domain_get_virt_type
39204 gvir_config_domain_new
40205 gvir_config_domain_new_from_xml
41206 gvir_config_domain_set_clock
207 gvir_config_domain_set_cpu
42208 gvir_config_domain_set_custom_xml
43209 gvir_config_domain_set_description
44210 gvir_config_domain_set_devices
48214 gvir_config_domain_set_name
49215 gvir_config_domain_set_os
50216 gvir_config_domain_set_seclabel
217 gvir_config_domain_set_title
51218 gvir_config_domain_set_vcpus
52219 gvir_config_domain_set_virt_type
53220 <SUBSECTION Standard>
295462 </SECTION>
296463
297464 <SECTION>
465 <FILE>libvirt-gconfig-domain-cpu</FILE>
466 <TITLE>GVirConfigDomainCpu</TITLE>
467 GVirConfigDomainCpu
468 GVirConfigDomainCpuClass
469 GVirConfigDomainCpuMatchPolicy
470 GVirConfigDomainCpuMode
471 gvir_config_domain_cpu_get_match_policy
472 gvir_config_domain_cpu_get_mode
473 gvir_config_domain_cpu_new
474 gvir_config_domain_cpu_new_from_xml
475 gvir_config_domain_cpu_set_match_policy
476 gvir_config_domain_cpu_set_mode
477 <SUBSECTION Standard>
478 GVIR_CONFIG_DOMAIN_CPU
479 GVIR_CONFIG_DOMAIN_CPU_CLASS
480 GVIR_CONFIG_DOMAIN_CPU_GET_CLASS
481 GVIR_CONFIG_IS_DOMAIN_CPU
482 GVIR_CONFIG_IS_DOMAIN_CPU_CLASS
483 GVIR_CONFIG_TYPE_DOMAIN_CPU
484 GVirConfigDomainCpuPrivate
485 gvir_config_domain_cpu_get_type
486 </SECTION>
487
488 <SECTION>
489 <FILE>libvirt-gconfig-domain-cpu-feature</FILE>
490 <TITLE>GVirConfigDomainCpuFeature</TITLE>
491 GVirConfigDomainCpuFeature
492 GVirConfigDomainCpuFeatureClass
493 GVirConfigDomainCpuFeaturePolicy
494 gvir_config_domain_cpu_feature_get_policy
495 gvir_config_domain_cpu_feature_new
496 gvir_config_domain_cpu_feature_new_from_xml
497 gvir_config_domain_cpu_feature_set_policy
498 <SUBSECTION Standard>
499 GVIR_CONFIG_DOMAIN_CPU_FEATURE
500 GVIR_CONFIG_DOMAIN_CPU_FEATURE_CLASS
501 GVIR_CONFIG_DOMAIN_CPU_FEATURE_GET_CLASS
502 GVIR_CONFIG_IS_DOMAIN_CPU_FEATURE
503 GVIR_CONFIG_IS_DOMAIN_CPU_FEATURE_CLASS
504 GVIR_CONFIG_TYPE_DOMAIN_CPU_FEATURE
505 GVirConfigDomainCpuFeaturePrivate
506 gvir_config_domain_cpu_feature_get_type
507 </SECTION>
508
509 <SECTION>
298510 <FILE>libvirt-gconfig-domain-device</FILE>
299511 <TITLE>GVirConfigDomainDevice</TITLE>
300512 GVirConfigDomainDevice
315527 gvir_config_domain_controller_new_from_tree
316528 gvir_config_domain_device_new_from_tree
317529 gvir_config_domain_disk_new_from_tree
530 gvir_config_domain_filesys_new_from_tree
318531 gvir_config_domain_graphics_new_from_tree
319532 gvir_config_domain_interface_new_from_tree
320533 </SECTION>
376589 gvir_config_domain_filesys_new_from_xml
377590 gvir_config_domain_filesys_set_access_type
378591 gvir_config_domain_filesys_set_driver_type
592 gvir_config_domain_filesys_set_ram_usage
379593 gvir_config_domain_filesys_set_readonly
380594 gvir_config_domain_filesys_set_source
381595 gvir_config_domain_filesys_set_target
604818 GVirConfigDomainOsType
605819 gvir_config_domain_os_bios_enable_serial
606820 gvir_config_domain_os_enable_boot_menu
821 gvir_config_domain_os_get_arch
822 gvir_config_domain_os_get_boot_devices
823 gvir_config_domain_os_get_os_type
607824 gvir_config_domain_os_new
608825 gvir_config_domain_os_new_from_xml
609826 gvir_config_domain_os_set_arch
9571174 gvir_config_object_foreach_child
9581175 gvir_config_object_get_attribute
9591176 gvir_config_object_get_attribute_genum
1177 gvir_config_object_get_attribute_uint64
1178 gvir_config_object_get_child
1179 gvir_config_object_get_child_with_type
9601180 gvir_config_object_get_node_content
9611181 gvir_config_object_get_node_content_genum
9621182 gvir_config_object_get_node_content_uint64
0 gvir_config_capabilities_cpu_feature_get_type
1 gvir_config_capabilities_cpu_get_type
2 gvir_config_capabilities_cpu_topology_get_type
03 gvir_config_capabilities_get_type
4 gvir_config_capabilities_guest_arch_get_type
5 gvir_config_capabilities_guest_domain_get_type
6 gvir_config_capabilities_guest_feature_get_type
7 gvir_config_capabilities_guest_get_type
8 gvir_config_capabilities_host_get_type
19 gvir_config_domain_address_get_type
210 gvir_config_domain_address_pci_get_type
311 gvir_config_domain_address_usb_get_type
1018 gvir_config_domain_console_get_type
1119 gvir_config_domain_controller_get_type
1220 gvir_config_domain_controller_usb_get_type
21 gvir_config_domain_cpu_feature_get_type
22 gvir_config_domain_cpu_get_type
1323 gvir_config_domain_device_get_type
1424 gvir_config_domain_disk_get_type
1525 gvir_config_domain_filesys_get_type
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
0 # Makefile.in generated by automake 1.12.2 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
2019 # Everything below here is generic #
2120 ####################################
2221 VPATH = @srcdir@
22 am__make_dryrun = \
23 { \
24 am__dry=no; \
25 case $$MAKEFLAGS in \
26 *\\[\ \ ]*) \
27 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
28 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
29 *) \
30 for am__flg in $$MAKEFLAGS; do \
31 case $$am__flg in \
32 *=*|--*) ;; \
33 *n*) am__dry=yes; break;; \
34 esac; \
35 done;; \
36 esac; \
37 test $$am__dry = yes; \
38 }
2339 pkgdatadir = $(datadir)/@PACKAGE@
2440 pkgincludedir = $(includedir)/@PACKAGE@
2541 pkglibdir = $(libdir)/@PACKAGE@
5470 CONFIG_HEADER = $(top_builddir)/config.h
5571 CONFIG_CLEAN_FILES =
5672 CONFIG_CLEAN_VPATH_FILES =
73 AM_V_P = $(am__v_P_@AM_V@)
74 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
75 am__v_P_0 = false
76 am__v_P_1 = :
5777 AM_V_GEN = $(am__v_GEN_@AM_V@)
5878 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
59 am__v_GEN_0 = @echo " GEN " $@;
79 am__v_GEN_0 = @echo " GEN " $@;
80 am__v_GEN_1 =
6081 AM_V_at = $(am__v_at_@AM_V@)
6182 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
6283 am__v_at_0 = @
84 am__v_at_1 =
6385 SOURCES =
6486 DIST_SOURCES =
87 am__can_run_installinfo = \
88 case $$AM_UPDATE_INFO_DIR in \
89 n|no|NO) false;; \
90 *) (install-info --version) >/dev/null 2>&1;; \
91 esac
6592 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
6693 ACLOCAL = @ACLOCAL@
6794 AMTAR = @AMTAR@
340367 ctags: CTAGS
341368 CTAGS:
342369
370 cscope cscopelist:
371
343372
344373 distdir: $(DISTFILES)
345374 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
4040 <a name="GVirConfigCapabilities.synopsis"></a><h2>Synopsis</h2>
4141 <pre class="synopsis">struct <a class="link" href="GVirConfigCapabilities.html#GVirConfigCapabilities-struct" title="struct GVirConfigCapabilities">GVirConfigCapabilities</a>;
4242 struct <a class="link" href="GVirConfigCapabilities.html#GVirConfigCapabilitiesClass" title="struct GVirConfigCapabilitiesClass">GVirConfigCapabilitiesClass</a>;
43 <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * <a class="link" href="GVirConfigCapabilities.html#gvir-config-capabilities-get-guests" title="gvir_config_capabilities_get_guests ()">gvir_config_capabilities_get_guests</a> (<em class="parameter"><code><a class="link" href="GVirConfigCapabilities.html" title="GVirConfigCapabilities"><span class="type">GVirConfigCapabilities</span></a> *caps</code></em>);
44 <span class="returnvalue">GVirConfigCapabilitiesHost</span> * <a class="link" href="GVirConfigCapabilities.html#gvir-config-capabilities-get-host" title="gvir_config_capabilities_get_host ()">gvir_config_capabilities_get_host</a>
45 (<em class="parameter"><code><a class="link" href="GVirConfigCapabilities.html" title="GVirConfigCapabilities"><span class="type">GVirConfigCapabilities</span></a> *caps</code></em>);
4346 <a class="link" href="GVirConfigCapabilities.html" title="GVirConfigCapabilities"><span class="returnvalue">GVirConfigCapabilities</span></a> * <a class="link" href="GVirConfigCapabilities.html#gvir-config-capabilities-new" title="gvir_config_capabilities_new ()">gvir_config_capabilities_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
4447 <a class="link" href="GVirConfigCapabilities.html" title="GVirConfigCapabilities"><span class="returnvalue">GVirConfigCapabilities</span></a> * <a class="link" href="GVirConfigCapabilities.html#gvir-config-capabilities-new-from-xml" title="gvir_config_capabilities_new_from_xml ()">gvir_config_capabilities_new_from_xml</a>
4548 (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *xml</code></em>,
7578 </div>
7679 <hr>
7780 <div class="refsect2">
81 <a name="gvir-config-capabilities-get-guests"></a><h3>gvir_config_capabilities_get_guests ()</h3>
82 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * gvir_config_capabilities_get_guests (<em class="parameter"><code><a class="link" href="GVirConfigCapabilities.html" title="GVirConfigCapabilities"><span class="type">GVirConfigCapabilities</span></a> *caps</code></em>);</pre>
83 <p>
84 Gets the list of guest capabilities.
85 </p>
86 <div class="variablelist"><table border="0">
87 <col align="left" valign="top">
88 <tbody><tr>
89 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
90 <td>a newly allocated <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of <span class="type">GVirConfigCapabilitiesGuest</span>. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> LibvirtGConfig.CapabilitiesGuest][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
91 </td>
92 </tr></tbody>
93 </table></div>
94 </div>
95 <hr>
96 <div class="refsect2">
97 <a name="gvir-config-capabilities-get-host"></a><h3>gvir_config_capabilities_get_host ()</h3>
98 <pre class="programlisting"><span class="returnvalue">GVirConfigCapabilitiesHost</span> * gvir_config_capabilities_get_host
99 (<em class="parameter"><code><a class="link" href="GVirConfigCapabilities.html" title="GVirConfigCapabilities"><span class="type">GVirConfigCapabilities</span></a> *caps</code></em>);</pre>
100 <p>
101 Gets the host capabilities.
102 </p>
103 <div class="variablelist"><table border="0">
104 <col align="left" valign="top">
105 <tbody><tr>
106 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
107 <td>a new <span class="type">GVirConfigCapabilitiesHost</span>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
108 </td>
109 </tr></tbody>
110 </table></div>
111 </div>
112 <hr>
113 <div class="refsect2">
78114 <a name="gvir-config-capabilities-new"></a><h3>gvir_config_capabilities_new ()</h3>
79115 <pre class="programlisting"><a class="link" href="GVirConfigCapabilities.html" title="GVirConfigCapabilities"><span class="returnvalue">GVirConfigCapabilities</span></a> * gvir_config_capabilities_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
80116 </div>
4747 enum <a class="link" href="GVirConfigDomain.html#GVirConfigDomainVirtType" title="enum GVirConfigDomainVirtType">GVirConfigDomainVirtType</a>;
4848 <span class="returnvalue">void</span> <a class="link" href="GVirConfigDomain.html#gvir-config-domain-add-device" title="gvir_config_domain_add_device ()">gvir_config_domain_add_device</a> (<em class="parameter"><code><a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a> *domain</code></em>,
4949 <em class="parameter"><code><span class="type">GVirConfigDomainDevice</span> *device</code></em>);
50 <span class="returnvalue">GVirConfigDomainCpu</span> * <a class="link" href="GVirConfigDomain.html#gvir-config-domain-get-cpu" title="gvir_config_domain_get_cpu ()">gvir_config_domain_get_cpu</a> (<em class="parameter"><code><a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a> *domain</code></em>);
5051 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="GVirConfigDomain.html#gvir-config-domain-get-custom-xml" title="gvir_config_domain_get_custom_xml ()">gvir_config_domain_get_custom_xml</a> (<em class="parameter"><code><a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a> *domain</code></em>,
5152 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *ns_uri</code></em>);
5253 const <span class="returnvalue">char</span> * <a class="link" href="GVirConfigDomain.html#gvir-config-domain-get-description" title="gvir_config_domain_get_description ()">gvir_config_domain_get_description</a> (<em class="parameter"><code><a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a> *domain</code></em>);
5455 <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Boxed-Types.html#GStrv"><span class="returnvalue">GStrv</span></a> <a class="link" href="GVirConfigDomain.html#gvir-config-domain-get-features" title="gvir_config_domain_get_features ()">gvir_config_domain_get_features</a> (<em class="parameter"><code><a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a> *domain</code></em>);
5556 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint64"><span class="returnvalue">guint64</span></a> <a class="link" href="GVirConfigDomain.html#gvir-config-domain-get-memory" title="gvir_config_domain_get_memory ()">gvir_config_domain_get_memory</a> (<em class="parameter"><code><a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a> *domain</code></em>);
5657 const <span class="returnvalue">char</span> * <a class="link" href="GVirConfigDomain.html#gvir-config-domain-get-name" title="gvir_config_domain_get_name ()">gvir_config_domain_get_name</a> (<em class="parameter"><code><a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a> *domain</code></em>);
58 <span class="returnvalue">GVirConfigDomainOs</span> * <a class="link" href="GVirConfigDomain.html#gvir-config-domain-get-os" title="gvir_config_domain_get_os ()">gvir_config_domain_get_os</a> (<em class="parameter"><code><a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a> *domain</code></em>);
59 const <span class="returnvalue">char</span> * <a class="link" href="GVirConfigDomain.html#gvir-config-domain-get-title" title="gvir_config_domain_get_title ()">gvir_config_domain_get_title</a> (<em class="parameter"><code><a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a> *domain</code></em>);
5760 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint64"><span class="returnvalue">guint64</span></a> <a class="link" href="GVirConfigDomain.html#gvir-config-domain-get-vcpus" title="gvir_config_domain_get_vcpus ()">gvir_config_domain_get_vcpus</a> (<em class="parameter"><code><a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a> *domain</code></em>);
61 <a class="link" href="GVirConfigDomain.html#GVirConfigDomainVirtType" title="enum GVirConfigDomainVirtType"><span class="returnvalue">GVirConfigDomainVirtType</span></a> <a class="link" href="GVirConfigDomain.html#gvir-config-domain-get-virt-type" title="gvir_config_domain_get_virt_type ()">gvir_config_domain_get_virt_type</a>
62 (<em class="parameter"><code><a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a> *domain</code></em>);
5863 <a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="returnvalue">GVirConfigDomain</span></a> * <a class="link" href="GVirConfigDomain.html#gvir-config-domain-new" title="gvir_config_domain_new ()">gvir_config_domain_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
5964 <a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="returnvalue">GVirConfigDomain</span></a> * <a class="link" href="GVirConfigDomain.html#gvir-config-domain-new-from-xml" title="gvir_config_domain_new_from_xml ()">gvir_config_domain_new_from_xml</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *xml</code></em>,
6065 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
6166 <span class="returnvalue">void</span> <a class="link" href="GVirConfigDomain.html#gvir-config-domain-set-clock" title="gvir_config_domain_set_clock ()">gvir_config_domain_set_clock</a> (<em class="parameter"><code><a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a> *domain</code></em>,
6267 <em class="parameter"><code><span class="type">GVirConfigDomainClock</span> *klock</code></em>);
68 <span class="returnvalue">void</span> <a class="link" href="GVirConfigDomain.html#gvir-config-domain-set-cpu" title="gvir_config_domain_set_cpu ()">gvir_config_domain_set_cpu</a> (<em class="parameter"><code><a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a> *domain</code></em>,
69 <em class="parameter"><code><span class="type">GVirConfigDomainCpu</span> *cpu</code></em>);
6370 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GVirConfigDomain.html#gvir-config-domain-set-custom-xml" title="gvir_config_domain_set_custom_xml ()">gvir_config_domain_set_custom_xml</a> (<em class="parameter"><code><a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a> *domain</code></em>,
6471 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *xml</code></em>,
6572 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *ns</code></em>,
8289 <em class="parameter"><code><span class="type">GVirConfigDomainOs</span> *os</code></em>);
8390 <span class="returnvalue">void</span> <a class="link" href="GVirConfigDomain.html#gvir-config-domain-set-seclabel" title="gvir_config_domain_set_seclabel ()">gvir_config_domain_set_seclabel</a> (<em class="parameter"><code><a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a> *domain</code></em>,
8491 <em class="parameter"><code><span class="type">GVirConfigDomainSeclabel</span> *seclabel</code></em>);
92 <span class="returnvalue">void</span> <a class="link" href="GVirConfigDomain.html#gvir-config-domain-set-title" title="gvir_config_domain_set_title ()">gvir_config_domain_set_title</a> (<em class="parameter"><code><a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a> *domain</code></em>,
93 <em class="parameter"><code>const <span class="type">char</span> *title</code></em>);
8594 <span class="returnvalue">void</span> <a class="link" href="GVirConfigDomain.html#gvir-config-domain-set-vcpus" title="gvir_config_domain_set_vcpus ()">gvir_config_domain_set_vcpus</a> (<em class="parameter"><code><a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a> *domain</code></em>,
8695 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint64"><span class="type">guint64</span></a> vcpu_count</code></em>);
8796 <span class="returnvalue">void</span> <a class="link" href="GVirConfigDomain.html#gvir-config-domain-set-virt-type" title="gvir_config_domain_set_virt_type ()">gvir_config_domain_set_virt_type</a> (<em class="parameter"><code><a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a> *domain</code></em>,
103112 "<a class="link" href="GVirConfigDomain.html#GVirConfigDomain--features" title='The "features" property'>features</a>" <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Boxed-Types.html#GStrv"><span class="type">GStrv</span></a> : Read / Write
104113 "<a class="link" href="GVirConfigDomain.html#GVirConfigDomain--memory" title='The "memory" property'>memory</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint64"><span class="type">guint64</span></a> : Read / Write
105114 "<a class="link" href="GVirConfigDomain.html#GVirConfigDomain--name" title='The "name" property'>name</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write
115 "<a class="link" href="GVirConfigDomain.html#GVirConfigDomain--title" title='The "title" property'>title</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write
106116 "<a class="link" href="GVirConfigDomain.html#GVirConfigDomain--vcpu" title='The "vcpu" property'>vcpu</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint64"><span class="type">guint64</span></a> : Read / Write
107117 </pre>
108118 </div>
178188 </div>
179189 <hr>
180190 <div class="refsect2">
191 <a name="gvir-config-domain-get-cpu"></a><h3>gvir_config_domain_get_cpu ()</h3>
192 <pre class="programlisting"><span class="returnvalue">GVirConfigDomainCpu</span> * gvir_config_domain_get_cpu (<em class="parameter"><code><a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a> *domain</code></em>);</pre>
193 <p>
194 Gets the CPU configuration of <em class="parameter"><code>domain</code></em>
195 </p>
196 <div class="variablelist"><table border="0">
197 <col align="left" valign="top">
198 <tbody>
199 <tr>
200 <td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
201 <td>a <a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a>
202 </td>
203 </tr>
204 <tr>
205 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
206 <td>A <span class="type">GVirConfigDomainCpu</span>. The returned object
207 should be unreffed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when no longer needed. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
208 </td>
209 </tr>
210 </tbody>
211 </table></div>
212 </div>
213 <hr>
214 <div class="refsect2">
181215 <a name="gvir-config-domain-get-custom-xml"></a><h3>gvir_config_domain_get_custom_xml ()</h3>
182216 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gvir_config_domain_get_custom_xml (<em class="parameter"><code><a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a> *domain</code></em>,
183217 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *ns_uri</code></em>);</pre>
192226 <a name="gvir-config-domain-get-devices"></a><h3>gvir_config_domain_get_devices ()</h3>
193227 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * gvir_config_domain_get_devices (<em class="parameter"><code><a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a> *domain</code></em>);</pre>
194228 <p>
195 Gets the list of devices attached to <em class="parameter"><code>domain</code></em>
229 Gets the list of devices attached to <em class="parameter"><code>domain</code></em>. The returned list should
230 be freed with <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#g-list-free"><code class="function">g_list_free()</code></a>, after its elements have been unreffed with
231 <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>.
196232 </p>
197233 <div class="variablelist"><table border="0">
198234 <col align="left" valign="top">
199 <tbody><tr>
235 <tbody>
236 <tr>
237 <td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
238 <td>a <a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a>
239 </td>
240 </tr>
241 <tr>
200242 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
201243 <td>a newly allocated <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of <span class="type">GVirConfigDomainDevice</span>. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> LibvirtGConfig.DomainDevice][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
202244 </td>
203 </tr></tbody>
245 </tr>
246 </tbody>
204247 </table></div>
205248 </div>
206249 <hr>
207250 <div class="refsect2">
208251 <a name="gvir-config-domain-get-features"></a><h3>gvir_config_domain_get_features ()</h3>
209252 <pre class="programlisting"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Boxed-Types.html#GStrv"><span class="returnvalue">GStrv</span></a> gvir_config_domain_get_features (<em class="parameter"><code><a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a> *domain</code></em>);</pre>
253 <div class="variablelist"><table border="0">
254 <col align="left" valign="top">
255 <tbody>
256 <tr>
257 <td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
258 <td>a <a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a>
259 </td>
260 </tr>
261 <tr>
262 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
263 <td>The returned list should be freed with
264 <a href="http://library.gnome.org/devel/glib/unstable/glib-String-Utility-Functions.html#g-strfreev"><code class="function">g_strfreev()</code></a> when no longer needed. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
265 </td>
266 </tr>
267 </tbody>
268 </table></div>
210269 </div>
211270 <hr>
212271 <div class="refsect2">
217276 <tbody>
218277 <tr>
219278 <td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
220 <td>A domain configuration object.</td>
279 <td>a <a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a>
280 </td>
221281 </tr>
222282 <tr>
223283 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
233293 </div>
234294 <hr>
235295 <div class="refsect2">
296 <a name="gvir-config-domain-get-os"></a><h3>gvir_config_domain_get_os ()</h3>
297 <pre class="programlisting"><span class="returnvalue">GVirConfigDomainOs</span> * gvir_config_domain_get_os (<em class="parameter"><code><a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a> *domain</code></em>);</pre>
298 <p>
299 Gets the operating system configuration of <em class="parameter"><code>domain</code></em>
300 </p>
301 <div class="variablelist"><table border="0">
302 <col align="left" valign="top">
303 <tbody>
304 <tr>
305 <td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
306 <td>a <a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a>
307 </td>
308 </tr>
309 <tr>
310 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
311 <td>A <span class="type">GVirConfigDomainOs</span>. The returned
312 object should be unreffed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when no longer needed. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
313 </td>
314 </tr>
315 </tbody>
316 </table></div>
317 </div>
318 <hr>
319 <div class="refsect2">
320 <a name="gvir-config-domain-get-title"></a><h3>gvir_config_domain_get_title ()</h3>
321 <pre class="programlisting">const <span class="returnvalue">char</span> * gvir_config_domain_get_title (<em class="parameter"><code><a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a> *domain</code></em>);</pre>
322 </div>
323 <hr>
324 <div class="refsect2">
236325 <a name="gvir-config-domain-get-vcpus"></a><h3>gvir_config_domain_get_vcpus ()</h3>
237326 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint64"><span class="returnvalue">guint64</span></a> gvir_config_domain_get_vcpus (<em class="parameter"><code><a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a> *domain</code></em>);</pre>
327 </div>
328 <hr>
329 <div class="refsect2">
330 <a name="gvir-config-domain-get-virt-type"></a><h3>gvir_config_domain_get_virt_type ()</h3>
331 <pre class="programlisting"><a class="link" href="GVirConfigDomain.html#GVirConfigDomainVirtType" title="enum GVirConfigDomainVirtType"><span class="returnvalue">GVirConfigDomainVirtType</span></a> gvir_config_domain_get_virt_type
332 (<em class="parameter"><code><a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a> *domain</code></em>);</pre>
238333 </div>
239334 <hr>
240335 <div class="refsect2">
252347 <a name="gvir-config-domain-set-clock"></a><h3>gvir_config_domain_set_clock ()</h3>
253348 <pre class="programlisting"><span class="returnvalue">void</span> gvir_config_domain_set_clock (<em class="parameter"><code><a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a> *domain</code></em>,
254349 <em class="parameter"><code><span class="type">GVirConfigDomainClock</span> *klock</code></em>);</pre>
350 <div class="variablelist"><table border="0">
351 <col align="left" valign="top">
352 <tbody>
353 <tr>
354 <td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
355 <td>a <a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a>
356 </td>
357 </tr>
358 <tr>
359 <td><p><span class="term"><em class="parameter"><code>klock</code></em> :</span></p></td>
360 <td>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
361 </td>
362 </tr>
363 </tbody>
364 </table></div>
365 </div>
366 <hr>
367 <div class="refsect2">
368 <a name="gvir-config-domain-set-cpu"></a><h3>gvir_config_domain_set_cpu ()</h3>
369 <pre class="programlisting"><span class="returnvalue">void</span> gvir_config_domain_set_cpu (<em class="parameter"><code><a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a> *domain</code></em>,
370 <em class="parameter"><code><span class="type">GVirConfigDomainCpu</span> *cpu</code></em>);</pre>
371 <div class="variablelist"><table border="0">
372 <col align="left" valign="top">
373 <tbody>
374 <tr>
375 <td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
376 <td>a <a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a>
377 </td>
378 </tr>
379 <tr>
380 <td><p><span class="term"><em class="parameter"><code>cpu</code></em> :</span></p></td>
381 <td>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
382 </td>
383 </tr>
384 </tbody>
385 </table></div>
255386 </div>
256387 <hr>
257388 <div class="refsect2">
267398 <a name="gvir-config-domain-set-description"></a><h3>gvir_config_domain_set_description ()</h3>
268399 <pre class="programlisting"><span class="returnvalue">void</span> gvir_config_domain_set_description (<em class="parameter"><code><a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a> *domain</code></em>,
269400 <em class="parameter"><code>const <span class="type">char</span> *description</code></em>);</pre>
401 <div class="variablelist"><table border="0">
402 <col align="left" valign="top">
403 <tbody>
404 <tr>
405 <td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
406 <td>a <a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a>
407 </td>
408 </tr>
409 <tr>
410 <td><p><span class="term"><em class="parameter"><code>description</code></em> :</span></p></td>
411 <td>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
412 </td>
413 </tr>
414 </tbody>
415 </table></div>
270416 </div>
271417 <hr>
272418 <div class="refsect2">
275421 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *devices</code></em>);</pre>
276422 <div class="variablelist"><table border="0">
277423 <col align="left" valign="top">
278 <tbody><tr>
424 <tbody>
425 <tr>
426 <td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
427 <td>a <a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a>
428 </td>
429 </tr>
430 <tr>
279431 <td><p><span class="term"><em class="parameter"><code>devices</code></em> :</span></p></td>
280432 <td>. <span class="annotation">[<acronym title="Parameter for input. Default is transfer none."><span class="acronym">in</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> LibvirtGConfig.DomainDevice]</span>
281433 </td>
282 </tr></tbody>
434 </tr>
435 </tbody>
283436 </table></div>
284437 </div>
285438 <hr>
308461 <tbody>
309462 <tr>
310463 <td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
311 <td>A domain configuration object.</td>
464 <td>a <a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a>
465 </td>
312466 </tr>
313467 <tr>
314468 <td><p><span class="term"><em class="parameter"><code>memory</code></em> :</span></p></td>
322476 <a name="gvir-config-domain-set-name"></a><h3>gvir_config_domain_set_name ()</h3>
323477 <pre class="programlisting"><span class="returnvalue">void</span> gvir_config_domain_set_name (<em class="parameter"><code><a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a> *domain</code></em>,
324478 <em class="parameter"><code>const <span class="type">char</span> *name</code></em>);</pre>
479 <div class="variablelist"><table border="0">
480 <col align="left" valign="top">
481 <tbody>
482 <tr>
483 <td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
484 <td>a <a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a>
485 </td>
486 </tr>
487 <tr>
488 <td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
489 <td>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
490 </td>
491 </tr>
492 </tbody>
493 </table></div>
325494 </div>
326495 <hr>
327496 <div class="refsect2">
328497 <a name="gvir-config-domain-set-os"></a><h3>gvir_config_domain_set_os ()</h3>
329498 <pre class="programlisting"><span class="returnvalue">void</span> gvir_config_domain_set_os (<em class="parameter"><code><a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a> *domain</code></em>,
330499 <em class="parameter"><code><span class="type">GVirConfigDomainOs</span> *os</code></em>);</pre>
500 <div class="variablelist"><table border="0">
501 <col align="left" valign="top">
502 <tbody>
503 <tr>
504 <td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
505 <td>a <a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a>
506 </td>
507 </tr>
508 <tr>
509 <td><p><span class="term"><em class="parameter"><code>os</code></em> :</span></p></td>
510 <td>the os configuration to set. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
511 </td>
512 </tr>
513 </tbody>
514 </table></div>
331515 </div>
332516 <hr>
333517 <div class="refsect2">
334518 <a name="gvir-config-domain-set-seclabel"></a><h3>gvir_config_domain_set_seclabel ()</h3>
335519 <pre class="programlisting"><span class="returnvalue">void</span> gvir_config_domain_set_seclabel (<em class="parameter"><code><a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a> *domain</code></em>,
336520 <em class="parameter"><code><span class="type">GVirConfigDomainSeclabel</span> *seclabel</code></em>);</pre>
521 <div class="variablelist"><table border="0">
522 <col align="left" valign="top">
523 <tbody>
524 <tr>
525 <td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
526 <td>a <a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a>
527 </td>
528 </tr>
529 <tr>
530 <td><p><span class="term"><em class="parameter"><code>seclabel</code></em> :</span></p></td>
531 <td>the security label configuration to set. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
532 </td>
533 </tr>
534 </tbody>
535 </table></div>
536 </div>
537 <hr>
538 <div class="refsect2">
539 <a name="gvir-config-domain-set-title"></a><h3>gvir_config_domain_set_title ()</h3>
540 <pre class="programlisting"><span class="returnvalue">void</span> gvir_config_domain_set_title (<em class="parameter"><code><a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a> *domain</code></em>,
541 <em class="parameter"><code>const <span class="type">char</span> *title</code></em>);</pre>
542 <p>
543 Sets the title of the domain. This is an optional short textual description of the domain. Passing a NULL <em class="parameter"><code>title</code></em>
544 unsets the current domain title.
545 </p>
546 <div class="variablelist"><table border="0">
547 <col align="left" valign="top">
548 <tbody>
549 <tr>
550 <td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
551 <td>a <a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain"><span class="type">GVirConfigDomain</span></a>
552 </td>
553 </tr>
554 <tr>
555 <td><p><span class="term"><em class="parameter"><code>title</code></em> :</span></p></td>
556 <td>title of the domain. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
557 </td>
558 </tr>
559 </tbody>
560 </table></div>
337561 </div>
338562 <hr>
339563 <div class="refsect2">
378602 </div>
379603 <hr>
380604 <div class="refsect2">
605 <a name="GVirConfigDomain--title"></a><h3>The <code class="literal">"title"</code> property</h3>
606 <pre class="programlisting"> "title" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write</pre>
607 <p>A short description - title - of the domain.</p>
608 <p>Default value: NULL</p>
609 </div>
610 <hr>
611 <div class="refsect2">
381612 <a name="GVirConfigDomain--vcpu"></a><h3>The <code class="literal">"vcpu"</code> property</h3>
382613 <pre class="programlisting"> "vcpu" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint64"><span class="type">guint64</span></a> : Read / Write</pre>
383614 <p>Maximum Number of Guest Virtual CPUs.</p>
6161 <pre class="synopsis">
6262 <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
6363 +----GVirConfigObject
64 +----GVirConfigCapabilitiesCpuFeature
65 +----GVirConfigCapabilitiesCpu
66 +----GVirConfigCapabilitiesCpuTopology
6467 +----<a class="link" href="GVirConfigCapabilities.html" title="GVirConfigCapabilities">GVirConfigCapabilities</a>
68 +----GVirConfigCapabilitiesGuestArch
69 +----GVirConfigCapabilitiesGuestDomain
70 +----GVirConfigCapabilitiesGuestFeature
71 +----GVirConfigCapabilitiesGuest
72 +----GVirConfigCapabilitiesHost
6573 +----GVirConfigDomainAddress
6674 +----GVirConfigDomainDevice
6775 +----GVirConfigDomainChardevSource
147147 <a name="gvir-config-storage-pool-set-name"></a><h3>gvir_config_storage_pool_set_name ()</h3>
148148 <pre class="programlisting"><span class="returnvalue">void</span> gvir_config_storage_pool_set_name (<em class="parameter"><code><a class="link" href="GVirConfigStoragePool.html" title="GVirConfigStoragePool"><span class="type">GVirConfigStoragePool</span></a> *pool</code></em>,
149149 <em class="parameter"><code>const <span class="type">char</span> *name</code></em>);</pre>
150 <div class="variablelist"><table border="0">
151 <col align="left" valign="top">
152 <tbody><tr>
153 <td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
154 <td>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
155 </td>
156 </tr></tbody>
157 </table></div>
150158 </div>
151159 <hr>
152160 <div class="refsect2">
160168 <a name="gvir-config-storage-pool-set-source"></a><h3>gvir_config_storage_pool_set_source ()</h3>
161169 <pre class="programlisting"><span class="returnvalue">void</span> gvir_config_storage_pool_set_source (<em class="parameter"><code><a class="link" href="GVirConfigStoragePool.html" title="GVirConfigStoragePool"><span class="type">GVirConfigStoragePool</span></a> *pool</code></em>,
162170 <em class="parameter"><code><span class="type">GVirConfigStoragePoolSource</span> *source</code></em>);</pre>
171 <div class="variablelist"><table border="0">
172 <col align="left" valign="top">
173 <tbody><tr>
174 <td><p><span class="term"><em class="parameter"><code>source</code></em> :</span></p></td>
175 <td>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
176 </td>
177 </tr></tbody>
178 </table></div>
163179 </div>
164180 <hr>
165181 <div class="refsect2">
166182 <a name="gvir-config-storage-pool-set-target"></a><h3>gvir_config_storage_pool_set_target ()</h3>
167183 <pre class="programlisting"><span class="returnvalue">void</span> gvir_config_storage_pool_set_target (<em class="parameter"><code><a class="link" href="GVirConfigStoragePool.html" title="GVirConfigStoragePool"><span class="type">GVirConfigStoragePool</span></a> *pool</code></em>,
168184 <em class="parameter"><code><span class="type">GVirConfigStoragePoolTarget</span> *target</code></em>);</pre>
185 <div class="variablelist"><table border="0">
186 <col align="left" valign="top">
187 <tbody><tr>
188 <td><p><span class="term"><em class="parameter"><code>target</code></em> :</span></p></td>
189 <td>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
190 </td>
191 </tr></tbody>
192 </table></div>
169193 </div>
170194 <hr>
171195 <div class="refsect2">
172196 <a name="gvir-config-storage-pool-set-uuid"></a><h3>gvir_config_storage_pool_set_uuid ()</h3>
173197 <pre class="programlisting"><span class="returnvalue">void</span> gvir_config_storage_pool_set_uuid (<em class="parameter"><code><a class="link" href="GVirConfigStoragePool.html" title="GVirConfigStoragePool"><span class="type">GVirConfigStoragePool</span></a> *pool</code></em>,
174198 <em class="parameter"><code>const <span class="type">char</span> *uuid</code></em>);</pre>
199 <div class="variablelist"><table border="0">
200 <col align="left" valign="top">
201 <tbody><tr>
202 <td><p><span class="term"><em class="parameter"><code>uuid</code></em> :</span></p></td>
203 <td>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
204 </td>
205 </tr></tbody>
206 </table></div>
175207 </div>
176208 </div>
177209 </div>
111111 <pre class="programlisting"><span class="returnvalue">void</span> gvir_config_storage_vol_set_backing_store
112112 (<em class="parameter"><code><a class="link" href="GVirConfigStorageVol.html" title="GVirConfigStorageVol"><span class="type">GVirConfigStorageVol</span></a> *vol</code></em>,
113113 <em class="parameter"><code><span class="type">GVirConfigStorageVolBackingStore</span> *backing_store</code></em>);</pre>
114 <div class="variablelist"><table border="0">
115 <col align="left" valign="top">
116 <tbody><tr>
117 <td><p><span class="term"><em class="parameter"><code>backing_store</code></em> :</span></p></td>
118 <td>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
119 </td>
120 </tr></tbody>
121 </table></div>
114122 </div>
115123 <hr>
116124 <div class="refsect2">
124132 <a name="gvir-config-storage-vol-set-name"></a><h3>gvir_config_storage_vol_set_name ()</h3>
125133 <pre class="programlisting"><span class="returnvalue">void</span> gvir_config_storage_vol_set_name (<em class="parameter"><code><a class="link" href="GVirConfigStorageVol.html" title="GVirConfigStorageVol"><span class="type">GVirConfigStorageVol</span></a> *vol</code></em>,
126134 <em class="parameter"><code>const <span class="type">char</span> *name</code></em>);</pre>
135 <div class="variablelist"><table border="0">
136 <col align="left" valign="top">
137 <tbody><tr>
138 <td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
139 <td>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
140 </td>
141 </tr></tbody>
142 </table></div>
127143 </div>
128144 <hr>
129145 <div class="refsect2">
130146 <a name="gvir-config-storage-vol-set-target"></a><h3>gvir_config_storage_vol_set_target ()</h3>
131147 <pre class="programlisting"><span class="returnvalue">void</span> gvir_config_storage_vol_set_target (<em class="parameter"><code><a class="link" href="GVirConfigStorageVol.html" title="GVirConfigStorageVol"><span class="type">GVirConfigStorageVol</span></a> *vol</code></em>,
132148 <em class="parameter"><code><span class="type">GVirConfigStorageVolTarget</span> *target</code></em>);</pre>
149 <div class="variablelist"><table border="0">
150 <col align="left" valign="top">
151 <tbody><tr>
152 <td><p><span class="term"><em class="parameter"><code>target</code></em> :</span></p></td>
153 <td>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
154 </td>
155 </tr></tbody>
156 </table></div>
133157 </div>
134158 </div>
135159 </div>
3535 <keyword type="enum" name="enum GVirConfigDomainLifecycleEvent" link="GVirConfigDomain.html#GVirConfigDomainLifecycleEvent"/>
3636 <keyword type="enum" name="enum GVirConfigDomainVirtType" link="GVirConfigDomain.html#GVirConfigDomainVirtType"/>
3737 <keyword type="function" name="gvir_config_domain_add_device ()" link="GVirConfigDomain.html#gvir-config-domain-add-device"/>
38 <keyword type="function" name="gvir_config_domain_get_cpu ()" link="GVirConfigDomain.html#gvir-config-domain-get-cpu"/>
3839 <keyword type="function" name="gvir_config_domain_get_custom_xml ()" link="GVirConfigDomain.html#gvir-config-domain-get-custom-xml"/>
3940 <keyword type="function" name="gvir_config_domain_get_description ()" link="GVirConfigDomain.html#gvir-config-domain-get-description"/>
4041 <keyword type="function" name="gvir_config_domain_get_devices ()" link="GVirConfigDomain.html#gvir-config-domain-get-devices"/>
4142 <keyword type="function" name="gvir_config_domain_get_features ()" link="GVirConfigDomain.html#gvir-config-domain-get-features"/>
4243 <keyword type="function" name="gvir_config_domain_get_memory ()" link="GVirConfigDomain.html#gvir-config-domain-get-memory"/>
4344 <keyword type="function" name="gvir_config_domain_get_name ()" link="GVirConfigDomain.html#gvir-config-domain-get-name"/>
45 <keyword type="function" name="gvir_config_domain_get_os ()" link="GVirConfigDomain.html#gvir-config-domain-get-os"/>
46 <keyword type="function" name="gvir_config_domain_get_title ()" link="GVirConfigDomain.html#gvir-config-domain-get-title"/>
4447 <keyword type="function" name="gvir_config_domain_get_vcpus ()" link="GVirConfigDomain.html#gvir-config-domain-get-vcpus"/>
48 <keyword type="function" name="gvir_config_domain_get_virt_type ()" link="GVirConfigDomain.html#gvir-config-domain-get-virt-type"/>
4549 <keyword type="function" name="gvir_config_domain_new ()" link="GVirConfigDomain.html#gvir-config-domain-new"/>
4650 <keyword type="function" name="gvir_config_domain_new_from_xml ()" link="GVirConfigDomain.html#gvir-config-domain-new-from-xml"/>
4751 <keyword type="function" name="gvir_config_domain_set_clock ()" link="GVirConfigDomain.html#gvir-config-domain-set-clock"/>
52 <keyword type="function" name="gvir_config_domain_set_cpu ()" link="GVirConfigDomain.html#gvir-config-domain-set-cpu"/>
4853 <keyword type="function" name="gvir_config_domain_set_custom_xml ()" link="GVirConfigDomain.html#gvir-config-domain-set-custom-xml"/>
4954 <keyword type="function" name="gvir_config_domain_set_description ()" link="GVirConfigDomain.html#gvir-config-domain-set-description"/>
5055 <keyword type="function" name="gvir_config_domain_set_devices ()" link="GVirConfigDomain.html#gvir-config-domain-set-devices"/>
5459 <keyword type="function" name="gvir_config_domain_set_name ()" link="GVirConfigDomain.html#gvir-config-domain-set-name"/>
5560 <keyword type="function" name="gvir_config_domain_set_os ()" link="GVirConfigDomain.html#gvir-config-domain-set-os"/>
5661 <keyword type="function" name="gvir_config_domain_set_seclabel ()" link="GVirConfigDomain.html#gvir-config-domain-set-seclabel"/>
62 <keyword type="function" name="gvir_config_domain_set_title ()" link="GVirConfigDomain.html#gvir-config-domain-set-title"/>
5763 <keyword type="function" name="gvir_config_domain_set_vcpus ()" link="GVirConfigDomain.html#gvir-config-domain-set-vcpus"/>
5864 <keyword type="function" name="gvir_config_domain_set_virt_type ()" link="GVirConfigDomain.html#gvir-config-domain-set-virt-type"/>
5965 <keyword type="property" name="The &quot;description&quot; property" link="GVirConfigDomain.html#GVirConfigDomain--description"/>
6066 <keyword type="property" name="The &quot;features&quot; property" link="GVirConfigDomain.html#GVirConfigDomain--features"/>
6167 <keyword type="property" name="The &quot;memory&quot; property" link="GVirConfigDomain.html#GVirConfigDomain--memory"/>
6268 <keyword type="property" name="The &quot;name&quot; property" link="GVirConfigDomain.html#GVirConfigDomain--name"/>
69 <keyword type="property" name="The &quot;title&quot; property" link="GVirConfigDomain.html#GVirConfigDomain--title"/>
6370 <keyword type="property" name="The &quot;vcpu&quot; property" link="GVirConfigDomain.html#GVirConfigDomain--vcpu"/>
6471 <keyword type="struct" name="struct GVirConfigDomainSnapshot" link="GVirConfigDomainSnapshot.html#GVirConfigDomainSnapshot-struct"/>
6572 <keyword type="struct" name="struct GVirConfigDomainSnapshotClass" link="GVirConfigDomainSnapshot.html#GVirConfigDomainSnapshotClass"/>
109116 <keyword type="function" name="gvir_config_storage_vol_set_target ()" link="GVirConfigStorageVol.html#gvir-config-storage-vol-set-target"/>
110117 <keyword type="struct" name="struct GVirConfigCapabilities" link="GVirConfigCapabilities.html#GVirConfigCapabilities-struct"/>
111118 <keyword type="struct" name="struct GVirConfigCapabilitiesClass" link="GVirConfigCapabilities.html#GVirConfigCapabilitiesClass"/>
119 <keyword type="function" name="gvir_config_capabilities_get_guests ()" link="GVirConfigCapabilities.html#gvir-config-capabilities-get-guests"/>
120 <keyword type="function" name="gvir_config_capabilities_get_host ()" link="GVirConfigCapabilities.html#gvir-config-capabilities-get-host"/>
112121 <keyword type="function" name="gvir_config_capabilities_new ()" link="GVirConfigCapabilities.html#gvir-config-capabilities-new"/>
113122 <keyword type="function" name="gvir_config_capabilities_new_from_xml ()" link="GVirConfigCapabilities.html#gvir-config-capabilities-new-from-xml"/>
114123 </functions>
3434 </dt>
3535 <dd></dd>
3636 <dt>
37 GVirConfigCapabilitiesCpu, struct in GVirConfigCapabilitiesCpu
38 </dt>
39 <dd></dd>
40 <dt>
41 GVirConfigCapabilitiesCpuClass, struct in GVirConfigCapabilitiesCpu
42 </dt>
43 <dd></dd>
44 <dt>
45 GVirConfigCapabilitiesCpuFeature, struct in GVirConfigCapabilitiesCpuFeature
46 </dt>
47 <dd></dd>
48 <dt>
49 GVirConfigCapabilitiesCpuFeatureClass, struct in GVirConfigCapabilitiesCpuFeature
50 </dt>
51 <dd></dd>
52 <dt>
53 GVirConfigCapabilitiesCpuTopology, struct in GVirConfigCapabilitiesCpuTopology
54 </dt>
55 <dd></dd>
56 <dt>
57 GVirConfigCapabilitiesCpuTopologyClass, struct in GVirConfigCapabilitiesCpuTopology
58 </dt>
59 <dd></dd>
60 <dt>
61 GVirConfigCapabilitiesGuest, struct in GVirConfigCapabilitiesGuest
62 </dt>
63 <dd></dd>
64 <dt>
65 GVirConfigCapabilitiesGuestArch, struct in GVirConfigCapabilitiesGuestArch
66 </dt>
67 <dd></dd>
68 <dt>
69 GVirConfigCapabilitiesGuestArchClass, struct in GVirConfigCapabilitiesGuestArch
70 </dt>
71 <dd></dd>
72 <dt>
73 GVirConfigCapabilitiesGuestClass, struct in GVirConfigCapabilitiesGuest
74 </dt>
75 <dd></dd>
76 <dt>
77 GVirConfigCapabilitiesGuestDomain, struct in GVirConfigCapabilitiesGuestDomain
78 </dt>
79 <dd></dd>
80 <dt>
81 GVirConfigCapabilitiesGuestDomainClass, struct in GVirConfigCapabilitiesGuestDomain
82 </dt>
83 <dd></dd>
84 <dt>
85 GVirConfigCapabilitiesGuestFeature, struct in GVirConfigCapabilitiesGuestFeature
86 </dt>
87 <dd></dd>
88 <dt>
89 GVirConfigCapabilitiesGuestFeatureClass, struct in GVirConfigCapabilitiesGuestFeature
90 </dt>
91 <dd></dd>
92 <dt>
93 GVirConfigCapabilitiesHost, struct in GVirConfigCapabilitiesHost
94 </dt>
95 <dd></dd>
96 <dt>
97 GVirConfigCapabilitiesHostClass, struct in GVirConfigCapabilitiesHost
98 </dt>
99 <dd></dd>
100 <dt>
37101 <a class="link" href="GVirConfigDomain.html#GVirConfigDomain-struct" title="struct GVirConfigDomain">GVirConfigDomain</a>, struct in <a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain">GVirConfigDomain</a>
38102 </dt>
39103 <dd></dd>
54118 </dt>
55119 <dd></dd>
56120 <dt>
121 <a class="link" href="GVirConfigDomain.html#GVirConfigDomain--title" title='The "title" property'>GVirConfigDomain:title</a>, object property in <a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain">GVirConfigDomain</a>
122 </dt>
123 <dd></dd>
124 <dt>
57125 <a class="link" href="GVirConfigDomain.html#GVirConfigDomain--vcpu" title='The "vcpu" property'>GVirConfigDomain:vcpu</a>, object property in <a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain">GVirConfigDomain</a>
58126 </dt>
59127 <dd></dd>
174242 </dt>
175243 <dd></dd>
176244 <dt>
245 GVirConfigDomainCpu, struct in GVirConfigDomainCpu
246 </dt>
247 <dd></dd>
248 <dt>
249 GVirConfigDomainCpuClass, struct in GVirConfigDomainCpu
250 </dt>
251 <dd></dd>
252 <dt>
253 GVirConfigDomainCpuFeature, struct in GVirConfigDomainCpuFeature
254 </dt>
255 <dd></dd>
256 <dt>
257 GVirConfigDomainCpuFeatureClass, struct in GVirConfigDomainCpuFeature
258 </dt>
259 <dd></dd>
260 <dt>
261 GVirConfigDomainCpuFeaturePolicy, enum in GVirConfigDomainCpuFeature
262 </dt>
263 <dd></dd>
264 <dt>
265 GVirConfigDomainCpuMatchPolicy, enum in GVirConfigDomainCpu
266 </dt>
267 <dd></dd>
268 <dt>
269 GVirConfigDomainCpuMode, enum in GVirConfigDomainCpu
270 </dt>
271 <dd></dd>
272 <dt>
177273 GVirConfigDomainDevice, struct in GVirConfigDomainDevice
178274 </dt>
179275 <dd></dd>
598694 </dt>
599695 <dd></dd>
600696 <dt>
697 gvir_config_capabilities_cpu_add_feature, function in GVirConfigCapabilitiesCpu
698 </dt>
699 <dd></dd>
700 <dt>
701 gvir_config_capabilities_cpu_feature_get_name, function in GVirConfigCapabilitiesCpuFeature
702 </dt>
703 <dd></dd>
704 <dt>
705 gvir_config_capabilities_cpu_feature_set_name, function in GVirConfigCapabilitiesCpuFeature
706 </dt>
707 <dd></dd>
708 <dt>
709 gvir_config_capabilities_cpu_get_arch, function in GVirConfigCapabilitiesCpu
710 </dt>
711 <dd></dd>
712 <dt>
713 gvir_config_capabilities_cpu_get_features, function in GVirConfigCapabilitiesCpu
714 </dt>
715 <dd></dd>
716 <dt>
717 gvir_config_capabilities_cpu_get_features_with_type, function in libvirt-gconfig-capabilities-cpu-private
718 </dt>
719 <dd></dd>
720 <dt>
721 gvir_config_capabilities_cpu_get_topology, function in GVirConfigCapabilitiesCpu
722 </dt>
723 <dd></dd>
724 <dt>
725 gvir_config_capabilities_cpu_set_topology, function in GVirConfigCapabilitiesCpu
726 </dt>
727 <dd></dd>
728 <dt>
729 gvir_config_capabilities_cpu_topology_get_cores, function in GVirConfigCapabilitiesCpuTopology
730 </dt>
731 <dd></dd>
732 <dt>
733 gvir_config_capabilities_cpu_topology_get_sockets, function in GVirConfigCapabilitiesCpuTopology
734 </dt>
735 <dd></dd>
736 <dt>
737 gvir_config_capabilities_cpu_topology_get_threads, function in GVirConfigCapabilitiesCpuTopology
738 </dt>
739 <dd></dd>
740 <dt>
741 gvir_config_capabilities_cpu_topology_new, function in GVirConfigCapabilitiesCpuTopology
742 </dt>
743 <dd></dd>
744 <dt>
745 gvir_config_capabilities_cpu_topology_new_from_xml, function in GVirConfigCapabilitiesCpuTopology
746 </dt>
747 <dd></dd>
748 <dt>
749 gvir_config_capabilities_cpu_topology_set_cores, function in GVirConfigCapabilitiesCpuTopology
750 </dt>
751 <dd></dd>
752 <dt>
753 gvir_config_capabilities_cpu_topology_set_sockets, function in GVirConfigCapabilitiesCpuTopology
754 </dt>
755 <dd></dd>
756 <dt>
757 gvir_config_capabilities_cpu_topology_set_threads, function in GVirConfigCapabilitiesCpuTopology
758 </dt>
759 <dd></dd>
760 <dt>
761 <a class="link" href="GVirConfigCapabilities.html#gvir-config-capabilities-get-guests" title="gvir_config_capabilities_get_guests ()">gvir_config_capabilities_get_guests</a>, function in <a class="link" href="GVirConfigCapabilities.html" title="GVirConfigCapabilities">GVirConfigCapabilities</a>
762 </dt>
763 <dd></dd>
764 <dt>
765 <a class="link" href="GVirConfigCapabilities.html#gvir-config-capabilities-get-host" title="gvir_config_capabilities_get_host ()">gvir_config_capabilities_get_host</a>, function in <a class="link" href="GVirConfigCapabilities.html" title="GVirConfigCapabilities">GVirConfigCapabilities</a>
766 </dt>
767 <dd></dd>
768 <dt>
769 gvir_config_capabilities_guest_arch_get_domains, function in GVirConfigCapabilitiesGuestArch
770 </dt>
771 <dd></dd>
772 <dt>
773 gvir_config_capabilities_guest_arch_get_emulator, function in GVirConfigCapabilitiesGuestArch
774 </dt>
775 <dd></dd>
776 <dt>
777 gvir_config_capabilities_guest_arch_get_name, function in GVirConfigCapabilitiesGuestArch
778 </dt>
779 <dd></dd>
780 <dt>
781 gvir_config_capabilities_guest_domain_get_emulator, function in GVirConfigCapabilitiesGuestDomain
782 </dt>
783 <dd></dd>
784 <dt>
785 gvir_config_capabilities_guest_domain_get_virt_type, function in GVirConfigCapabilitiesGuestDomain
786 </dt>
787 <dd></dd>
788 <dt>
789 gvir_config_capabilities_guest_feature_get_name, function in GVirConfigCapabilitiesGuestFeature
790 </dt>
791 <dd></dd>
792 <dt>
793 gvir_config_capabilities_guest_get_arch, function in GVirConfigCapabilitiesGuest
794 </dt>
795 <dd></dd>
796 <dt>
797 gvir_config_capabilities_guest_get_features, function in GVirConfigCapabilitiesGuest
798 </dt>
799 <dd></dd>
800 <dt>
801 gvir_config_capabilities_guest_get_os_type, function in GVirConfigCapabilitiesGuest
802 </dt>
803 <dd></dd>
804 <dt>
805 gvir_config_capabilities_host_get_cpu, function in GVirConfigCapabilitiesHost
806 </dt>
807 <dd></dd>
808 <dt>
809 gvir_config_capabilities_host_get_uuid, function in GVirConfigCapabilitiesHost
810 </dt>
811 <dd></dd>
812 <dt>
601813 <a class="link" href="GVirConfigCapabilities.html#gvir-config-capabilities-new" title="gvir_config_capabilities_new ()">gvir_config_capabilities_new</a>, function in <a class="link" href="GVirConfigCapabilities.html" title="GVirConfigCapabilities">GVirConfigCapabilities</a>
602814 </dt>
603815 <dd></dd>
758970 </dt>
759971 <dd></dd>
760972 <dt>
973 gvir_config_domain_cpu_feature_get_policy, function in GVirConfigDomainCpuFeature
974 </dt>
975 <dd></dd>
976 <dt>
977 gvir_config_domain_cpu_feature_new, function in GVirConfigDomainCpuFeature
978 </dt>
979 <dd></dd>
980 <dt>
981 gvir_config_domain_cpu_feature_new_from_xml, function in GVirConfigDomainCpuFeature
982 </dt>
983 <dd></dd>
984 <dt>
985 gvir_config_domain_cpu_feature_set_policy, function in GVirConfigDomainCpuFeature
986 </dt>
987 <dd></dd>
988 <dt>
989 gvir_config_domain_cpu_get_match_policy, function in GVirConfigDomainCpu
990 </dt>
991 <dd></dd>
992 <dt>
993 gvir_config_domain_cpu_get_mode, function in GVirConfigDomainCpu
994 </dt>
995 <dd></dd>
996 <dt>
997 gvir_config_domain_cpu_new, function in GVirConfigDomainCpu
998 </dt>
999 <dd></dd>
1000 <dt>
1001 gvir_config_domain_cpu_new_from_xml, function in GVirConfigDomainCpu
1002 </dt>
1003 <dd></dd>
1004 <dt>
1005 gvir_config_domain_cpu_set_match_policy, function in GVirConfigDomainCpu
1006 </dt>
1007 <dd></dd>
1008 <dt>
1009 gvir_config_domain_cpu_set_mode, function in GVirConfigDomainCpu
1010 </dt>
1011 <dd></dd>
1012 <dt>
7611013 gvir_config_domain_device_new_from_tree, function in libvirt-gconfig-domain-device-private
7621014 </dt>
7631015 <dd></dd>
8621114 </dt>
8631115 <dd></dd>
8641116 <dt>
1117 gvir_config_domain_filesys_new_from_tree, function in libvirt-gconfig-domain-device-private
1118 </dt>
1119 <dd></dd>
1120 <dt>
8651121 gvir_config_domain_filesys_new_from_xml, function in GVirConfigDomainFilesys
8661122 </dt>
8671123 <dd></dd>
8741130 </dt>
8751131 <dd></dd>
8761132 <dt>
1133 gvir_config_domain_filesys_set_ram_usage, function in GVirConfigDomainFilesys
1134 </dt>
1135 <dd></dd>
1136 <dt>
8771137 gvir_config_domain_filesys_set_readonly, function in GVirConfigDomainFilesys
8781138 </dt>
8791139 <dd></dd>
8901150 </dt>
8911151 <dd></dd>
8921152 <dt>
1153 <a class="link" href="GVirConfigDomain.html#gvir-config-domain-get-cpu" title="gvir_config_domain_get_cpu ()">gvir_config_domain_get_cpu</a>, function in <a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain">GVirConfigDomain</a>
1154 </dt>
1155 <dd></dd>
1156 <dt>
8931157 <a class="link" href="GVirConfigDomain.html#gvir-config-domain-get-custom-xml" title="gvir_config_domain_get_custom_xml ()">gvir_config_domain_get_custom_xml</a>, function in <a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain">GVirConfigDomain</a>
8941158 </dt>
8951159 <dd></dd>
9141178 </dt>
9151179 <dd></dd>
9161180 <dt>
1181 <a class="link" href="GVirConfigDomain.html#gvir-config-domain-get-os" title="gvir_config_domain_get_os ()">gvir_config_domain_get_os</a>, function in <a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain">GVirConfigDomain</a>
1182 </dt>
1183 <dd></dd>
1184 <dt>
1185 <a class="link" href="GVirConfigDomain.html#gvir-config-domain-get-title" title="gvir_config_domain_get_title ()">gvir_config_domain_get_title</a>, function in <a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain">GVirConfigDomain</a>
1186 </dt>
1187 <dd></dd>
1188 <dt>
9171189 <a class="link" href="GVirConfigDomain.html#gvir-config-domain-get-vcpus" title="gvir_config_domain_get_vcpus ()">gvir_config_domain_get_vcpus</a>, function in <a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain">GVirConfigDomain</a>
9181190 </dt>
9191191 <dd></dd>
9201192 <dt>
1193 <a class="link" href="GVirConfigDomain.html#gvir-config-domain-get-virt-type" title="gvir_config_domain_get_virt_type ()">gvir_config_domain_get_virt_type</a>, function in <a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain">GVirConfigDomain</a>
1194 </dt>
1195 <dd></dd>
1196 <dt>
9211197 gvir_config_domain_graphics_new_from_tree, function in libvirt-gconfig-domain-device-private
9221198 </dt>
9231199 <dd></dd>
10941370 </dt>
10951371 <dd></dd>
10961372 <dt>
1373 gvir_config_domain_os_get_arch, function in GVirConfigDomainOs
1374 </dt>
1375 <dd></dd>
1376 <dt>
1377 gvir_config_domain_os_get_boot_devices, function in GVirConfigDomainOs
1378 </dt>
1379 <dd></dd>
1380 <dt>
1381 gvir_config_domain_os_get_os_type, function in GVirConfigDomainOs
1382 </dt>
1383 <dd></dd>
1384 <dt>
10971385 gvir_config_domain_os_new, function in GVirConfigDomainOs
10981386 </dt>
10991387 <dd></dd>
12021490 </dt>
12031491 <dd></dd>
12041492 <dt>
1493 <a class="link" href="GVirConfigDomain.html#gvir-config-domain-set-cpu" title="gvir_config_domain_set_cpu ()">gvir_config_domain_set_cpu</a>, function in <a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain">GVirConfigDomain</a>
1494 </dt>
1495 <dd></dd>
1496 <dt>
12051497 <a class="link" href="GVirConfigDomain.html#gvir-config-domain-set-custom-xml" title="gvir_config_domain_set_custom_xml ()">gvir_config_domain_set_custom_xml</a>, function in <a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain">GVirConfigDomain</a>
12061498 </dt>
12071499 <dd></dd>
12381530 </dt>
12391531 <dd></dd>
12401532 <dt>
1533 <a class="link" href="GVirConfigDomain.html#gvir-config-domain-set-title" title="gvir_config_domain_set_title ()">gvir_config_domain_set_title</a>, function in <a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain">GVirConfigDomain</a>
1534 </dt>
1535 <dd></dd>
1536 <dt>
12411537 <a class="link" href="GVirConfigDomain.html#gvir-config-domain-set-vcpus" title="gvir_config_domain_set_vcpus ()">gvir_config_domain_set_vcpus</a>, function in <a class="link" href="GVirConfigDomain.html" title="GVirConfigDomain">GVirConfigDomain</a>
12421538 </dt>
12431539 <dd></dd>
14111707 <dd></dd>
14121708 <dt>
14131709 gvir_config_object_get_attribute_genum, function in libvirt-gconfig-object-private
1710 </dt>
1711 <dd></dd>
1712 <dt>
1713 gvir_config_object_get_attribute_uint64, function in libvirt-gconfig-object-private
1714 </dt>
1715 <dd></dd>
1716 <dt>
1717 gvir_config_object_get_child, function in libvirt-gconfig-object-private
1718 </dt>
1719 <dd></dd>
1720 <dt>
1721 gvir_config_object_get_child_with_type, function in libvirt-gconfig-object-private
14141722 </dt>
14151723 <dd></dd>
14161724 <dt>
2020 </tr></table>
2121 <div class="chapter">
2222 <div class="titlepage"><div><div><h2 class="title">
23 <a name="id517290"></a>Libvirt-gconfig</h2></div></div></div>
23 <a name="id384614"></a>Libvirt-gconfig</h2></div></div></div>
2424 <div class="toc"><dl>
2525 <dt>
2626 <span class="refentrytitle"><a href="GVirConfigObject.html">GVirConfigObject</a></span><span class="refpurpose"></span>
2626 <ANCHOR id="GVirConfigDomainLifecycleEvent" href="Libvirt-gconfig/GVirConfigDomain.html#GVirConfigDomainLifecycleEvent">
2727 <ANCHOR id="GVirConfigDomainVirtType" href="Libvirt-gconfig/GVirConfigDomain.html#GVirConfigDomainVirtType">
2828 <ANCHOR id="gvir-config-domain-add-device" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-add-device">
29 <ANCHOR id="gvir-config-domain-get-cpu" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-get-cpu">
2930 <ANCHOR id="gvir-config-domain-get-custom-xml" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-get-custom-xml">
3031 <ANCHOR id="gvir-config-domain-get-description" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-get-description">
3132 <ANCHOR id="gvir-config-domain-get-devices" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-get-devices">
3233 <ANCHOR id="gvir-config-domain-get-features" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-get-features">
3334 <ANCHOR id="gvir-config-domain-get-memory" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-get-memory">
3435 <ANCHOR id="gvir-config-domain-get-name" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-get-name">
36 <ANCHOR id="gvir-config-domain-get-os" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-get-os">
37 <ANCHOR id="gvir-config-domain-get-title" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-get-title">
3538 <ANCHOR id="gvir-config-domain-get-vcpus" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-get-vcpus">
39 <ANCHOR id="gvir-config-domain-get-virt-type" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-get-virt-type">
3640 <ANCHOR id="gvir-config-domain-new" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-new">
3741 <ANCHOR id="gvir-config-domain-new-from-xml" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-new-from-xml">
3842 <ANCHOR id="gvir-config-domain-set-clock" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-set-clock">
43 <ANCHOR id="gvir-config-domain-set-cpu" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-set-cpu">
3944 <ANCHOR id="gvir-config-domain-set-custom-xml" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-set-custom-xml">
4045 <ANCHOR id="gvir-config-domain-set-description" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-set-description">
4146 <ANCHOR id="gvir-config-domain-set-devices" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-set-devices">
4550 <ANCHOR id="gvir-config-domain-set-name" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-set-name">
4651 <ANCHOR id="gvir-config-domain-set-os" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-set-os">
4752 <ANCHOR id="gvir-config-domain-set-seclabel" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-set-seclabel">
53 <ANCHOR id="gvir-config-domain-set-title" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-set-title">
4854 <ANCHOR id="gvir-config-domain-set-vcpus" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-set-vcpus">
4955 <ANCHOR id="gvir-config-domain-set-virt-type" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-set-virt-type">
5056 <ANCHOR id="GVirConfigDomain.property-details" href="Libvirt-gconfig/GVirConfigDomain.html#GVirConfigDomain.property-details">
5258 <ANCHOR id="GVirConfigDomain--features" href="Libvirt-gconfig/GVirConfigDomain.html#GVirConfigDomain--features">
5359 <ANCHOR id="GVirConfigDomain--memory" href="Libvirt-gconfig/GVirConfigDomain.html#GVirConfigDomain--memory">
5460 <ANCHOR id="GVirConfigDomain--name" href="Libvirt-gconfig/GVirConfigDomain.html#GVirConfigDomain--name">
61 <ANCHOR id="GVirConfigDomain--title" href="Libvirt-gconfig/GVirConfigDomain.html#GVirConfigDomain--title">
5562 <ANCHOR id="GVirConfigDomain--vcpu" href="Libvirt-gconfig/GVirConfigDomain.html#GVirConfigDomain--vcpu">
5663 <ANCHOR id="GVirConfigDomainSnapshot" href="Libvirt-gconfig/GVirConfigDomainSnapshot.html">
5764 <ANCHOR id="GVirConfigDomainSnapshot.synopsis" href="Libvirt-gconfig/GVirConfigDomainSnapshot.html#GVirConfigDomainSnapshot.synopsis">
146153 <ANCHOR id="GVirConfigCapabilities.details" href="Libvirt-gconfig/GVirConfigCapabilities.html#GVirConfigCapabilities.details">
147154 <ANCHOR id="GVirConfigCapabilities-struct" href="Libvirt-gconfig/GVirConfigCapabilities.html#GVirConfigCapabilities-struct">
148155 <ANCHOR id="GVirConfigCapabilitiesClass" href="Libvirt-gconfig/GVirConfigCapabilities.html#GVirConfigCapabilitiesClass">
156 <ANCHOR id="gvir-config-capabilities-get-guests" href="Libvirt-gconfig/GVirConfigCapabilities.html#gvir-config-capabilities-get-guests">
157 <ANCHOR id="gvir-config-capabilities-get-host" href="Libvirt-gconfig/GVirConfigCapabilities.html#gvir-config-capabilities-get-host">
149158 <ANCHOR id="gvir-config-capabilities-new" href="Libvirt-gconfig/GVirConfigCapabilities.html#gvir-config-capabilities-new">
150159 <ANCHOR id="gvir-config-capabilities-new-from-xml" href="Libvirt-gconfig/GVirConfigCapabilities.html#gvir-config-capabilities-new-from-xml">
151160 <ANCHOR id="annotation-glossterm-array" href="Libvirt-gconfig/annotation-glossary.html#annotation-glossterm-array">
2424 <pre class="screen">
2525 <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
2626 <a class="link" href="GVirConfigObject.html" title="GVirConfigObject">GVirConfigObject</a>
27 GVirConfigCapabilitiesCpuFeature
28 GVirConfigDomainCpuFeature
29 GVirConfigCapabilitiesCpu
30 GVirConfigDomainCpu
31 GVirConfigCapabilitiesCpuTopology
2732 <a class="link" href="GVirConfigCapabilities.html" title="GVirConfigCapabilities">GVirConfigCapabilities</a>
33 GVirConfigCapabilitiesGuestArch
34 GVirConfigCapabilitiesGuestDomain
35 GVirConfigCapabilitiesGuestFeature
36 GVirConfigCapabilitiesGuest
37 GVirConfigCapabilitiesHost
2838 GVirConfigDomainAddress
2939 GVirConfigDomainAddressPci
3040 GVirConfigDomainAddressUsb
22 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
33 [
44 <!ENTITY % local.common.attrib "xmlns:xi CDATA #FIXED 'http://www.w3.org/2003/XInclude'">
5 <!ENTITY version SYSTEM "version.xml">
56 ]>
67 <book id="index">
78 <bookinfo>
8 <title>Libvirt-glib Reference Manual</title>
9 <title>Libvirt GLib Reference Manual</title>
910 </bookinfo>
1011
1112 <chapter>
12 <title>Libvirt-glib</title>
13 <title>API Reference</title>
1314 <xi:include href="xml/libvirt-glib-main.xml"/>
1415 <xi:include href="xml/libvirt-glib-error.xml"/>
1516 <xi:include href="xml/libvirt-glib-event.xml"/>
1617 </chapter>
1718 <chapter id="object-tree">
1819 <title>Object Hierarchy</title>
19 <xi:include href="xml/tree_index.sgml"/>
20 <xi:include href="xml/tree_index.sgml"/>
2021 </chapter>
2122 <index id="api-index-full">
2223 <title>API Index</title>
3838 $(top_builddir)/libvirt-glib/libvirt-glib-1.0.la
3939
4040 include $(top_srcdir)/gtk-doc.make
41
42 EXTRA_DIST += version.xml.in
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
0 # Makefile.in generated by automake 1.12.2 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
2019 # Everything below here is generic #
2120 ####################################
2221 VPATH = @srcdir@
22 am__make_dryrun = \
23 { \
24 am__dry=no; \
25 case $$MAKEFLAGS in \
26 *\\[\ \ ]*) \
27 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
28 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
29 *) \
30 for am__flg in $$MAKEFLAGS; do \
31 case $$am__flg in \
32 *=*|--*) ;; \
33 *n*) am__dry=yes; break;; \
34 esac; \
35 done;; \
36 esac; \
37 test $$am__dry = yes; \
38 }
2339 pkgdatadir = $(datadir)/@PACKAGE@
2440 pkgincludedir = $(includedir)/@PACKAGE@
2541 pkglibdir = $(libdir)/@PACKAGE@
3955 build_triplet = @build@
4056 host_triplet = @host@
4157 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
42 $(top_srcdir)/gtk-doc.make
58 $(srcdir)/version.xml.in $(top_srcdir)/gtk-doc.make
4359 subdir = docs/libvirt-glib
4460 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
4561 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
5268 $(ACLOCAL_M4)
5369 mkinstalldirs = $(install_sh) -d
5470 CONFIG_HEADER = $(top_builddir)/config.h
55 CONFIG_CLEAN_FILES =
71 CONFIG_CLEAN_FILES = version.xml
5672 CONFIG_CLEAN_VPATH_FILES =
73 AM_V_P = $(am__v_P_@AM_V@)
74 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
75 am__v_P_0 = false
76 am__v_P_1 = :
5777 AM_V_GEN = $(am__v_GEN_@AM_V@)
5878 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
59 am__v_GEN_0 = @echo " GEN " $@;
79 am__v_GEN_0 = @echo " GEN " $@;
80 am__v_GEN_1 =
6081 AM_V_at = $(am__v_at_@AM_V@)
6182 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
6283 am__v_at_0 = @
84 am__v_at_1 =
6385 SOURCES =
6486 DIST_SOURCES =
87 am__can_run_installinfo = \
88 case $$AM_UPDATE_INFO_DIR in \
89 n|no|NO) false;; \
90 *) (install-info --version) >/dev/null 2>&1;; \
91 esac
6592 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
6693 ACLOCAL = @ACLOCAL@
6794 AMTAR = @AMTAR@
271298 $(DOC_MODULE)-sections.txt \
272299 $(DOC_MODULE)-overrides.txt
273300
274 EXTRA_DIST = \
275 $(HTML_IMAGES) \
276 $(SETUP_FILES)
277
301 EXTRA_DIST = $(HTML_IMAGES) $(SETUP_FILES) version.xml.in
278302 DOC_STAMPS = setup-build.stamp scan-build.stamp sgml-build.stamp \
279303 html-build.stamp pdf-build.stamp \
280304 sgml.stamp html.stamp pdf.stamp
330354 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
331355 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
332356 $(am__aclocal_m4_deps):
357 version.xml: $(top_builddir)/config.status $(srcdir)/version.xml.in
358 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
333359
334360 mostlyclean-libtool:
335361 -rm -f *.lo
341367
342368 ctags: CTAGS
343369 CTAGS:
370
371 cscope cscopelist:
344372
345373
346374 distdir: $(DISTFILES)
0 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4 <title>Error reporting</title>
5 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
6 <link rel="home" href="index.html" title="Libvirt GLib Reference Manual">
7 <link rel="up" href="ch01.html" title="API Reference">
8 <link rel="prev" href="Libvirt-glib-Library-initialization.html" title="Library initialization">
9 <link rel="next" href="Libvirt-glib-Event-loop.html" title="Event loop">
10 <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
11 <link rel="stylesheet" href="style.css" type="text/css">
12 </head>
13 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
14 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
15 <tr valign="middle">
16 <td><a accesskey="p" href="Libvirt-glib-Library-initialization.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
17 <td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
18 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
19 <th width="100%" align="center">Libvirt GLib Reference Manual</th>
20 <td><a accesskey="n" href="Libvirt-glib-Event-loop.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
21 </tr>
22 <tr><td colspan="5" class="shortcuts">
23 <a href="#Libvirt-glib-Error-reporting.synopsis" class="shortcut">Top</a>
24  | 
25 <a href="#Libvirt-glib-Error-reporting.description" class="shortcut">Description</a>
26 </td></tr>
27 </table>
28 <div class="refentry">
29 <a name="Libvirt-glib-Error-reporting"></a><div class="titlepage"></div>
30 <div class="refnamediv"><table width="100%"><tr>
31 <td valign="top">
32 <h2><span class="refentrytitle"><a name="Libvirt-glib-Error-reporting.top_of_page"></a>Error reporting</span></h2>
33 <p>Error reporting — Convert libvirt error reports to GLib error reports</p>
34 </td>
35 <td valign="top" align="right"></td>
36 </tr></table></div>
37 <div class="refsect1">
38 <a name="Libvirt-glib-Error-reporting.stability-level"></a><h2>Stability Level</h2>
39 Stable, unless otherwise indicated
40 </div>
41 <div class="refsynopsisdiv">
42 <a name="Libvirt-glib-Error-reporting.synopsis"></a><h2>Synopsis</h2>
43 <pre class="synopsis">
44 #include &lt;libvirt-glib/libvirt-glib.h&gt;
45
46 <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> * <a class="link" href="Libvirt-glib-Error-reporting.html#gvir-error-new" title="gvir_error_new ()">gvir_error_new</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> domain</code></em>,
47 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> code</code></em>,
48 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *format</code></em>,
49 <em class="parameter"><code>...</code></em>);
50 <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> * <a class="link" href="Libvirt-glib-Error-reporting.html#gvir-error-new-literal" title="gvir_error_new_literal ()">gvir_error_new_literal</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> domain</code></em>,
51 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> code</code></em>,
52 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *message</code></em>);
53 <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> * <a class="link" href="Libvirt-glib-Error-reporting.html#gvir-error-new-valist" title="gvir_error_new_valist ()">gvir_error_new_valist</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> domain</code></em>,
54 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> code</code></em>,
55 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *format</code></em>,
56 <em class="parameter"><code><span class="type">va_list</span> args</code></em>);
57 <span class="returnvalue">void</span> <a class="link" href="Libvirt-glib-Error-reporting.html#gvir-set-error" title="gvir_set_error ()">gvir_set_error</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
58 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> domain</code></em>,
59 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> code</code></em>,
60 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *format</code></em>,
61 <em class="parameter"><code>...</code></em>);
62 <span class="returnvalue">void</span> <a class="link" href="Libvirt-glib-Error-reporting.html#gvir-set-error-literal" title="gvir_set_error_literal ()">gvir_set_error_literal</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
63 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> domain</code></em>,
64 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> code</code></em>,
65 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *message</code></em>);
66 <span class="returnvalue">void</span> <a class="link" href="Libvirt-glib-Error-reporting.html#gvir-set-error-valist" title="gvir_set_error_valist ()">gvir_set_error_valist</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
67 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> domain</code></em>,
68 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> code</code></em>,
69 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *format</code></em>,
70 <em class="parameter"><code><span class="type">va_list</span> args</code></em>);
71 </pre>
72 </div>
73 <div class="refsect1">
74 <a name="Libvirt-glib-Error-reporting.description"></a><h2>Description</h2>
75 <p>
76 The libvirt API uses the <code class="code">virError</code> structure for reporting
77 errors back to the application programmer. The libvirt API errors are
78 provided in thread-local variables, while the GLib standard practice is
79 to return errors via out parameters. This library provides a simple way
80 to fill in <code class="code">GError **</code> output parameters with the contents
81 of the most recent libvirt error object in the current thread.
82 </p>
83 <p>
84 The <code class="code">gvir_error_new</code>, <code class="code">gvir_error_new_literal</code> and
85 <code class="code">gvir_error_new_valist</code> methods all return a newly created
86 <code class="code">GError *</code> object instance, differing only in the way the
87 message needs to be provided. For most usage though, it is preferrable
88 to use the <code class="code">gvir_set_error</code>, <code class="code">gvir_set_error_literal</code>
89 and <code class="code">gvir_set_error_valist</code> methods. These all accept a
90 <code class="code">GError **</code> argument and take care to only fill it if it
91 points to a non-NULL location.
92 </p>
93 <p>
94 </p>
95 <div class="example">
96 <a name="id402640"></a><p class="title"><b>Example 2. Reporting GLib errors with libvirt APIs</b></p>
97 <div class="example-contents">
98 <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
99 <tbody>
100 <tr>
101 <td class="listing_lines" align="right"><pre>1
102 2
103 3
104 4
105 5
106 6
107 7
108 8
109 9</pre></td>
110 <td class="listing_code"><pre class="programlisting"><span class="usertype">gboolean</span><span class="normal"> </span><span class="function">myapp_start_guest</span><span class="symbol">(</span><span class="keyword">const</span><span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">xml</span><span class="symbol">,</span><span class="normal"> </span><span class="usertype">GError</span><span class="normal"> </span><span class="symbol">**</span><span class="normal">error</span><span class="symbol">)</span>
111 <span class="cbracket">{</span>
112 <span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function">virDomainCreate</span><span class="symbol">(</span><span class="normal">conn</span><span class="symbol">,</span><span class="normal"> xml</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">&amp;</span><span class="normal">lt</span><span class="symbol">;</span><span class="normal"> </span><span class="number">0</span><span class="symbol">)</span><span class="normal"> </span><span class="cbracket">{</span>
113 <span class="normal"> </span><span class="function"><a href="Libvirt-glib-Error-reporting.html#gvir-set-error-literal">gvir_set_error_literal</a></span><span class="symbol">(</span><span class="normal">error</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"Unable to start virtual machine"</span><span class="symbol">);</span>
114 <span class="normal"> </span><span class="keyword">return</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">;</span>
115 <span class="normal"> </span><span class="cbracket">}</span>
116
117 <span class="normal"> </span><span class="keyword">return</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS">TRUE</a></span><span class="symbol">;</span>
118 <span class="cbracket">}</span></pre></td>
119 </tr>
120 </tbody>
121 </table>
122 </div>
123
124 </div>
125 <p><br class="example-break">
126 </p>
127 </div>
128 <div class="refsect1">
129 <a name="Libvirt-glib-Error-reporting.details"></a><h2>Details</h2>
130 <div class="refsect2">
131 <a name="gvir-error-new"></a><h3>gvir_error_new ()</h3>
132 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> * gvir_error_new (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> domain</code></em>,
133 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> code</code></em>,
134 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *format</code></em>,
135 <em class="parameter"><code>...</code></em>);</pre>
136 <p>
137 Creates a new <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> with the given <em class="parameter"><code>domain</code></em> and <em class="parameter"><code>code</code></em>,
138 and a message formatted with <em class="parameter"><code>format</code></em>.
139 </p>
140 <div class="variablelist"><table border="0">
141 <col align="left" valign="top">
142 <tbody>
143 <tr>
144 <td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
145 <td>error domain</td>
146 </tr>
147 <tr>
148 <td><p><span class="term"><em class="parameter"><code>code</code></em> :</span></p></td>
149 <td>error code</td>
150 </tr>
151 <tr>
152 <td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
153 <td>printf()-style format for error message</td>
154 </tr>
155 <tr>
156 <td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
157 <td>parameters for message format</td>
158 </tr>
159 <tr>
160 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
161 <td>a new <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>
162 </td>
163 </tr>
164 </tbody>
165 </table></div>
166 </div>
167 <hr>
168 <div class="refsect2">
169 <a name="gvir-error-new-literal"></a><h3>gvir_error_new_literal ()</h3>
170 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> * gvir_error_new_literal (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> domain</code></em>,
171 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> code</code></em>,
172 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *message</code></em>);</pre>
173 <p>
174 Creates a new <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>; unlike <a class="link" href="Libvirt-glib-Error-reporting.html#gvir-error-new" title="gvir_error_new ()"><code class="function">gvir_error_new()</code></a>, <em class="parameter"><code>message</code></em> is
175 not a <code class="function">printf()</code>-style format string. Use this function if
176 <em class="parameter"><code>message</code></em> contains text you don't have control over,
177 that could include <code class="function">printf()</code> escape sequences.
178 </p>
179 <div class="variablelist"><table border="0">
180 <col align="left" valign="top">
181 <tbody>
182 <tr>
183 <td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
184 <td>error domain</td>
185 </tr>
186 <tr>
187 <td><p><span class="term"><em class="parameter"><code>code</code></em> :</span></p></td>
188 <td>error code</td>
189 </tr>
190 <tr>
191 <td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
192 <td>error message</td>
193 </tr>
194 <tr>
195 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
196 <td>a new <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>
197 </td>
198 </tr>
199 </tbody>
200 </table></div>
201 </div>
202 <hr>
203 <div class="refsect2">
204 <a name="gvir-error-new-valist"></a><h3>gvir_error_new_valist ()</h3>
205 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> * gvir_error_new_valist (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> domain</code></em>,
206 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> code</code></em>,
207 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *format</code></em>,
208 <em class="parameter"><code><span class="type">va_list</span> args</code></em>);</pre>
209 <p>
210 Creates a new <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> with the given <em class="parameter"><code>domain</code></em> and <em class="parameter"><code>code</code></em>,
211 and a message formatted with <em class="parameter"><code>format</code></em>.
212 </p>
213 <div class="variablelist"><table border="0">
214 <col align="left" valign="top">
215 <tbody>
216 <tr>
217 <td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
218 <td>error domain</td>
219 </tr>
220 <tr>
221 <td><p><span class="term"><em class="parameter"><code>code</code></em> :</span></p></td>
222 <td>error code</td>
223 </tr>
224 <tr>
225 <td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
226 <td>printf()-style format for error message</td>
227 </tr>
228 <tr>
229 <td><p><span class="term"><em class="parameter"><code>args</code></em> :</span></p></td>
230 <td>
231 <span class="type">va_list</span> of parameters for the message format</td>
232 </tr>
233 <tr>
234 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
235 <td>a new <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>
236 </td>
237 </tr>
238 </tbody>
239 </table></div>
240 </div>
241 <hr>
242 <div class="refsect2">
243 <a name="gvir-set-error"></a><h3>gvir_set_error ()</h3>
244 <pre class="programlisting"><span class="returnvalue">void</span> gvir_set_error (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
245 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> domain</code></em>,
246 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> code</code></em>,
247 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *format</code></em>,
248 <em class="parameter"><code>...</code></em>);</pre>
249 <p>
250 If <em class="parameter"><code>error</code></em> is NULL this does nothing. Otherwise it
251 creates a new <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> with the given <em class="parameter"><code>domain</code></em> and <em class="parameter"><code>code</code></em>,
252 and a message formatted with <em class="parameter"><code>format</code></em>, and stores it
253 in <em class="parameter"><code>error</code></em>.
254 </p>
255 <div class="variablelist"><table border="0">
256 <col align="left" valign="top">
257 <tbody>
258 <tr>
259 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
260 <td>pointer to error location</td>
261 </tr>
262 <tr>
263 <td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
264 <td>error domain</td>
265 </tr>
266 <tr>
267 <td><p><span class="term"><em class="parameter"><code>code</code></em> :</span></p></td>
268 <td>error code</td>
269 </tr>
270 <tr>
271 <td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
272 <td>printf()-style format for error message</td>
273 </tr>
274 <tr>
275 <td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
276 <td>parameters for message format</td>
277 </tr>
278 </tbody>
279 </table></div>
280 </div>
281 <hr>
282 <div class="refsect2">
283 <a name="gvir-set-error-literal"></a><h3>gvir_set_error_literal ()</h3>
284 <pre class="programlisting"><span class="returnvalue">void</span> gvir_set_error_literal (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
285 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> domain</code></em>,
286 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> code</code></em>,
287 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *message</code></em>);</pre>
288 <p>
289 If <em class="parameter"><code>error</code></em> is NULL this does nothing. Otherwise it
290 creates a new <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> and stores it in <em class="parameter"><code>error</code></em>; unlike
291 <a class="link" href="Libvirt-glib-Error-reporting.html#gvir-set-error" title="gvir_set_error ()"><code class="function">gvir_set_error()</code></a>, <em class="parameter"><code>message</code></em> is not a <code class="function">printf()</code>-style
292 format string. Use this function if <em class="parameter"><code>message</code></em> contains
293 text you don't have control over, that could include
294 <code class="function">printf()</code> escape sequences.
295 </p>
296 <div class="variablelist"><table border="0">
297 <col align="left" valign="top">
298 <tbody>
299 <tr>
300 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
301 <td>pointer to error location</td>
302 </tr>
303 <tr>
304 <td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
305 <td>error domain</td>
306 </tr>
307 <tr>
308 <td><p><span class="term"><em class="parameter"><code>code</code></em> :</span></p></td>
309 <td>error code</td>
310 </tr>
311 <tr>
312 <td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
313 <td>error message</td>
314 </tr>
315 </tbody>
316 </table></div>
317 </div>
318 <hr>
319 <div class="refsect2">
320 <a name="gvir-set-error-valist"></a><h3>gvir_set_error_valist ()</h3>
321 <pre class="programlisting"><span class="returnvalue">void</span> gvir_set_error_valist (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
322 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> domain</code></em>,
323 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> code</code></em>,
324 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *format</code></em>,
325 <em class="parameter"><code><span class="type">va_list</span> args</code></em>);</pre>
326 <p>
327 If <em class="parameter"><code>error</code></em> is NULL this does nothing. Otherwise it
328 creates a new <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> with the given <em class="parameter"><code>domain</code></em> and <em class="parameter"><code>code</code></em>,
329 and a message formatted with <em class="parameter"><code>format</code></em>, and stores it
330 in <em class="parameter"><code>error</code></em>.
331 </p>
332 <div class="variablelist"><table border="0">
333 <col align="left" valign="top">
334 <tbody>
335 <tr>
336 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
337 <td>pointer to error location</td>
338 </tr>
339 <tr>
340 <td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
341 <td>error domain</td>
342 </tr>
343 <tr>
344 <td><p><span class="term"><em class="parameter"><code>code</code></em> :</span></p></td>
345 <td>error code</td>
346 </tr>
347 <tr>
348 <td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
349 <td>printf()-style format for error message</td>
350 </tr>
351 <tr>
352 <td><p><span class="term"><em class="parameter"><code>args</code></em> :</span></p></td>
353 <td>
354 <span class="type">va_list</span> of parameters for the message format</td>
355 </tr>
356 </tbody>
357 </table></div>
358 </div>
359 </div>
360 </div>
361 <div class="footer">
362 <hr>
363 Generated by GTK-Doc V1.18</div>
364 </body>
365 </html>
0 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4 <title>Event loop</title>
5 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
6 <link rel="home" href="index.html" title="Libvirt GLib Reference Manual">
7 <link rel="up" href="ch01.html" title="API Reference">
8 <link rel="prev" href="Libvirt-glib-Error-reporting.html" title="Error reporting">
9 <link rel="next" href="object-tree.html" title="Object Hierarchy">
10 <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
11 <link rel="stylesheet" href="style.css" type="text/css">
12 </head>
13 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
14 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
15 <tr valign="middle">
16 <td><a accesskey="p" href="Libvirt-glib-Error-reporting.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
17 <td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
18 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
19 <th width="100%" align="center">Libvirt GLib Reference Manual</th>
20 <td><a accesskey="n" href="object-tree.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
21 </tr>
22 <tr><td colspan="5" class="shortcuts">
23 <a href="#Libvirt-glib-Event-loop.synopsis" class="shortcut">Top</a>
24  | 
25 <a href="#Libvirt-glib-Event-loop.description" class="shortcut">Description</a>
26 </td></tr>
27 </table>
28 <div class="refentry">
29 <a name="Libvirt-glib-Event-loop"></a><div class="titlepage"></div>
30 <div class="refnamediv"><table width="100%"><tr>
31 <td valign="top">
32 <h2><span class="refentrytitle"><a name="Libvirt-glib-Event-loop.top_of_page"></a>Event loop</span></h2>
33 <p>Event loop — Integrate libvirt with the GMain event framework</p>
34 </td>
35 <td valign="top" align="right"></td>
36 </tr></table></div>
37 <div class="refsect1">
38 <a name="Libvirt-glib-Event-loop.stability-level"></a><h2>Stability Level</h2>
39 Stable, unless otherwise indicated
40 </div>
41 <div class="refsynopsisdiv">
42 <a name="Libvirt-glib-Event-loop.synopsis"></a><h2>Synopsis</h2>
43 <pre class="synopsis">
44 #include &lt;libvirt-glib/libvirt-glib.h&gt;
45
46 <span class="returnvalue">void</span> <a class="link" href="Libvirt-glib-Event-loop.html#gvir-event-register" title="gvir_event_register ()">gvir_event_register</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
47 </pre>
48 </div>
49 <div class="refsect1">
50 <a name="Libvirt-glib-Event-loop.description"></a><h2>Description</h2>
51 <p>
52 The libvirt API has the ability to provide applications with asynchronous
53 notifications of interesting events. To enable this functionality though,
54 applications must provide libvirt with an event loop implementation. The
55 libvirt-glib API provides such an implementation, which naturally integrates
56 with the GMain event loop framework.
57 </p>
58 <p>
59 To enable use of the GMain event loop glue, the <code class="code"><a class="link" href="Libvirt-glib-Event-loop.html#gvir-event-register" title="gvir_event_register ()"><code class="function">gvir_event_register()</code></a></code>
60 should be invoked. Once this is done, it is mandatory to have the default
61 GMain event loop run by a thread in the application, usually the primary
62 thread, eg by using <code class="code"><a href="http://library.gnome.org/devel/gtk3/gtk-General.html#gtk-main"><code class="function">gtk_main()</code></a></code> or <code class="code"><a href="http://library.gnome.org/devel/gio/unstable/GApplication.html#g-application-run"><code class="function">g_application_run()</code></a></code>
63 </p>
64 <p>
65 </p>
66 <div class="example">
67 <a name="id395212"></a><p class="title"><b>Example 3. Registering for events with a GTK application</b></p>
68 <div class="example-contents">
69 <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
70 <tbody>
71 <tr>
72 <td class="listing_lines" align="right"><pre>1
73 2
74 3
75 4
76 5
77 6
78 7</pre></td>
79 <td class="listing_code"><pre class="programlisting"><span class="type">int</span><span class="normal"> </span><span class="function">main</span><span class="symbol">(</span><span class="type">int</span><span class="normal"> argc</span><span class="symbol">,</span><span class="normal"> </span><span class="type">char</span><span class="normal"> </span><span class="symbol">**</span><span class="normal">argv</span><span class="symbol">)</span><span class="normal"> </span><span class="cbracket">{</span>
80 <span class="normal"> </span><span class="symbol">...</span><span class="normal">setup</span><span class="symbol">...</span>
81 <span class="normal"> </span><span class="function"><a href="Libvirt-glib-Event-loop.html#gvir-event-register">gvir_event_register</a></span><span class="symbol">();</span>
82 <span class="normal"> </span><span class="symbol">...</span><span class="usertype">more</span><span class="normal"> setup</span><span class="symbol">...</span>
83 <span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gtk3/gtk-General.html#gtk-main">gtk_main</a></span><span class="symbol">();</span>
84 <span class="normal"> </span><span class="keyword">return</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span>
85 <span class="cbracket">}</span></pre></td>
86 </tr>
87 </tbody>
88 </table>
89 </div>
90
91 </div>
92 <p><br class="example-break">
93 </p>
94 <p>
95 </p>
96 <div class="example">
97 <a name="id416743"></a><p class="title"><b>Example 4. Registering for events using Appplication</b></p>
98 <div class="example-contents">
99 <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
100 <tbody>
101 <tr>
102 <td class="listing_lines" align="right"><pre>1
103 2
104 3
105 4
106 5
107 6
108 7
109 8</pre></td>
110 <td class="listing_code"><pre class="programlisting"><span class="type">int</span><span class="normal"> </span><span class="function">main</span><span class="symbol">(</span><span class="type">int</span><span class="normal"> argc</span><span class="symbol">,</span><span class="normal"> </span><span class="type">char</span><span class="normal"> </span><span class="symbol">**</span><span class="normal">argv</span><span class="symbol">)</span><span class="normal"> </span><span class="cbracket">{</span>
111 <span class="normal"> </span><span class="symbol">...</span><span class="normal">setup</span><span class="symbol">...</span>
112 <span class="normal"> </span><span class="usertype">GApplication</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">app </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">...</span><span class="normal">create some impl </span><span class="usertype">of</span><span class="normal"> <a href="http://library.gnome.org/devel/gio/unstable/GApplication.html">GApplication</a></span><span class="symbol">...</span>
113 <span class="normal"> </span><span class="function"><a href="Libvirt-glib-Event-loop.html#gvir-event-register">gvir_event_register</a></span><span class="symbol">();</span>
114 <span class="normal"> </span><span class="symbol">...</span><span class="usertype">more</span><span class="normal"> setup</span><span class="symbol">...</span>
115 <span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gio/unstable/GApplication.html#g-application-run">g_application_run</a></span><span class="symbol">(</span><span class="normal">app</span><span class="symbol">);</span>
116 <span class="normal"> </span><span class="keyword">return</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span>
117 <span class="cbracket">}</span></pre></td>
118 </tr>
119 </tbody>
120 </table>
121 </div>
122
123 </div>
124 <p><br class="example-break">
125 </p>
126 </div>
127 <div class="refsect1">
128 <a name="Libvirt-glib-Event-loop.details"></a><h2>Details</h2>
129 <div class="refsect2">
130 <a name="gvir-event-register"></a><h3>gvir_event_register ()</h3>
131 <pre class="programlisting"><span class="returnvalue">void</span> gvir_event_register (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
132 <p>
133 Registers a libvirt event loop implementation that is backed
134 by the default <code class="code">GMain</code> context. If invoked more
135 than once this method will be a no-op. Applications should,
136 however, take care not to register any another non-GLib
137 event loop with libvirt.
138 </p>
139 <p>
140 After invoking this method, it is mandatory to run the
141 default GMain event loop. Typically this can be satisfied
142 by invoking <code class="code">gtk_main</code> or <code class="code">g_application_run</code>
143 in the application's main thread. Failure to run the event
144 loop will mean no libvirt events get dispatched, and the
145 libvirt keepalive timer will kill off libvirt connections
146 frequently.
147 </p>
148 </div>
149 </div>
150 </div>
151 <div class="footer">
152 <hr>
153 Generated by GTK-Doc V1.18</div>
154 </body>
155 </html>
0 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4 <title>Library initialization</title>
5 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
6 <link rel="home" href="index.html" title="Libvirt GLib Reference Manual">
7 <link rel="up" href="ch01.html" title="API Reference">
8 <link rel="prev" href="ch01.html" title="API Reference">
9 <link rel="next" href="Libvirt-glib-Error-reporting.html" title="Error reporting">
10 <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
11 <link rel="stylesheet" href="style.css" type="text/css">
12 </head>
13 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
14 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
15 <tr valign="middle">
16 <td><a accesskey="p" href="ch01.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
17 <td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
18 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
19 <th width="100%" align="center">Libvirt GLib Reference Manual</th>
20 <td><a accesskey="n" href="Libvirt-glib-Error-reporting.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
21 </tr>
22 <tr><td colspan="5" class="shortcuts">
23 <a href="#Libvirt-glib-Library-initialization.synopsis" class="shortcut">Top</a>
24  | 
25 <a href="#Libvirt-glib-Library-initialization.description" class="shortcut">Description</a>
26 </td></tr>
27 </table>
28 <div class="refentry">
29 <a name="Libvirt-glib-Library-initialization"></a><div class="titlepage"></div>
30 <div class="refnamediv"><table width="100%"><tr>
31 <td valign="top">
32 <h2><span class="refentrytitle"><a name="Libvirt-glib-Library-initialization.top_of_page"></a>Library initialization</span></h2>
33 <p>Library initialization — Initialize the library</p>
34 </td>
35 <td valign="top" align="right"></td>
36 </tr></table></div>
37 <div class="refsect1">
38 <a name="Libvirt-glib-Library-initialization.stability-level"></a><h2>Stability Level</h2>
39 Stable, unless otherwise indicated
40 </div>
41 <div class="refsynopsisdiv">
42 <a name="Libvirt-glib-Library-initialization.synopsis"></a><h2>Synopsis</h2>
43 <pre class="synopsis">
44 #include &lt;libvirt-glib/libvirt-glib.h&gt;
45
46 <span class="returnvalue">void</span> <a class="link" href="Libvirt-glib-Library-initialization.html#gvir-init" title="gvir_init ()">gvir_init</a> (<em class="parameter"><code><span class="type">int</span> *argc</code></em>,
47 <em class="parameter"><code><span class="type">char</span> ***argv</code></em>);
48 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="Libvirt-glib-Library-initialization.html#gvir-init-check" title="gvir_init_check ()">gvir_init_check</a> (<em class="parameter"><code><span class="type">int</span> *argc</code></em>,
49 <em class="parameter"><code><span class="type">char</span> ***argv</code></em>,
50 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
51 </pre>
52 </div>
53 <div class="refsect1">
54 <a name="Libvirt-glib-Library-initialization.description"></a><h2>Description</h2>
55 <p>
56 The Libvirt GLib library provides glue to integrate core libvirt
57 infrastructure with the GLib library. This enables consistent
58 error reporting procedures and a common event loop implementation
59 for applications.
60 </p>
61 <p>
62 Before using any functions in the Libvirt GLib library, it must be initialized
63 by calling <code class="code">gvir_init</code> or <code class="code">gvir_init_check</code>.
64 </p>
65 <p>
66 </p>
67 <div class="example">
68 <a name="id408801"></a><p class="title"><b>Example 1. Initializing the Libvirt GLib library</b></p>
69 <div class="example-contents">
70 <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
71 <tbody>
72 <tr>
73 <td class="listing_lines" align="right"><pre>1
74 2
75 3
76 4
77 5
78 6
79 7</pre></td>
80 <td class="listing_code"><pre class="programlisting"><span class="type">int</span><span class="normal"> </span><span class="function">main</span><span class="symbol">(</span><span class="type">int</span><span class="normal"> argc</span><span class="symbol">,</span><span class="normal"> </span><span class="type">char</span><span class="normal"> </span><span class="symbol">**</span><span class="normal">argv</span><span class="symbol">)</span><span class="normal"> </span><span class="cbracket">{</span>
81 <span class="normal"> </span><span class="symbol">...</span><span class="normal">setup</span><span class="symbol">...</span>
82 <span class="normal"> </span><span class="function"><a href="Libvirt-glib-Library-initialization.html#gvir-init">gvir_init</a></span><span class="symbol">(&amp;</span><span class="normal">argc</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&amp;</span><span class="normal">argv</span><span class="symbol">);</span>
83 <span class="normal"> </span><span class="symbol">...</span><span class="usertype">more</span><span class="normal"> setup</span><span class="symbol">...</span>
84 <span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gtk3/gtk-General.html#gtk-main">gtk_main</a></span><span class="symbol">();</span>
85 <span class="normal"> </span><span class="keyword">return</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span>
86 <span class="cbracket">}</span></pre></td>
87 </tr>
88 </tbody>
89 </table>
90 </div>
91
92 </div>
93 <p><br class="example-break">
94 </p>
95 </div>
96 <div class="refsect1">
97 <a name="Libvirt-glib-Library-initialization.details"></a><h2>Details</h2>
98 <div class="refsect2">
99 <a name="gvir-init"></a><h3>gvir_init ()</h3>
100 <pre class="programlisting"><span class="returnvalue">void</span> gvir_init (<em class="parameter"><code><span class="type">int</span> *argc</code></em>,
101 <em class="parameter"><code><span class="type">char</span> ***argv</code></em>);</pre>
102 <p>
103 Call this function before using any other Libvirt GLib functions in your applications.
104 It will initialize everything needed to operate the toolkit and parses some standard
105 command line options.
106 </p>
107 <p>
108 Although you are expected to pass the <em class="parameter"><code>argc</code></em>, <em class="parameter"><code>argv</code></em> parameters from <code class="function">main()</code> to this
109 function, it is possible to pass NULL if <em class="parameter"><code>argv</code></em> is not available or commandline
110 handling is not required.
111 </p>
112 <p>
113 <em class="parameter"><code>argc</code></em> and <em class="parameter"><code>argv</code></em> are adjusted accordingly so your own code will never see those
114 standard arguments.
115 </p>
116 <p>
117 This method will also turn on debug logging of the library if the
118 <code class="literal">LIBVIRT_GLIB_DEBUG</code> environment variable is set.
119 </p>
120 <p>
121 This function will terminate your program if it was unable to initialize
122 for some reason. If you want the program to fall back to an alternate
123 mode of operation call <code class="code">gvir_init_check</code> instead.
124 </p>
125 <div class="variablelist"><table border="0">
126 <col align="left" valign="top">
127 <tbody>
128 <tr>
129 <td><p><span class="term"><em class="parameter"><code>argc</code></em> :</span></p></td>
130 <td>Address of the argc parameter of your <code class="function">main()</code> function (or 0
131 if argv is NULL). This will be changed if any arguments were handled. <span class="annotation">[<acronym title="Parameter for input and for returning results. Default is transfer full."><span class="acronym">inout</span></acronym>]</span>
132 </td>
133 </tr>
134 <tr>
135 <td><p><span class="term"><em class="parameter"><code>argv</code></em> :</span></p></td>
136 <td>Address of the
137 <em class="parameter"><code>argv</code></em> parameter of <code class="function">main()</code>, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. Any options
138 understood by GTK+ are stripped before return. <span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=argc][<acronym title="Parameter for input and for returning results. Default is transfer full."><span class="acronym">inout</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
139 </td>
140 </tr>
141 </tbody>
142 </table></div>
143 </div>
144 <hr>
145 <div class="refsect2">
146 <a name="gvir-init-check"></a><h3>gvir_init_check ()</h3>
147 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gvir_init_check (<em class="parameter"><code><span class="type">int</span> *argc</code></em>,
148 <em class="parameter"><code><span class="type">char</span> ***argv</code></em>,
149 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre>
150 <p>
151 This function does the same work as <a class="link" href="Libvirt-glib-Library-initialization.html#gvir-init" title="gvir_init ()"><code class="function">gvir_init()</code></a> with only a single
152 change: It does not terminate the program if the Libvirt GLib library
153 can't be initialized. Instead it returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> on failure.
154 </p>
155 <p>
156 This way the application can fall back to some other mode of
157 operation.
158 </p>
159 <div class="variablelist"><table border="0">
160 <col align="left" valign="top">
161 <tbody>
162 <tr>
163 <td><p><span class="term"><em class="parameter"><code>argc</code></em> :</span></p></td>
164 <td>Address of the argc parameter of your <code class="function">main()</code> function (or 0
165 if argv is NULL). This will be changed if any arguments were handled. <span class="annotation">[<acronym title="Parameter for input and for returning results. Default is transfer full."><span class="acronym">inout</span></acronym>]</span>
166 </td>
167 </tr>
168 <tr>
169 <td><p><span class="term"><em class="parameter"><code>argv</code></em> :</span></p></td>
170 <td>Address of the
171 <em class="parameter"><code>argv</code></em> parameter of <code class="function">main()</code>, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. Any options
172 understood by GTK+ are stripped before return. <span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=argc][<acronym title="Parameter for input and for returning results. Default is transfer full."><span class="acronym">inout</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
173 </td>
174 </tr>
175 <tr>
176 <td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td>
177 <td>filled with the error information if initialized failed.</td>
178 </tr>
179 <tr>
180 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
181 <td>
182 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the library was successfully initialized,
183 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</td>
184 </tr>
185 </tbody>
186 </table></div>
187 </div>
188 </div>
189 </div>
190 <div class="footer">
191 <hr>
192 Generated by GTK-Doc V1.18</div>
193 </body>
194 </html>
+0
-307
docs/libvirt-glib/html/Libvirt-glib-libvirt-glib-error.html less more
0 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4 <title>libvirt-glib-error</title>
5 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
6 <link rel="home" href="index.html" title="Libvirt-glib Reference Manual">
7 <link rel="up" href="ch01.html" title="Libvirt-glib">
8 <link rel="prev" href="Libvirt-glib-libvirt-glib-main.html" title="libvirt-glib-main">
9 <link rel="next" href="Libvirt-glib-libvirt-glib-event.html" title="libvirt-glib-event">
10 <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
11 <link rel="stylesheet" href="style.css" type="text/css">
12 </head>
13 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
14 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
15 <tr valign="middle">
16 <td><a accesskey="p" href="Libvirt-glib-libvirt-glib-main.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
17 <td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
18 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
19 <th width="100%" align="center">Libvirt-glib Reference Manual</th>
20 <td><a accesskey="n" href="Libvirt-glib-libvirt-glib-event.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
21 </tr>
22 <tr><td colspan="5" class="shortcuts">
23 <a href="#Libvirt-glib-libvirt-glib-error.synopsis" class="shortcut">Top</a>
24  | 
25 <a href="#Libvirt-glib-libvirt-glib-error.description" class="shortcut">Description</a>
26 </td></tr>
27 </table>
28 <div class="refentry">
29 <a name="Libvirt-glib-libvirt-glib-error"></a><div class="titlepage"></div>
30 <div class="refnamediv"><table width="100%"><tr>
31 <td valign="top">
32 <h2><span class="refentrytitle"><a name="Libvirt-glib-libvirt-glib-error.top_of_page"></a>libvirt-glib-error</span></h2>
33 <p>libvirt-glib-error</p>
34 </td>
35 <td valign="top" align="right"></td>
36 </tr></table></div>
37 <div class="refsynopsisdiv">
38 <a name="Libvirt-glib-libvirt-glib-error.synopsis"></a><h2>Synopsis</h2>
39 <pre class="synopsis"><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> * <a class="link" href="Libvirt-glib-libvirt-glib-error.html#gvir-error-new" title="gvir_error_new ()">gvir_error_new</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> domain</code></em>,
40 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> code</code></em>,
41 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *format</code></em>,
42 <em class="parameter"><code>...</code></em>);
43 <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> * <a class="link" href="Libvirt-glib-libvirt-glib-error.html#gvir-error-new-literal" title="gvir_error_new_literal ()">gvir_error_new_literal</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> domain</code></em>,
44 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> code</code></em>,
45 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *message</code></em>);
46 <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> * <a class="link" href="Libvirt-glib-libvirt-glib-error.html#gvir-error-new-valist" title="gvir_error_new_valist ()">gvir_error_new_valist</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> domain</code></em>,
47 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> code</code></em>,
48 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *format</code></em>,
49 <em class="parameter"><code><span class="type">va_list</span> args</code></em>);
50 <span class="returnvalue">void</span> <a class="link" href="Libvirt-glib-libvirt-glib-error.html#gvir-set-error" title="gvir_set_error ()">gvir_set_error</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
51 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> domain</code></em>,
52 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> code</code></em>,
53 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *format</code></em>,
54 <em class="parameter"><code>...</code></em>);
55 <span class="returnvalue">void</span> <a class="link" href="Libvirt-glib-libvirt-glib-error.html#gvir-set-error-literal" title="gvir_set_error_literal ()">gvir_set_error_literal</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
56 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> domain</code></em>,
57 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> code</code></em>,
58 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *message</code></em>);
59 <span class="returnvalue">void</span> <a class="link" href="Libvirt-glib-libvirt-glib-error.html#gvir-set-error-valist" title="gvir_set_error_valist ()">gvir_set_error_valist</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
60 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> domain</code></em>,
61 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> code</code></em>,
62 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *format</code></em>,
63 <em class="parameter"><code><span class="type">va_list</span> args</code></em>);
64 </pre>
65 </div>
66 <div class="refsect1">
67 <a name="Libvirt-glib-libvirt-glib-error.description"></a><h2>Description</h2>
68 </div>
69 <div class="refsect1">
70 <a name="Libvirt-glib-libvirt-glib-error.details"></a><h2>Details</h2>
71 <div class="refsect2">
72 <a name="gvir-error-new"></a><h3>gvir_error_new ()</h3>
73 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> * gvir_error_new (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> domain</code></em>,
74 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> code</code></em>,
75 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *format</code></em>,
76 <em class="parameter"><code>...</code></em>);</pre>
77 <p>
78 Creates a new <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> with the given <em class="parameter"><code>domain</code></em> and <em class="parameter"><code>code</code></em>,
79 and a message formatted with <em class="parameter"><code>format</code></em>.
80 </p>
81 <div class="variablelist"><table border="0">
82 <col align="left" valign="top">
83 <tbody>
84 <tr>
85 <td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
86 <td>error domain</td>
87 </tr>
88 <tr>
89 <td><p><span class="term"><em class="parameter"><code>code</code></em> :</span></p></td>
90 <td>error code</td>
91 </tr>
92 <tr>
93 <td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
94 <td>printf()-style format for error message</td>
95 </tr>
96 <tr>
97 <td><p><span class="term"><em class="parameter"><code>Varargs</code></em> :</span></p></td>
98 <td>parameters for message format</td>
99 </tr>
100 <tr>
101 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
102 <td>a new <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>
103 </td>
104 </tr>
105 </tbody>
106 </table></div>
107 </div>
108 <hr>
109 <div class="refsect2">
110 <a name="gvir-error-new-literal"></a><h3>gvir_error_new_literal ()</h3>
111 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> * gvir_error_new_literal (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> domain</code></em>,
112 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> code</code></em>,
113 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *message</code></em>);</pre>
114 <p>
115 Creates a new <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>; unlike <a class="link" href="Libvirt-glib-libvirt-glib-error.html#gvir-error-new" title="gvir_error_new ()"><code class="function">gvir_error_new()</code></a>, <em class="parameter"><code>message</code></em> is
116 not a <code class="function">printf()</code>-style format string. Use this function if
117 <em class="parameter"><code>message</code></em> contains text you don't have control over,
118 that could include <code class="function">printf()</code> escape sequences.
119 </p>
120 <div class="variablelist"><table border="0">
121 <col align="left" valign="top">
122 <tbody>
123 <tr>
124 <td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
125 <td>error domain</td>
126 </tr>
127 <tr>
128 <td><p><span class="term"><em class="parameter"><code>code</code></em> :</span></p></td>
129 <td>error code</td>
130 </tr>
131 <tr>
132 <td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
133 <td>error message</td>
134 </tr>
135 <tr>
136 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
137 <td>a new <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>
138 </td>
139 </tr>
140 </tbody>
141 </table></div>
142 </div>
143 <hr>
144 <div class="refsect2">
145 <a name="gvir-error-new-valist"></a><h3>gvir_error_new_valist ()</h3>
146 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> * gvir_error_new_valist (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> domain</code></em>,
147 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> code</code></em>,
148 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *format</code></em>,
149 <em class="parameter"><code><span class="type">va_list</span> args</code></em>);</pre>
150 <p>
151 Creates a new <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> with the given <em class="parameter"><code>domain</code></em> and <em class="parameter"><code>code</code></em>,
152 and a message formatted with <em class="parameter"><code>format</code></em>.
153 </p>
154 <div class="variablelist"><table border="0">
155 <col align="left" valign="top">
156 <tbody>
157 <tr>
158 <td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
159 <td>error domain</td>
160 </tr>
161 <tr>
162 <td><p><span class="term"><em class="parameter"><code>code</code></em> :</span></p></td>
163 <td>error code</td>
164 </tr>
165 <tr>
166 <td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
167 <td>printf()-style format for error message</td>
168 </tr>
169 <tr>
170 <td><p><span class="term"><em class="parameter"><code>args</code></em> :</span></p></td>
171 <td>
172 <span class="type">va_list</span> of parameters for the message format</td>
173 </tr>
174 <tr>
175 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
176 <td>a new <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>
177 </td>
178 </tr>
179 </tbody>
180 </table></div>
181 </div>
182 <hr>
183 <div class="refsect2">
184 <a name="gvir-set-error"></a><h3>gvir_set_error ()</h3>
185 <pre class="programlisting"><span class="returnvalue">void</span> gvir_set_error (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
186 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> domain</code></em>,
187 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> code</code></em>,
188 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *format</code></em>,
189 <em class="parameter"><code>...</code></em>);</pre>
190 <p>
191 If <em class="parameter"><code>error</code></em> is NULL this does nothing. Otherwise it
192 creates a new <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> with the given <em class="parameter"><code>domain</code></em> and <em class="parameter"><code>code</code></em>,
193 and a message formatted with <em class="parameter"><code>format</code></em>, and stores it
194 in <em class="parameter"><code>error</code></em>.
195 </p>
196 <div class="variablelist"><table border="0">
197 <col align="left" valign="top">
198 <tbody>
199 <tr>
200 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
201 <td>pointer to error location</td>
202 </tr>
203 <tr>
204 <td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
205 <td>error domain</td>
206 </tr>
207 <tr>
208 <td><p><span class="term"><em class="parameter"><code>code</code></em> :</span></p></td>
209 <td>error code</td>
210 </tr>
211 <tr>
212 <td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
213 <td>printf()-style format for error message</td>
214 </tr>
215 <tr>
216 <td><p><span class="term"><em class="parameter"><code>Varargs</code></em> :</span></p></td>
217 <td>parameters for message format</td>
218 </tr>
219 </tbody>
220 </table></div>
221 </div>
222 <hr>
223 <div class="refsect2">
224 <a name="gvir-set-error-literal"></a><h3>gvir_set_error_literal ()</h3>
225 <pre class="programlisting"><span class="returnvalue">void</span> gvir_set_error_literal (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
226 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> domain</code></em>,
227 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> code</code></em>,
228 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *message</code></em>);</pre>
229 <p>
230 If <em class="parameter"><code>error</code></em> is NULL this does nothing. Otherwise it
231 creates a new <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> and stores it in <em class="parameter"><code>error</code></em>; unlike
232 <a class="link" href="Libvirt-glib-libvirt-glib-error.html#gvir-set-error" title="gvir_set_error ()"><code class="function">gvir_set_error()</code></a>, <em class="parameter"><code>message</code></em> is not a <code class="function">printf()</code>-style
233 format string. Use this function if <em class="parameter"><code>message</code></em> contains
234 text you don't have control over, that could include
235 <code class="function">printf()</code> escape sequences.
236 </p>
237 <div class="variablelist"><table border="0">
238 <col align="left" valign="top">
239 <tbody>
240 <tr>
241 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
242 <td>pointer to error location</td>
243 </tr>
244 <tr>
245 <td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
246 <td>error domain</td>
247 </tr>
248 <tr>
249 <td><p><span class="term"><em class="parameter"><code>code</code></em> :</span></p></td>
250 <td>error code</td>
251 </tr>
252 <tr>
253 <td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
254 <td>error message</td>
255 </tr>
256 </tbody>
257 </table></div>
258 </div>
259 <hr>
260 <div class="refsect2">
261 <a name="gvir-set-error-valist"></a><h3>gvir_set_error_valist ()</h3>
262 <pre class="programlisting"><span class="returnvalue">void</span> gvir_set_error_valist (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>,
263 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a> domain</code></em>,
264 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> code</code></em>,
265 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *format</code></em>,
266 <em class="parameter"><code><span class="type">va_list</span> args</code></em>);</pre>
267 <p>
268 If <em class="parameter"><code>error</code></em> is NULL this does nothing. Otherwise it
269 creates a new <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> with the given <em class="parameter"><code>domain</code></em> and <em class="parameter"><code>code</code></em>,
270 and a message formatted with <em class="parameter"><code>format</code></em>, and stores it
271 in <em class="parameter"><code>error</code></em>.
272 </p>
273 <div class="variablelist"><table border="0">
274 <col align="left" valign="top">
275 <tbody>
276 <tr>
277 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
278 <td>pointer to error location</td>
279 </tr>
280 <tr>
281 <td><p><span class="term"><em class="parameter"><code>domain</code></em> :</span></p></td>
282 <td>error domain</td>
283 </tr>
284 <tr>
285 <td><p><span class="term"><em class="parameter"><code>code</code></em> :</span></p></td>
286 <td>error code</td>
287 </tr>
288 <tr>
289 <td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
290 <td>printf()-style format for error message</td>
291 </tr>
292 <tr>
293 <td><p><span class="term"><em class="parameter"><code>args</code></em> :</span></p></td>
294 <td>
295 <span class="type">va_list</span> of parameters for the message format</td>
296 </tr>
297 </tbody>
298 </table></div>
299 </div>
300 </div>
301 </div>
302 <div class="footer">
303 <hr>
304 Generated by GTK-Doc V1.18</div>
305 </body>
306 </html>
+0
-58
docs/libvirt-glib/html/Libvirt-glib-libvirt-glib-event.html less more
0 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4 <title>libvirt-glib-event</title>
5 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
6 <link rel="home" href="index.html" title="Libvirt-glib Reference Manual">
7 <link rel="up" href="ch01.html" title="Libvirt-glib">
8 <link rel="prev" href="Libvirt-glib-libvirt-glib-error.html" title="libvirt-glib-error">
9 <link rel="next" href="object-tree.html" title="Object Hierarchy">
10 <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
11 <link rel="stylesheet" href="style.css" type="text/css">
12 </head>
13 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
14 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
15 <tr valign="middle">
16 <td><a accesskey="p" href="Libvirt-glib-libvirt-glib-error.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
17 <td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
18 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
19 <th width="100%" align="center">Libvirt-glib Reference Manual</th>
20 <td><a accesskey="n" href="object-tree.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
21 </tr>
22 <tr><td colspan="5" class="shortcuts">
23 <a href="#Libvirt-glib-libvirt-glib-event.synopsis" class="shortcut">Top</a>
24  | 
25 <a href="#Libvirt-glib-libvirt-glib-event.description" class="shortcut">Description</a>
26 </td></tr>
27 </table>
28 <div class="refentry">
29 <a name="Libvirt-glib-libvirt-glib-event"></a><div class="titlepage"></div>
30 <div class="refnamediv"><table width="100%"><tr>
31 <td valign="top">
32 <h2><span class="refentrytitle"><a name="Libvirt-glib-libvirt-glib-event.top_of_page"></a>libvirt-glib-event</span></h2>
33 <p>libvirt-glib-event</p>
34 </td>
35 <td valign="top" align="right"></td>
36 </tr></table></div>
37 <div class="refsynopsisdiv">
38 <a name="Libvirt-glib-libvirt-glib-event.synopsis"></a><h2>Synopsis</h2>
39 <pre class="synopsis"><span class="returnvalue">void</span> <a class="link" href="Libvirt-glib-libvirt-glib-event.html#gvir-event-register" title="gvir_event_register ()">gvir_event_register</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
40 </pre>
41 </div>
42 <div class="refsect1">
43 <a name="Libvirt-glib-libvirt-glib-event.description"></a><h2>Description</h2>
44 </div>
45 <div class="refsect1">
46 <a name="Libvirt-glib-libvirt-glib-event.details"></a><h2>Details</h2>
47 <div class="refsect2">
48 <a name="gvir-event-register"></a><h3>gvir_event_register ()</h3>
49 <pre class="programlisting"><span class="returnvalue">void</span> gvir_event_register (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
50 </div>
51 </div>
52 </div>
53 <div class="footer">
54 <hr>
55 Generated by GTK-Doc V1.18</div>
56 </body>
57 </html>
+0
-70
docs/libvirt-glib/html/Libvirt-glib-libvirt-glib-main.html less more
0 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4 <title>libvirt-glib-main</title>
5 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
6 <link rel="home" href="index.html" title="Libvirt-glib Reference Manual">
7 <link rel="up" href="ch01.html" title="Libvirt-glib">
8 <link rel="prev" href="ch01.html" title="Libvirt-glib">
9 <link rel="next" href="Libvirt-glib-libvirt-glib-error.html" title="libvirt-glib-error">
10 <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
11 <link rel="stylesheet" href="style.css" type="text/css">
12 </head>
13 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
14 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
15 <tr valign="middle">
16 <td><a accesskey="p" href="ch01.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
17 <td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
18 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
19 <th width="100%" align="center">Libvirt-glib Reference Manual</th>
20 <td><a accesskey="n" href="Libvirt-glib-libvirt-glib-error.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
21 </tr>
22 <tr><td colspan="5" class="shortcuts">
23 <a href="#Libvirt-glib-libvirt-glib-main.synopsis" class="shortcut">Top</a>
24  | 
25 <a href="#Libvirt-glib-libvirt-glib-main.description" class="shortcut">Description</a>
26 </td></tr>
27 </table>
28 <div class="refentry">
29 <a name="Libvirt-glib-libvirt-glib-main"></a><div class="titlepage"></div>
30 <div class="refnamediv"><table width="100%"><tr>
31 <td valign="top">
32 <h2><span class="refentrytitle"><a name="Libvirt-glib-libvirt-glib-main.top_of_page"></a>libvirt-glib-main</span></h2>
33 <p>libvirt-glib-main</p>
34 </td>
35 <td valign="top" align="right"></td>
36 </tr></table></div>
37 <div class="refsynopsisdiv">
38 <a name="Libvirt-glib-libvirt-glib-main.synopsis"></a><h2>Synopsis</h2>
39 <pre class="synopsis"><span class="returnvalue">void</span> <a class="link" href="Libvirt-glib-libvirt-glib-main.html#gvir-init" title="gvir_init ()">gvir_init</a> (<em class="parameter"><code><span class="type">int</span> *argc</code></em>,
40 <em class="parameter"><code><span class="type">char</span> ***argv</code></em>);
41 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="Libvirt-glib-libvirt-glib-main.html#gvir-init-check" title="gvir_init_check ()">gvir_init_check</a> (<em class="parameter"><code><span class="type">int</span> *argc</code></em>,
42 <em class="parameter"><code><span class="type">char</span> ***argv</code></em>,
43 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
44 </pre>
45 </div>
46 <div class="refsect1">
47 <a name="Libvirt-glib-libvirt-glib-main.description"></a><h2>Description</h2>
48 </div>
49 <div class="refsect1">
50 <a name="Libvirt-glib-libvirt-glib-main.details"></a><h2>Details</h2>
51 <div class="refsect2">
52 <a name="gvir-init"></a><h3>gvir_init ()</h3>
53 <pre class="programlisting"><span class="returnvalue">void</span> gvir_init (<em class="parameter"><code><span class="type">int</span> *argc</code></em>,
54 <em class="parameter"><code><span class="type">char</span> ***argv</code></em>);</pre>
55 </div>
56 <hr>
57 <div class="refsect2">
58 <a name="gvir-init-check"></a><h3>gvir_init_check ()</h3>
59 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gvir_init_check (<em class="parameter"><code><span class="type">int</span> *argc</code></em>,
60 <em class="parameter"><code><span class="type">char</span> ***argv</code></em>,
61 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre>
62 </div>
63 </div>
64 </div>
65 <div class="footer">
66 <hr>
67 Generated by GTK-Doc V1.18</div>
68 </body>
69 </html>
00 <?xml version="1.0" encoding="utf-8" standalone="no"?>
11 <!DOCTYPE book PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
2 <book xmlns="http://www.devhelp.net/book" title="Libvirt-glib Reference Manual" link="index.html" author="" name="Libvirt-glib" version="2" language="c">
2 <book xmlns="http://www.devhelp.net/book" title="Libvirt GLib Reference Manual" link="index.html" author="" name="Libvirt-glib" version="2" language="c">
33 <chapters>
4 <sub name="Libvirt-glib" link="ch01.html">
5 <sub name="libvirt-glib-main" link="Libvirt-glib-libvirt-glib-main.html"/>
6 <sub name="libvirt-glib-error" link="Libvirt-glib-libvirt-glib-error.html"/>
7 <sub name="libvirt-glib-event" link="Libvirt-glib-libvirt-glib-event.html"/>
4 <sub name="API Reference" link="ch01.html">
5 <sub name="Library initialization" link="Libvirt-glib-Library-initialization.html"/>
6 <sub name="Error reporting" link="Libvirt-glib-Error-reporting.html"/>
7 <sub name="Event loop" link="Libvirt-glib-Event-loop.html"/>
88 </sub>
99 <sub name="Object Hierarchy" link="object-tree.html"/>
1010 <sub name="API Index" link="api-index-full.html"/>
11 <sub name="Annotation Glossary" link="annotation-glossary.html"/>
1112 </chapters>
1213 <functions>
13 <keyword type="function" name="gvir_init ()" link="Libvirt-glib-libvirt-glib-main.html#gvir-init"/>
14 <keyword type="function" name="gvir_init_check ()" link="Libvirt-glib-libvirt-glib-main.html#gvir-init-check"/>
15 <keyword type="function" name="gvir_error_new ()" link="Libvirt-glib-libvirt-glib-error.html#gvir-error-new"/>
16 <keyword type="function" name="gvir_error_new_literal ()" link="Libvirt-glib-libvirt-glib-error.html#gvir-error-new-literal"/>
17 <keyword type="function" name="gvir_error_new_valist ()" link="Libvirt-glib-libvirt-glib-error.html#gvir-error-new-valist"/>
18 <keyword type="function" name="gvir_set_error ()" link="Libvirt-glib-libvirt-glib-error.html#gvir-set-error"/>
19 <keyword type="function" name="gvir_set_error_literal ()" link="Libvirt-glib-libvirt-glib-error.html#gvir-set-error-literal"/>
20 <keyword type="function" name="gvir_set_error_valist ()" link="Libvirt-glib-libvirt-glib-error.html#gvir-set-error-valist"/>
21 <keyword type="function" name="gvir_event_register ()" link="Libvirt-glib-libvirt-glib-event.html#gvir-event-register"/>
14 <keyword type="function" name="gvir_init ()" link="Libvirt-glib-Library-initialization.html#gvir-init"/>
15 <keyword type="function" name="gvir_init_check ()" link="Libvirt-glib-Library-initialization.html#gvir-init-check"/>
16 <keyword type="function" name="gvir_error_new ()" link="Libvirt-glib-Error-reporting.html#gvir-error-new"/>
17 <keyword type="function" name="gvir_error_new_literal ()" link="Libvirt-glib-Error-reporting.html#gvir-error-new-literal"/>
18 <keyword type="function" name="gvir_error_new_valist ()" link="Libvirt-glib-Error-reporting.html#gvir-error-new-valist"/>
19 <keyword type="function" name="gvir_set_error ()" link="Libvirt-glib-Error-reporting.html#gvir-set-error"/>
20 <keyword type="function" name="gvir_set_error_literal ()" link="Libvirt-glib-Error-reporting.html#gvir-set-error-literal"/>
21 <keyword type="function" name="gvir_set_error_valist ()" link="Libvirt-glib-Error-reporting.html#gvir-set-error-valist"/>
22 <keyword type="function" name="gvir_event_register ()" link="Libvirt-glib-Event-loop.html#gvir-event-register"/>
2223 </functions>
2324 </book>
0 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4 <title>Annotation Glossary</title>
5 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
6 <link rel="home" href="index.html" title="Libvirt GLib Reference Manual">
7 <link rel="up" href="index.html" title="Libvirt GLib Reference Manual">
8 <link rel="prev" href="api-index-full.html" title="API Index">
9 <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
10 <link rel="stylesheet" href="style.css" type="text/css">
11 </head>
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
14 <tr valign="middle">
15 <td><a accesskey="p" href="api-index-full.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
16 <td> </td>
17 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
18 <th width="100%" align="center">Libvirt GLib Reference Manual</th>
19 <td> </td>
20 </tr>
21 <tr><td colspan="5" class="shortcuts">
22 <a class="shortcut" href="#glsA">A</a>
23  | 
24 <a class="shortcut" href="#glsI">I</a>
25  | 
26 <a class="shortcut" href="#glsT">T</a>
27 </td></tr>
28 </table>
29 <div class="glossary">
30 <div class="titlepage"><div><div><h2 class="title">
31 <a name="annotation-glossary"></a>Annotation Glossary</h2></div></div></div>
32 <a name="glsA"></a><h3 class="title">A</h3>
33 <dt>
34 <a name="annotation-glossterm-array"></a>array</dt>
35 <dd><p>Parameter points to an array of items.</p></dd>
36 <dt>
37 <a name="annotation-glossterm-allow-none"></a>allow-none</dt>
38 <dd><p>NULL is ok, both for passing and for returning.</p></dd>
39 <a name="glsI"></a><h3 class="title">I</h3>
40 <dt>
41 <a name="annotation-glossterm-inout"></a>inout</dt>
42 <dd><p>Parameter for input and for returning results. Default is <acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>.</p></dd>
43 <a name="glsT"></a><h3 class="title">T</h3>
44 <dt>
45 <a name="annotation-glossterm-transfer%20full"></a>transfer full</dt>
46 <dd><p>Free data after the code is done.</p></dd>
47 </div>
48 <div class="footer">
49 <hr>
50 Generated by GTK-Doc V1.18</div>
51 </body>
52 </html>
33 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
44 <title>API Index</title>
55 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
6 <link rel="home" href="index.html" title="Libvirt-glib Reference Manual">
7 <link rel="up" href="index.html" title="Libvirt-glib Reference Manual">
6 <link rel="home" href="index.html" title="Libvirt GLib Reference Manual">
7 <link rel="up" href="index.html" title="Libvirt GLib Reference Manual">
88 <link rel="prev" href="object-tree.html" title="Object Hierarchy">
9 <link rel="next" href="annotation-glossary.html" title="Annotation Glossary">
910 <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
1011 <link rel="stylesheet" href="style.css" type="text/css">
1112 </head>
1516 <td><a accesskey="p" href="object-tree.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
1617 <td> </td>
1718 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
18 <th width="100%" align="center">Libvirt-glib Reference Manual</th>
19 <td> </td>
19 <th width="100%" align="center">Libvirt GLib Reference Manual</th>
20 <td><a accesskey="n" href="annotation-glossary.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
2021 </tr>
2122 <tr><td colspan="5" class="shortcuts">
2223 <a class="shortcut" href="#idxE">E</a>
3132 <a name="api-index-full"></a>API Index</h2></div></div></div>
3233 <a name="idx"></a><a name="idxE"></a><h3 class="title">E</h3>
3334 <dt>
34 <a class="link" href="Libvirt-glib-libvirt-glib-error.html#gvir-error-new" title="gvir_error_new ()">gvir_error_new</a>, function in <a class="link" href="Libvirt-glib-libvirt-glib-error.html" title="libvirt-glib-error">libvirt-glib-error</a>
35 <a class="link" href="Libvirt-glib-Error-reporting.html#gvir-error-new" title="gvir_error_new ()">gvir_error_new</a>, function in <a class="link" href="Libvirt-glib-Error-reporting.html" title="Error reporting">Error reporting</a>
3536 </dt>
3637 <dd></dd>
3738 <dt>
38 <a class="link" href="Libvirt-glib-libvirt-glib-error.html#gvir-error-new-literal" title="gvir_error_new_literal ()">gvir_error_new_literal</a>, function in <a class="link" href="Libvirt-glib-libvirt-glib-error.html" title="libvirt-glib-error">libvirt-glib-error</a>
39 <a class="link" href="Libvirt-glib-Error-reporting.html#gvir-error-new-literal" title="gvir_error_new_literal ()">gvir_error_new_literal</a>, function in <a class="link" href="Libvirt-glib-Error-reporting.html" title="Error reporting">Error reporting</a>
3940 </dt>
4041 <dd></dd>
4142 <dt>
42 <a class="link" href="Libvirt-glib-libvirt-glib-error.html#gvir-error-new-valist" title="gvir_error_new_valist ()">gvir_error_new_valist</a>, function in <a class="link" href="Libvirt-glib-libvirt-glib-error.html" title="libvirt-glib-error">libvirt-glib-error</a>
43 <a class="link" href="Libvirt-glib-Error-reporting.html#gvir-error-new-valist" title="gvir_error_new_valist ()">gvir_error_new_valist</a>, function in <a class="link" href="Libvirt-glib-Error-reporting.html" title="Error reporting">Error reporting</a>
4344 </dt>
4445 <dd></dd>
4546 <dt>
46 <a class="link" href="Libvirt-glib-libvirt-glib-event.html#gvir-event-register" title="gvir_event_register ()">gvir_event_register</a>, function in <a class="link" href="Libvirt-glib-libvirt-glib-event.html" title="libvirt-glib-event">libvirt-glib-event</a>
47 <a class="link" href="Libvirt-glib-Event-loop.html#gvir-event-register" title="gvir_event_register ()">gvir_event_register</a>, function in <a class="link" href="Libvirt-glib-Event-loop.html" title="Event loop">Event loop</a>
4748 </dt>
4849 <dd></dd>
4950 <a name="idxI"></a><h3 class="title">I</h3>
5051 <dt>
51 <a class="link" href="Libvirt-glib-libvirt-glib-main.html#gvir-init" title="gvir_init ()">gvir_init</a>, function in <a class="link" href="Libvirt-glib-libvirt-glib-main.html" title="libvirt-glib-main">libvirt-glib-main</a>
52 <a class="link" href="Libvirt-glib-Library-initialization.html#gvir-init" title="gvir_init ()">gvir_init</a>, function in <a class="link" href="Libvirt-glib-Library-initialization.html" title="Library initialization">Library initialization</a>
5253 </dt>
5354 <dd></dd>
5455 <dt>
55 <a class="link" href="Libvirt-glib-libvirt-glib-main.html#gvir-init-check" title="gvir_init_check ()">gvir_init_check</a>, function in <a class="link" href="Libvirt-glib-libvirt-glib-main.html" title="libvirt-glib-main">libvirt-glib-main</a>
56 <a class="link" href="Libvirt-glib-Library-initialization.html#gvir-init-check" title="gvir_init_check ()">gvir_init_check</a>, function in <a class="link" href="Libvirt-glib-Library-initialization.html" title="Library initialization">Library initialization</a>
5657 </dt>
5758 <dd></dd>
5859 <a name="idxS"></a><h3 class="title">S</h3>
5960 <dt>
60 <a class="link" href="Libvirt-glib-libvirt-glib-error.html#gvir-set-error" title="gvir_set_error ()">gvir_set_error</a>, function in <a class="link" href="Libvirt-glib-libvirt-glib-error.html" title="libvirt-glib-error">libvirt-glib-error</a>
61 <a class="link" href="Libvirt-glib-Error-reporting.html#gvir-set-error" title="gvir_set_error ()">gvir_set_error</a>, function in <a class="link" href="Libvirt-glib-Error-reporting.html" title="Error reporting">Error reporting</a>
6162 </dt>
6263 <dd></dd>
6364 <dt>
64 <a class="link" href="Libvirt-glib-libvirt-glib-error.html#gvir-set-error-literal" title="gvir_set_error_literal ()">gvir_set_error_literal</a>, function in <a class="link" href="Libvirt-glib-libvirt-glib-error.html" title="libvirt-glib-error">libvirt-glib-error</a>
65 <a class="link" href="Libvirt-glib-Error-reporting.html#gvir-set-error-literal" title="gvir_set_error_literal ()">gvir_set_error_literal</a>, function in <a class="link" href="Libvirt-glib-Error-reporting.html" title="Error reporting">Error reporting</a>
6566 </dt>
6667 <dd></dd>
6768 <dt>
68 <a class="link" href="Libvirt-glib-libvirt-glib-error.html#gvir-set-error-valist" title="gvir_set_error_valist ()">gvir_set_error_valist</a>, function in <a class="link" href="Libvirt-glib-libvirt-glib-error.html" title="libvirt-glib-error">libvirt-glib-error</a>
69 <a class="link" href="Libvirt-glib-Error-reporting.html#gvir-set-error-valist" title="gvir_set_error_valist ()">gvir_set_error_valist</a>, function in <a class="link" href="Libvirt-glib-Error-reporting.html" title="Error reporting">Error reporting</a>
6970 </dt>
7071 <dd></dd>
7172 </div>
11 <html>
22 <head>
33 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4 <title>Libvirt-glib</title>
4 <title>API Reference</title>
55 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
6 <link rel="home" href="index.html" title="Libvirt-glib Reference Manual">
7 <link rel="up" href="index.html" title="Libvirt-glib Reference Manual">
8 <link rel="prev" href="index.html" title="Libvirt-glib Reference Manual">
9 <link rel="next" href="Libvirt-glib-libvirt-glib-main.html" title="libvirt-glib-main">
6 <link rel="home" href="index.html" title="Libvirt GLib Reference Manual">
7 <link rel="up" href="index.html" title="Libvirt GLib Reference Manual">
8 <link rel="prev" href="index.html" title="Libvirt GLib Reference Manual">
9 <link rel="next" href="Libvirt-glib-Library-initialization.html" title="Library initialization">
1010 <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
1111 <link rel="stylesheet" href="style.css" type="text/css">
1212 </head>
1515 <td><a accesskey="p" href="index.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
1616 <td> </td>
1717 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
18 <th width="100%" align="center">Libvirt-glib Reference Manual</th>
19 <td><a accesskey="n" href="Libvirt-glib-libvirt-glib-main.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
18 <th width="100%" align="center">Libvirt GLib Reference Manual</th>
19 <td><a accesskey="n" href="Libvirt-glib-Library-initialization.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
2020 </tr></table>
2121 <div class="chapter">
2222 <div class="titlepage"><div><div><h2 class="title">
23 <a name="id328328"></a>Libvirt-glib</h2></div></div></div>
23 <a name="id371426"></a>API Reference</h2></div></div></div>
2424 <div class="toc"><dl>
2525 <dt>
26 <span class="refentrytitle"><a href="Libvirt-glib-libvirt-glib-main.html">libvirt-glib-main</a></span><span class="refpurpose"></span>
26 <span class="refentrytitle"><a href="Libvirt-glib-Library-initialization.html">Library initialization</a></span><span class="refpurpose"> — Initialize the library</span>
2727 </dt>
2828 <dt>
29 <span class="refentrytitle"><a href="Libvirt-glib-libvirt-glib-error.html">libvirt-glib-error</a></span><span class="refpurpose"></span>
29 <span class="refentrytitle"><a href="Libvirt-glib-Error-reporting.html">Error reporting</a></span><span class="refpurpose"> — Convert libvirt error reports to GLib error reports</span>
3030 </dt>
3131 <dt>
32 <span class="refentrytitle"><a href="Libvirt-glib-libvirt-glib-event.html">libvirt-glib-event</a></span><span class="refpurpose"></span>
32 <span class="refentrytitle"><a href="Libvirt-glib-Event-loop.html">Event loop</a></span><span class="refpurpose"> — Integrate libvirt with the GMain event framework</span>
3333 </dt>
3434 </dl></div>
3535 </div>
11 <html>
22 <head>
33 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4 <title>Libvirt-glib Reference Manual</title>
4 <title>Libvirt GLib Reference Manual</title>
55 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
6 <link rel="home" href="index.html" title="Libvirt-glib Reference Manual">
7 <link rel="next" href="ch01.html" title="Libvirt-glib">
6 <link rel="home" href="index.html" title="Libvirt GLib Reference Manual">
7 <link rel="next" href="ch01.html" title="API Reference">
88 <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
99 <link rel="stylesheet" href="style.css" type="text/css">
1010 </head>
1111 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
1212 <div class="book">
1313 <div class="titlepage">
14 <div><div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">Libvirt-glib Reference Manual</p></th></tr></table></div></div>
14 <div><div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">Libvirt GLib Reference Manual</p></th></tr></table></div></div>
1515 <hr>
1616 </div>
1717 <div class="toc"><dl>
18 <dt><span class="chapter"><a href="ch01.html">Libvirt-glib</a></span></dt>
18 <dt><span class="chapter"><a href="ch01.html">API Reference</a></span></dt>
1919 <dd><dl>
2020 <dt>
21 <span class="refentrytitle"><a href="Libvirt-glib-libvirt-glib-main.html">libvirt-glib-main</a></span><span class="refpurpose"></span>
21 <span class="refentrytitle"><a href="Libvirt-glib-Library-initialization.html">Library initialization</a></span><span class="refpurpose"> — Initialize the library</span>
2222 </dt>
2323 <dt>
24 <span class="refentrytitle"><a href="Libvirt-glib-libvirt-glib-error.html">libvirt-glib-error</a></span><span class="refpurpose"></span>
24 <span class="refentrytitle"><a href="Libvirt-glib-Error-reporting.html">Error reporting</a></span><span class="refpurpose"> — Convert libvirt error reports to GLib error reports</span>
2525 </dt>
2626 <dt>
27 <span class="refentrytitle"><a href="Libvirt-glib-libvirt-glib-event.html">libvirt-glib-event</a></span><span class="refpurpose"></span>
27 <span class="refentrytitle"><a href="Libvirt-glib-Event-loop.html">Event loop</a></span><span class="refpurpose"> — Integrate libvirt with the GMain event framework</span>
2828 </dt>
2929 </dl></dd>
3030 <dt><span class="chapter"><a href="object-tree.html">Object Hierarchy</a></span></dt>
3131 <dt><span class="index"><a href="api-index-full.html">API Index</a></span></dt>
32 <dt><span class="glossary"><a href="annotation-glossary.html">Annotation Glossary</a></span></dt>
3233 </dl></div>
3334 </div>
3435 <div class="footer">
0 <ANCHOR id="Libvirt-glib-libvirt-glib-main" href="Libvirt-glib/Libvirt-glib-libvirt-glib-main.html">
1 <ANCHOR id="Libvirt-glib-libvirt-glib-main.synopsis" href="Libvirt-glib/Libvirt-glib-libvirt-glib-main.html#Libvirt-glib-libvirt-glib-main.synopsis">
2 <ANCHOR id="Libvirt-glib-libvirt-glib-main.description" href="Libvirt-glib/Libvirt-glib-libvirt-glib-main.html#Libvirt-glib-libvirt-glib-main.description">
3 <ANCHOR id="Libvirt-glib-libvirt-glib-main.details" href="Libvirt-glib/Libvirt-glib-libvirt-glib-main.html#Libvirt-glib-libvirt-glib-main.details">
4 <ANCHOR id="gvir-init" href="Libvirt-glib/Libvirt-glib-libvirt-glib-main.html#gvir-init">
5 <ANCHOR id="gvir-init-check" href="Libvirt-glib/Libvirt-glib-libvirt-glib-main.html#gvir-init-check">
6 <ANCHOR id="Libvirt-glib-libvirt-glib-error" href="Libvirt-glib/Libvirt-glib-libvirt-glib-error.html">
7 <ANCHOR id="Libvirt-glib-libvirt-glib-error.synopsis" href="Libvirt-glib/Libvirt-glib-libvirt-glib-error.html#Libvirt-glib-libvirt-glib-error.synopsis">
8 <ANCHOR id="Libvirt-glib-libvirt-glib-error.description" href="Libvirt-glib/Libvirt-glib-libvirt-glib-error.html#Libvirt-glib-libvirt-glib-error.description">
9 <ANCHOR id="Libvirt-glib-libvirt-glib-error.details" href="Libvirt-glib/Libvirt-glib-libvirt-glib-error.html#Libvirt-glib-libvirt-glib-error.details">
10 <ANCHOR id="gvir-error-new" href="Libvirt-glib/Libvirt-glib-libvirt-glib-error.html#gvir-error-new">
11 <ANCHOR id="gvir-error-new-literal" href="Libvirt-glib/Libvirt-glib-libvirt-glib-error.html#gvir-error-new-literal">
12 <ANCHOR id="gvir-error-new-valist" href="Libvirt-glib/Libvirt-glib-libvirt-glib-error.html#gvir-error-new-valist">
13 <ANCHOR id="gvir-set-error" href="Libvirt-glib/Libvirt-glib-libvirt-glib-error.html#gvir-set-error">
14 <ANCHOR id="gvir-set-error-literal" href="Libvirt-glib/Libvirt-glib-libvirt-glib-error.html#gvir-set-error-literal">
15 <ANCHOR id="gvir-set-error-valist" href="Libvirt-glib/Libvirt-glib-libvirt-glib-error.html#gvir-set-error-valist">
16 <ANCHOR id="Libvirt-glib-libvirt-glib-event" href="Libvirt-glib/Libvirt-glib-libvirt-glib-event.html">
17 <ANCHOR id="Libvirt-glib-libvirt-glib-event.synopsis" href="Libvirt-glib/Libvirt-glib-libvirt-glib-event.html#Libvirt-glib-libvirt-glib-event.synopsis">
18 <ANCHOR id="Libvirt-glib-libvirt-glib-event.description" href="Libvirt-glib/Libvirt-glib-libvirt-glib-event.html#Libvirt-glib-libvirt-glib-event.description">
19 <ANCHOR id="Libvirt-glib-libvirt-glib-event.details" href="Libvirt-glib/Libvirt-glib-libvirt-glib-event.html#Libvirt-glib-libvirt-glib-event.details">
20 <ANCHOR id="gvir-event-register" href="Libvirt-glib/Libvirt-glib-libvirt-glib-event.html#gvir-event-register">
0 <ANCHOR id="Libvirt-glib-Library-initialization" href="Libvirt-glib/Libvirt-glib-Library-initialization.html">
1 <ANCHOR id="Libvirt-glib-Library-initialization.stability-level" href="Libvirt-glib/Libvirt-glib-Library-initialization.html#Libvirt-glib-Library-initialization.stability-level">
2 <ANCHOR id="Libvirt-glib-Library-initialization.synopsis" href="Libvirt-glib/Libvirt-glib-Library-initialization.html#Libvirt-glib-Library-initialization.synopsis">
3 <ANCHOR id="Libvirt-glib-Library-initialization.description" href="Libvirt-glib/Libvirt-glib-Library-initialization.html#Libvirt-glib-Library-initialization.description">
4 <ANCHOR id="Libvirt-glib-Library-initialization.details" href="Libvirt-glib/Libvirt-glib-Library-initialization.html#Libvirt-glib-Library-initialization.details">
5 <ANCHOR id="gvir-init" href="Libvirt-glib/Libvirt-glib-Library-initialization.html#gvir-init">
6 <ANCHOR id="gvir-init-check" href="Libvirt-glib/Libvirt-glib-Library-initialization.html#gvir-init-check">
7 <ANCHOR id="Libvirt-glib-Error-reporting" href="Libvirt-glib/Libvirt-glib-Error-reporting.html">
8 <ANCHOR id="Libvirt-glib-Error-reporting.stability-level" href="Libvirt-glib/Libvirt-glib-Error-reporting.html#Libvirt-glib-Error-reporting.stability-level">
9 <ANCHOR id="Libvirt-glib-Error-reporting.synopsis" href="Libvirt-glib/Libvirt-glib-Error-reporting.html#Libvirt-glib-Error-reporting.synopsis">
10 <ANCHOR id="Libvirt-glib-Error-reporting.description" href="Libvirt-glib/Libvirt-glib-Error-reporting.html#Libvirt-glib-Error-reporting.description">
11 <ANCHOR id="Libvirt-glib-Error-reporting.details" href="Libvirt-glib/Libvirt-glib-Error-reporting.html#Libvirt-glib-Error-reporting.details">
12 <ANCHOR id="gvir-error-new" href="Libvirt-glib/Libvirt-glib-Error-reporting.html#gvir-error-new">
13 <ANCHOR id="gvir-error-new-literal" href="Libvirt-glib/Libvirt-glib-Error-reporting.html#gvir-error-new-literal">
14 <ANCHOR id="gvir-error-new-valist" href="Libvirt-glib/Libvirt-glib-Error-reporting.html#gvir-error-new-valist">
15 <ANCHOR id="gvir-set-error" href="Libvirt-glib/Libvirt-glib-Error-reporting.html#gvir-set-error">
16 <ANCHOR id="gvir-set-error-literal" href="Libvirt-glib/Libvirt-glib-Error-reporting.html#gvir-set-error-literal">
17 <ANCHOR id="gvir-set-error-valist" href="Libvirt-glib/Libvirt-glib-Error-reporting.html#gvir-set-error-valist">
18 <ANCHOR id="Libvirt-glib-Event-loop" href="Libvirt-glib/Libvirt-glib-Event-loop.html">
19 <ANCHOR id="Libvirt-glib-Event-loop.stability-level" href="Libvirt-glib/Libvirt-glib-Event-loop.html#Libvirt-glib-Event-loop.stability-level">
20 <ANCHOR id="Libvirt-glib-Event-loop.synopsis" href="Libvirt-glib/Libvirt-glib-Event-loop.html#Libvirt-glib-Event-loop.synopsis">
21 <ANCHOR id="Libvirt-glib-Event-loop.description" href="Libvirt-glib/Libvirt-glib-Event-loop.html#Libvirt-glib-Event-loop.description">
22 <ANCHOR id="Libvirt-glib-Event-loop.details" href="Libvirt-glib/Libvirt-glib-Event-loop.html#Libvirt-glib-Event-loop.details">
23 <ANCHOR id="gvir-event-register" href="Libvirt-glib/Libvirt-glib-Event-loop.html#gvir-event-register">
24 <ANCHOR id="annotation-glossterm-array" href="Libvirt-glib/annotation-glossary.html#annotation-glossterm-array">
25 <ANCHOR id="annotation-glossterm-allow-none" href="Libvirt-glib/annotation-glossary.html#annotation-glossterm-allow-none">
26 <ANCHOR id="annotation-glossterm-inout" href="Libvirt-glib/annotation-glossary.html#annotation-glossterm-inout">
27 <ANCHOR id="annotation-glossterm-transfer full" href="Libvirt-glib/annotation-glossary.html#annotation-glossterm-transfer full">
33 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
44 <title>Object Hierarchy</title>
55 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
6 <link rel="home" href="index.html" title="Libvirt-glib Reference Manual">
7 <link rel="up" href="index.html" title="Libvirt-glib Reference Manual">
8 <link rel="prev" href="Libvirt-glib-libvirt-glib-event.html" title="libvirt-glib-event">
6 <link rel="home" href="index.html" title="Libvirt GLib Reference Manual">
7 <link rel="up" href="index.html" title="Libvirt GLib Reference Manual">
8 <link rel="prev" href="Libvirt-glib-Event-loop.html" title="Event loop">
99 <link rel="next" href="api-index-full.html" title="API Index">
1010 <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
1111 <link rel="stylesheet" href="style.css" type="text/css">
1212 </head>
1313 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
1414 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
15 <td><a accesskey="p" href="Libvirt-glib-libvirt-glib-event.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
15 <td><a accesskey="p" href="Libvirt-glib-Event-loop.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
1616 <td> </td>
1717 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
18 <th width="100%" align="center">Libvirt-glib Reference Manual</th>
18 <th width="100%" align="center">Libvirt GLib Reference Manual</th>
1919 <td><a accesskey="n" href="api-index-full.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
2020 </tr></table>
2121 <div class="chapter">
3535 gvir_connection_find_network_by_name
3636 gvir_connection_find_network_filter_by_name
3737 gvir_connection_find_storage_pool_by_name
38 gvir_connection_get_capabilities
39 gvir_connection_get_capabilities_async
40 gvir_connection_get_capabilities_finish
3841 gvir_connection_get_domain
3942 gvir_connection_get_domains
4043 gvir_connection_get_interface
5760 gvir_connection_open
5861 gvir_connection_open_async
5962 gvir_connection_open_finish
63 gvir_connection_restore_domain_from_file
64 gvir_connection_restore_domain_from_file_async
65 gvir_connection_restore_domain_from_file_finish
6066 gvir_connection_start_domain
6167 <SUBSECTION Standard>
6268 GVIR_CONNECTION
7985 GVirDomainClass
8086 GVirDomainDeleteFlags
8187 GVirDomainInfo
88 GVirDomainShutdownFlags
89 GVirDomainSnapshotCreateFlags
8290 GVirDomainStartFlags
8391 GVirDomainState
92 GVirDomainXMLFlags
93 gvir_domain_create_snapshot
8494 gvir_domain_delete
8595 gvir_domain_get_config
8696 gvir_domain_get_devices
96106 gvir_domain_open_graphics
97107 gvir_domain_reboot
98108 gvir_domain_resume
109 gvir_domain_resume_async
110 gvir_domain_resume_finish
99111 gvir_domain_save
100112 gvir_domain_save_async
101113 gvir_domain_save_finish
114 gvir_domain_save_to_file
115 gvir_domain_save_to_file_async
116 gvir_domain_save_to_file_finish
102117 gvir_domain_screenshot
103118 gvir_domain_set_config
104119 gvir_domain_shutdown
105120 gvir_domain_start
121 gvir_domain_start_async
122 gvir_domain_start_finish
106123 gvir_domain_stop
107124 gvir_domain_suspend
108125 <SUBSECTION Standard>
411428 GVirStorageVolResizeFlags
412429 GVirStorageVolType
413430 gvir_storage_vol_delete
431 gvir_storage_vol_download
414432 gvir_storage_vol_get_config
415433 gvir_storage_vol_get_info
416434 gvir_storage_vol_get_name
417435 gvir_storage_vol_get_path
418436 gvir_storage_vol_resize
437 gvir_storage_vol_upload
419438 <SUBSECTION Standard>
420439 GVIR_IS_STORAGE_VOL
421440 GVIR_IS_STORAGE_VOL_CLASS
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
0 # Makefile.in generated by automake 1.12.2 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
2019 # Everything below here is generic #
2120 ####################################
2221 VPATH = @srcdir@
22 am__make_dryrun = \
23 { \
24 am__dry=no; \
25 case $$MAKEFLAGS in \
26 *\\[\ \ ]*) \
27 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
28 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
29 *) \
30 for am__flg in $$MAKEFLAGS; do \
31 case $$am__flg in \
32 *=*|--*) ;; \
33 *n*) am__dry=yes; break;; \
34 esac; \
35 done;; \
36 esac; \
37 test $$am__dry = yes; \
38 }
2339 pkgdatadir = $(datadir)/@PACKAGE@
2440 pkgincludedir = $(includedir)/@PACKAGE@
2541 pkglibdir = $(libdir)/@PACKAGE@
5470 CONFIG_HEADER = $(top_builddir)/config.h
5571 CONFIG_CLEAN_FILES =
5672 CONFIG_CLEAN_VPATH_FILES =
73 AM_V_P = $(am__v_P_@AM_V@)
74 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
75 am__v_P_0 = false
76 am__v_P_1 = :
5777 AM_V_GEN = $(am__v_GEN_@AM_V@)
5878 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
59 am__v_GEN_0 = @echo " GEN " $@;
79 am__v_GEN_0 = @echo " GEN " $@;
80 am__v_GEN_1 =
6081 AM_V_at = $(am__v_at_@AM_V@)
6182 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
6283 am__v_at_0 = @
84 am__v_at_1 =
6385 SOURCES =
6486 DIST_SOURCES =
87 am__can_run_installinfo = \
88 case $$AM_UPDATE_INFO_DIR in \
89 n|no|NO) false;; \
90 *) (install-info --version) >/dev/null 2>&1;; \
91 esac
6592 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
6693 ACLOCAL = @ACLOCAL@
6794 AMTAR = @AMTAR@
342369 ctags: CTAGS
343370 CTAGS:
344371
372 cscope cscopelist:
373
345374
346375 distdir: $(DISTFILES)
347376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
9292 <a class="link" href="GVirStoragePool.html" title="GVirStoragePool"><span class="returnvalue">GVirStoragePool</span></a> * <a class="link" href="GVirConnection.html#gvir-connection-find-storage-pool-by-name" title="gvir_connection_find_storage_pool_by_name ()">gvir_connection_find_storage_pool_by_name</a>
9393 (<em class="parameter"><code><a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a> *conn</code></em>,
9494 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);
95 <a href="/usr/share/gtk-doc/html/Libvirt-gconfig/GVirConfigCapabilities.html"><span class="returnvalue">GVirConfigCapabilities</span></a> * <a class="link" href="GVirConnection.html#gvir-connection-get-capabilities" title="gvir_connection_get_capabilities ()">gvir_connection_get_capabilities</a>
96 (<em class="parameter"><code><a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a> *conn</code></em>,
97 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
98 <span class="returnvalue">void</span> <a class="link" href="GVirConnection.html#gvir-connection-get-capabilities-async" title="gvir_connection_get_capabilities_async ()">gvir_connection_get_capabilities_async</a>
99 (<em class="parameter"><code><a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a> *conn</code></em>,
100 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
101 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
102 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
103 <a href="/usr/share/gtk-doc/html/Libvirt-gconfig/GVirConfigCapabilities.html"><span class="returnvalue">GVirConfigCapabilities</span></a> * <a class="link" href="GVirConnection.html#gvir-connection-get-capabilities-finish" title="gvir_connection_get_capabilities_finish ()">gvir_connection_get_capabilities_finish</a>
104 (<em class="parameter"><code><a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a> *conn</code></em>,
105 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *result</code></em>,
106 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
95107 <a class="link" href="GVirDomain.html" title="GVirDomain"><span class="returnvalue">GVirDomain</span></a> * <a class="link" href="GVirConnection.html#gvir-connection-get-domain" title="gvir_connection_get_domain ()">gvir_connection_get_domain</a> (<em class="parameter"><code><a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a> *conn</code></em>,
96108 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *uuid</code></em>);
97109 <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * <a class="link" href="GVirConnection.html#gvir-connection-get-domains" title="gvir_connection_get_domains ()">gvir_connection_get_domains</a> (<em class="parameter"><code><a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a> *conn</code></em>);
130142 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GVirConnection.html#gvir-connection-open-finish" title="gvir_connection_open_finish ()">gvir_connection_open_finish</a> (<em class="parameter"><code><a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a> *conn</code></em>,
131143 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *result</code></em>,
132144 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
145 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GVirConnection.html#gvir-connection-restore-domain-from-file" title="gvir_connection_restore_domain_from_file ()">gvir_connection_restore_domain_from_file</a>
146 (<em class="parameter"><code><a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a> *conn</code></em>,
147 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *filename</code></em>,
148 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/Libvirt-gconfig/GVirConfigDomain.html"><span class="type">GVirConfigDomain</span></a> *custom_conf</code></em>,
149 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> flags</code></em>,
150 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
151 <span class="returnvalue">void</span> <a class="link" href="GVirConnection.html#gvir-connection-restore-domain-from-file-async" title="gvir_connection_restore_domain_from_file_async ()">gvir_connection_restore_domain_from_file_async</a>
152 (<em class="parameter"><code><a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a> *conn</code></em>,
153 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *filename</code></em>,
154 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/Libvirt-gconfig/GVirConfigDomain.html"><span class="type">GVirConfigDomain</span></a> *custom_conf</code></em>,
155 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> flags</code></em>,
156 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
157 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
158 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
159 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GVirConnection.html#gvir-connection-restore-domain-from-file-finish" title="gvir_connection_restore_domain_from_file_finish ()">gvir_connection_restore_domain_from_file_finish</a>
160 (<em class="parameter"><code><a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a> *conn</code></em>,
161 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *result</code></em>,
162 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
133163 <a class="link" href="GVirDomain.html" title="GVirDomain"><span class="returnvalue">GVirDomain</span></a> * <a class="link" href="GVirConnection.html#gvir-connection-start-domain" title="gvir_connection_start_domain ()">gvir_connection_start_domain</a> (<em class="parameter"><code><a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a> *conn</code></em>,
134164 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/Libvirt-gconfig/GVirConfigDomain.html"><span class="type">GVirConfigDomain</span></a> *conf</code></em>,
135165 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> flags</code></em>,
226256 <tbody>
227257 <tr>
228258 <td><p><span class="term"><em class="parameter"><code>conn</code></em> :</span></p></td>
229 <td>the connection on which to create the domain</td>
259 <td>a <a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a> on which to create the domain</td>
230260 </tr>
231261 <tr>
232262 <td><p><span class="term"><em class="parameter"><code>conf</code></em> :</span></p></td>
234264 </tr>
235265 <tr>
236266 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
237 <td>the newly created domain. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
267 <td>the newly created domain, or NULL if an error
268 occurred. The returned object should be unreffed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>
269 when no longer needed. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
238270 </td>
239271 </tr>
240272 </tbody>
252284 <tbody>
253285 <tr>
254286 <td><p><span class="term"><em class="parameter"><code>conn</code></em> :</span></p></td>
255 <td>the connection on which to create the pool</td>
287 <td>a <a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a> on which to create the pool</td>
256288 </tr>
257289 <tr>
258290 <td><p><span class="term"><em class="parameter"><code>conf</code></em> :</span></p></td>
269301 </tr>
270302 <tr>
271303 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
272 <td>the newly created storage pool. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
304 <td>the newly created storage pool, or NULL if an
305 error occurred. The returned list should be freed with <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#g-list-free"><code class="function">g_list_free()</code></a>,
306 after its elements have been unreffed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
273307 </td>
274308 </tr>
275309 </tbody>
286320 <tbody>
287321 <tr>
288322 <td><p><span class="term"><em class="parameter"><code>conn</code></em> :</span></p></td>
289 <td>the connection</td>
323 <td>a <a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a>
324 </td>
290325 </tr>
291326 <tr>
292327 <td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
308343 <tbody>
309344 <tr>
310345 <td><p><span class="term"><em class="parameter"><code>conn</code></em> :</span></p></td>
311 <td>the connection</td>
346 <td>a <a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a>
347 </td>
312348 </tr>
313349 <tr>
314350 <td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
340376 <tbody>
341377 <tr>
342378 <td><p><span class="term"><em class="parameter"><code>conn</code></em> :</span></p></td>
343 <td>the connection</td>
379 <td>a <a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a>
380 </td>
344381 </tr>
345382 <tr>
346383 <td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
361398 <tbody>
362399 <tr>
363400 <td><p><span class="term"><em class="parameter"><code>conn</code></em> :</span></p></td>
364 <td>the connection</td>
401 <td>a <a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a>
402 </td>
365403 </tr>
366404 <tr>
367405 <td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
384422 <tbody>
385423 <tr>
386424 <td><p><span class="term"><em class="parameter"><code>conn</code></em> :</span></p></td>
387 <td>the connection</td>
425 <td>a <a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a>
426 </td>
388427 </tr>
389428 <tr>
390429 <td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
416455 <tbody>
417456 <tr>
418457 <td><p><span class="term"><em class="parameter"><code>conn</code></em> :</span></p></td>
419 <td>the connection</td>
458 <td>a <a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a>
459 </td>
420460 </tr>
421461 <tr>
422462 <td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
435475 <col align="left" valign="top">
436476 <tbody>
437477 <tr>
478 <td><p><span class="term"><em class="parameter"><code>conn</code></em> :</span></p></td>
479 <td>a <a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a>
480 </td>
481 </tr>
482 <tr>
438483 <td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
439484 <td>id of the requested domain</td>
440485 </tr>
441486 <tr>
442487 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
443 <td>the <a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a>, or NULL. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
488 <td>the <a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a>, or NULL. The returned
489 object should be unreffed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when no longer needed. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
444490 </td>
445491 </tr>
446492 </tbody>
455501 <col align="left" valign="top">
456502 <tbody>
457503 <tr>
504 <td><p><span class="term"><em class="parameter"><code>conn</code></em> :</span></p></td>
505 <td>a <a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a>
506 </td>
507 </tr>
508 <tr>
458509 <td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
459510 <td>name of the requested domain</td>
460511 </tr>
461512 <tr>
462513 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
463 <td>the <a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a>, or NULL. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
514 <td>the <a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a>, or NULL. The returned
515 object should be unreffed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when no longer needed. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
464516 </td>
465517 </tr>
466518 </tbody>
497549 <col align="left" valign="top">
498550 <tbody>
499551 <tr>
552 <td><p><span class="term"><em class="parameter"><code>conn</code></em> :</span></p></td>
553 <td>a <a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a>
554 </td>
555 </tr>
556 <tr>
500557 <td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
501558 <td>name of the requested storage pool</td>
502559 </tr>
503560 <tr>
504561 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
505 <td>the <a class="link" href="GVirStoragePool.html" title="GVirStoragePool"><span class="type">GVirStoragePool</span></a>, or NULL. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
562 <td>the <a class="link" href="GVirStoragePool.html" title="GVirStoragePool"><span class="type">GVirStoragePool</span></a>, or NULL. The returned
563 object should be unreffed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when no longer needed. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
564 </td>
565 </tr>
566 </tbody>
567 </table></div>
568 </div>
569 <hr>
570 <div class="refsect2">
571 <a name="gvir-connection-get-capabilities"></a><h3>gvir_connection_get_capabilities ()</h3>
572 <pre class="programlisting"><a href="/usr/share/gtk-doc/html/Libvirt-gconfig/GVirConfigCapabilities.html"><span class="returnvalue">GVirConfigCapabilities</span></a> * gvir_connection_get_capabilities
573 (<em class="parameter"><code><a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a> *conn</code></em>,
574 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre>
575 <div class="variablelist"><table border="0">
576 <col align="left" valign="top">
577 <tbody>
578 <tr>
579 <td><p><span class="term"><em class="parameter"><code>conn</code></em> :</span></p></td>
580 <td>a <a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a>
581 </td>
582 </tr>
583 <tr>
584 <td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td>
585 <td>return location for any <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>
586 </td>
587 </tr>
588 <tr>
589 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
590 <td>a <a href="/usr/share/gtk-doc/html/Libvirt-gconfig/GVirConfigCapabilities.html"><span class="type">GVirConfigCapabilities</span></a> or NULL. The
591 returned object should be unreffed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when no longer
592 needed. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
593 </td>
594 </tr>
595 </tbody>
596 </table></div>
597 </div>
598 <hr>
599 <div class="refsect2">
600 <a name="gvir-connection-get-capabilities-async"></a><h3>gvir_connection_get_capabilities_async ()</h3>
601 <pre class="programlisting"><span class="returnvalue">void</span> gvir_connection_get_capabilities_async
602 (<em class="parameter"><code><a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a> *conn</code></em>,
603 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
604 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
605 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
606 <div class="variablelist"><table border="0">
607 <col align="left" valign="top">
608 <tbody>
609 <tr>
610 <td><p><span class="term"><em class="parameter"><code>conn</code></em> :</span></p></td>
611 <td>a <a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a>
612 </td>
613 </tr>
614 <tr>
615 <td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
616 <td>cancellation object. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
617 </td>
618 </tr>
619 <tr>
620 <td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
621 <td>completion callback. <span class="annotation">[<acronym title="The callback is valid until first called."><span class="acronym">scope async</span></acronym>]</span>
622 </td>
623 </tr>
624 <tr>
625 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
626 <td>opaque data for callback. <span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym>]</span>
627 </td>
628 </tr>
629 </tbody>
630 </table></div>
631 </div>
632 <hr>
633 <div class="refsect2">
634 <a name="gvir-connection-get-capabilities-finish"></a><h3>gvir_connection_get_capabilities_finish ()</h3>
635 <pre class="programlisting"><a href="/usr/share/gtk-doc/html/Libvirt-gconfig/GVirConfigCapabilities.html"><span class="returnvalue">GVirConfigCapabilities</span></a> * gvir_connection_get_capabilities_finish
636 (<em class="parameter"><code><a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a> *conn</code></em>,
637 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *result</code></em>,
638 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre>
639 <div class="variablelist"><table border="0">
640 <col align="left" valign="top">
641 <tbody>
642 <tr>
643 <td><p><span class="term"><em class="parameter"><code>conn</code></em> :</span></p></td>
644 <td>a <a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a>
645 </td>
646 </tr>
647 <tr>
648 <td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
649 <td>async method result. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
650 </td>
651 </tr>
652 <tr>
653 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
654 <td>a <a href="/usr/share/gtk-doc/html/Libvirt-gconfig/GVirConfigCapabilities.html"><span class="type">GVirConfigCapabilities</span></a> or NULL. The
655 returned object should be unreffed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when no longer
656 needed. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
506657 </td>
507658 </tr>
508659 </tbody>
517668 <col align="left" valign="top">
518669 <tbody>
519670 <tr>
671 <td><p><span class="term"><em class="parameter"><code>conn</code></em> :</span></p></td>
672 <td>a <a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a>
673 </td>
674 </tr>
675 <tr>
520676 <td><p><span class="term"><em class="parameter"><code>uuid</code></em> :</span></p></td>
521677 <td>uuid string of the requested domain</td>
522678 </tr>
523679 <tr>
524680 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
525 <td>the <a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a>, or NULL. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
681 <td>the <a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a>, or NULL. The returned
682 object should be unreffed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when no longer needed. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
526683 </td>
527684 </tr>
528685 </tbody>
532689 <div class="refsect2">
533690 <a name="gvir-connection-get-domains"></a><h3>gvir_connection_get_domains ()</h3>
534691 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * gvir_connection_get_domains (<em class="parameter"><code><a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a> *conn</code></em>);</pre>
535 <div class="variablelist"><table border="0">
536 <col align="left" valign="top">
537 <tbody><tr>
538 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
539 <td>List of <a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a>. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> LibvirtGObject.Domain][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
540 </td>
541 </tr></tbody>
692 <p>
693 Gets a list of the domains available through <em class="parameter"><code>conn</code></em>.
694 </p>
695 <div class="variablelist"><table border="0">
696 <col align="left" valign="top">
697 <tbody>
698 <tr>
699 <td><p><span class="term"><em class="parameter"><code>conn</code></em> :</span></p></td>
700 <td>a <a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a>
701 </td>
702 </tr>
703 <tr>
704 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
705 <td>List
706 of <a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a>. The returned list should be freed with <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#g-list-free"><code class="function">g_list_free()</code></a>,
707 after its elements have been unreffed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> LibvirtGObject.Domain][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
708 </td>
709 </tr>
710 </tbody>
542711 </table></div>
543712 </div>
544713 <hr>
595764 <tbody>
596765 <tr>
597766 <td><p><span class="term"><em class="parameter"><code>conn</code></em> :</span></p></td>
598 <td>the connection</td>
767 <td>a <a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a>
768 </td>
599769 </tr>
600770 <tr>
601771 <td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td>
604774 </tr>
605775 <tr>
606776 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
607 <td>the info. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
777 <td>the info, or NULL if an error occurred. The
778 returned object should be unreffed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when no longer
779 needed. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
608780 </td>
609781 </tr>
610782 </tbody>
630802 <col align="left" valign="top">
631803 <tbody>
632804 <tr>
805 <td><p><span class="term"><em class="parameter"><code>conn</code></em> :</span></p></td>
806 <td>a <a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a>
807 </td>
808 </tr>
809 <tr>
633810 <td><p><span class="term"><em class="parameter"><code>uuid</code></em> :</span></p></td>
634811 <td>uuid string of the requested storage pool</td>
635812 </tr>
636813 <tr>
637814 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
638 <td>the <a class="link" href="GVirStoragePool.html" title="GVirStoragePool"><span class="type">GVirStoragePool</span></a>, or NULL. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
815 <td>the <a class="link" href="GVirStoragePool.html" title="GVirStoragePool"><span class="type">GVirStoragePool</span></a>, or NULL. The returned
816 object should be unreffed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when no longer needed. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
639817 </td>
640818 </tr>
641819 </tbody>
645823 <div class="refsect2">
646824 <a name="gvir-connection-get-storage-pools"></a><h3>gvir_connection_get_storage_pools ()</h3>
647825 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * gvir_connection_get_storage_pools (<em class="parameter"><code><a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a> *conn</code></em>);</pre>
648 <div class="variablelist"><table border="0">
649 <col align="left" valign="top">
650 <tbody><tr>
826 <p>
827 Gets a list of the storage pools available through <em class="parameter"><code>conn</code></em>.
828 </p>
829 <div class="variablelist"><table border="0">
830 <col align="left" valign="top">
831 <tbody>
832 <tr>
833 <td><p><span class="term"><em class="parameter"><code>conn</code></em> :</span></p></td>
834 <td>a <a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a>
835 </td>
836 </tr>
837 <tr>
651838 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
652839 <td>List
653 of <a class="link" href="GVirStoragePool.html" title="GVirStoragePool"><span class="type">GVirStoragePool</span></a>. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> LibvirtGObject.StoragePool][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
654 </td>
655 </tr></tbody>
840 of <a class="link" href="GVirStoragePool.html" title="GVirStoragePool"><span class="type">GVirStoragePool</span></a>. The returned list should be freed with
841 <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#g-list-free"><code class="function">g_list_free()</code></a>, after its elements have been unreffed with
842 <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> LibvirtGObject.StoragePool][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
843 </td>
844 </tr>
845 </tbody>
656846 </table></div>
657847 </div>
658848 <hr>
664854 <col align="left" valign="top">
665855 <tbody>
666856 <tr>
857 <td><p><span class="term"><em class="parameter"><code>conn</code></em> :</span></p></td>
858 <td>a <a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a>
859 </td>
860 </tr>
861 <tr>
667862 <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
668863 <td>flags to use for the stream</td>
669864 </tr>
670865 <tr>
671866 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
672 <td>a <a class="link" href="GVirStream.html" title="GVirStream"><span class="type">GVirStream</span></a> stream, or NULL. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
867 <td>a <a class="link" href="GVirStream.html" title="GVirStream"><span class="type">GVirStream</span></a> stream, or NULL.The returned
868 object should be unreffed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when no longer needed. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
673869 </td>
674870 </tr>
675871 </tbody>
701897 <tbody>
702898 <tr>
703899 <td><p><span class="term"><em class="parameter"><code>conn</code></em> :</span></p></td>
704 <td>the connection</td>
900 <td>a <a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a>
901 </td>
705902 </tr>
706903 <tr>
707904 <td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
723920 <tbody>
724921 <tr>
725922 <td><p><span class="term"><em class="parameter"><code>conn</code></em> :</span></p></td>
726 <td>the connection</td>
923 <td>a <a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a>
924 </td>
727925 </tr>
728926 <tr>
729927 <td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
754952 <tbody>
755953 <tr>
756954 <td><p><span class="term"><em class="parameter"><code>conn</code></em> :</span></p></td>
757 <td>the connection</td>
955 <td>a <a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a>
956 </td>
758957 </tr>
759958 <tr>
760959 <td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
761960 <td>async method result. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
762961 </td>
962 </tr>
963 </tbody>
964 </table></div>
965 </div>
966 <hr>
967 <div class="refsect2">
968 <a name="gvir-connection-restore-domain-from-file"></a><h3>gvir_connection_restore_domain_from_file ()</h3>
969 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gvir_connection_restore_domain_from_file
970 (<em class="parameter"><code><a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a> *conn</code></em>,
971 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *filename</code></em>,
972 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/Libvirt-gconfig/GVirConfigDomain.html"><span class="type">GVirConfigDomain</span></a> *custom_conf</code></em>,
973 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> flags</code></em>,
974 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre>
975 <p>
976 Restores the domain saved with <a class="link" href="GVirDomain.html#gvir-domain-save-to-file" title="gvir_domain_save_to_file ()"><span class="type">gvir_domain_save_to_file</span></a>
977 </p>
978 <div class="variablelist"><table border="0">
979 <col align="left" valign="top">
980 <tbody>
981 <tr>
982 <td><p><span class="term"><em class="parameter"><code>conn</code></em> :</span></p></td>
983 <td>a <a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a>
984 </td>
985 </tr>
986 <tr>
987 <td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
988 <td>path to input file</td>
989 </tr>
990 <tr>
991 <td><p><span class="term"><em class="parameter"><code>custom_conf</code></em> :</span></p></td>
992 <td>configuration for domain or NULL. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
993 </td>
994 </tr>
995 <tr>
996 <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
997 <td>the flags</td>
998 </tr>
999 <tr>
1000 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1001 <td>TRUE on success, FALSE otherwise</td>
1002 </tr>
1003 </tbody>
1004 </table></div>
1005 </div>
1006 <hr>
1007 <div class="refsect2">
1008 <a name="gvir-connection-restore-domain-from-file-async"></a><h3>gvir_connection_restore_domain_from_file_async ()</h3>
1009 <pre class="programlisting"><span class="returnvalue">void</span> gvir_connection_restore_domain_from_file_async
1010 (<em class="parameter"><code><a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a> *conn</code></em>,
1011 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *filename</code></em>,
1012 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/Libvirt-gconfig/GVirConfigDomain.html"><span class="type">GVirConfigDomain</span></a> *custom_conf</code></em>,
1013 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> flags</code></em>,
1014 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
1015 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
1016 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
1017 <p>
1018 Asynchronous variant of <a class="link" href="GVirConnection.html#gvir-connection-restore-domain-from-file" title="gvir_connection_restore_domain_from_file ()"><span class="type">gvir_connection_restore_domain_from_file</span></a>
1019 </p>
1020 <div class="variablelist"><table border="0">
1021 <col align="left" valign="top">
1022 <tbody>
1023 <tr>
1024 <td><p><span class="term"><em class="parameter"><code>conn</code></em> :</span></p></td>
1025 <td>a <a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a>
1026 </td>
1027 </tr>
1028 <tr>
1029 <td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
1030 <td>path to input file</td>
1031 </tr>
1032 <tr>
1033 <td><p><span class="term"><em class="parameter"><code>custom_conf</code></em> :</span></p></td>
1034 <td>configuration for domain. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
1035 </td>
1036 </tr>
1037 <tr>
1038 <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
1039 <td>the flags</td>
1040 </tr>
1041 <tr>
1042 <td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
1043 <td>cancellation object. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
1044 </td>
1045 </tr>
1046 <tr>
1047 <td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
1048 <td>completion callback. <span class="annotation">[<acronym title="The callback is valid until first called."><span class="acronym">scope async</span></acronym>]</span>
1049 </td>
1050 </tr>
1051 <tr>
1052 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1053 <td>opaque data for callback. <span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym>]</span>
1054 </td>
1055 </tr>
1056 </tbody>
1057 </table></div>
1058 </div>
1059 <hr>
1060 <div class="refsect2">
1061 <a name="gvir-connection-restore-domain-from-file-finish"></a><h3>gvir_connection_restore_domain_from_file_finish ()</h3>
1062 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gvir_connection_restore_domain_from_file_finish
1063 (<em class="parameter"><code><a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a> *conn</code></em>,
1064 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *result</code></em>,
1065 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre>
1066 <p>
1067 Finishes the operation started by <span class="type">gvir_restore_domain_from_file_async</span>.
1068 </p>
1069 <div class="variablelist"><table border="0">
1070 <col align="left" valign="top">
1071 <tbody>
1072 <tr>
1073 <td><p><span class="term"><em class="parameter"><code>conn</code></em> :</span></p></td>
1074 <td>a <a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a>
1075 </td>
1076 </tr>
1077 <tr>
1078 <td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
1079 <td>async method result. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
1080 </td>
1081 </tr>
1082 <tr>
1083 <td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td>
1084 <td>Place-holder for possible errors</td>
1085 </tr>
1086 <tr>
1087 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1088 <td>TRUE if domain was restored successfully, FALSE otherwise.</td>
7631089 </tr>
7641090 </tbody>
7651091 </table></div>
7801106 <tbody>
7811107 <tr>
7821108 <td><p><span class="term"><em class="parameter"><code>conn</code></em> :</span></p></td>
783 <td>the connection on which to create the domain</td>
1109 <td>a <a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a> on which to create the domain</td>
7841110 </tr>
7851111 <tr>
7861112 <td><p><span class="term"><em class="parameter"><code>conf</code></em> :</span></p></td>
7881114 </tr>
7891115 <tr>
7901116 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
791 <td>the newly created domain. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
1117 <td>the newly created domain, or NULL if an error
1118 occurred. The returned object should be unreffed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>
1119 when no longer needed. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
7921120 </td>
7931121 </tr>
7941122 </tbody>
4646 struct <a class="link" href="GVirDomain.html#GVirDomainClass" title="struct GVirDomainClass">GVirDomainClass</a>;
4747 enum <a class="link" href="GVirDomain.html#GVirDomainDeleteFlags" title="enum GVirDomainDeleteFlags">GVirDomainDeleteFlags</a>;
4848 struct <a class="link" href="GVirDomain.html#GVirDomainInfo-struct" title="struct GVirDomainInfo">GVirDomainInfo</a>;
49 enum <a class="link" href="GVirDomain.html#GVirDomainShutdownFlags" title="enum GVirDomainShutdownFlags">GVirDomainShutdownFlags</a>;
50 enum <a class="link" href="GVirDomain.html#GVirDomainSnapshotCreateFlags" title="enum GVirDomainSnapshotCreateFlags">GVirDomainSnapshotCreateFlags</a>;
4951 enum <a class="link" href="GVirDomain.html#GVirDomainStartFlags" title="enum GVirDomainStartFlags">GVirDomainStartFlags</a>;
5052 enum <a class="link" href="GVirDomain.html#GVirDomainState" title="enum GVirDomainState">GVirDomainState</a>;
53 enum <a class="link" href="GVirDomain.html#GVirDomainXMLFlags" title="enum GVirDomainXMLFlags">GVirDomainXMLFlags</a>;
54 <a class="link" href="GVirDomainSnapshot.html" title="GVirDomainSnapshot"><span class="returnvalue">GVirDomainSnapshot</span></a> * <a class="link" href="GVirDomain.html#gvir-domain-create-snapshot" title="gvir_domain_create_snapshot ()">gvir_domain_create_snapshot</a> (<em class="parameter"><code><a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a> *dom</code></em>,
55 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/Libvirt-gconfig/GVirConfigDomainSnapshot.html"><span class="type">GVirConfigDomainSnapshot</span></a> *custom_conf</code></em>,
56 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> flags</code></em>,
57 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
5158 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GVirDomain.html#gvir-domain-delete" title="gvir_domain_delete ()">gvir_domain_delete</a> (<em class="parameter"><code><a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a> *dom</code></em>,
5259 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> flags</code></em>,
5360 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
8693 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
8794 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GVirDomain.html#gvir-domain-resume" title="gvir_domain_resume ()">gvir_domain_resume</a> (<em class="parameter"><code><a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a> *dom</code></em>,
8895 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
96 <span class="returnvalue">void</span> <a class="link" href="GVirDomain.html#gvir-domain-resume-async" title="gvir_domain_resume_async ()">gvir_domain_resume_async</a> (<em class="parameter"><code><a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a> *dom</code></em>,
97 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
98 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
99 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
100 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GVirDomain.html#gvir-domain-resume-finish" title="gvir_domain_resume_finish ()">gvir_domain_resume_finish</a> (<em class="parameter"><code><a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a> *dom</code></em>,
101 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *result</code></em>,
102 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
89103 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GVirDomain.html#gvir-domain-save" title="gvir_domain_save ()">gvir_domain_save</a> (<em class="parameter"><code><a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a> *dom</code></em>,
90104 <em class="parameter"><code>unsigned <span class="type">int</span> flags</code></em>,
91105 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
97111 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GVirDomain.html#gvir-domain-save-finish" title="gvir_domain_save_finish ()">gvir_domain_save_finish</a> (<em class="parameter"><code><a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a> *dom</code></em>,
98112 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *result</code></em>,
99113 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
114 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GVirDomain.html#gvir-domain-save-to-file" title="gvir_domain_save_to_file ()">gvir_domain_save_to_file</a> (<em class="parameter"><code><a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a> *dom</code></em>,
115 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *filename</code></em>,
116 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/Libvirt-gconfig/GVirConfigDomain.html"><span class="type">GVirConfigDomain</span></a> *custom_conf</code></em>,
117 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> flags</code></em>,
118 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
119 <span class="returnvalue">void</span> <a class="link" href="GVirDomain.html#gvir-domain-save-to-file-async" title="gvir_domain_save_to_file_async ()">gvir_domain_save_to_file_async</a> (<em class="parameter"><code><a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a> *dom</code></em>,
120 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *filename</code></em>,
121 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/Libvirt-gconfig/GVirConfigDomain.html"><span class="type">GVirConfigDomain</span></a> *custom_conf</code></em>,
122 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> flags</code></em>,
123 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
124 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
125 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
126 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GVirDomain.html#gvir-domain-save-to-file-finish" title="gvir_domain_save_to_file_finish ()">gvir_domain_save_to_file_finish</a> (<em class="parameter"><code><a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a> *dom</code></em>,
127 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *result</code></em>,
128 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
100129 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="GVirDomain.html#gvir-domain-screenshot" title="gvir_domain_screenshot ()">gvir_domain_screenshot</a> (<em class="parameter"><code><a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a> *dom</code></em>,
101130 <em class="parameter"><code><a class="link" href="GVirStream.html" title="GVirStream"><span class="type">GVirStream</span></a> *stream</code></em>,
102131 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> monitor_id</code></em>,
110139 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
111140 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GVirDomain.html#gvir-domain-start" title="gvir_domain_start ()">gvir_domain_start</a> (<em class="parameter"><code><a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a> *dom</code></em>,
112141 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> flags</code></em>,
142 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
143 <span class="returnvalue">void</span> <a class="link" href="GVirDomain.html#gvir-domain-start-async" title="gvir_domain_start_async ()">gvir_domain_start_async</a> (<em class="parameter"><code><a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a> *dom</code></em>,
144 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> flags</code></em>,
145 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
146 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
147 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
148 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GVirDomain.html#gvir-domain-start-finish" title="gvir_domain_start_finish ()">gvir_domain_start_finish</a> (<em class="parameter"><code><a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a> *dom</code></em>,
149 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *result</code></em>,
113150 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
114151 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GVirDomain.html#gvir-domain-stop" title="gvir_domain_stop ()">gvir_domain_stop</a> (<em class="parameter"><code><a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a> *dom</code></em>,
115152 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> flags</code></em>,
217254 </div>
218255 <hr>
219256 <div class="refsect2">
257 <a name="GVirDomainShutdownFlags"></a><h3>enum GVirDomainShutdownFlags</h3>
258 <pre class="programlisting">typedef enum {
259 GVIR_DOMAIN_SHUTDOWN_NONE = 0,
260 GVIR_DOMAIN_SHUTDOWN_ACPI_POWER_BTN = VIR_DOMAIN_SHUTDOWN_ACPI_POWER_BTN,
261 GVIR_DOMAIN_SHUTDOWN_GUEST_AGENT = VIR_DOMAIN_SHUTDOWN_GUEST_AGENT,
262 } GVirDomainShutdownFlags;
263 </pre>
264 <div class="variablelist"><table border="0">
265 <col align="left" valign="top">
266 <tbody>
267 <tr>
268 <td><p><a name="GVIR-DOMAIN-SHUTDOWN-NONE:CAPS"></a><span class="term"><code class="literal">GVIR_DOMAIN_SHUTDOWN_NONE</code></span></p></td>
269 <td>No flags, hypervisor choice
270 </td>
271 </tr>
272 <tr>
273 <td><p><a name="GVIR-DOMAIN-SHUTDOWN-ACPI-POWER-BTN:CAPS"></a><span class="term"><code class="literal">GVIR_DOMAIN_SHUTDOWN_ACPI_POWER_BTN</code></span></p></td>
274 <td>Send ACPI event
275 </td>
276 </tr>
277 <tr>
278 <td><p><a name="GVIR-DOMAIN-SHUTDOWN-GUEST-AGENT:CAPS"></a><span class="term"><code class="literal">GVIR_DOMAIN_SHUTDOWN_GUEST_AGENT</code></span></p></td>
279 <td>Use guest agent
280 </td>
281 </tr>
282 </tbody>
283 </table></div>
284 </div>
285 <hr>
286 <div class="refsect2">
287 <a name="GVirDomainSnapshotCreateFlags"></a><h3>enum GVirDomainSnapshotCreateFlags</h3>
288 <pre class="programlisting">typedef enum {
289 GVIR_DOMAIN_SNAPSHOT_NONE = 0,
290 GVIR_DOMAIN_SNAPSHOT_REDEFINE = VIR_DOMAIN_SNAPSHOT_CREATE_REDEFINE,
291 GVIR_DOMAIN_SNAPSHOT_CURRENT = VIR_DOMAIN_SNAPSHOT_CREATE_CURRENT,
292 GVIR_DOMAIN_SNAPSHOT_NO_METADATA = VIR_DOMAIN_SNAPSHOT_CREATE_NO_METADATA,
293 GVIR_DOMAIN_SNAPSHOT_HALT = VIR_DOMAIN_SNAPSHOT_CREATE_HALT,
294 GVIR_DOMAIN_SNAPSHOT_DISK_ONLY = VIR_DOMAIN_SNAPSHOT_CREATE_DISK_ONLY,
295 GVIR_DOMAIN_SNAPSHOT_REUSE_EXT = VIR_DOMAIN_SNAPSHOT_CREATE_REUSE_EXT,
296 GVIR_DOMAIN_SNAPSHOT_QUIESCE = VIR_DOMAIN_SNAPSHOT_CREATE_QUIESCE,
297 GVIR_DOMAIN_SNAPSHOT_ATOMIC = VIR_DOMAIN_SNAPSHOT_CREATE_ATOMIC,
298 } GVirDomainSnapshotCreateFlags;
299 </pre>
300 <div class="variablelist"><table border="0">
301 <col align="left" valign="top">
302 <tbody>
303 <tr>
304 <td><p><a name="GVIR-DOMAIN-SNAPSHOT-NONE:CAPS"></a><span class="term"><code class="literal">GVIR_DOMAIN_SNAPSHOT_NONE</code></span></p></td>
305 <td>No flags
306 </td>
307 </tr>
308 <tr>
309 <td><p><a name="GVIR-DOMAIN-SNAPSHOT-REDEFINE:CAPS"></a><span class="term"><code class="literal">GVIR_DOMAIN_SNAPSHOT_REDEFINE</code></span></p></td>
310 <td>Restore or alter metadata
311 </td>
312 </tr>
313 <tr>
314 <td><p><a name="GVIR-DOMAIN-SNAPSHOT-CURRENT:CAPS"></a><span class="term"><code class="literal">GVIR_DOMAIN_SNAPSHOT_CURRENT</code></span></p></td>
315 <td>With redefine, make snapshot current
316 </td>
317 </tr>
318 <tr>
319 <td><p><a name="GVIR-DOMAIN-SNAPSHOT-NO-METADATA:CAPS"></a><span class="term"><code class="literal">GVIR_DOMAIN_SNAPSHOT_NO_METADATA</code></span></p></td>
320 <td>Make snapshot without remembering it
321 </td>
322 </tr>
323 <tr>
324 <td><p><a name="GVIR-DOMAIN-SNAPSHOT-HALT:CAPS"></a><span class="term"><code class="literal">GVIR_DOMAIN_SNAPSHOT_HALT</code></span></p></td>
325 <td>Stop running guest after snapshot
326 </td>
327 </tr>
328 <tr>
329 <td><p><a name="GVIR-DOMAIN-SNAPSHOT-DISK-ONLY:CAPS"></a><span class="term"><code class="literal">GVIR_DOMAIN_SNAPSHOT_DISK_ONLY</code></span></p></td>
330 <td>Disk snapshot, not system checkpoint
331 </td>
332 </tr>
333 <tr>
334 <td><p><a name="GVIR-DOMAIN-SNAPSHOT-REUSE-EXT:CAPS"></a><span class="term"><code class="literal">GVIR_DOMAIN_SNAPSHOT_REUSE_EXT</code></span></p></td>
335 <td>Reuse any existing external files
336 </td>
337 </tr>
338 <tr>
339 <td><p><a name="GVIR-DOMAIN-SNAPSHOT-QUIESCE:CAPS"></a><span class="term"><code class="literal">GVIR_DOMAIN_SNAPSHOT_QUIESCE</code></span></p></td>
340 <td>Use guest agent to quiesce all mounter
341 file systems within the domain
342 </td>
343 </tr>
344 <tr>
345 <td><p><a name="GVIR-DOMAIN-SNAPSHOT-ATOMIC:CAPS"></a><span class="term"><code class="literal">GVIR_DOMAIN_SNAPSHOT_ATOMIC</code></span></p></td>
346 <td>Atomically avoid partial changes
347 </td>
348 </tr>
349 </tbody>
350 </table></div>
351 </div>
352 <hr>
353 <div class="refsect2">
220354 <a name="GVirDomainStartFlags"></a><h3>enum GVirDomainStartFlags</h3>
221355 <pre class="programlisting">typedef enum {
222356 GVIR_DOMAIN_START_NONE = 0,
243377 </div>
244378 <hr>
245379 <div class="refsect2">
380 <a name="GVirDomainXMLFlags"></a><h3>enum GVirDomainXMLFlags</h3>
381 <pre class="programlisting">typedef enum {
382 GVIR_DOMAIN_XML_NONE = 0,
383 GVIR_DOMAIN_XML_SECURE = VIR_DOMAIN_XML_SECURE,
384 GVIR_DOMAIN_XML_INACTIVE = VIR_DOMAIN_XML_INACTIVE,
385 GVIR_DOMAIN_XML_UPDATE_CPU = VIR_DOMAIN_XML_UPDATE_CPU,
386 } GVirDomainXMLFlags;
387 </pre>
388 <div class="variablelist"><table border="0">
389 <col align="left" valign="top">
390 <tbody>
391 <tr>
392 <td><p><a name="GVIR-DOMAIN-XML-NONE:CAPS"></a><span class="term"><code class="literal">GVIR_DOMAIN_XML_NONE</code></span></p></td>
393 <td>No flags
394 </td>
395 </tr>
396 <tr>
397 <td><p><a name="GVIR-DOMAIN-XML-SECURE:CAPS"></a><span class="term"><code class="literal">GVIR_DOMAIN_XML_SECURE</code></span></p></td>
398 <td>Dump security sensitive information too
399 </td>
400 </tr>
401 <tr>
402 <td><p><a name="GVIR-DOMAIN-XML-INACTIVE:CAPS"></a><span class="term"><code class="literal">GVIR_DOMAIN_XML_INACTIVE</code></span></p></td>
403 <td>Dump inactive domain information
404 </td>
405 </tr>
406 <tr>
407 <td><p><a name="GVIR-DOMAIN-XML-UPDATE-CPU:CAPS"></a><span class="term"><code class="literal">GVIR_DOMAIN_XML_UPDATE_CPU</code></span></p></td>
408 <td>Update guest CPU requirements according to host CPU
409 </td>
410 </tr>
411 </tbody>
412 </table></div>
413 </div>
414 <hr>
415 <div class="refsect2">
416 <a name="gvir-domain-create-snapshot"></a><h3>gvir_domain_create_snapshot ()</h3>
417 <pre class="programlisting"><a class="link" href="GVirDomainSnapshot.html" title="GVirDomainSnapshot"><span class="returnvalue">GVirDomainSnapshot</span></a> * gvir_domain_create_snapshot (<em class="parameter"><code><a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a> *dom</code></em>,
418 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/Libvirt-gconfig/GVirConfigDomainSnapshot.html"><span class="type">GVirConfigDomainSnapshot</span></a> *custom_conf</code></em>,
419 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> flags</code></em>,
420 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre>
421 <div class="variablelist"><table border="0">
422 <col align="left" valign="top">
423 <tbody>
424 <tr>
425 <td><p><span class="term"><em class="parameter"><code>dom</code></em> :</span></p></td>
426 <td>the domain</td>
427 </tr>
428 <tr>
429 <td><p><span class="term"><em class="parameter"><code>custom_conf</code></em> :</span></p></td>
430 <td>configuration of snapshot or NULL. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
431 </td>
432 </tr>
433 <tr>
434 <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
435 <td>bitwise-OR of <a class="link" href="GVirDomain.html#GVirDomainSnapshotCreateFlags" title="enum GVirDomainSnapshotCreateFlags"><span class="type">GVirDomainSnapshotCreateFlags</span></a>
436 </td>
437 </tr>
438 <tr>
439 <td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td>
440 <td>Place-holder for error or NULL. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
441 </td>
442 </tr>
443 <tr>
444 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
445 <td>snapshot of domain. The returned object should be
446 unreffed when no longer needed. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
447 </td>
448 </tr>
449 </tbody>
450 </table></div>
451 </div>
452 <hr>
453 <div class="refsect2">
246454 <a name="gvir-domain-delete"></a><h3>gvir_domain_delete ()</h3>
247455 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gvir_domain_delete (<em class="parameter"><code><a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a> *dom</code></em>,
248456 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> flags</code></em>,
276484 </tr>
277485 <tr>
278486 <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
279 <td>the flags
280 Returns: (transfer full): the config</td>
487 <td>the <a class="link" href="GVirDomain.html#GVirDomainXMLFlags" title="enum GVirDomainXMLFlags"><code class="literal">GVirDomainXMLFlags</code></a> flags</td>
488 </tr>
489 <tr>
490 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
491 <td>the config. The returned object should be
492 unreffed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when no longer needed. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
493 </td>
281494 </tr>
282495 </tbody>
283496 </table></div>
288501 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * gvir_domain_get_devices (<em class="parameter"><code><a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a> *domain</code></em>,
289502 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre>
290503 <p>
291 Gets the list of devices attached to <em class="parameter"><code>domain</code></em>
504 Gets the list of devices attached to <em class="parameter"><code>domain</code></em>. The returned list should
505 be freed with <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#g-list-free"><code class="function">g_list_free()</code></a>, after its elements have been unreffed with
506 <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>.
292507 </p>
293508 <div class="variablelist"><table border="0">
294509 <col align="left" valign="top">
323538 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre>
324539 <div class="variablelist"><table border="0">
325540 <col align="left" valign="top">
326 <tbody><tr>
327 <td><p><span class="term"><em class="parameter"><code>dom</code></em> :</span></p></td>
328 <td>the domain
329 Returns: (transfer full): the info</td>
330 </tr></tbody>
541 <tbody>
542 <tr>
543 <td><p><span class="term"><em class="parameter"><code>dom</code></em> :</span></p></td>
544 <td>the domain</td>
545 </tr>
546 <tr>
547 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
548 <td>the info. The returned object should be
549 unreffed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when no longer needed. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
550 </td>
551 </tr>
552 </tbody>
331553 </table></div>
332554 </div>
333555 <hr>
392614 </tr>
393615 <tr>
394616 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
395 <td>the info. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
617 <td>the info. The returned object should be
618 unreffed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when no longer needed. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
396619 </td>
397620 </tr>
398621 </tbody>
559782 <td>the domain</td>
560783 </tr>
561784 <tr>
785 <td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td>
786 <td>Place-holder for possible errors</td>
787 </tr>
788 <tr>
562789 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
563790 <td>TRUE on success</td>
564791 </tr>
565792 </tbody>
566793 </table></div>
794 </div>
795 <hr>
796 <div class="refsect2">
797 <a name="gvir-domain-resume-async"></a><h3>gvir_domain_resume_async ()</h3>
798 <pre class="programlisting"><span class="returnvalue">void</span> gvir_domain_resume_async (<em class="parameter"><code><a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a> *dom</code></em>,
799 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
800 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
801 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
802 <p>
803 Asynchronous variant of <a class="link" href="GVirDomain.html#gvir-domain-resume" title="gvir_domain_resume ()"><span class="type">gvir_domain_resume</span></a>.
804 </p>
805 <div class="variablelist"><table border="0">
806 <col align="left" valign="top">
807 <tbody>
808 <tr>
809 <td><p><span class="term"><em class="parameter"><code>dom</code></em> :</span></p></td>
810 <td>the domain to resume</td>
811 </tr>
812 <tr>
813 <td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
814 <td>cancellation object. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
815 </td>
816 </tr>
817 <tr>
818 <td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
819 <td>completion callback. <span class="annotation">[<acronym title="The callback is valid until first called."><span class="acronym">scope async</span></acronym>]</span>
820 </td>
821 </tr>
822 <tr>
823 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
824 <td>opaque data for callback. <span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym>]</span>
825 </td>
826 </tr>
827 </tbody>
828 </table></div>
829 </div>
830 <hr>
831 <div class="refsect2">
832 <a name="gvir-domain-resume-finish"></a><h3>gvir_domain_resume_finish ()</h3>
833 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gvir_domain_resume_finish (<em class="parameter"><code><a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a> *dom</code></em>,
834 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *result</code></em>,
835 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre>
567836 </div>
568837 <hr>
569838 <div class="refsect2">
672941 </div>
673942 <hr>
674943 <div class="refsect2">
944 <a name="gvir-domain-save-to-file"></a><h3>gvir_domain_save_to_file ()</h3>
945 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gvir_domain_save_to_file (<em class="parameter"><code><a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a> *dom</code></em>,
946 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *filename</code></em>,
947 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/Libvirt-gconfig/GVirConfigDomain.html"><span class="type">GVirConfigDomain</span></a> *custom_conf</code></em>,
948 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> flags</code></em>,
949 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre>
950 <div class="variablelist"><table border="0">
951 <col align="left" valign="top">
952 <tbody>
953 <tr>
954 <td><p><span class="term"><em class="parameter"><code>dom</code></em> :</span></p></td>
955 <td>the domain</td>
956 </tr>
957 <tr>
958 <td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
959 <td>path to the output file</td>
960 </tr>
961 <tr>
962 <td><p><span class="term"><em class="parameter"><code>custom_conf</code></em> :</span></p></td>
963 <td>configuration for domain or NULL. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
964 </td>
965 </tr>
966 <tr>
967 <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
968 <td>the flags</td>
969 </tr>
970 <tr>
971 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
972 <td>TRUE on success, FALSE otherwise</td>
973 </tr>
974 </tbody>
975 </table></div>
976 </div>
977 <hr>
978 <div class="refsect2">
979 <a name="gvir-domain-save-to-file-async"></a><h3>gvir_domain_save_to_file_async ()</h3>
980 <pre class="programlisting"><span class="returnvalue">void</span> gvir_domain_save_to_file_async (<em class="parameter"><code><a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a> *dom</code></em>,
981 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *filename</code></em>,
982 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/Libvirt-gconfig/GVirConfigDomain.html"><span class="type">GVirConfigDomain</span></a> *custom_conf</code></em>,
983 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> flags</code></em>,
984 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
985 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
986 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
987 <p>
988 Asynchronous variant of <a class="link" href="GVirDomain.html#gvir-domain-save-to-file" title="gvir_domain_save_to_file ()"><span class="type">gvir_domain_save_to_file</span></a>
989 </p>
990 <div class="variablelist"><table border="0">
991 <col align="left" valign="top">
992 <tbody>
993 <tr>
994 <td><p><span class="term"><em class="parameter"><code>dom</code></em> :</span></p></td>
995 <td>the domain</td>
996 </tr>
997 <tr>
998 <td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
999 <td>path to output file</td>
1000 </tr>
1001 <tr>
1002 <td><p><span class="term"><em class="parameter"><code>custom_conf</code></em> :</span></p></td>
1003 <td>configuration for domain or NULL. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
1004 </td>
1005 </tr>
1006 <tr>
1007 <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
1008 <td>the flags</td>
1009 </tr>
1010 <tr>
1011 <td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
1012 <td>cancallation object. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
1013 </td>
1014 </tr>
1015 <tr>
1016 <td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
1017 <td>completion callback. <span class="annotation">[<acronym title="The callback is valid until first called."><span class="acronym">scope async</span></acronym>]</span>
1018 </td>
1019 </tr>
1020 <tr>
1021 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1022 <td>opaque data for callback. <span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym>]</span>
1023 </td>
1024 </tr>
1025 </tbody>
1026 </table></div>
1027 </div>
1028 <hr>
1029 <div class="refsect2">
1030 <a name="gvir-domain-save-to-file-finish"></a><h3>gvir_domain_save_to_file_finish ()</h3>
1031 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gvir_domain_save_to_file_finish (<em class="parameter"><code><a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a> *dom</code></em>,
1032 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *result</code></em>,
1033 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre>
1034 <p>
1035 Finishes the operation started by <a class="link" href="GVirDomain.html#gvir-domain-save-to-file-async" title="gvir_domain_save_to_file_async ()"><span class="type">gvir_domain_save_to_file_async</span></a>.
1036 </p>
1037 <div class="variablelist"><table border="0">
1038 <col align="left" valign="top">
1039 <tbody>
1040 <tr>
1041 <td><p><span class="term"><em class="parameter"><code>dom</code></em> :</span></p></td>
1042 <td>the domain to save</td>
1043 </tr>
1044 <tr>
1045 <td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
1046 <td>async method result. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
1047 </td>
1048 </tr>
1049 <tr>
1050 <td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td>
1051 <td>Place-holder for possible errors</td>
1052 </tr>
1053 <tr>
1054 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1055 <td>TRUE if domain was saved successfully, FALSE otherwise.</td>
1056 </tr>
1057 </tbody>
1058 </table></div>
1059 </div>
1060 <hr>
1061 <div class="refsect2">
6751062 <a name="gvir-domain-screenshot"></a><h3>gvir_domain_screenshot ()</h3>
6761063 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gvir_domain_screenshot (<em class="parameter"><code><a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a> *dom</code></em>,
6771064 <em class="parameter"><code><a class="link" href="GVirStream.html" title="GVirStream"><span class="type">GVirStream</span></a> *stream</code></em>,
6951082 </tr>
6961083 <tr>
6971084 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
698 <td>mime-type of the image format, or NULL upon error. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
1085 <td>a newly allocated string containing the
1086 mime-type of the image format, or NULL upon error. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
6991087 </td>
7001088 </tr>
7011089 </tbody>
7521140 </tr>
7531141 <tr>
7541142 <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
755 <td>the flags</td>
1143 <td>the <a class="link" href="GVirDomain.html#GVirDomainShutdownFlags" title="enum GVirDomainShutdownFlags"><code class="literal">GVirDomainShutdownFlags</code></a> flags</td>
7561144 </tr>
7571145 </tbody>
7581146 </table></div>
7761164 </tr>
7771165 </tbody>
7781166 </table></div>
1167 </div>
1168 <hr>
1169 <div class="refsect2">
1170 <a name="gvir-domain-start-async"></a><h3>gvir_domain_start_async ()</h3>
1171 <pre class="programlisting"><span class="returnvalue">void</span> gvir_domain_start_async (<em class="parameter"><code><a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a> *dom</code></em>,
1172 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> flags</code></em>,
1173 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
1174 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
1175 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
1176 <p>
1177 Asynchronous variant of <a class="link" href="GVirDomain.html#gvir-domain-start" title="gvir_domain_start ()"><span class="type">gvir_domain_start</span></a>.
1178 </p>
1179 <div class="variablelist"><table border="0">
1180 <col align="left" valign="top">
1181 <tbody>
1182 <tr>
1183 <td><p><span class="term"><em class="parameter"><code>dom</code></em> :</span></p></td>
1184 <td>the domain</td>
1185 </tr>
1186 <tr>
1187 <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
1188 <td>the flags</td>
1189 </tr>
1190 <tr>
1191 <td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td>
1192 <td>cancellation object. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
1193 </td>
1194 </tr>
1195 <tr>
1196 <td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
1197 <td>completion callback. <span class="annotation">[<acronym title="The callback is valid until first called."><span class="acronym">scope async</span></acronym>]</span>
1198 </td>
1199 </tr>
1200 <tr>
1201 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1202 <td>opaque data for callback. <span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym>]</span>
1203 </td>
1204 </tr>
1205 </tbody>
1206 </table></div>
1207 </div>
1208 <hr>
1209 <div class="refsect2">
1210 <a name="gvir-domain-start-finish"></a><h3>gvir_domain_start_finish ()</h3>
1211 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gvir_domain_start_finish (<em class="parameter"><code><a class="link" href="GVirDomain.html" title="GVirDomain"><span class="type">GVirDomain</span></a> *dom</code></em>,
1212 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *result</code></em>,
1213 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre>
7791214 </div>
7801215 <hr>
7811216 <div class="refsect2">
9797 </tr>
9898 <tr>
9999 <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
100 <td>the flags
101 Returns: (transfer full): the config</td>
100 <td>the flags</td>
101 </tr>
102 <tr>
103 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
104 <td>the config. The returned object should be
105 unreffed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when no longer needed. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
106 </td>
102107 </tr>
103108 </tbody>
104109 </table></div>
9595 </tr>
9696 <tr>
9797 <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
98 <td>the flags
99 Returns: (transfer full): the config</td>
98 <td>the flags</td>
99 </tr>
100 <tr>
101 <td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td>
102 <td>Place-holder for possible errors</td>
103 </tr>
104 <tr>
105 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
106 <td>the config. The returned object should be
107 unreffed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when no longer needed. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
108 </td>
100109 </tr>
101110 </tbody>
102111 </table></div>
100100 <a name="gvir-manager-find-connection-by-uri"></a><h3>gvir_manager_find_connection_by_uri ()</h3>
101101 <pre class="programlisting"><a class="link" href="GVirConnection.html" title="GVirConnection"><span class="returnvalue">GVirConnection</span></a> * gvir_manager_find_connection_by_uri (<em class="parameter"><code><a class="link" href="GVirManager.html" title="GVirManager"><span class="type">GVirManager</span></a> *man</code></em>,
102102 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *uri</code></em>);</pre>
103 <div class="variablelist"><table border="0">
104 <col align="left" valign="top">
105 <tbody><tr>
106 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
107 <td>the connection,or NULL. The
108 returned object should be unreffed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when no longer
109 needed. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
110 </td>
111 </tr></tbody>
112 </table></div>
103113 </div>
104114 <hr>
105115 <div class="refsect2">
106116 <a name="gvir-manager-get-connections"></a><h3>gvir_manager_get_connections ()</h3>
107117 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * gvir_manager_get_connections (<em class="parameter"><code><a class="link" href="GVirManager.html" title="GVirManager"><span class="type">GVirManager</span></a> *man</code></em>);</pre>
118 <div class="variablelist"><table border="0">
119 <col align="left" valign="top">
120 <tbody><tr>
121 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
122 <td>the connections.
123 The returned list should be freed with <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#g-list-free"><code class="function">g_list_free()</code></a>, after its elements
124 have been unreffed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> GVirConnection]</span>
125 </td>
126 </tr></tbody>
127 </table></div>
108128 </div>
109129 <hr>
110130 <div class="refsect2">
9999 </tr>
100100 <tr>
101101 <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
102 <td>the flags
103 Returns: (transfer full): the config</td>
102 <td>the flags</td>
103 </tr>
104 <tr>
105 <td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td>
106 <td>Place-holder for possible errors</td>
107 </tr>
108 <tr>
109 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
110 <td>the config. The returned object should be
111 unreffed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when no longer needed. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
112 </td>
104113 </tr>
105114 </tbody>
106115 </table></div>
9898 </tr>
9999 <tr>
100100 <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
101 <td>the flags
102 Returns: (transfer full): the config</td>
101 <td>the flags</td>
102 </tr>
103 <tr>
104 <td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td>
105 <td>Place-holder for possible errors</td>
106 </tr>
107 <tr>
108 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
109 <td>the config. The returned object should be
110 unreffed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when no longer needed. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
111 </td>
103112 </tr>
104113 </tbody>
105114 </table></div>
9595 </tr>
9696 <tr>
9797 <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
98 <td>the flags
99 Returns: (transfer full): the config</td>
98 <td>the flags</td>
99 </tr>
100 <tr>
101 <td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td>
102 <td>Place-holder for possible errors</td>
103 </tr>
104 <tr>
105 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
106 <td>the config. The returned object should be
107 unreffed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when no longer needed. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
108 </td>
100109 </tr>
101110 </tbody>
102111 </table></div>
9696 </tr>
9797 <tr>
9898 <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
99 <td>the flags
100 Returns: (transfer full): the config</td>
99 <td>the flags</td>
100 </tr>
101 <tr>
102 <td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td>
103 <td>Place-holder for possible errors</td>
104 </tr>
105 <tr>
106 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
107 <td>the config. The returned object should be
108 unreffed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when no longer needed. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
109 </td>
101110 </tr>
102111 </tbody>
103112 </table></div>
263263 </tr>
264264 <tr>
265265 <td><p><span class="term"><em class="parameter"><code>conf</code></em> :</span></p></td>
266 <td>the configuration for the new volume
267 Returns: (transfer full): the newly created volume</td>
266 <td>the configuration for the new volume</td>
267 </tr>
268 <tr>
269 <td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td>
270 <td>Place-holder for possible errors</td>
271 </tr>
272 <tr>
273 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
274 <td>the newly created volume. The returned object
275 should be unreffed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when no longer needed. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
276 </td>
268277 </tr>
269278 </tbody>
270279 </table></div>
284293 </tr>
285294 <tr>
286295 <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
287 <td>the flags
288 Returns: (transfer full): the config</td>
296 <td>the flags</td>
297 </tr>
298 <tr>
299 <td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td>
300 <td>Place-holder for possible errors</td>
301 </tr>
302 <tr>
303 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
304 <td>the config. The returned object should be
305 unreffed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when no longer needed. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
306 </td>
289307 </tr>
290308 </tbody>
291309 </table></div>
297315 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre>
298316 <div class="variablelist"><table border="0">
299317 <col align="left" valign="top">
300 <tbody><tr>
301 <td><p><span class="term"><em class="parameter"><code>pool</code></em> :</span></p></td>
302 <td>the storage_pool
303 Returns: (transfer full): the info</td>
304 </tr></tbody>
318 <tbody>
319 <tr>
320 <td><p><span class="term"><em class="parameter"><code>pool</code></em> :</span></p></td>
321 <td>the storage_pool</td>
322 </tr>
323 <tr>
324 <td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td>
325 <td>Place-holder for possible errors</td>
326 </tr>
327 <tr>
328 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
329 <td>the info. The returned object should be
330 unreffed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when no longer needed. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
331 </td>
332 </tr>
333 </tbody>
305334 </table></div>
306335 </div>
307336 <hr>
332361 </tr>
333362 <tr>
334363 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
335 <td>the <a class="link" href="GVirStorageVol.html" title="GVirStorageVol"><span class="type">GVirStorageVol</span></a>, or NULL. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
364 <td>the <a class="link" href="GVirStorageVol.html" title="GVirStorageVol"><span class="type">GVirStorageVol</span></a>, or NULL. The
365 returned object should be unreffed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when no longer
366 needed. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
336367 </td>
337368 </tr>
338369 </tbody>
351382 </tr>
352383 <tr>
353384 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
354 <td>List
355 of <a class="link" href="GVirStorageVol.html" title="GVirStorageVol"><span class="type">GVirStorageVol</span></a>. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> LibvirtGObject.StorageVol][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
385 <td>List of <a class="link" href="GVirStorageVol.html" title="GVirStorageVol"><span class="type">GVirStorageVol</span></a>. The returned list should be freed with
386 <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#g-list-free"><code class="function">g_list_free()</code></a>, after its elements have been unreffed with
387 <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> LibvirtGObject.StorageVol][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
356388 </td>
357389 </tr>
358390 </tbody>
4848 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GVirStorageVol.html#gvir-storage-vol-delete" title="gvir_storage_vol_delete ()">gvir_storage_vol_delete</a> (<em class="parameter"><code><a class="link" href="GVirStorageVol.html" title="GVirStorageVol"><span class="type">GVirStorageVol</span></a> *vol</code></em>,
4949 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> flags</code></em>,
5050 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
51 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GVirStorageVol.html#gvir-storage-vol-download" title="gvir_storage_vol_download ()">gvir_storage_vol_download</a> (<em class="parameter"><code><a class="link" href="GVirStorageVol.html" title="GVirStorageVol"><span class="type">GVirStorageVol</span></a> *vol</code></em>,
52 <em class="parameter"><code><a class="link" href="GVirStream.html" title="GVirStream"><span class="type">GVirStream</span></a> *stream</code></em>,
53 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint64"><span class="type">guint64</span></a> offset</code></em>,
54 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint64"><span class="type">guint64</span></a> length</code></em>,
55 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> flags</code></em>,
56 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
5157 <a href="/usr/share/gtk-doc/html/Libvirt-gconfig/GVirConfigStorageVol.html"><span class="returnvalue">GVirConfigStorageVol</span></a> * <a class="link" href="GVirStorageVol.html#gvir-storage-vol-get-config" title="gvir_storage_vol_get_config ()">gvir_storage_vol_get_config</a> (<em class="parameter"><code><a class="link" href="GVirStorageVol.html" title="GVirStorageVol"><span class="type">GVirStorageVol</span></a> *vol</code></em>,
5258 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> flags</code></em>,
5359 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
5864 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
5965 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GVirStorageVol.html#gvir-storage-vol-resize" title="gvir_storage_vol_resize ()">gvir_storage_vol_resize</a> (<em class="parameter"><code><a class="link" href="GVirStorageVol.html" title="GVirStorageVol"><span class="type">GVirStorageVol</span></a> *vol</code></em>,
6066 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint64"><span class="type">guint64</span></a> capacity</code></em>,
67 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> flags</code></em>,
68 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
69 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GVirStorageVol.html#gvir-storage-vol-upload" title="gvir_storage_vol_upload ()">gvir_storage_vol_upload</a> (<em class="parameter"><code><a class="link" href="GVirStorageVol.html" title="GVirStorageVol"><span class="type">GVirStorageVol</span></a> *vol</code></em>,
70 <em class="parameter"><code><a class="link" href="GVirStream.html" title="GVirStream"><span class="type">GVirStream</span></a> *stream</code></em>,
71 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint64"><span class="type">guint64</span></a> offset</code></em>,
72 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint64"><span class="type">guint64</span></a> length</code></em>,
6173 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> flags</code></em>,
6274 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
6375 </pre>
190202 </div>
191203 <hr>
192204 <div class="refsect2">
205 <a name="gvir-storage-vol-download"></a><h3>gvir_storage_vol_download ()</h3>
206 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gvir_storage_vol_download (<em class="parameter"><code><a class="link" href="GVirStorageVol.html" title="GVirStorageVol"><span class="type">GVirStorageVol</span></a> *vol</code></em>,
207 <em class="parameter"><code><a class="link" href="GVirStream.html" title="GVirStream"><span class="type">GVirStream</span></a> *stream</code></em>,
208 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint64"><span class="type">guint64</span></a> offset</code></em>,
209 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint64"><span class="type">guint64</span></a> length</code></em>,
210 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> flags</code></em>,
211 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre>
212 <div class="variablelist"><table border="0">
213 <col align="left" valign="top">
214 <tbody>
215 <tr>
216 <td><p><span class="term"><em class="parameter"><code>vol</code></em> :</span></p></td>
217 <td>the storage volume to download from</td>
218 </tr>
219 <tr>
220 <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
221 <td>stream to use as output</td>
222 </tr>
223 <tr>
224 <td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
225 <td>position in <em class="parameter"><code>vol</code></em> to start reading from</td>
226 </tr>
227 <tr>
228 <td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
229 <td>limit on amount of data to download, or 0 for downloading all data</td>
230 </tr>
231 <tr>
232 <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
233 <td>extra flags, not used yet, pass 0</td>
234 </tr>
235 <tr>
236 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
237 <td>
238 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><span class="type">TRUE</span></a> of success, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><span class="type">FALSE</span></a> otherwise</td>
239 </tr>
240 </tbody>
241 </table></div>
242 </div>
243 <hr>
244 <div class="refsect2">
193245 <a name="gvir-storage-vol-get-config"></a><h3>gvir_storage_vol_get_config ()</h3>
194246 <pre class="programlisting"><a href="/usr/share/gtk-doc/html/Libvirt-gconfig/GVirConfigStorageVol.html"><span class="returnvalue">GVirConfigStorageVol</span></a> * gvir_storage_vol_get_config (<em class="parameter"><code><a class="link" href="GVirStorageVol.html" title="GVirStorageVol"><span class="type">GVirStorageVol</span></a> *vol</code></em>,
195247 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> flags</code></em>,
203255 </tr>
204256 <tr>
205257 <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
206 <td>the flags
207 Returns: (transfer full): the config</td>
258 <td>the flags</td>
259 </tr>
260 <tr>
261 <td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td>
262 <td>Place-holder for possible errors</td>
263 </tr>
264 <tr>
265 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
266 <td>the config. The returned object should be
267 unreffed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when no longer needed. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
268 </td>
208269 </tr>
209270 </tbody>
210271 </table></div>
216277 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre>
217278 <div class="variablelist"><table border="0">
218279 <col align="left" valign="top">
219 <tbody><tr>
220 <td><p><span class="term"><em class="parameter"><code>vol</code></em> :</span></p></td>
221 <td>the storage_vol
222 Returns: (transfer full): the info</td>
223 </tr></tbody>
280 <tbody>
281 <tr>
282 <td><p><span class="term"><em class="parameter"><code>vol</code></em> :</span></p></td>
283 <td>the storage_vol</td>
284 </tr>
285 <tr>
286 <td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td>
287 <td>Place-holder for possible errors</td>
288 </tr>
289 <tr>
290 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
291 <td>the info. The returned object should be
292 unreffed with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> when no longer needed. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
293 </td>
294 </tr>
295 </tbody>
224296 </table></div>
225297 </div>
226298 <hr>
272344 </tbody>
273345 </table></div>
274346 </div>
347 <hr>
348 <div class="refsect2">
349 <a name="gvir-storage-vol-upload"></a><h3>gvir_storage_vol_upload ()</h3>
350 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gvir_storage_vol_upload (<em class="parameter"><code><a class="link" href="GVirStorageVol.html" title="GVirStorageVol"><span class="type">GVirStorageVol</span></a> *vol</code></em>,
351 <em class="parameter"><code><a class="link" href="GVirStream.html" title="GVirStream"><span class="type">GVirStream</span></a> *stream</code></em>,
352 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint64"><span class="type">guint64</span></a> offset</code></em>,
353 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint64"><span class="type">guint64</span></a> length</code></em>,
354 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> flags</code></em>,
355 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre>
356 <div class="variablelist"><table border="0">
357 <col align="left" valign="top">
358 <tbody>
359 <tr>
360 <td><p><span class="term"><em class="parameter"><code>vol</code></em> :</span></p></td>
361 <td>the storage volume to upload</td>
362 </tr>
363 <tr>
364 <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
365 <td>stream to use as input</td>
366 </tr>
367 <tr>
368 <td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
369 <td>position in <em class="parameter"><code>vol</code></em> to start to write to</td>
370 </tr>
371 <tr>
372 <td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
373 <td>limit on amount of data to upload, or 0 for uploading all data</td>
374 </tr>
375 <tr>
376 <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
377 <td>the flags, not set yet, pass 0</td>
378 </tr>
379 <tr>
380 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
381 <td>
382 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><span class="type">TRUE</span></a> of success, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><span class="type">FALSE</span></a> otherwise</td>
383 </tr>
384 </tbody>
385 </table></div>
386 </div>
275387 </div>
276388 <div class="refsect1">
277389 <a name="GVirStorageVol.property-details"></a><h2>Property Details</h2>
163163 </tr>
164164 <tr>
165165 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
166 <td>user data passed to the function
167 Returns: the number of bytes filled, 0 upon end
166 <td>user data passed to the function</td>
167 </tr>
168 <tr>
169 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
170 <td>the number of bytes filled, 0 upon end
168171 of file, or -1 upon error</td>
169172 </tr>
170173 </tbody>
196199 </tr>
197200 <tr>
198201 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
199 <td>user data passed to the function
200 Returns: the number of bytes filled, 0 upon end
202 <td>user data passed to the function</td>
203 </tr>
204 <tr>
205 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
206 <td>the number of bytes filled, 0 upon end
201207 of file, or -1 upon error</td>
202208 </tr>
203209 </tbody>
210216 <em class="parameter"><code><a class="link" href="GVirStream.html#GVirStreamIOCondition" title="enum GVirStreamIOCondition"><span class="type">GVirStreamIOCondition</span></a> cond</code></em>,
211217 <em class="parameter"><code><a class="link" href="GVirStream.html#GVirStreamIOFunc" title="GVirStreamIOFunc ()"><span class="type">GVirStreamIOFunc</span></a> func</code></em>,
212218 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> opaque</code></em>);</pre>
219 <p>
220 Adds a watch for <em class="parameter"><code>stream</code></em> to the mainloop
221 </p>
222 <div class="variablelist"><table border="0">
223 <col align="left" valign="top">
224 <tbody>
225 <tr>
226 <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
227 <td>the stream</td>
228 </tr>
229 <tr>
230 <td><p><span class="term"><em class="parameter"><code>cond</code></em> :</span></p></td>
231 <td>the conditions to watch for (bitfield of <a class="link" href="GVirStream.html#GVirStreamIOCondition" title="enum GVirStreamIOCondition"><span class="type">GVirStreamIOCondition</span></a>)</td>
232 </tr>
233 <tr>
234 <td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td>
235 <td>the function to call when the condition is satisfied. <span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym> opaque]</span>
236 </td>
237 </tr>
238 <tr>
239 <td><p><span class="term"><em class="parameter"><code>opaque</code></em> :</span></p></td>
240 <td>user data to pass to <em class="parameter"><code>func</code></em>. <span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym>]</span>
241 </td>
242 </tr>
243 <tr>
244 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
245 <td>the event source id</td>
246 </tr>
247 </tbody>
248 </table></div>
213249 </div>
214250 <hr>
215251 <div class="refsect2">
346382 </tr>
347383 <tr>
348384 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
349 <td>data to be passed to <em class="parameter"><code>callback</code></em>
350 Returns: the number of bytes consumed or -1 upon error. <span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym>]</span>
351 </td>
385 <td>data to be passed to <em class="parameter"><code>callback</code></em>. <span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym>]</span>
386 </td>
387 </tr>
388 <tr>
389 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
390 <td>
391 <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> for error reporting, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.</td>
392 </tr>
393 <tr>
394 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
395 <td>the number of bytes consumed or -1 upon error</td>
352396 </tr>
353397 </tbody>
354398 </table></div>
439483 </tr>
440484 <tr>
441485 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
442 <td>data to be passed to <em class="parameter"><code>callback</code></em>
443 Returns: the number of bytes consumed or -1 upon error. <span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym>]</span>
444 </td>
486 <td>data to be passed to <em class="parameter"><code>callback</code></em>. <span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym>]</span>
487 </td>
488 </tr>
489 <tr>
490 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
491 <td>
492 <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> for error reporting, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore.</td>
493 </tr>
494 <tr>
495 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
496 <td>the number of bytes consumed or -1 upon error</td>
445497 </tr>
446498 </tbody>
447499 </table></div>
3838 <keyword type="function" name="gvir_connection_find_network_by_name ()" link="GVirConnection.html#gvir-connection-find-network-by-name"/>
3939 <keyword type="function" name="gvir_connection_find_network_filter_by_name ()" link="GVirConnection.html#gvir-connection-find-network-filter-by-name"/>
4040 <keyword type="function" name="gvir_connection_find_storage_pool_by_name ()" link="GVirConnection.html#gvir-connection-find-storage-pool-by-name"/>
41 <keyword type="function" name="gvir_connection_get_capabilities ()" link="GVirConnection.html#gvir-connection-get-capabilities"/>
42 <keyword type="function" name="gvir_connection_get_capabilities_async ()" link="GVirConnection.html#gvir-connection-get-capabilities-async"/>
43 <keyword type="function" name="gvir_connection_get_capabilities_finish ()" link="GVirConnection.html#gvir-connection-get-capabilities-finish"/>
4144 <keyword type="function" name="gvir_connection_get_domain ()" link="GVirConnection.html#gvir-connection-get-domain"/>
4245 <keyword type="function" name="gvir_connection_get_domains ()" link="GVirConnection.html#gvir-connection-get-domains"/>
4346 <keyword type="function" name="gvir_connection_get_interface ()" link="GVirConnection.html#gvir-connection-get-interface"/>
6063 <keyword type="function" name="gvir_connection_open ()" link="GVirConnection.html#gvir-connection-open"/>
6164 <keyword type="function" name="gvir_connection_open_async ()" link="GVirConnection.html#gvir-connection-open-async"/>
6265 <keyword type="function" name="gvir_connection_open_finish ()" link="GVirConnection.html#gvir-connection-open-finish"/>
66 <keyword type="function" name="gvir_connection_restore_domain_from_file ()" link="GVirConnection.html#gvir-connection-restore-domain-from-file"/>
67 <keyword type="function" name="gvir_connection_restore_domain_from_file_async ()" link="GVirConnection.html#gvir-connection-restore-domain-from-file-async"/>
68 <keyword type="function" name="gvir_connection_restore_domain_from_file_finish ()" link="GVirConnection.html#gvir-connection-restore-domain-from-file-finish"/>
6369 <keyword type="function" name="gvir_connection_start_domain ()" link="GVirConnection.html#gvir-connection-start-domain"/>
6470 <keyword type="property" name="The &quot;handle&quot; property" link="GVirConnection.html#GVirConnection--handle"/>
6571 <keyword type="property" name="The &quot;uri&quot; property" link="GVirConnection.html#GVirConnection--uri"/>
7177 <keyword type="struct" name="struct GVirDomainClass" link="GVirDomain.html#GVirDomainClass"/>
7278 <keyword type="enum" name="enum GVirDomainDeleteFlags" link="GVirDomain.html#GVirDomainDeleteFlags"/>
7379 <keyword type="struct" name="struct GVirDomainInfo" link="GVirDomain.html#GVirDomainInfo-struct"/>
80 <keyword type="enum" name="enum GVirDomainShutdownFlags" link="GVirDomain.html#GVirDomainShutdownFlags"/>
81 <keyword type="enum" name="enum GVirDomainSnapshotCreateFlags" link="GVirDomain.html#GVirDomainSnapshotCreateFlags"/>
7482 <keyword type="enum" name="enum GVirDomainStartFlags" link="GVirDomain.html#GVirDomainStartFlags"/>
7583 <keyword type="enum" name="enum GVirDomainState" link="GVirDomain.html#GVirDomainState"/>
84 <keyword type="enum" name="enum GVirDomainXMLFlags" link="GVirDomain.html#GVirDomainXMLFlags"/>
85 <keyword type="function" name="gvir_domain_create_snapshot ()" link="GVirDomain.html#gvir-domain-create-snapshot"/>
7686 <keyword type="function" name="gvir_domain_delete ()" link="GVirDomain.html#gvir-domain-delete"/>
7787 <keyword type="function" name="gvir_domain_get_config ()" link="GVirDomain.html#gvir-domain-get-config"/>
7888 <keyword type="function" name="gvir_domain_get_devices ()" link="GVirDomain.html#gvir-domain-get-devices"/>
8898 <keyword type="function" name="gvir_domain_open_graphics ()" link="GVirDomain.html#gvir-domain-open-graphics"/>
8999 <keyword type="function" name="gvir_domain_reboot ()" link="GVirDomain.html#gvir-domain-reboot"/>
90100 <keyword type="function" name="gvir_domain_resume ()" link="GVirDomain.html#gvir-domain-resume"/>
101 <keyword type="function" name="gvir_domain_resume_async ()" link="GVirDomain.html#gvir-domain-resume-async"/>
102 <keyword type="function" name="gvir_domain_resume_finish ()" link="GVirDomain.html#gvir-domain-resume-finish"/>
91103 <keyword type="function" name="gvir_domain_save ()" link="GVirDomain.html#gvir-domain-save"/>
92104 <keyword type="function" name="gvir_domain_save_async ()" link="GVirDomain.html#gvir-domain-save-async"/>
93105 <keyword type="function" name="gvir_domain_save_finish ()" link="GVirDomain.html#gvir-domain-save-finish"/>
106 <keyword type="function" name="gvir_domain_save_to_file ()" link="GVirDomain.html#gvir-domain-save-to-file"/>
107 <keyword type="function" name="gvir_domain_save_to_file_async ()" link="GVirDomain.html#gvir-domain-save-to-file-async"/>
108 <keyword type="function" name="gvir_domain_save_to_file_finish ()" link="GVirDomain.html#gvir-domain-save-to-file-finish"/>
94109 <keyword type="function" name="gvir_domain_screenshot ()" link="GVirDomain.html#gvir-domain-screenshot"/>
95110 <keyword type="function" name="gvir_domain_set_config ()" link="GVirDomain.html#gvir-domain-set-config"/>
96111 <keyword type="function" name="gvir_domain_shutdown ()" link="GVirDomain.html#gvir-domain-shutdown"/>
97112 <keyword type="function" name="gvir_domain_start ()" link="GVirDomain.html#gvir-domain-start"/>
113 <keyword type="function" name="gvir_domain_start_async ()" link="GVirDomain.html#gvir-domain-start-async"/>
114 <keyword type="function" name="gvir_domain_start_finish ()" link="GVirDomain.html#gvir-domain-start-finish"/>
98115 <keyword type="function" name="gvir_domain_stop ()" link="GVirDomain.html#gvir-domain-stop"/>
99116 <keyword type="function" name="gvir_domain_suspend ()" link="GVirDomain.html#gvir-domain-suspend"/>
100117 <keyword type="property" name="The &quot;handle&quot; property" link="GVirDomain.html#GVirDomain--handle"/>
173190 <keyword type="enum" name="enum GVirStorageVolResizeFlags" link="GVirStorageVol.html#GVirStorageVolResizeFlags"/>
174191 <keyword type="enum" name="enum GVirStorageVolType" link="GVirStorageVol.html#GVirStorageVolType"/>
175192 <keyword type="function" name="gvir_storage_vol_delete ()" link="GVirStorageVol.html#gvir-storage-vol-delete"/>
193 <keyword type="function" name="gvir_storage_vol_download ()" link="GVirStorageVol.html#gvir-storage-vol-download"/>
176194 <keyword type="function" name="gvir_storage_vol_get_config ()" link="GVirStorageVol.html#gvir-storage-vol-get-config"/>
177195 <keyword type="function" name="gvir_storage_vol_get_info ()" link="GVirStorageVol.html#gvir-storage-vol-get-info"/>
178196 <keyword type="function" name="gvir_storage_vol_get_name ()" link="GVirStorageVol.html#gvir-storage-vol-get-name"/>
179197 <keyword type="function" name="gvir_storage_vol_get_path ()" link="GVirStorageVol.html#gvir-storage-vol-get-path"/>
180198 <keyword type="function" name="gvir_storage_vol_resize ()" link="GVirStorageVol.html#gvir-storage-vol-resize"/>
199 <keyword type="function" name="gvir_storage_vol_upload ()" link="GVirStorageVol.html#gvir-storage-vol-upload"/>
181200 <keyword type="property" name="The &quot;handle&quot; property" link="GVirStorageVol.html#GVirStorageVol--handle"/>
182201 <keyword type="property" name="The &quot;pool&quot; property" link="GVirStorageVol.html#GVirStorageVol--pool"/>
183202 <keyword type="struct" name="struct GVirStream" link="GVirStream.html#GVirStream-struct"/>
196215 <keyword type="constant" name="GVIR_DOMAIN_DELETE_NONE" link="GVirDomain.html#GVIR-DOMAIN-DELETE-NONE:CAPS"/>
197216 <keyword type="constant" name="GVIR_DOMAIN_DELETE_SAVED_STATE" link="GVirDomain.html#GVIR-DOMAIN-DELETE-SAVED-STATE:CAPS"/>
198217 <keyword type="constant" name="GVIR_DOMAIN_DELETE_SNAPSHOTS_METADATA" link="GVirDomain.html#GVIR-DOMAIN-DELETE-SNAPSHOTS-METADATA:CAPS"/>
218 <keyword type="constant" name="GVIR_DOMAIN_SHUTDOWN_NONE" link="GVirDomain.html#GVIR-DOMAIN-SHUTDOWN-NONE:CAPS"/>
219 <keyword type="constant" name="GVIR_DOMAIN_SHUTDOWN_ACPI_POWER_BTN" link="GVirDomain.html#GVIR-DOMAIN-SHUTDOWN-ACPI-POWER-BTN:CAPS"/>
220 <keyword type="constant" name="GVIR_DOMAIN_SHUTDOWN_GUEST_AGENT" link="GVirDomain.html#GVIR-DOMAIN-SHUTDOWN-GUEST-AGENT:CAPS"/>
221 <keyword type="constant" name="GVIR_DOMAIN_SNAPSHOT_NONE" link="GVirDomain.html#GVIR-DOMAIN-SNAPSHOT-NONE:CAPS"/>
222 <keyword type="constant" name="GVIR_DOMAIN_SNAPSHOT_REDEFINE" link="GVirDomain.html#GVIR-DOMAIN-SNAPSHOT-REDEFINE:CAPS"/>
223 <keyword type="constant" name="GVIR_DOMAIN_SNAPSHOT_CURRENT" link="GVirDomain.html#GVIR-DOMAIN-SNAPSHOT-CURRENT:CAPS"/>
224 <keyword type="constant" name="GVIR_DOMAIN_SNAPSHOT_NO_METADATA" link="GVirDomain.html#GVIR-DOMAIN-SNAPSHOT-NO-METADATA:CAPS"/>
225 <keyword type="constant" name="GVIR_DOMAIN_SNAPSHOT_HALT" link="GVirDomain.html#GVIR-DOMAIN-SNAPSHOT-HALT:CAPS"/>
226 <keyword type="constant" name="GVIR_DOMAIN_SNAPSHOT_DISK_ONLY" link="GVirDomain.html#GVIR-DOMAIN-SNAPSHOT-DISK-ONLY:CAPS"/>
227 <keyword type="constant" name="GVIR_DOMAIN_SNAPSHOT_REUSE_EXT" link="GVirDomain.html#GVIR-DOMAIN-SNAPSHOT-REUSE-EXT:CAPS"/>
228 <keyword type="constant" name="GVIR_DOMAIN_SNAPSHOT_QUIESCE" link="GVirDomain.html#GVIR-DOMAIN-SNAPSHOT-QUIESCE:CAPS"/>
229 <keyword type="constant" name="GVIR_DOMAIN_SNAPSHOT_ATOMIC" link="GVirDomain.html#GVIR-DOMAIN-SNAPSHOT-ATOMIC:CAPS"/>
230 <keyword type="constant" name="GVIR_DOMAIN_XML_NONE" link="GVirDomain.html#GVIR-DOMAIN-XML-NONE:CAPS"/>
231 <keyword type="constant" name="GVIR_DOMAIN_XML_SECURE" link="GVirDomain.html#GVIR-DOMAIN-XML-SECURE:CAPS"/>
232 <keyword type="constant" name="GVIR_DOMAIN_XML_INACTIVE" link="GVirDomain.html#GVIR-DOMAIN-XML-INACTIVE:CAPS"/>
233 <keyword type="constant" name="GVIR_DOMAIN_XML_UPDATE_CPU" link="GVirDomain.html#GVIR-DOMAIN-XML-UPDATE-CPU:CAPS"/>
199234 <keyword type="constant" name="GVIR_STORAGE_VOL_RESIZE_NONE" link="GVirStorageVol.html#GVIR-STORAGE-VOL-RESIZE-NONE:CAPS"/>
200235 <keyword type="constant" name="GVIR_STORAGE_VOL_RESIZE_ALLOCATE" link="GVirStorageVol.html#GVIR-STORAGE-VOL-RESIZE-ALLOCATE:CAPS"/>
201236 <keyword type="constant" name="GVIR_STORAGE_VOL_RESIZE_DELTA" link="GVirStorageVol.html#GVIR-STORAGE-VOL-RESIZE-DELTA:CAPS"/>
188188 </dt>
189189 <dd></dd>
190190 <dt>
191 <a class="link" href="GVirDomain.html#GVirDomainShutdownFlags" title="enum GVirDomainShutdownFlags">GVirDomainShutdownFlags</a>, enum in <a class="link" href="GVirDomain.html" title="GVirDomain">GVirDomain</a>
192 </dt>
193 <dd></dd>
194 <dt>
191195 <a class="link" href="GVirDomainSnapshot.html#GVirDomainSnapshot-struct" title="struct GVirDomainSnapshot">GVirDomainSnapshot</a>, struct in <a class="link" href="GVirDomainSnapshot.html" title="GVirDomainSnapshot">GVirDomainSnapshot</a>
192196 </dt>
193197 <dd></dd>
200204 </dt>
201205 <dd></dd>
202206 <dt>
207 <a class="link" href="GVirDomain.html#GVirDomainSnapshotCreateFlags" title="enum GVirDomainSnapshotCreateFlags">GVirDomainSnapshotCreateFlags</a>, enum in <a class="link" href="GVirDomain.html" title="GVirDomain">GVirDomain</a>
208 </dt>
209 <dd></dd>
210 <dt>
203211 <a class="link" href="GVirDomain.html#GVirDomainStartFlags" title="enum GVirDomainStartFlags">GVirDomainStartFlags</a>, enum in <a class="link" href="GVirDomain.html" title="GVirDomain">GVirDomain</a>
204212 </dt>
205213 <dd></dd>
208216 </dt>
209217 <dd></dd>
210218 <dt>
219 <a class="link" href="GVirDomain.html#GVirDomainXMLFlags" title="enum GVirDomainXMLFlags">GVirDomainXMLFlags</a>, enum in <a class="link" href="GVirDomain.html" title="GVirDomain">GVirDomain</a>
220 </dt>
221 <dd></dd>
222 <dt>
211223 GVirInputStreamClass, struct in GVirInputStream
212224 </dt>
213225 <dd></dd>
432444 </dt>
433445 <dd></dd>
434446 <dt>
447 <a class="link" href="GVirConnection.html#gvir-connection-get-capabilities" title="gvir_connection_get_capabilities ()">gvir_connection_get_capabilities</a>, function in <a class="link" href="GVirConnection.html" title="GVirConnection">GVirConnection</a>
448 </dt>
449 <dd></dd>
450 <dt>
451 <a class="link" href="GVirConnection.html#gvir-connection-get-capabilities-async" title="gvir_connection_get_capabilities_async ()">gvir_connection_get_capabilities_async</a>, function in <a class="link" href="GVirConnection.html" title="GVirConnection">GVirConnection</a>
452 </dt>
453 <dd></dd>
454 <dt>
455 <a class="link" href="GVirConnection.html#gvir-connection-get-capabilities-finish" title="gvir_connection_get_capabilities_finish ()">gvir_connection_get_capabilities_finish</a>, function in <a class="link" href="GVirConnection.html" title="GVirConnection">GVirConnection</a>
456 </dt>
457 <dd></dd>
458 <dt>
435459 <a class="link" href="GVirConnection.html#gvir-connection-get-domain" title="gvir_connection_get_domain ()">gvir_connection_get_domain</a>, function in <a class="link" href="GVirConnection.html" title="GVirConnection">GVirConnection</a>
436460 </dt>
437461 <dd></dd>
520544 </dt>
521545 <dd></dd>
522546 <dt>
547 <a class="link" href="GVirConnection.html#gvir-connection-restore-domain-from-file" title="gvir_connection_restore_domain_from_file ()">gvir_connection_restore_domain_from_file</a>, function in <a class="link" href="GVirConnection.html" title="GVirConnection">GVirConnection</a>
548 </dt>
549 <dd></dd>
550 <dt>
551 <a class="link" href="GVirConnection.html#gvir-connection-restore-domain-from-file-async" title="gvir_connection_restore_domain_from_file_async ()">gvir_connection_restore_domain_from_file_async</a>, function in <a class="link" href="GVirConnection.html" title="GVirConnection">GVirConnection</a>
552 </dt>
553 <dd></dd>
554 <dt>
555 <a class="link" href="GVirConnection.html#gvir-connection-restore-domain-from-file-finish" title="gvir_connection_restore_domain_from_file_finish ()">gvir_connection_restore_domain_from_file_finish</a>, function in <a class="link" href="GVirConnection.html" title="GVirConnection">GVirConnection</a>
556 </dt>
557 <dd></dd>
558 <dt>
523559 <a class="link" href="GVirConnection.html#gvir-connection-start-domain" title="gvir_connection_start_domain ()">gvir_connection_start_domain</a>, function in <a class="link" href="GVirConnection.html" title="GVirConnection">GVirConnection</a>
524560 </dt>
525561 <dd></dd>
526562 <dt>
563 <a class="link" href="GVirDomain.html#gvir-domain-create-snapshot" title="gvir_domain_create_snapshot ()">gvir_domain_create_snapshot</a>, function in <a class="link" href="GVirDomain.html" title="GVirDomain">GVirDomain</a>
564 </dt>
565 <dd></dd>
566 <dt>
527567 <a class="link" href="GVirDomain.html#gvir-domain-delete" title="gvir_domain_delete ()">gvir_domain_delete</a>, function in <a class="link" href="GVirDomain.html" title="GVirDomain">GVirDomain</a>
528568 </dt>
529569 <dd></dd>
608648 </dt>
609649 <dd></dd>
610650 <dt>
651 <a class="link" href="GVirDomain.html#gvir-domain-resume-async" title="gvir_domain_resume_async ()">gvir_domain_resume_async</a>, function in <a class="link" href="GVirDomain.html" title="GVirDomain">GVirDomain</a>
652 </dt>
653 <dd></dd>
654 <dt>
655 <a class="link" href="GVirDomain.html#gvir-domain-resume-finish" title="gvir_domain_resume_finish ()">gvir_domain_resume_finish</a>, function in <a class="link" href="GVirDomain.html" title="GVirDomain">GVirDomain</a>
656 </dt>
657 <dd></dd>
658 <dt>
611659 <a class="link" href="GVirDomain.html#gvir-domain-save" title="gvir_domain_save ()">gvir_domain_save</a>, function in <a class="link" href="GVirDomain.html" title="GVirDomain">GVirDomain</a>
612660 </dt>
613661 <dd></dd>
620668 </dt>
621669 <dd></dd>
622670 <dt>
671 <a class="link" href="GVirDomain.html#gvir-domain-save-to-file" title="gvir_domain_save_to_file ()">gvir_domain_save_to_file</a>, function in <a class="link" href="GVirDomain.html" title="GVirDomain">GVirDomain</a>
672 </dt>
673 <dd></dd>
674 <dt>
675 <a class="link" href="GVirDomain.html#gvir-domain-save-to-file-async" title="gvir_domain_save_to_file_async ()">gvir_domain_save_to_file_async</a>, function in <a class="link" href="GVirDomain.html" title="GVirDomain">GVirDomain</a>
676 </dt>
677 <dd></dd>
678 <dt>
679 <a class="link" href="GVirDomain.html#gvir-domain-save-to-file-finish" title="gvir_domain_save_to_file_finish ()">gvir_domain_save_to_file_finish</a>, function in <a class="link" href="GVirDomain.html" title="GVirDomain">GVirDomain</a>
680 </dt>
681 <dd></dd>
682 <dt>
623683 <a class="link" href="GVirDomain.html#gvir-domain-screenshot" title="gvir_domain_screenshot ()">gvir_domain_screenshot</a>, function in <a class="link" href="GVirDomain.html" title="GVirDomain">GVirDomain</a>
624684 </dt>
625685 <dd></dd>
644704 </dt>
645705 <dd></dd>
646706 <dt>
707 <a class="link" href="GVirDomain.html#gvir-domain-start-async" title="gvir_domain_start_async ()">gvir_domain_start_async</a>, function in <a class="link" href="GVirDomain.html" title="GVirDomain">GVirDomain</a>
708 </dt>
709 <dd></dd>
710 <dt>
711 <a class="link" href="GVirDomain.html#gvir-domain-start-finish" title="gvir_domain_start_finish ()">gvir_domain_start_finish</a>, function in <a class="link" href="GVirDomain.html" title="GVirDomain">GVirDomain</a>
712 </dt>
713 <dd></dd>
714 <dt>
647715 <a class="link" href="GVirDomain.html#gvir-domain-stop" title="gvir_domain_stop ()">gvir_domain_stop</a>, function in <a class="link" href="GVirDomain.html" title="GVirDomain">GVirDomain</a>
648716 </dt>
649717 <dd></dd>
800868 </dt>
801869 <dd></dd>
802870 <dt>
871 <a class="link" href="GVirStorageVol.html#gvir-storage-vol-download" title="gvir_storage_vol_download ()">gvir_storage_vol_download</a>, function in <a class="link" href="GVirStorageVol.html" title="GVirStorageVol">GVirStorageVol</a>
872 </dt>
873 <dd></dd>
874 <dt>
803875 <a class="link" href="GVirStorageVol.html#gvir-storage-vol-get-config" title="gvir_storage_vol_get_config ()">gvir_storage_vol_get_config</a>, function in <a class="link" href="GVirStorageVol.html" title="GVirStorageVol">GVirStorageVol</a>
804876 </dt>
805877 <dd></dd>
817889 <dd></dd>
818890 <dt>
819891 <a class="link" href="GVirStorageVol.html#gvir-storage-vol-resize" title="gvir_storage_vol_resize ()">gvir_storage_vol_resize</a>, function in <a class="link" href="GVirStorageVol.html" title="GVirStorageVol">GVirStorageVol</a>
892 </dt>
893 <dd></dd>
894 <dt>
895 <a class="link" href="GVirStorageVol.html#gvir-storage-vol-upload" title="gvir_storage_vol_upload ()">gvir_storage_vol_upload</a>, function in <a class="link" href="GVirStorageVol.html" title="GVirStorageVol">GVirStorageVol</a>
820896 </dt>
821897 <dd></dd>
822898 <dt>
2020 </tr></table>
2121 <div class="chapter">
2222 <div class="titlepage"><div><div><h2 class="title">
23 <a name="id597469"></a>Libvirt-gobject</h2></div></div></div>
23 <a name="id398301"></a>Libvirt-gobject</h2></div></div></div>
2424 <div class="toc"><dl>
2525 <dt>
2626 <span class="refentrytitle"><a href="GVirConnection.html">GVirConnection</a></span><span class="refpurpose"></span>
2323 <ANCHOR id="gvir-connection-find-network-by-name" href="Libvirt-gobject/GVirConnection.html#gvir-connection-find-network-by-name">
2424 <ANCHOR id="gvir-connection-find-network-filter-by-name" href="Libvirt-gobject/GVirConnection.html#gvir-connection-find-network-filter-by-name">
2525 <ANCHOR id="gvir-connection-find-storage-pool-by-name" href="Libvirt-gobject/GVirConnection.html#gvir-connection-find-storage-pool-by-name">
26 <ANCHOR id="gvir-connection-get-capabilities" href="Libvirt-gobject/GVirConnection.html#gvir-connection-get-capabilities">
27 <ANCHOR id="gvir-connection-get-capabilities-async" href="Libvirt-gobject/GVirConnection.html#gvir-connection-get-capabilities-async">
28 <ANCHOR id="gvir-connection-get-capabilities-finish" href="Libvirt-gobject/GVirConnection.html#gvir-connection-get-capabilities-finish">
2629 <ANCHOR id="gvir-connection-get-domain" href="Libvirt-gobject/GVirConnection.html#gvir-connection-get-domain">
2730 <ANCHOR id="gvir-connection-get-domains" href="Libvirt-gobject/GVirConnection.html#gvir-connection-get-domains">
2831 <ANCHOR id="gvir-connection-get-interface" href="Libvirt-gobject/GVirConnection.html#gvir-connection-get-interface">
4548 <ANCHOR id="gvir-connection-open" href="Libvirt-gobject/GVirConnection.html#gvir-connection-open">
4649 <ANCHOR id="gvir-connection-open-async" href="Libvirt-gobject/GVirConnection.html#gvir-connection-open-async">
4750 <ANCHOR id="gvir-connection-open-finish" href="Libvirt-gobject/GVirConnection.html#gvir-connection-open-finish">
51 <ANCHOR id="gvir-connection-restore-domain-from-file" href="Libvirt-gobject/GVirConnection.html#gvir-connection-restore-domain-from-file">
52 <ANCHOR id="gvir-connection-restore-domain-from-file-async" href="Libvirt-gobject/GVirConnection.html#gvir-connection-restore-domain-from-file-async">
53 <ANCHOR id="gvir-connection-restore-domain-from-file-finish" href="Libvirt-gobject/GVirConnection.html#gvir-connection-restore-domain-from-file-finish">
4854 <ANCHOR id="gvir-connection-start-domain" href="Libvirt-gobject/GVirConnection.html#gvir-connection-start-domain">
4955 <ANCHOR id="GVirConnection.property-details" href="Libvirt-gobject/GVirConnection.html#GVirConnection.property-details">
5056 <ANCHOR id="GVirConnection--handle" href="Libvirt-gobject/GVirConnection.html#GVirConnection--handle">
6975 <ANCHOR id="GVIR-DOMAIN-DELETE-SAVED-STATE:CAPS" href="Libvirt-gobject/GVirDomain.html#GVIR-DOMAIN-DELETE-SAVED-STATE:CAPS">
7076 <ANCHOR id="GVIR-DOMAIN-DELETE-SNAPSHOTS-METADATA:CAPS" href="Libvirt-gobject/GVirDomain.html#GVIR-DOMAIN-DELETE-SNAPSHOTS-METADATA:CAPS">
7177 <ANCHOR id="GVirDomainInfo-struct" href="Libvirt-gobject/GVirDomain.html#GVirDomainInfo-struct">
78 <ANCHOR id="GVirDomainShutdownFlags" href="Libvirt-gobject/GVirDomain.html#GVirDomainShutdownFlags">
79 <ANCHOR id="GVIR-DOMAIN-SHUTDOWN-NONE:CAPS" href="Libvirt-gobject/GVirDomain.html#GVIR-DOMAIN-SHUTDOWN-NONE:CAPS">
80 <ANCHOR id="GVIR-DOMAIN-SHUTDOWN-ACPI-POWER-BTN:CAPS" href="Libvirt-gobject/GVirDomain.html#GVIR-DOMAIN-SHUTDOWN-ACPI-POWER-BTN:CAPS">
81 <ANCHOR id="GVIR-DOMAIN-SHUTDOWN-GUEST-AGENT:CAPS" href="Libvirt-gobject/GVirDomain.html#GVIR-DOMAIN-SHUTDOWN-GUEST-AGENT:CAPS">
82 <ANCHOR id="GVirDomainSnapshotCreateFlags" href="Libvirt-gobject/GVirDomain.html#GVirDomainSnapshotCreateFlags">
83 <ANCHOR id="GVIR-DOMAIN-SNAPSHOT-NONE:CAPS" href="Libvirt-gobject/GVirDomain.html#GVIR-DOMAIN-SNAPSHOT-NONE:CAPS">
84 <ANCHOR id="GVIR-DOMAIN-SNAPSHOT-REDEFINE:CAPS" href="Libvirt-gobject/GVirDomain.html#GVIR-DOMAIN-SNAPSHOT-REDEFINE:CAPS">
85 <ANCHOR id="GVIR-DOMAIN-SNAPSHOT-CURRENT:CAPS" href="Libvirt-gobject/GVirDomain.html#GVIR-DOMAIN-SNAPSHOT-CURRENT:CAPS">
86 <ANCHOR id="GVIR-DOMAIN-SNAPSHOT-NO-METADATA:CAPS" href="Libvirt-gobject/GVirDomain.html#GVIR-DOMAIN-SNAPSHOT-NO-METADATA:CAPS">
87 <ANCHOR id="GVIR-DOMAIN-SNAPSHOT-HALT:CAPS" href="Libvirt-gobject/GVirDomain.html#GVIR-DOMAIN-SNAPSHOT-HALT:CAPS">
88 <ANCHOR id="GVIR-DOMAIN-SNAPSHOT-DISK-ONLY:CAPS" href="Libvirt-gobject/GVirDomain.html#GVIR-DOMAIN-SNAPSHOT-DISK-ONLY:CAPS">
89 <ANCHOR id="GVIR-DOMAIN-SNAPSHOT-REUSE-EXT:CAPS" href="Libvirt-gobject/GVirDomain.html#GVIR-DOMAIN-SNAPSHOT-REUSE-EXT:CAPS">
90 <ANCHOR id="GVIR-DOMAIN-SNAPSHOT-QUIESCE:CAPS" href="Libvirt-gobject/GVirDomain.html#GVIR-DOMAIN-SNAPSHOT-QUIESCE:CAPS">
91 <ANCHOR id="GVIR-DOMAIN-SNAPSHOT-ATOMIC:CAPS" href="Libvirt-gobject/GVirDomain.html#GVIR-DOMAIN-SNAPSHOT-ATOMIC:CAPS">
7292 <ANCHOR id="GVirDomainStartFlags" href="Libvirt-gobject/GVirDomain.html#GVirDomainStartFlags">
7393 <ANCHOR id="GVirDomainState" href="Libvirt-gobject/GVirDomain.html#GVirDomainState">
94 <ANCHOR id="GVirDomainXMLFlags" href="Libvirt-gobject/GVirDomain.html#GVirDomainXMLFlags">
95 <ANCHOR id="GVIR-DOMAIN-XML-NONE:CAPS" href="Libvirt-gobject/GVirDomain.html#GVIR-DOMAIN-XML-NONE:CAPS">
96 <ANCHOR id="GVIR-DOMAIN-XML-SECURE:CAPS" href="Libvirt-gobject/GVirDomain.html#GVIR-DOMAIN-XML-SECURE:CAPS">
97 <ANCHOR id="GVIR-DOMAIN-XML-INACTIVE:CAPS" href="Libvirt-gobject/GVirDomain.html#GVIR-DOMAIN-XML-INACTIVE:CAPS">
98 <ANCHOR id="GVIR-DOMAIN-XML-UPDATE-CPU:CAPS" href="Libvirt-gobject/GVirDomain.html#GVIR-DOMAIN-XML-UPDATE-CPU:CAPS">
99 <ANCHOR id="gvir-domain-create-snapshot" href="Libvirt-gobject/GVirDomain.html#gvir-domain-create-snapshot">
74100 <ANCHOR id="gvir-domain-delete" href="Libvirt-gobject/GVirDomain.html#gvir-domain-delete">
75101 <ANCHOR id="gvir-domain-get-config" href="Libvirt-gobject/GVirDomain.html#gvir-domain-get-config">
76102 <ANCHOR id="gvir-domain-get-devices" href="Libvirt-gobject/GVirDomain.html#gvir-domain-get-devices">
86112 <ANCHOR id="gvir-domain-open-graphics" href="Libvirt-gobject/GVirDomain.html#gvir-domain-open-graphics">
87113 <ANCHOR id="gvir-domain-reboot" href="Libvirt-gobject/GVirDomain.html#gvir-domain-reboot">
88114 <ANCHOR id="gvir-domain-resume" href="Libvirt-gobject/GVirDomain.html#gvir-domain-resume">
115 <ANCHOR id="gvir-domain-resume-async" href="Libvirt-gobject/GVirDomain.html#gvir-domain-resume-async">
116 <ANCHOR id="gvir-domain-resume-finish" href="Libvirt-gobject/GVirDomain.html#gvir-domain-resume-finish">
89117 <ANCHOR id="gvir-domain-save" href="Libvirt-gobject/GVirDomain.html#gvir-domain-save">
90118 <ANCHOR id="gvir-domain-save-async" href="Libvirt-gobject/GVirDomain.html#gvir-domain-save-async">
91119 <ANCHOR id="gvir-domain-save-finish" href="Libvirt-gobject/GVirDomain.html#gvir-domain-save-finish">
120 <ANCHOR id="gvir-domain-save-to-file" href="Libvirt-gobject/GVirDomain.html#gvir-domain-save-to-file">
121 <ANCHOR id="gvir-domain-save-to-file-async" href="Libvirt-gobject/GVirDomain.html#gvir-domain-save-to-file-async">
122 <ANCHOR id="gvir-domain-save-to-file-finish" href="Libvirt-gobject/GVirDomain.html#gvir-domain-save-to-file-finish">
92123 <ANCHOR id="gvir-domain-screenshot" href="Libvirt-gobject/GVirDomain.html#gvir-domain-screenshot">
93124 <ANCHOR id="gvir-domain-set-config" href="Libvirt-gobject/GVirDomain.html#gvir-domain-set-config">
94125 <ANCHOR id="gvir-domain-shutdown" href="Libvirt-gobject/GVirDomain.html#gvir-domain-shutdown">
95126 <ANCHOR id="gvir-domain-start" href="Libvirt-gobject/GVirDomain.html#gvir-domain-start">
127 <ANCHOR id="gvir-domain-start-async" href="Libvirt-gobject/GVirDomain.html#gvir-domain-start-async">
128 <ANCHOR id="gvir-domain-start-finish" href="Libvirt-gobject/GVirDomain.html#gvir-domain-start-finish">
96129 <ANCHOR id="gvir-domain-stop" href="Libvirt-gobject/GVirDomain.html#gvir-domain-stop">
97130 <ANCHOR id="gvir-domain-suspend" href="Libvirt-gobject/GVirDomain.html#gvir-domain-suspend">
98131 <ANCHOR id="GVirDomain.property-details" href="Libvirt-gobject/GVirDomain.html#GVirDomain.property-details">
241274 <ANCHOR id="GVIR-STORAGE-VOL-RESIZE-SHRINK:CAPS" href="Libvirt-gobject/GVirStorageVol.html#GVIR-STORAGE-VOL-RESIZE-SHRINK:CAPS">
242275 <ANCHOR id="GVirStorageVolType" href="Libvirt-gobject/GVirStorageVol.html#GVirStorageVolType">
243276 <ANCHOR id="gvir-storage-vol-delete" href="Libvirt-gobject/GVirStorageVol.html#gvir-storage-vol-delete">
277 <ANCHOR id="gvir-storage-vol-download" href="Libvirt-gobject/GVirStorageVol.html#gvir-storage-vol-download">
244278 <ANCHOR id="gvir-storage-vol-get-config" href="Libvirt-gobject/GVirStorageVol.html#gvir-storage-vol-get-config">
245279 <ANCHOR id="gvir-storage-vol-get-info" href="Libvirt-gobject/GVirStorageVol.html#gvir-storage-vol-get-info">
246280 <ANCHOR id="gvir-storage-vol-get-name" href="Libvirt-gobject/GVirStorageVol.html#gvir-storage-vol-get-name">
247281 <ANCHOR id="gvir-storage-vol-get-path" href="Libvirt-gobject/GVirStorageVol.html#gvir-storage-vol-get-path">
248282 <ANCHOR id="gvir-storage-vol-resize" href="Libvirt-gobject/GVirStorageVol.html#gvir-storage-vol-resize">
283 <ANCHOR id="gvir-storage-vol-upload" href="Libvirt-gobject/GVirStorageVol.html#gvir-storage-vol-upload">
249284 <ANCHOR id="GVirStorageVol.property-details" href="Libvirt-gobject/GVirStorageVol.html#GVirStorageVol.property-details">
250285 <ANCHOR id="GVirStorageVol--handle" href="Libvirt-gobject/GVirStorageVol.html#GVirStorageVol--handle">
251286 <ANCHOR id="GVirStorageVol--pool" href="Libvirt-gobject/GVirStorageVol.html#GVirStorageVol--pool">
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
0 # Makefile.in generated by automake 1.12.2 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1514 @SET_MAKE@
1615
1716 VPATH = @srcdir@
17 am__make_dryrun = \
18 { \
19 am__dry=no; \
20 case $$MAKEFLAGS in \
21 *\\[\ \ ]*) \
22 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
23 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
24 *) \
25 for am__flg in $$MAKEFLAGS; do \
26 case $$am__flg in \
27 *=*|--*) ;; \
28 *n*) am__dry=yes; break;; \
29 esac; \
30 done;; \
31 esac; \
32 test $$am__dry = yes; \
33 }
1834 pkgdatadir = $(datadir)/@PACKAGE@
1935 pkgincludedir = $(includedir)/@PACKAGE@
2036 pkglibdir = $(libdir)/@PACKAGE@
3551 host_triplet = @host@
3652 noinst_PROGRAMS = event-test$(EXEEXT) conn-test$(EXEEXT)
3753 subdir = examples
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
54 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
55 $(top_srcdir)/build-aux/depcomp
3956 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
4057 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
4158 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
6077 AM_V_lt = $(am__v_lt_@AM_V@)
6178 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
6279 am__v_lt_0 = --silent
80 am__v_lt_1 =
6381 conn_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
6482 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(conn_test_CFLAGS) \
6583 $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
7088 event_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
7189 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(event_test_CFLAGS) \
7290 $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
91 AM_V_P = $(am__v_P_@AM_V@)
92 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
93 am__v_P_0 = false
94 am__v_P_1 = :
95 AM_V_GEN = $(am__v_GEN_@AM_V@)
96 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
97 am__v_GEN_0 = @echo " GEN " $@;
98 am__v_GEN_1 =
99 AM_V_at = $(am__v_at_@AM_V@)
100 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
101 am__v_at_0 = @
102 am__v_at_1 =
73103 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
74104 depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
75105 am__depfiles_maybe = depfiles
82112 $(AM_CFLAGS) $(CFLAGS)
83113 AM_V_CC = $(am__v_CC_@AM_V@)
84114 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
85 am__v_CC_0 = @echo " CC " $@;
86 AM_V_at = $(am__v_at_@AM_V@)
87 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
88 am__v_at_0 = @
115 am__v_CC_0 = @echo " CC " $@;
116 am__v_CC_1 =
89117 CCLD = $(CC)
90118 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
91119 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
92120 $(AM_LDFLAGS) $(LDFLAGS) -o $@
93121 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
94122 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
95 am__v_CCLD_0 = @echo " CCLD " $@;
96 AM_V_GEN = $(am__v_GEN_@AM_V@)
97 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
98 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_CCLD_0 = @echo " CCLD " $@;
124 am__v_CCLD_1 =
99125 SOURCES = $(conn_test_SOURCES) $(event_test_SOURCES)
100126 DIST_SOURCES = $(conn_test_SOURCES) $(event_test_SOURCES)
127 am__can_run_installinfo = \
128 case $$AM_UPDATE_INFO_DIR in \
129 n|no|NO) false;; \
130 *) (install-info --version) >/dev/null 2>&1;; \
131 esac
101132 ETAGS = etags
102133 CTAGS = ctags
103134 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
459490 && $(am__cd) $(top_srcdir) \
460491 && gtags -i $(GTAGS_ARGS) "$$here"
461492
493 cscopelist: $(HEADERS) $(SOURCES) $(LISP)
494 list='$(SOURCES) $(HEADERS) $(LISP)'; \
495 case "$(srcdir)" in \
496 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
497 *) sdir=$(subdir)/$(srcdir) ;; \
498 esac; \
499 for i in $$list; do \
500 if test -f "$$i"; then \
501 echo "$(subdir)/$$i"; \
502 else \
503 echo "$$sdir/$$i"; \
504 fi; \
505 done >> $(top_builddir)/cscope.files
506
462507 distclean-tags:
463508 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
464509
600645 .MAKE: install-am install-strip
601646
602647 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
603 clean-libtool clean-noinstPROGRAMS ctags distclean \
648 clean-libtool clean-noinstPROGRAMS cscopelist ctags distclean \
604649 distclean-compile distclean-generic distclean-libtool \
605650 distclean-tags distdir dvi dvi-am html html-am info info-am \
606651 install install-am install-data install-data-am install-dvi \
1111 libvirt-gconfig-main.h \
1212 libvirt-gconfig-object.h \
1313 libvirt-gconfig-capabilities.h \
14 libvirt-gconfig-capabilities-host.h \
15 libvirt-gconfig-capabilities-cpu.h \
16 libvirt-gconfig-capabilities-cpu-feature.h \
17 libvirt-gconfig-capabilities-cpu-topology.h \
18 libvirt-gconfig-capabilities-guest.h \
19 libvirt-gconfig-capabilities-guest-arch.h \
20 libvirt-gconfig-capabilities-guest-domain.h \
21 libvirt-gconfig-capabilities-guest-feature.h \
1422 libvirt-gconfig-domain.h \
1523 libvirt-gconfig-domain-address.h \
1624 libvirt-gconfig-domain-address-pci.h \
2432 libvirt-gconfig-domain-console.h \
2533 libvirt-gconfig-domain-controller.h \
2634 libvirt-gconfig-domain-controller-usb.h \
35 libvirt-gconfig-domain-cpu.h \
36 libvirt-gconfig-domain-cpu-feature.h \
2737 libvirt-gconfig-domain-device.h \
2838 libvirt-gconfig-domain-disk.h \
2939 libvirt-gconfig-domain-filesys.h \
6373 libvirt-gconfig-storage-vol-target.h
6474 noinst_HEADERS = \
6575 libvirt-gconfig-private.h \
76 libvirt-gconfig-capabilities-cpu-private.h \
6677 libvirt-gconfig-domain-device-private.h \
6778 libvirt-gconfig-helpers-private.h \
6879 libvirt-gconfig-object-private.h \
7182 libvirt-gconfig-object.c \
7283 libvirt-gconfig-main.c \
7384 libvirt-gconfig-capabilities.c \
85 libvirt-gconfig-capabilities-host.c \
86 libvirt-gconfig-capabilities-cpu.c \
87 libvirt-gconfig-capabilities-cpu-feature.c \
88 libvirt-gconfig-capabilities-cpu-topology.c \
89 libvirt-gconfig-capabilities-guest.c \
90 libvirt-gconfig-capabilities-guest-arch.c \
91 libvirt-gconfig-capabilities-guest-domain.c \
92 libvirt-gconfig-capabilities-guest-feature.c \
7493 libvirt-gconfig-domain.c \
7594 libvirt-gconfig-domain-address.c \
7695 libvirt-gconfig-domain-address-pci.c \
84103 libvirt-gconfig-domain-console.c \
85104 libvirt-gconfig-domain-controller.c \
86105 libvirt-gconfig-domain-controller-usb.c \
106 libvirt-gconfig-domain-cpu.c \
107 libvirt-gconfig-domain-cpu-feature.c \
87108 libvirt-gconfig-domain-device.c \
88109 libvirt-gconfig-domain-disk.c \
89110 libvirt-gconfig-domain-filesys.c \
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
0 # Makefile.in generated by automake 1.12.2 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1716
1817
1918 VPATH = @srcdir@
19 am__make_dryrun = \
20 { \
21 am__dry=no; \
22 case $$MAKEFLAGS in \
23 *\\[\ \ ]*) \
24 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
25 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
26 *) \
27 for am__flg in $$MAKEFLAGS; do \
28 case $$am__flg in \
29 *=*|--*) ;; \
30 *n*) am__dry=yes; break;; \
31 esac; \
32 done;; \
33 esac; \
34 test $$am__dry = yes; \
35 }
2036 pkgdatadir = $(datadir)/@PACKAGE@
2137 pkgincludedir = $(includedir)/@PACKAGE@
2238 pkglibdir = $(libdir)/@PACKAGE@
3854 @WITH_GOBJECT_INTROSPECTION_TRUE@am__append_1 = $(gir_DATA) $(typelibs_DATA)
3955 subdir = libvirt-gconfig
4056 DIST_COMMON = $(libvirt_gconfig_1_0_la_HEADERS) $(noinst_HEADERS) \
41 $(srcdir)/Makefile.am $(srcdir)/Makefile.in
57 $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
58 $(top_srcdir)/build-aux/depcomp
4259 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
4360 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
4461 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
90107 am__objects_3 = libvirt_gconfig_1_0_la-libvirt-gconfig-object.lo \
91108 libvirt_gconfig_1_0_la-libvirt-gconfig-main.lo \
92109 libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities.lo \
110 libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-host.lo \
111 libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu.lo \
112 libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-feature.lo \
113 libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-topology.lo \
114 libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest.lo \
115 libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-arch.lo \
116 libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-domain.lo \
117 libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-feature.lo \
93118 libvirt_gconfig_1_0_la-libvirt-gconfig-domain.lo \
94119 libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address.lo \
95120 libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address-pci.lo \
103128 libvirt_gconfig_1_0_la-libvirt-gconfig-domain-console.lo \
104129 libvirt_gconfig_1_0_la-libvirt-gconfig-domain-controller.lo \
105130 libvirt_gconfig_1_0_la-libvirt-gconfig-domain-controller-usb.lo \
131 libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu.lo \
132 libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu-feature.lo \
106133 libvirt_gconfig_1_0_la-libvirt-gconfig-domain-device.lo \
107134 libvirt_gconfig_1_0_la-libvirt-gconfig-domain-disk.lo \
108135 libvirt_gconfig_1_0_la-libvirt-gconfig-domain-filesys.lo \
149176 AM_V_lt = $(am__v_lt_@AM_V@)
150177 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
151178 am__v_lt_0 = --silent
179 am__v_lt_1 =
152180 libvirt_gconfig_1_0_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
153181 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
154182 $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) \
155183 $(libvirt_gconfig_1_0_la_LDFLAGS) $(LDFLAGS) -o $@
184 AM_V_P = $(am__v_P_@AM_V@)
185 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
186 am__v_P_0 = false
187 am__v_P_1 = :
188 AM_V_GEN = $(am__v_GEN_@AM_V@)
189 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
190 am__v_GEN_0 = @echo " GEN " $@;
191 am__v_GEN_1 =
192 AM_V_at = $(am__v_at_@AM_V@)
193 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
194 am__v_at_0 = @
195 am__v_at_1 =
156196 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
157197 depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
158198 am__depfiles_maybe = depfiles
165205 $(AM_CFLAGS) $(CFLAGS)
166206 AM_V_CC = $(am__v_CC_@AM_V@)
167207 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
168 am__v_CC_0 = @echo " CC " $@;
169 AM_V_at = $(am__v_at_@AM_V@)
170 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
171 am__v_at_0 = @
208 am__v_CC_0 = @echo " CC " $@;
209 am__v_CC_1 =
172210 CCLD = $(CC)
173211 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
174212 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
175213 $(AM_LDFLAGS) $(LDFLAGS) -o $@
176214 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
177215 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
178 am__v_CCLD_0 = @echo " CCLD " $@;
179 AM_V_GEN = $(am__v_GEN_@AM_V@)
180 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
181 am__v_GEN_0 = @echo " GEN " $@;
216 am__v_CCLD_0 = @echo " CCLD " $@;
217 am__v_CCLD_1 =
182218 SOURCES = $(libvirt_gconfig_1_0_la_SOURCES) \
183219 $(nodist_libvirt_gconfig_1_0_la_SOURCES)
184220 DIST_SOURCES = $(libvirt_gconfig_1_0_la_SOURCES)
189225 install-pdf-recursive install-ps-recursive install-recursive \
190226 installcheck-recursive installdirs-recursive pdf-recursive \
191227 ps-recursive uninstall-recursive
228 am__can_run_installinfo = \
229 case $$AM_UPDATE_INFO_DIR in \
230 n|no|NO) false;; \
231 *) (install-info --version) >/dev/null 2>&1;; \
232 esac
192233 DATA = $(gir_DATA) $(typelibs_DATA)
193234 HEADERS = $(libvirt_gconfig_1_0_la_HEADERS) \
194235 $(nodist_libvirt_gconfig_1_0_la_HEADERS) $(noinst_HEADERS)
400441 libvirt-gconfig-main.h \
401442 libvirt-gconfig-object.h \
402443 libvirt-gconfig-capabilities.h \
444 libvirt-gconfig-capabilities-host.h \
445 libvirt-gconfig-capabilities-cpu.h \
446 libvirt-gconfig-capabilities-cpu-feature.h \
447 libvirt-gconfig-capabilities-cpu-topology.h \
448 libvirt-gconfig-capabilities-guest.h \
449 libvirt-gconfig-capabilities-guest-arch.h \
450 libvirt-gconfig-capabilities-guest-domain.h \
451 libvirt-gconfig-capabilities-guest-feature.h \
403452 libvirt-gconfig-domain.h \
404453 libvirt-gconfig-domain-address.h \
405454 libvirt-gconfig-domain-address-pci.h \
413462 libvirt-gconfig-domain-console.h \
414463 libvirt-gconfig-domain-controller.h \
415464 libvirt-gconfig-domain-controller-usb.h \
465 libvirt-gconfig-domain-cpu.h \
466 libvirt-gconfig-domain-cpu-feature.h \
416467 libvirt-gconfig-domain-device.h \
417468 libvirt-gconfig-domain-disk.h \
418469 libvirt-gconfig-domain-filesys.h \
453504
454505 noinst_HEADERS = \
455506 libvirt-gconfig-private.h \
507 libvirt-gconfig-capabilities-cpu-private.h \
456508 libvirt-gconfig-domain-device-private.h \
457509 libvirt-gconfig-helpers-private.h \
458510 libvirt-gconfig-object-private.h \
462514 libvirt-gconfig-object.c \
463515 libvirt-gconfig-main.c \
464516 libvirt-gconfig-capabilities.c \
517 libvirt-gconfig-capabilities-host.c \
518 libvirt-gconfig-capabilities-cpu.c \
519 libvirt-gconfig-capabilities-cpu-feature.c \
520 libvirt-gconfig-capabilities-cpu-topology.c \
521 libvirt-gconfig-capabilities-guest.c \
522 libvirt-gconfig-capabilities-guest-arch.c \
523 libvirt-gconfig-capabilities-guest-domain.c \
524 libvirt-gconfig-capabilities-guest-feature.c \
465525 libvirt-gconfig-domain.c \
466526 libvirt-gconfig-domain-address.c \
467527 libvirt-gconfig-domain-address-pci.c \
475535 libvirt-gconfig-domain-console.c \
476536 libvirt-gconfig-domain-controller.c \
477537 libvirt-gconfig-domain-controller-usb.c \
538 libvirt-gconfig-domain-cpu.c \
539 libvirt-gconfig-domain-cpu-feature.c \
478540 libvirt-gconfig-domain-device.c \
479541 libvirt-gconfig-domain-disk.c \
480542 libvirt-gconfig-domain-filesys.c \
598660 $(am__aclocal_m4_deps):
599661 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
600662 @$(NORMAL_INSTALL)
601 test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
602663 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
603664 list2=; for p in $$list; do \
604665 if test -f $$p; then \
606667 else :; fi; \
607668 done; \
608669 test -z "$$list2" || { \
670 echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
671 $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
609672 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
610673 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
611674 }
621684
622685 clean-libLTLIBRARIES:
623686 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
624 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
625 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
626 test "$$dir" != "$$p" || dir=.; \
627 echo "rm -f \"$${dir}/so_locations\""; \
628 rm -f "$${dir}/so_locations"; \
629 done
687 @list='$(lib_LTLIBRARIES)'; \
688 locs=`for p in $$list; do echo $$p; done | \
689 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
690 sort -u`; \
691 test -z "$$locs" || { \
692 echo rm -f $${locs}; \
693 rm -f $${locs}; \
694 }
630695 libvirt-gconfig-1.0.la: $(libvirt_gconfig_1_0_la_OBJECTS) $(libvirt_gconfig_1_0_la_DEPENDENCIES) $(EXTRA_libvirt_gconfig_1_0_la_DEPENDENCIES)
631696 $(AM_V_CCLD)$(libvirt_gconfig_1_0_la_LINK) -rpath $(libdir) $(libvirt_gconfig_1_0_la_OBJECTS) $(libvirt_gconfig_1_0_la_LIBADD) $(LIBS)
632697
636701 distclean-compile:
637702 -rm -f *.tab.c
638703
704 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-feature.Plo@am__quote@
705 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-topology.Plo@am__quote@
706 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu.Plo@am__quote@
707 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-arch.Plo@am__quote@
708 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-domain.Plo@am__quote@
709 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-feature.Plo@am__quote@
710 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest.Plo@am__quote@
711 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-host.Plo@am__quote@
639712 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities.Plo@am__quote@
640713 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address-pci.Plo@am__quote@
641714 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address-usb.Plo@am__quote@
649722 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-console.Plo@am__quote@
650723 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-controller-usb.Plo@am__quote@
651724 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-controller.Plo@am__quote@
725 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu-feature.Plo@am__quote@
726 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu.Plo@am__quote@
652727 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-device.Plo@am__quote@
653728 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-disk.Plo@am__quote@
654729 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-filesys.Plo@am__quote@
734809 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
735810 @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
736811
812 libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-host.lo: libvirt-gconfig-capabilities-host.c
813 @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
814 @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
815 @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@
816 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
817 @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
818
819 libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu.lo: libvirt-gconfig-capabilities-cpu.c
820 @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
821 @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
822 @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@
823 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
824 @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
825
826 libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-feature.lo: libvirt-gconfig-capabilities-cpu-feature.c
827 @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
828 @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
829 @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@
830 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
831 @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
832
833 libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-cpu-topology.lo: libvirt-gconfig-capabilities-cpu-topology.c
834 @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
835 @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
836 @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@
837 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
838 @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
839
840 libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest.lo: libvirt-gconfig-capabilities-guest.c
841 @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
842 @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
843 @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@
844 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
845 @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
846
847 libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-arch.lo: libvirt-gconfig-capabilities-guest-arch.c
848 @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
849 @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
850 @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@
851 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
852 @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
853
854 libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-domain.lo: libvirt-gconfig-capabilities-guest-domain.c
855 @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
856 @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
857 @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@
858 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
859 @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
860
861 libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities-guest-feature.lo: libvirt-gconfig-capabilities-guest-feature.c
862 @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
863 @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
864 @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@
865 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
866 @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
867
737868 libvirt_gconfig_1_0_la-libvirt-gconfig-domain.lo: libvirt-gconfig-domain.c
738869 @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
739870 @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
825956 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
826957 @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
827958
959 libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu.lo: libvirt-gconfig-domain-cpu.c
960 @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
961 @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
962 @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@
963 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
964 @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
965
966 libvirt_gconfig_1_0_la-libvirt-gconfig-domain-cpu-feature.lo: libvirt-gconfig-domain-cpu-feature.c
967 @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
968 @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
969 @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@
970 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
971 @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
972
828973 libvirt_gconfig_1_0_la-libvirt-gconfig-domain-device.lo: libvirt-gconfig-domain-device.c
829974 @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
830975 @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
11051250 -rm -rf .libs _libs
11061251 install-girDATA: $(gir_DATA)
11071252 @$(NORMAL_INSTALL)
1108 test -z "$(girdir)" || $(MKDIR_P) "$(DESTDIR)$(girdir)"
11091253 @list='$(gir_DATA)'; test -n "$(girdir)" || list=; \
1254 if test -n "$$list"; then \
1255 echo " $(MKDIR_P) '$(DESTDIR)$(girdir)'"; \
1256 $(MKDIR_P) "$(DESTDIR)$(girdir)" || exit 1; \
1257 fi; \
11101258 for p in $$list; do \
11111259 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
11121260 echo "$$d$$p"; \
11231271 dir='$(DESTDIR)$(girdir)'; $(am__uninstall_files_from_dir)
11241272 install-typelibsDATA: $(typelibs_DATA)
11251273 @$(NORMAL_INSTALL)
1126 test -z "$(typelibsdir)" || $(MKDIR_P) "$(DESTDIR)$(typelibsdir)"
11271274 @list='$(typelibs_DATA)'; test -n "$(typelibsdir)" || list=; \
1275 if test -n "$$list"; then \
1276 echo " $(MKDIR_P) '$(DESTDIR)$(typelibsdir)'"; \
1277 $(MKDIR_P) "$(DESTDIR)$(typelibsdir)" || exit 1; \
1278 fi; \
11281279 for p in $$list; do \
11291280 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
11301281 echo "$$d$$p"; \
11411292 dir='$(DESTDIR)$(typelibsdir)'; $(am__uninstall_files_from_dir)
11421293 install-libvirt_gconfig_1_0_laHEADERS: $(libvirt_gconfig_1_0_la_HEADERS)
11431294 @$(NORMAL_INSTALL)
1144 test -z "$(libvirt_gconfig_1_0_ladir)" || $(MKDIR_P) "$(DESTDIR)$(libvirt_gconfig_1_0_ladir)"
11451295 @list='$(libvirt_gconfig_1_0_la_HEADERS)'; test -n "$(libvirt_gconfig_1_0_ladir)" || list=; \
1296 if test -n "$$list"; then \
1297 echo " $(MKDIR_P) '$(DESTDIR)$(libvirt_gconfig_1_0_ladir)'"; \
1298 $(MKDIR_P) "$(DESTDIR)$(libvirt_gconfig_1_0_ladir)" || exit 1; \
1299 fi; \
11461300 for p in $$list; do \
11471301 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
11481302 echo "$$d$$p"; \
11591313 dir='$(DESTDIR)$(libvirt_gconfig_1_0_ladir)'; $(am__uninstall_files_from_dir)
11601314 install-nodist_libvirt_gconfig_1_0_laHEADERS: $(nodist_libvirt_gconfig_1_0_la_HEADERS)
11611315 @$(NORMAL_INSTALL)
1162 test -z "$(libvirt_gconfig_1_0_ladir)" || $(MKDIR_P) "$(DESTDIR)$(libvirt_gconfig_1_0_ladir)"
11631316 @list='$(nodist_libvirt_gconfig_1_0_la_HEADERS)'; test -n "$(libvirt_gconfig_1_0_ladir)" || list=; \
1317 if test -n "$$list"; then \
1318 echo " $(MKDIR_P) '$(DESTDIR)$(libvirt_gconfig_1_0_ladir)'"; \
1319 $(MKDIR_P) "$(DESTDIR)$(libvirt_gconfig_1_0_ladir)" || exit 1; \
1320 fi; \
11641321 for p in $$list; do \
11651322 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
11661323 echo "$$d$$p"; \
11771334 dir='$(DESTDIR)$(libvirt_gconfig_1_0_ladir)'; $(am__uninstall_files_from_dir)
11781335
11791336 # This directory's subdirectories are mostly independent; you can cd
1180 # into them and run `make' without going through this Makefile.
1181 # To change the values of `make' variables: instead of editing Makefiles,
1182 # (1) if the variable is set in `config.status', edit `config.status'
1183 # (which will cause the Makefiles to be regenerated when you run `make');
1184 # (2) otherwise, pass the desired values on the `make' command line.
1185 $(RECURSIVE_TARGETS):
1337 # into them and run 'make' without going through this Makefile.
1338 # To change the values of 'make' variables: instead of editing Makefiles,
1339 # (1) if the variable is set in 'config.status', edit 'config.status'
1340 # (which will cause the Makefiles to be regenerated when you run 'make');
1341 # (2) otherwise, pass the desired values on the 'make' command line.
1342 $(RECURSIVE_TARGETS) $(RECURSIVE_CLEAN_TARGETS):
11861343 @fail= failcom='exit 1'; \
11871344 for f in x $$MAKEFLAGS; do \
11881345 case $$f in \
11921349 done; \
11931350 dot_seen=no; \
11941351 target=`echo $@ | sed s/-recursive//`; \
1195 list='$(SUBDIRS)'; for subdir in $$list; do \
1352 case "$@" in \
1353 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
1354 *) list='$(SUBDIRS)' ;; \
1355 esac; \
1356 for subdir in $$list; do \
11961357 echo "Making $$target in $$subdir"; \
11971358 if test "$$subdir" = "."; then \
11981359 dot_seen=yes; \
12061367 if test "$$dot_seen" = "no"; then \
12071368 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
12081369 fi; test -z "$$fail"
1209
1210 $(RECURSIVE_CLEAN_TARGETS):
1211 @fail= failcom='exit 1'; \
1212 for f in x $$MAKEFLAGS; do \
1213 case $$f in \
1214 *=* | --[!k]*);; \
1215 *k*) failcom='fail=yes';; \
1216 esac; \
1217 done; \
1218 dot_seen=no; \
1219 case "$@" in \
1220 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
1221 *) list='$(SUBDIRS)' ;; \
1222 esac; \
1223 rev=''; for subdir in $$list; do \
1224 if test "$$subdir" = "."; then :; else \
1225 rev="$$subdir $$rev"; \
1226 fi; \
1227 done; \
1228 rev="$$rev ."; \
1229 target=`echo $@ | sed s/-recursive//`; \
1230 for subdir in $$rev; do \
1231 echo "Making $$target in $$subdir"; \
1232 if test "$$subdir" = "."; then \
1233 local_target="$$target-am"; \
1234 else \
1235 local_target="$$target"; \
1236 fi; \
1237 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
1238 || eval $$failcom; \
1239 done && test -z "$$fail"
12401370 tags-recursive:
12411371 list='$(SUBDIRS)'; for subdir in $$list; do \
12421372 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
12441374 ctags-recursive:
12451375 list='$(SUBDIRS)'; for subdir in $$list; do \
12461376 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
1377 done
1378 cscopelist-recursive:
1379 list='$(SUBDIRS)'; for subdir in $$list; do \
1380 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) cscopelist); \
12471381 done
12481382
12491383 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
13081442 && $(am__cd) $(top_srcdir) \
13091443 && gtags -i $(GTAGS_ARGS) "$$here"
13101444
1445 cscopelist: cscopelist-recursive $(HEADERS) $(SOURCES) $(LISP)
1446 list='$(SOURCES) $(HEADERS) $(LISP)'; \
1447 case "$(srcdir)" in \
1448 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
1449 *) sdir=$(subdir)/$(srcdir) ;; \
1450 esac; \
1451 for i in $$list; do \
1452 if test -f "$$i"; then \
1453 echo "$(subdir)/$$i"; \
1454 else \
1455 echo "$$sdir/$$i"; \
1456 fi; \
1457 done >> $(top_builddir)/cscope.files
1458
13111459 distclean-tags:
13121460 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
13131461
13431491 done
13441492 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
13451493 if test "$$subdir" = .; then :; else \
1346 test -d "$(distdir)/$$subdir" \
1347 || $(MKDIR_P) "$(distdir)/$$subdir" \
1348 || exit 1; \
1349 fi; \
1350 done
1351 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
1352 if test "$$subdir" = .; then :; else \
1494 $(am__make_dryrun) \
1495 || test -d "$(distdir)/$$subdir" \
1496 || $(MKDIR_P) "$(distdir)/$$subdir" \
1497 || exit 1; \
13531498 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
13541499 $(am__relativize); \
13551500 new_distdir=$$reldir; \
14881633 uninstall-typelibsDATA
14891634
14901635 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all check \
1491 ctags-recursive install install-am install-strip \
1492 tags-recursive
1636 cscopelist-recursive ctags-recursive install install-am \
1637 install-strip tags-recursive
14931638
14941639 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
14951640 all all-am check check-am clean clean-generic \
1496 clean-libLTLIBRARIES clean-libtool ctags ctags-recursive \
1497 distclean distclean-compile distclean-generic \
1498 distclean-libtool distclean-tags distdir dvi dvi-am html \
1499 html-am info info-am install install-am install-data \
1500 install-data-am install-dvi install-dvi-am install-exec \
1501 install-exec-am install-girDATA install-html install-html-am \
1502 install-info install-info-am install-libLTLIBRARIES \
1503 install-libvirt_gconfig_1_0_laHEADERS install-man \
1504 install-nodist_libvirt_gconfig_1_0_laHEADERS install-pdf \
1505 install-pdf-am install-ps install-ps-am install-strip \
1506 install-typelibsDATA installcheck installcheck-am installdirs \
1507 installdirs-am maintainer-clean maintainer-clean-generic \
1508 mostlyclean mostlyclean-compile mostlyclean-generic \
1509 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
1510 uninstall uninstall-am uninstall-girDATA \
1641 clean-libLTLIBRARIES clean-libtool cscopelist \
1642 cscopelist-recursive ctags ctags-recursive distclean \
1643 distclean-compile distclean-generic distclean-libtool \
1644 distclean-tags distdir dvi dvi-am html html-am info info-am \
1645 install install-am install-data install-data-am install-dvi \
1646 install-dvi-am install-exec install-exec-am install-girDATA \
1647 install-html install-html-am install-info install-info-am \
1648 install-libLTLIBRARIES install-libvirt_gconfig_1_0_laHEADERS \
1649 install-man install-nodist_libvirt_gconfig_1_0_laHEADERS \
1650 install-pdf install-pdf-am install-ps install-ps-am \
1651 install-strip install-typelibsDATA installcheck \
1652 installcheck-am installdirs installdirs-am maintainer-clean \
1653 maintainer-clean-generic mostlyclean mostlyclean-compile \
1654 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
1655 tags tags-recursive uninstall uninstall-am uninstall-girDATA \
15111656 uninstall-libLTLIBRARIES \
15121657 uninstall-libvirt_gconfig_1_0_laHEADERS \
15131658 uninstall-nodist_libvirt_gconfig_1_0_laHEADERS \
0 /*
1 * libvirt-gconfig-capabilities-cpu-feature.c: libvirt CPU feature capabilities
2 *
3 * Copyright (C) 2008 Daniel P. Berrange
4 * Copyright (C) 2010-2012 Red Hat, Inc.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 *
20 * Authors: Zeeshan Ali <zeenix@redhat.com>
21 * Daniel P. Berrange <berrange@redhat.com>
22 */
23
24 #include <config.h>
25
26 #include "libvirt-gconfig/libvirt-gconfig.h"
27 #include "libvirt-gconfig/libvirt-gconfig-private.h"
28
29 #define GVIR_CONFIG_CAPABILITIES_CPU_FEATURE_GET_PRIVATE(obj) \
30 (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_CAPABILITIES_CPU_FEATURE, GVirConfigCapabilitiesCpuFeaturePrivate))
31
32 struct _GVirConfigCapabilitiesCpuFeaturePrivate
33 {
34 gboolean unused;
35 };
36
37 G_DEFINE_TYPE(GVirConfigCapabilitiesCpuFeature, gvir_config_capabilities_cpu_feature, GVIR_CONFIG_TYPE_OBJECT);
38
39 static void gvir_config_capabilities_cpu_feature_class_init(GVirConfigCapabilitiesCpuFeatureClass *klass)
40 {
41 g_type_class_add_private(klass, sizeof(GVirConfigCapabilitiesCpuFeaturePrivate));
42 }
43
44 static void gvir_config_capabilities_cpu_feature_init(GVirConfigCapabilitiesCpuFeature *feature)
45 {
46 g_debug("Init GVirConfigCapabilitiesCpuFeature=%p", feature);
47
48 feature->priv = GVIR_CONFIG_CAPABILITIES_CPU_FEATURE_GET_PRIVATE(feature);
49 }
50
51 const gchar *
52 gvir_config_capabilities_cpu_feature_get_name(GVirConfigCapabilitiesCpuFeature *feature)
53 {
54 return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(feature),
55 NULL,
56 "name");
57 }
58
59 void
60 gvir_config_capabilities_cpu_feature_set_name(GVirConfigCapabilitiesCpuFeature *feature,
61 const gchar *name)
62 {
63 g_return_if_fail(GVIR_CONFIG_IS_CAPABILITIES_CPU_FEATURE(feature));
64 g_return_if_fail(name != NULL);
65
66 gvir_config_object_set_attribute(GVIR_CONFIG_OBJECT(feature),
67 "name", name,
68 NULL);
69 }
0 /*
1 * libvirt-gconfig-capabilities-cpu-feature.h: libvirt CPU feature capabilities
2 *
3 * Copyright (C) 2010-2012 Red Hat, Inc.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * Authors: Zeeshan Ali <zeenix@redhat.com>
20 * Daniel P. Berrange <berrange@redhat.com>
21 */
22
23 #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD)
24 #error "Only <libvirt-gconfig/libvirt-gconfig.h> can be included directly."
25 #endif
26
27 #ifndef __LIBVIRT_GCONFIG_CAPABILITIES_CPU_FEATURE_H__
28 #define __LIBVIRT_GCONFIG_CAPABILITIES_CPU_FEATURE_H__
29
30 G_BEGIN_DECLS
31
32 #define GVIR_CONFIG_TYPE_CAPABILITIES_CPU_FEATURE (gvir_config_capabilities_cpu_feature_get_type ())
33 #define GVIR_CONFIG_CAPABILITIES_CPU_FEATURE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_CPU_FEATURE, GVirConfigCapabilitiesCpuFeature))
34 #define GVIR_CONFIG_CAPABILITIES_CPU_FEATURE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_CPU_FEATURE, GVirConfigCapabilitiesCpuFeatureClass))
35 #define GVIR_CONFIG_IS_CAPABILITIES_CPU_FEATURE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_CPU_FEATURE))
36 #define GVIR_CONFIG_IS_CAPABILITIES_CPU_FEATURE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_CPU_FEATURE))
37 #define GVIR_CONFIG_CAPABILITIES_CPU_FEATURE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_CPU_FEATURE, GVirConfigCapabilitiesCpuFeatureClass))
38
39 typedef struct _GVirConfigCapabilitiesCpuFeature GVirConfigCapabilitiesCpuFeature;
40 typedef struct _GVirConfigCapabilitiesCpuFeaturePrivate GVirConfigCapabilitiesCpuFeaturePrivate;
41 typedef struct _GVirConfigCapabilitiesCpuFeatureClass GVirConfigCapabilitiesCpuFeatureClass;
42
43 struct _GVirConfigCapabilitiesCpuFeature
44 {
45 GVirConfigObject parent;
46
47 GVirConfigCapabilitiesCpuFeaturePrivate *priv;
48
49 /* Do not add fields to this struct */
50 };
51
52 struct _GVirConfigCapabilitiesCpuFeatureClass
53 {
54 GVirConfigObjectClass parent_class;
55
56 gpointer padding[20];
57 };
58
59 GType gvir_config_capabilities_cpu_feature_get_type(void);
60
61 const gchar *
62 gvir_config_capabilities_cpu_feature_get_name(GVirConfigCapabilitiesCpuFeature *feature);
63 void
64 gvir_config_capabilities_cpu_feature_set_name(GVirConfigCapabilitiesCpuFeature *feature,
65 const gchar *name);
66
67 G_END_DECLS
68
69 #endif /* __LIBVIRT_GCONFIG_CAPABILITIES_CPU_FEATURE_H__ */
0 /*
1 * libvirt-gconfig-capabilities-cpu-private.h: libvirt CPU capabilities
2 *
3 * Copyright (C) 2012 Red Hat, Inc.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
20 */
21 #ifndef __LIBVIRT_GCONFIG_CAPABILITIES_CPU_PRIVATE_H__
22 #define __LIBVIRT_GCONFIG_CAPABILITIES_CPU_PRIVATE_H__
23
24 G_BEGIN_DECLS
25
26 #include <libvirt-gconfig/libvirt-gconfig.h>
27
28 GList *
29 gvir_config_capabilities_cpu_get_features_with_type(GVirConfigCapabilitiesCpu *cpu,
30 GType type);
31
32 G_END_DECLS
33
34 #endif /* __LIBVIRT_GCONFIG_CAPABILITIES_CPU_PRIVATE_H__ */
0 /*
1 * libvirt-gconfig-capabilities-cpu-topology.c: libvirt CPU topology capabilities
2 *
3 * Copyright (C) 2008 Daniel P. Berrange
4 * Copyright (C) 2010-2012 Red Hat, Inc.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 *
20 * Authors: Zeeshan Ali <zeenix@redhat.com>
21 * Daniel P. Berrange <berrange@redhat.com>
22 */
23
24 #include <config.h>
25
26 #include "libvirt-gconfig/libvirt-gconfig.h"
27 #include "libvirt-gconfig/libvirt-gconfig-private.h"
28
29 #define GVIR_CONFIG_CAPABILITIES_CPU_TOPOLOGY_GET_PRIVATE(obj) \
30 (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_CAPABILITIES_CPU_TOPOLOGY, GVirConfigCapabilitiesCpuTopologyPrivate))
31
32 struct _GVirConfigCapabilitiesCpuTopologyPrivate
33 {
34 gboolean unused;
35 };
36
37 G_DEFINE_TYPE(GVirConfigCapabilitiesCpuTopology, gvir_config_capabilities_cpu_topology, GVIR_CONFIG_TYPE_OBJECT);
38
39 static void gvir_config_capabilities_cpu_topology_class_init(GVirConfigCapabilitiesCpuTopologyClass *klass)
40 {
41 g_type_class_add_private(klass, sizeof(GVirConfigCapabilitiesCpuTopologyPrivate));
42 }
43
44 static void gvir_config_capabilities_cpu_topology_init(GVirConfigCapabilitiesCpuTopology *topology)
45 {
46 g_debug("Init GVirConfigCapabilitiesCpuTopology=%p", topology);
47
48 topology->priv = GVIR_CONFIG_CAPABILITIES_CPU_TOPOLOGY_GET_PRIVATE(topology);
49 }
50
51 GVirConfigCapabilitiesCpuTopology *gvir_config_capabilities_cpu_topology_new(void)
52 {
53 GVirConfigObject *object;
54
55 object = gvir_config_object_new(GVIR_CONFIG_TYPE_CAPABILITIES_CPU_TOPOLOGY,
56 "topology",
57 NULL);
58
59 return GVIR_CONFIG_CAPABILITIES_CPU_TOPOLOGY(object);
60 }
61
62 GVirConfigCapabilitiesCpuTopology *
63 gvir_config_capabilities_cpu_topology_new_from_xml(const gchar *xml, GError **error)
64 {
65 GVirConfigObject *object;
66
67 object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_CAPABILITIES_CPU_TOPOLOGY,
68 "topology",
69 NULL,
70 xml,
71 error);
72
73 return GVIR_CONFIG_CAPABILITIES_CPU_TOPOLOGY(object);
74 }
75
76 guint64
77 gvir_config_capabilities_cpu_topology_get_sockets(GVirConfigCapabilitiesCpuTopology *topology)
78 {
79 g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES_CPU_TOPOLOGY(topology), 0);
80
81 return gvir_config_object_get_attribute_uint64(GVIR_CONFIG_OBJECT(topology),
82 NULL,
83 "sockets",
84 0);
85 }
86
87 void
88 gvir_config_capabilities_cpu_topology_set_sockets(GVirConfigCapabilitiesCpuTopology *topology,
89 guint64 sockets)
90 {
91 gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(topology),
92 "sockets", G_TYPE_UINT64, sockets,
93 NULL);
94 }
95
96 guint64
97 gvir_config_capabilities_cpu_topology_get_cores(GVirConfigCapabilitiesCpuTopology *topology)
98 {
99 g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES_CPU_TOPOLOGY(topology), 0);
100
101 return gvir_config_object_get_attribute_uint64(GVIR_CONFIG_OBJECT(topology),
102 NULL,
103 "cores",
104 0);
105 }
106
107 void
108 gvir_config_capabilities_cpu_topology_set_cores(GVirConfigCapabilitiesCpuTopology *topology,
109 guint64 cores)
110 {
111 gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(topology),
112 "cores", G_TYPE_UINT64, cores,
113 NULL);
114 }
115
116 guint64
117 gvir_config_capabilities_cpu_topology_get_threads(GVirConfigCapabilitiesCpuTopology *topology)
118 {
119 g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES_CPU_TOPOLOGY(topology), 0);
120
121 return gvir_config_object_get_attribute_uint64(GVIR_CONFIG_OBJECT(topology),
122 NULL,
123 "threads",
124 0);
125 }
126
127 void
128 gvir_config_capabilities_cpu_topology_set_threads(GVirConfigCapabilitiesCpuTopology *topology,
129 guint64 threads)
130 {
131 gvir_config_object_set_attribute_with_type(GVIR_CONFIG_OBJECT(topology),
132 "threads", G_TYPE_UINT64, threads,
133 NULL);
134 }
0 /*
1 * libvirt-gconfig-capabilities-cpu-topology.h: libvirt CPU topology capabilities
2 *
3 * Copyright (C) 2010-2012 Red Hat, Inc.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * Authors: Zeeshan Ali <zeenix@redhat.com>
20 * Daniel P. Berrange <berrange@redhat.com>
21 */
22
23 #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD)
24 #error "Only <libvirt-gconfig/libvirt-gconfig.h> can be included directly."
25 #endif
26
27 #ifndef __LIBVIRT_GCONFIG_CAPABILITIES_CPU_TOPOLOGY_H__
28 #define __LIBVIRT_GCONFIG_CAPABILITIES_CPU_TOPOLOGY_H__
29
30 G_BEGIN_DECLS
31
32 #define GVIR_CONFIG_TYPE_CAPABILITIES_CPU_TOPOLOGY (gvir_config_capabilities_cpu_topology_get_type ())
33 #define GVIR_CONFIG_CAPABILITIES_CPU_TOPOLOGY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_CPU_TOPOLOGY, GVirConfigCapabilitiesCpuTopology))
34 #define GVIR_CONFIG_CAPABILITIES_CPU_TOPOLOGY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_CPU_TOPOLOGY, GVirConfigCapabilitiesCpuTopologyClass))
35 #define GVIR_CONFIG_IS_CAPABILITIES_CPU_TOPOLOGY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_CPU_TOPOLOGY))
36 #define GVIR_CONFIG_IS_CAPABILITIES_CPU_TOPOLOGY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_CPU_TOPOLOGY))
37 #define GVIR_CONFIG_CAPABILITIES_CPU_TOPOLOGY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_CPU_TOPOLOGY, GVirConfigCapabilitiesCpuTopologyClass))
38
39 typedef struct _GVirConfigCapabilitiesCpuTopology GVirConfigCapabilitiesCpuTopology;
40 typedef struct _GVirConfigCapabilitiesCpuTopologyPrivate GVirConfigCapabilitiesCpuTopologyPrivate;
41 typedef struct _GVirConfigCapabilitiesCpuTopologyClass GVirConfigCapabilitiesCpuTopologyClass;
42
43 struct _GVirConfigCapabilitiesCpuTopology
44 {
45 GVirConfigObject parent;
46
47 GVirConfigCapabilitiesCpuTopologyPrivate *priv;
48
49 /* Do not add fields to this struct */
50 };
51
52 struct _GVirConfigCapabilitiesCpuTopologyClass
53 {
54 GVirConfigObjectClass parent_class;
55
56 gpointer padding[20];
57 };
58
59 GType gvir_config_capabilities_cpu_topology_get_type(void);
60
61 GVirConfigCapabilitiesCpuTopology *gvir_config_capabilities_cpu_topology_new(void);
62 GVirConfigCapabilitiesCpuTopology *
63 gvir_config_capabilities_cpu_topology_new_from_xml(const gchar *xml, GError **error);
64 guint64
65 gvir_config_capabilities_cpu_topology_get_sockets(GVirConfigCapabilitiesCpuTopology *topology);
66 void
67 gvir_config_capabilities_cpu_topology_set_sockets(GVirConfigCapabilitiesCpuTopology *topology,
68 guint64 sockets);
69 guint64
70 gvir_config_capabilities_cpu_topology_get_cores(GVirConfigCapabilitiesCpuTopology *topology);
71 void
72 gvir_config_capabilities_cpu_topology_set_cores(GVirConfigCapabilitiesCpuTopology *topology,
73 guint64 cores);
74 guint64
75 gvir_config_capabilities_cpu_topology_get_threads(GVirConfigCapabilitiesCpuTopology *topology);
76 void
77 gvir_config_capabilities_cpu_topology_set_threads(GVirConfigCapabilitiesCpuTopology *topology,
78 guint64 threads);
79
80 G_END_DECLS
81
82 #endif /* __LIBVIRT_GCONFIG_CAPABILITIES_CPU_TOPOLOGY_H__ */
0 /*
1 * libvirt-gconfig-capabilities-cpu.c: libvirt CPU capabilities
2 *
3 * Copyright (C) 2008 Daniel P. Berrange
4 * Copyright (C) 2010-2012 Red Hat, Inc.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 *
20 * Authors: Zeeshan Ali <zeenix@redhat.com>
21 * Daniel P. Berrange <berrange@redhat.com>
22 */
23
24 #include <config.h>
25
26 #include "libvirt-gconfig/libvirt-gconfig.h"
27 #include "libvirt-gconfig/libvirt-gconfig-private.h"
28
29 #define GVIR_CONFIG_CAPABILITIES_CPU_GET_PRIVATE(obj) \
30 (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_CAPABILITIES_CPU, GVirConfigCapabilitiesCpuPrivate))
31
32 struct _GVirConfigCapabilitiesCpuPrivate
33 {
34 gboolean unused;
35 };
36
37 G_DEFINE_TYPE(GVirConfigCapabilitiesCpu, gvir_config_capabilities_cpu, GVIR_CONFIG_TYPE_OBJECT);
38
39 static GList *
40 _gvir_config_capabilities_cpu_get_features(GVirConfigCapabilitiesCpu *cpu);
41
42 static void gvir_config_capabilities_cpu_class_init(GVirConfigCapabilitiesCpuClass *klass)
43 {
44 g_type_class_add_private(klass, sizeof(GVirConfigCapabilitiesCpuPrivate));
45
46 klass->get_features = _gvir_config_capabilities_cpu_get_features;
47 }
48
49 static void gvir_config_capabilities_cpu_init(GVirConfigCapabilitiesCpu *cpu)
50 {
51 g_debug("Init GVirConfigCapabilitiesCpu=%p", cpu);
52
53 cpu->priv = GVIR_CONFIG_CAPABILITIES_CPU_GET_PRIVATE(cpu);
54 }
55
56 const gchar *
57 gvir_config_capabilities_cpu_get_arch(GVirConfigCapabilitiesCpu *cpu)
58 {
59 return gvir_config_object_get_node_content(GVIR_CONFIG_OBJECT(cpu), "arch");
60 }
61
62 /**
63 * gvir_config_capabilities_cpu_add_feature:
64 *
65 * Adds a new feature to CPU.
66 */
67 void gvir_config_capabilities_cpu_add_feature(GVirConfigCapabilitiesCpu *cpu,
68 GVirConfigCapabilitiesCpuFeature *feature)
69 {
70 g_return_if_fail(GVIR_CONFIG_IS_CAPABILITIES_CPU(cpu));
71 g_return_if_fail(GVIR_CONFIG_IS_CAPABILITIES_CPU_FEATURE(feature));
72
73 gvir_config_object_attach_add(GVIR_CONFIG_OBJECT(cpu),
74 GVIR_CONFIG_OBJECT(feature));
75 }
76
77 struct GetFeatureData {
78 GVirConfigXmlDoc *doc;
79 const gchar *schema;
80 GList *features;
81 GType type;
82 };
83
84 static gboolean add_feature(xmlNodePtr node, gpointer opaque)
85 {
86 struct GetFeatureData* data = (struct GetFeatureData*)opaque;
87 GVirConfigObject *feature;
88
89 if (g_strcmp0((const gchar *)node->name, "feature") != 0)
90 return TRUE;
91
92 feature = gvir_config_object_new_from_tree
93 (data->type,
94 data->doc,
95 data->schema,
96 node);
97 if (feature != NULL)
98 data->features = g_list_append(data->features, feature);
99 else
100 g_debug("Failed to parse %s node", node->name);
101
102 return TRUE;
103 }
104
105 G_GNUC_INTERNAL GList *
106 gvir_config_capabilities_cpu_get_features_with_type(GVirConfigCapabilitiesCpu *cpu,
107 GType type)
108 {
109 struct GetFeatureData data;
110
111 g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES_CPU(cpu), NULL);
112
113 data.schema = gvir_config_object_get_schema(GVIR_CONFIG_OBJECT(cpu));
114 g_object_get(G_OBJECT(cpu), "doc", &data.doc, NULL);
115 g_return_val_if_fail(data.doc != NULL, NULL);
116 data.features = NULL;
117 data.type = type;
118
119 gvir_config_object_foreach_child(GVIR_CONFIG_OBJECT(cpu),
120 NULL,
121 add_feature,
122 &data);
123 g_clear_object(&data.doc);
124
125 return data.features;
126 }
127
128 static GList *
129 _gvir_config_capabilities_cpu_get_features(GVirConfigCapabilitiesCpu *cpu)
130 {
131 return gvir_config_capabilities_cpu_get_features_with_type(
132 cpu, GVIR_CONFIG_TYPE_CAPABILITIES_CPU_FEATURE);
133 }
134
135 /**
136 * gvir_config_capabilities_cpu_get_features:
137 *
138 * Gets the features of this CPU.
139 *
140 * Returns: (element-type LibvirtGConfig.CapabilitiesCpuFeature) (transfer full):
141 * a newly allocated #GList of #GVirConfigCapabilitiesCpuFeature.
142 */
143 GList *
144 gvir_config_capabilities_cpu_get_features(GVirConfigCapabilitiesCpu *cpu)
145 {
146 return GVIR_CONFIG_CAPABILITIES_CPU_GET_CLASS(cpu)->get_features(cpu);
147 }
148
149 /**
150 * gvir_config_capabilities_cpu_get_topology:
151 *
152 * Gets the topology of the cpu.
153 *
154 * Returns: (transfer full): a new #GVirConfigCapabilitiesCpuTopology.
155 */
156 GVirConfigCapabilitiesCpuTopology *
157 gvir_config_capabilities_cpu_get_topology(GVirConfigCapabilitiesCpu *cpu)
158 {
159 GVirConfigObject *object;
160
161 g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES_CPU(cpu), NULL);
162
163 object = gvir_config_object_get_child_with_type
164 (GVIR_CONFIG_OBJECT(cpu),
165 "topology",
166 GVIR_CONFIG_TYPE_CAPABILITIES_CPU_TOPOLOGY);
167
168 return GVIR_CONFIG_CAPABILITIES_CPU_TOPOLOGY(object);
169 }
170
171 /**
172 * gvir_config_capabilities_cpu_set_topology:
173 *
174 * Sets the topology of the cpu.
175 */
176 void
177 gvir_config_capabilities_cpu_set_topology(GVirConfigCapabilitiesCpu *cpu,
178 GVirConfigCapabilitiesCpuTopology *topology)
179 {
180 g_return_if_fail(GVIR_CONFIG_IS_CAPABILITIES_CPU(cpu));
181 g_return_if_fail(GVIR_CONFIG_IS_CAPABILITIES_CPU_TOPOLOGY(topology));
182
183 gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(cpu),
184 "topology",
185 GVIR_CONFIG_OBJECT(topology));
186 }
0 /*
1 * libvirt-gconfig-capabilities-cpu.h: libvirt CPU capabilities
2 *
3 * Copyright (C) 2010-2012 Red Hat, Inc.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * Authors: Zeeshan Ali <zeenix@redhat.com>
20 * Daniel P. Berrange <berrange@redhat.com>
21 */
22
23 #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD)
24 #error "Only <libvirt-gconfig/libvirt-gconfig.h> can be included directly."
25 #endif
26
27 #ifndef __LIBVIRT_GCONFIG_CAPABILITIES_CPU_H__
28 #define __LIBVIRT_GCONFIG_CAPABILITIES_CPU_H__
29
30 #include "libvirt-gconfig-capabilities-cpu-topology.h"
31 #include "libvirt-gconfig-capabilities-cpu-feature.h"
32
33 G_BEGIN_DECLS
34
35 #define GVIR_CONFIG_TYPE_CAPABILITIES_CPU (gvir_config_capabilities_cpu_get_type ())
36 #define GVIR_CONFIG_CAPABILITIES_CPU(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_CPU, GVirConfigCapabilitiesCpu))
37 #define GVIR_CONFIG_CAPABILITIES_CPU_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_CPU, GVirConfigCapabilitiesCpuClass))
38 #define GVIR_CONFIG_IS_CAPABILITIES_CPU(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_CPU))
39 #define GVIR_CONFIG_IS_CAPABILITIES_CPU_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_CPU))
40 #define GVIR_CONFIG_CAPABILITIES_CPU_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_CPU, GVirConfigCapabilitiesCpuClass))
41
42 typedef struct _GVirConfigCapabilitiesCpu GVirConfigCapabilitiesCpu;
43 typedef struct _GVirConfigCapabilitiesCpuPrivate GVirConfigCapabilitiesCpuPrivate;
44 typedef struct _GVirConfigCapabilitiesCpuClass GVirConfigCapabilitiesCpuClass;
45
46 struct _GVirConfigCapabilitiesCpu
47 {
48 GVirConfigObject parent;
49
50 GVirConfigCapabilitiesCpuPrivate *priv;
51
52 /* Do not add fields to this struct */
53 };
54
55 struct _GVirConfigCapabilitiesCpuClass
56 {
57 GVirConfigObjectClass parent_class;
58
59 GList *(*get_features)(GVirConfigCapabilitiesCpu *cpu);
60
61 gpointer padding[19];
62 };
63
64 GType gvir_config_capabilities_cpu_get_type(void);
65
66 const gchar *
67 gvir_config_capabilities_cpu_get_arch(GVirConfigCapabilitiesCpu *cpu);
68 void gvir_config_capabilities_cpu_add_feature(GVirConfigCapabilitiesCpu *cpu,
69 GVirConfigCapabilitiesCpuFeature *feature);
70 GList *
71 gvir_config_capabilities_cpu_get_features(GVirConfigCapabilitiesCpu *cpu);
72 GVirConfigCapabilitiesCpuTopology *
73 gvir_config_capabilities_cpu_get_topology(GVirConfigCapabilitiesCpu *cpu);
74 void
75 gvir_config_capabilities_cpu_set_topology(GVirConfigCapabilitiesCpu *cpu,
76 GVirConfigCapabilitiesCpuTopology *topology);
77
78 G_END_DECLS
79
80 #endif /* __LIBVIRT_GCONFIG_CAPABILITIES_CPU_H__ */
0 /*
1 * libvirt-gconfig-capabilities-cpu-arch.c: libvirt guest architecture capabilities
2 *
3 * Copyright (C) 2008 Daniel P. Berrange
4 * Copyright (C) 2010-2012 Red Hat, Inc.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 *
20 * Authors: Zeeshan Ali <zeenix@redhat.com>
21 * Daniel P. Berrange <berrange@redhat.com>
22 */
23
24 #include <config.h>
25
26 #include "libvirt-gconfig/libvirt-gconfig.h"
27 #include "libvirt-gconfig/libvirt-gconfig-private.h"
28
29 #define GVIR_CONFIG_CAPABILITIES_GUEST_ARCH_GET_PRIVATE(obj) \
30 (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_ARCH, GVirConfigCapabilitiesGuestArchPrivate))
31
32 struct _GVirConfigCapabilitiesGuestArchPrivate
33 {
34 gboolean unused;
35 };
36
37 G_DEFINE_TYPE(GVirConfigCapabilitiesGuestArch, gvir_config_capabilities_guest_arch, GVIR_CONFIG_TYPE_OBJECT);
38
39 static void gvir_config_capabilities_guest_arch_class_init(GVirConfigCapabilitiesGuestArchClass *klass)
40 {
41 g_type_class_add_private(klass, sizeof(GVirConfigCapabilitiesGuestArchPrivate));
42 }
43
44 static void gvir_config_capabilities_guest_arch_init(GVirConfigCapabilitiesGuestArch *arch)
45 {
46 g_debug("Init GVirConfigCapabilitiesGuestArch=%p", arch);
47
48 arch->priv = GVIR_CONFIG_CAPABILITIES_GUEST_ARCH_GET_PRIVATE(arch);
49 }
50
51 const gchar *
52 gvir_config_capabilities_guest_arch_get_name(GVirConfigCapabilitiesGuestArch *arch)
53 {
54 g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES_GUEST_ARCH(arch), NULL);
55
56 return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(arch),
57 NULL,
58 "name");
59 }
60
61 struct GetDomainData {
62 GVirConfigXmlDoc *doc;
63 const gchar *schema;
64 GList *domains;
65 };
66
67 static gboolean add_domain(xmlNodePtr node, gpointer opaque)
68 {
69 struct GetDomainData* data = (struct GetDomainData*)opaque;
70 GVirConfigObject *object;
71
72 if (g_strcmp0((const gchar *)node->name, "domain") != 0)
73 return TRUE;
74
75 object = gvir_config_object_new_from_tree
76 (GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_DOMAIN,
77 data->doc,
78 data->schema,
79 node);
80 if (object != NULL)
81 data->domains = g_list_append(data->domains, object);
82 else
83 g_debug("Failed to parse %s node", node->name);
84
85 return TRUE;
86 }
87
88 /**
89 * gvir_config_capabilities_guest_arch_get_domains:
90 *
91 * Gets the possible domains for this architecture.
92 *
93 * Returns: (element-type LibvirtGConfig.CapabilitiesGuestDomain) (transfer full):
94 * a newly allocated #GList of #GVirConfigCapabilitiesGuestDomain.
95 */
96 GList *
97 gvir_config_capabilities_guest_arch_get_domains(GVirConfigCapabilitiesGuestArch *arch)
98 {
99 struct GetDomainData data;
100
101 g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES_GUEST_ARCH(arch), NULL);
102
103 g_object_get(G_OBJECT(arch), "doc", &data.doc, NULL);
104 g_return_val_if_fail(data.doc != NULL, NULL);
105 data.schema = gvir_config_object_get_schema(GVIR_CONFIG_OBJECT(arch));
106 data.domains = NULL;
107
108 gvir_config_object_foreach_child(GVIR_CONFIG_OBJECT(arch),
109 NULL,
110 add_domain,
111 &data);
112 g_clear_object(&data.doc);
113
114 return data.domains;
115 }
116
117 const gchar *
118 gvir_config_capabilities_guest_arch_get_emulator(GVirConfigCapabilitiesGuestArch *arch)
119 {
120 g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES_GUEST_ARCH(arch), NULL);
121
122 return gvir_config_object_get_node_content(GVIR_CONFIG_OBJECT(arch),
123 "emulator");
124 }
0 /*
1 * libvirt-gconfig-capabilities-guest-arch.h: libvirt guest architecture capabilities
2 *
3 * Copyright (C) 2010-2012 Red Hat, Inc.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * Authors: Zeeshan Ali <zeenix@redhat.com>
20 * Daniel P. Berrange <berrange@redhat.com>
21 */
22
23 #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD)
24 #error "Only <libvirt-gconfig/libvirt-gconfig.h> can be included directly."
25 #endif
26
27 #ifndef __LIBVIRT_GCONFIG_CAPABILITIES_GUEST_ARCH_H__
28 #define __LIBVIRT_GCONFIG_CAPABILITIES_GUEST_ARCH_H__
29
30 G_BEGIN_DECLS
31
32 #define GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_ARCH (gvir_config_capabilities_guest_arch_get_type ())
33 #define GVIR_CONFIG_CAPABILITIES_GUEST_ARCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_ARCH, GVirConfigCapabilitiesGuestArch))
34 #define GVIR_CONFIG_CAPABILITIES_GUEST_ARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_ARCH, GVirConfigCapabilitiesGuestArchClass))
35 #define GVIR_CONFIG_IS_CAPABILITIES_GUEST_ARCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_ARCH))
36 #define GVIR_CONFIG_IS_CAPABILITIES_GUEST_ARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_ARCH))
37 #define GVIR_CONFIG_CAPABILITIES_GUEST_ARCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_ARCH, GVirConfigCapabilitiesGuestArchClass))
38
39 typedef struct _GVirConfigCapabilitiesGuestArch GVirConfigCapabilitiesGuestArch;
40 typedef struct _GVirConfigCapabilitiesGuestArchPrivate GVirConfigCapabilitiesGuestArchPrivate;
41 typedef struct _GVirConfigCapabilitiesGuestArchClass GVirConfigCapabilitiesGuestArchClass;
42
43 struct _GVirConfigCapabilitiesGuestArch
44 {
45 GVirConfigObject parent;
46
47 GVirConfigCapabilitiesGuestArchPrivate *priv;
48
49 /* Do not add fields to this struct */
50 };
51
52 struct _GVirConfigCapabilitiesGuestArchClass
53 {
54 GVirConfigObjectClass parent_class;
55
56 gpointer padding[20];
57 };
58
59 GType gvir_config_capabilities_guest_arch_get_type(void);
60
61 const gchar *
62 gvir_config_capabilities_guest_arch_get_name(GVirConfigCapabilitiesGuestArch *arch);
63 GList *
64 gvir_config_capabilities_guest_arch_get_domains(GVirConfigCapabilitiesGuestArch *arch);
65 const gchar *
66 gvir_config_capabilities_guest_arch_get_emulator(GVirConfigCapabilitiesGuestArch *arch);
67
68 G_END_DECLS
69
70 #endif /* __LIBVIRT_GCONFIG_CAPABILITIES_GUEST_ARCH_H__ */
0 /*
1 * libvirt-gconfig-capabilities-guest-domain.c: libvirt guest domain capabilities
2 *
3 * Copyright (C) 2008 Daniel P. Berrange
4 * Copyright (C) 2010-2012 Red Hat, Inc.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 *
20 * Authors: Zeeshan Ali <zeenix@redhat.com>
21 * Daniel P. Berrange <berrange@redhat.com>
22 */
23
24 #include <config.h>
25
26 #include "libvirt-gconfig/libvirt-gconfig.h"
27 #include "libvirt-gconfig/libvirt-gconfig-private.h"
28
29 #define GVIR_CONFIG_CAPABILITIES_GUEST_DOMAIN_GET_PRIVATE(obj) \
30 (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_DOMAIN, GVirConfigCapabilitiesGuestDomainPrivate))
31
32 struct _GVirConfigCapabilitiesGuestDomainPrivate
33 {
34 gboolean unused;
35 };
36
37 G_DEFINE_TYPE(GVirConfigCapabilitiesGuestDomain, gvir_config_capabilities_guest_domain, GVIR_CONFIG_TYPE_OBJECT);
38
39
40 static void gvir_config_capabilities_guest_domain_class_init(GVirConfigCapabilitiesGuestDomainClass *klass)
41 {
42 g_type_class_add_private(klass, sizeof(GVirConfigCapabilitiesGuestDomainPrivate));
43 }
44
45 static void gvir_config_capabilities_guest_domain_init(GVirConfigCapabilitiesGuestDomain *domain)
46 {
47 g_debug("Init GVirConfigCapabilitiesGuestDomain=%p", domain);
48
49 domain->priv = GVIR_CONFIG_CAPABILITIES_GUEST_DOMAIN_GET_PRIVATE(domain);
50 }
51
52 const gchar *
53 gvir_config_capabilities_guest_domain_get_emulator(GVirConfigCapabilitiesGuestDomain *domain)
54 {
55 g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES_GUEST_DOMAIN(domain), NULL);
56
57 return gvir_config_object_get_node_content(GVIR_CONFIG_OBJECT(domain), "emulator");
58 }
59
60 GVirConfigDomainVirtType
61 gvir_config_capabilities_guest_domain_get_virt_type(GVirConfigCapabilitiesGuestDomain *domain)
62 {
63 g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES_GUEST_DOMAIN(domain),
64 GVIR_CONFIG_DOMAIN_VIRT_QEMU);
65
66 return gvir_config_object_get_attribute_genum
67 (GVIR_CONFIG_OBJECT(domain),
68 NULL,
69 "type",
70 GVIR_CONFIG_TYPE_DOMAIN_VIRT_TYPE,
71 GVIR_CONFIG_DOMAIN_VIRT_QEMU);
72 }
0 /*
1 * libvirt-gconfig-capabilities-guest-domain.h: libvirt guest domain capabilities
2 *
3 * Copyright (C) 2010-2012 Red Hat, Inc.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * Authors: Zeeshan Ali <zeenix@redhat.com>
20 * Daniel P. Berrange <berrange@redhat.com>
21 */
22
23 #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD)
24 #error "Only <libvirt-gconfig/libvirt-gconfig.h> can be included directly."
25 #endif
26
27 #ifndef __LIBVIRT_GCONFIG_CAPABILITIES_GUEST_DOMAIN_H__
28 #define __LIBVIRT_GCONFIG_CAPABILITIES_GUEST_DOMAIN_H__
29
30 #include "libvirt-gconfig-domain.h"
31
32 G_BEGIN_DECLS
33
34 #define GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_DOMAIN (gvir_config_capabilities_guest_domain_get_type ())
35 #define GVIR_CONFIG_CAPABILITIES_GUEST_DOMAIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_DOMAIN, GVirConfigCapabilitiesGuestDomain))
36 #define GVIR_CONFIG_CAPABILITIES_GUEST_DOMAIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_DOMAIN, GVirConfigCapabilitiesGuestDomainClass))
37 #define GVIR_CONFIG_IS_CAPABILITIES_GUEST_DOMAIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_DOMAIN))
38 #define GVIR_CONFIG_IS_CAPABILITIES_GUEST_DOMAIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_DOMAIN))
39 #define GVIR_CONFIG_CAPABILITIES_GUEST_DOMAIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_DOMAIN, GVirConfigCapabilitiesGuestDomainClass))
40
41 typedef struct _GVirConfigCapabilitiesGuestDomain GVirConfigCapabilitiesGuestDomain;
42 typedef struct _GVirConfigCapabilitiesGuestDomainPrivate GVirConfigCapabilitiesGuestDomainPrivate;
43 typedef struct _GVirConfigCapabilitiesGuestDomainClass GVirConfigCapabilitiesGuestDomainClass;
44
45 struct _GVirConfigCapabilitiesGuestDomain
46 {
47 GVirConfigObject parent;
48
49 GVirConfigCapabilitiesGuestDomainPrivate *priv;
50
51 /* Do not add fields to this struct */
52 };
53
54 struct _GVirConfigCapabilitiesGuestDomainClass
55 {
56 GVirConfigObjectClass parent_class;
57
58 gpointer padding[20];
59 };
60
61 GType gvir_config_capabilities_guest_domain_get_type(void);
62
63 const gchar *
64 gvir_config_capabilities_guest_domain_get_emulator(GVirConfigCapabilitiesGuestDomain *domain);
65
66 GVirConfigDomainVirtType
67 gvir_config_capabilities_guest_domain_get_virt_type(GVirConfigCapabilitiesGuestDomain *domain);
68
69 G_END_DECLS
70
71 #endif /* __LIBVIRT_GCONFIG_CAPABILITIES_GUEST_DOMAIN_H__ */
0 /*
1 * libvirt-gconfig-capabilities-guest-feature.c: libvirt guest feature capabilities
2 *
3 * Copyright (C) 2008 Daniel P. Berrange
4 * Copyright (C) 2010-2012 Red Hat, Inc.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 *
20 * Authors: Zeeshan Ali <zeenix@redhat.com>
21 * Daniel P. Berrange <berrange@redhat.com>
22 */
23
24 #include <config.h>
25
26 #include "libvirt-gconfig/libvirt-gconfig.h"
27 #include "libvirt-gconfig/libvirt-gconfig-private.h"
28
29 #define GVIR_CONFIG_CAPABILITIES_GUEST_FEATURE_GET_PRIVATE(obj) \
30 (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_FEATURE, GVirConfigCapabilitiesGuestFeaturePrivate))
31
32 struct _GVirConfigCapabilitiesGuestFeaturePrivate
33 {
34 gboolean unused;
35 };
36
37 G_DEFINE_TYPE(GVirConfigCapabilitiesGuestFeature, gvir_config_capabilities_guest_feature, GVIR_CONFIG_TYPE_OBJECT);
38
39 static void gvir_config_capabilities_guest_feature_class_init(GVirConfigCapabilitiesGuestFeatureClass *klass)
40 {
41 g_type_class_add_private(klass, sizeof(GVirConfigCapabilitiesGuestFeaturePrivate));
42 }
43
44 static void gvir_config_capabilities_guest_feature_init(GVirConfigCapabilitiesGuestFeature *feature)
45 {
46 g_debug("Init GVirConfigCapabilitiesGuestFeature=%p", feature);
47
48 feature->priv = GVIR_CONFIG_CAPABILITIES_GUEST_FEATURE_GET_PRIVATE(feature);
49 }
50
51 const gchar *
52 gvir_config_capabilities_guest_feature_get_name(GVirConfigCapabilitiesGuestFeature *feature)
53 {
54 xmlNodePtr node;
55
56 node = gvir_config_object_get_xml_node(GVIR_CONFIG_OBJECT(feature));
57 g_return_val_if_fail(node != NULL, NULL);
58
59 return (const gchar *)node->name;
60 }
0 /*
1 * libvirt-gconfig-capabilities-guest-feature.h: libvirt guest feature capabilities
2 *
3 * Copyright (C) 2010-2012 Red Hat, Inc.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * Authors: Zeeshan Ali <zeenix@redhat.com>
20 * Daniel P. Berrange <berrange@redhat.com>
21 */
22
23 #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD)
24 #error "Only <libvirt-gconfig/libvirt-gconfig.h> can be included directly."
25 #endif
26
27 #ifndef __LIBVIRT_GCONFIG_CAPABILITIES_GUEST_FEATURE_H__
28 #define __LIBVIRT_GCONFIG_CAPABILITIES_GUEST_FEATURE_H__
29
30 G_BEGIN_DECLS
31
32 #define GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_FEATURE (gvir_config_capabilities_guest_feature_get_type ())
33 #define GVIR_CONFIG_CAPABILITIES_GUEST_FEATURE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_FEATURE, GVirConfigCapabilitiesGuestFeature))
34 #define GVIR_CONFIG_CAPABILITIES_GUEST_FEATURE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_FEATURE, GVirConfigCapabilitiesGuestFeatureClass))
35 #define GVIR_CONFIG_IS_CAPABILITIES_GUEST_FEATURE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_FEATURE))
36 #define GVIR_CONFIG_IS_CAPABILITIES_GUEST_FEATURE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_FEATURE))
37 #define GVIR_CONFIG_CAPABILITIES_GUEST_FEATURE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_FEATURE, GVirConfigCapabilitiesGuestFeatureClass))
38
39 typedef struct _GVirConfigCapabilitiesGuestFeature GVirConfigCapabilitiesGuestFeature;
40 typedef struct _GVirConfigCapabilitiesGuestFeaturePrivate GVirConfigCapabilitiesGuestFeaturePrivate;
41 typedef struct _GVirConfigCapabilitiesGuestFeatureClass GVirConfigCapabilitiesGuestFeatureClass;
42
43 struct _GVirConfigCapabilitiesGuestFeature
44 {
45 GVirConfigObject parent;
46
47 GVirConfigCapabilitiesGuestFeaturePrivate *priv;
48
49 /* Do not add fields to this struct */
50 };
51
52 struct _GVirConfigCapabilitiesGuestFeatureClass
53 {
54 GVirConfigObjectClass parent_class;
55
56 gpointer padding[20];
57 };
58
59 GType gvir_config_capabilities_guest_feature_get_type(void);
60
61 const gchar *
62 gvir_config_capabilities_guest_feature_get_name(GVirConfigCapabilitiesGuestFeature *feature);
63
64 G_END_DECLS
65
66 #endif /* __LIBVIRT_GCONFIG_CAPABILITIES_GUEST_FEATURE_H__ */
0 /*
1 * libvirt-gconfig-capabilities-guest.c: libvirt guest capabilities
2 *
3 * Copyright (C) 2008 Daniel P. Berrange
4 * Copyright (C) 2010-2012 Red Hat, Inc.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 *
20 * Authors: Zeeshan Ali <zeenix@redhat.com>
21 * Daniel P. Berrange <berrange@redhat.com>
22 */
23
24 #include <config.h>
25
26 #include "libvirt-gconfig/libvirt-gconfig.h"
27 #include "libvirt-gconfig/libvirt-gconfig-private.h"
28
29 #define GVIR_CONFIG_CAPABILITIES_GUEST_GET_PRIVATE(obj) \
30 (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST, GVirConfigCapabilitiesGuestPrivate))
31
32 struct _GVirConfigCapabilitiesGuestPrivate
33 {
34 gboolean unused;
35 };
36
37 G_DEFINE_TYPE(GVirConfigCapabilitiesGuest, gvir_config_capabilities_guest, GVIR_CONFIG_TYPE_OBJECT);
38
39
40 static void gvir_config_capabilities_guest_class_init(GVirConfigCapabilitiesGuestClass *klass)
41 {
42 g_type_class_add_private(klass, sizeof(GVirConfigCapabilitiesGuestPrivate));
43 }
44
45 static void gvir_config_capabilities_guest_init(GVirConfigCapabilitiesGuest *guest)
46 {
47 g_debug("Init GVirConfigCapabilitiesGuest=%p", guest);
48
49 guest->priv = GVIR_CONFIG_CAPABILITIES_GUEST_GET_PRIVATE(guest);
50 }
51
52 GVirConfigDomainOsType
53 gvir_config_capabilities_guest_get_os_type(GVirConfigCapabilitiesGuest *guest)
54 {
55 g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES_GUEST(guest),
56 GVIR_CONFIG_DOMAIN_OS_TYPE_LINUX);
57
58 return gvir_config_object_get_node_content_genum(GVIR_CONFIG_OBJECT(guest),
59 "os_type",
60 GVIR_CONFIG_TYPE_DOMAIN_OS_TYPE,
61 GVIR_CONFIG_DOMAIN_OS_TYPE_LINUX);
62 }
63
64 /**
65 * gvir_config_capabilities_guest_get_arch:
66 *
67 * Gets the CPU architecture capabilities of the guest.
68 *
69 * Returns: (transfer full): a new #GVirConfigCapabilitiesGuestArch.
70 */
71 GVirConfigCapabilitiesGuestArch *
72 gvir_config_capabilities_guest_get_arch(GVirConfigCapabilitiesGuest *guest)
73 {
74 GVirConfigObject *object;
75
76 g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES_GUEST(guest), NULL);
77
78 object = gvir_config_object_get_child_with_type
79 (GVIR_CONFIG_OBJECT(guest),
80 "arch",
81 GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_ARCH);
82
83 return GVIR_CONFIG_CAPABILITIES_GUEST_ARCH(object);
84 }
85
86 struct GetFeatureData {
87 GVirConfigXmlDoc *doc;
88 const gchar *schema;
89 GList *features;
90 };
91
92 static gboolean add_feature(xmlNodePtr node, gpointer opaque)
93 {
94 struct GetFeatureData* data = (struct GetFeatureData*)opaque;
95 GVirConfigObject *object;
96
97 object = gvir_config_object_new_from_tree
98 (GVIR_CONFIG_TYPE_CAPABILITIES_GUEST_FEATURE,
99 data->doc,
100 data->schema,
101 node);
102 if (object != NULL)
103 data->features = g_list_append(data->features, object);
104 else
105 g_debug("Failed to parse %s node", node->name);
106
107 return TRUE;
108 }
109
110 /**
111 * gvir_config_capabilities_guest_get_features:
112 *
113 * Gets the CPU features for this guest.
114 *
115 * Returns: (element-type LibvirtGConfig.CapabilitiesGuestFeature) (transfer full):
116 * a newly allocated #GList of #GVirConfigCapabilitiesGuestFeature.
117 */
118 GList *
119 gvir_config_capabilities_guest_get_features(GVirConfigCapabilitiesGuest *guest)
120 {
121 struct GetFeatureData data;
122
123 g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES_GUEST(guest), NULL);
124
125 g_object_get(G_OBJECT(guest), "doc", &data.doc, NULL);
126 g_return_val_if_fail(data.doc != NULL, NULL);
127 data.schema = gvir_config_object_get_schema(GVIR_CONFIG_OBJECT(guest));
128 data.features = NULL;
129
130 gvir_config_object_foreach_child(GVIR_CONFIG_OBJECT(guest),
131 "features",
132 add_feature,
133 &data);
134
135 g_clear_object(&data.doc);
136
137 return data.features;
138 }
0 /*
1 * libvirt-gconfig-capabilities-guest.h: libvirt guest capabilities
2 *
3 * Copyright (C) 2010-2012 Red Hat, Inc.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * Authors: Zeeshan Ali <zeenix@redhat.com>
20 * Daniel P. Berrange <berrange@redhat.com>
21 */
22
23 #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD)
24 #error "Only <libvirt-gconfig/libvirt-gconfig.h> can be included directly."
25 #endif
26
27 #ifndef __LIBVIRT_GCONFIG_CAPABILITIES_GUEST_H__
28 #define __LIBVIRT_GCONFIG_CAPABILITIES_GUEST_H__
29
30 #include "libvirt-gconfig-domain-os.h"
31 #include "libvirt-gconfig-capabilities-guest-arch.h"
32
33 G_BEGIN_DECLS
34
35 #define GVIR_CONFIG_TYPE_CAPABILITIES_GUEST (gvir_config_capabilities_guest_get_type ())
36 #define GVIR_CONFIG_CAPABILITIES_GUEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST, GVirConfigCapabilitiesGuest))
37 #define GVIR_CONFIG_CAPABILITIES_GUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST, GVirConfigCapabilitiesGuestClass))
38 #define GVIR_CONFIG_IS_CAPABILITIES_GUEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST))
39 #define GVIR_CONFIG_IS_CAPABILITIES_GUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST))
40 #define GVIR_CONFIG_CAPABILITIES_GUEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_GUEST, GVirConfigCapabilitiesGuestClass))
41
42 typedef struct _GVirConfigCapabilitiesGuest GVirConfigCapabilitiesGuest;
43 typedef struct _GVirConfigCapabilitiesGuestPrivate GVirConfigCapabilitiesGuestPrivate;
44 typedef struct _GVirConfigCapabilitiesGuestClass GVirConfigCapabilitiesGuestClass;
45
46 struct _GVirConfigCapabilitiesGuest
47 {
48 GVirConfigObject parent;
49
50 GVirConfigCapabilitiesGuestPrivate *priv;
51
52 /* Do not add fields to this struct */
53 };
54
55 struct _GVirConfigCapabilitiesGuestClass
56 {
57 GVirConfigObjectClass parent_class;
58
59 gpointer padding[20];
60 };
61
62 GType gvir_config_capabilities_guest_get_type(void);
63
64 GVirConfigDomainOsType
65 gvir_config_capabilities_guest_get_os_type(GVirConfigCapabilitiesGuest *guest);
66
67 GVirConfigCapabilitiesGuestArch *
68 gvir_config_capabilities_guest_get_arch(GVirConfigCapabilitiesGuest *guest);
69 GList *
70 gvir_config_capabilities_guest_get_features(GVirConfigCapabilitiesGuest *guest);
71
72 G_END_DECLS
73
74 #endif /* __LIBVIRT_GCONFIG_CAPABILITIES_GUEST_H__ */
0 /*
1 * libvirt-gconfig-capabilities-host.c: libvirt host capabilities
2 *
3 * Copyright (C) 2008 Daniel P. Berrange
4 * Copyright (C) 2010-2012 Red Hat, Inc.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 *
20 * Authors: Zeeshan Ali <zeenix@redhat.com>
21 * Daniel P. Berrange <berrange@redhat.com>
22 */
23
24 #include <config.h>
25
26 #include "libvirt-gconfig/libvirt-gconfig.h"
27 #include "libvirt-gconfig/libvirt-gconfig-private.h"
28
29 #define GVIR_CONFIG_CAPABILITIES_HOST_GET_PRIVATE(obj) \
30 (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_CAPABILITIES_HOST, GVirConfigCapabilitiesHostPrivate))
31
32 struct _GVirConfigCapabilitiesHostPrivate
33 {
34 gboolean unused;
35 };
36
37 G_DEFINE_TYPE(GVirConfigCapabilitiesHost, gvir_config_capabilities_host, GVIR_CONFIG_TYPE_OBJECT);
38
39
40 static void gvir_config_capabilities_host_class_init(GVirConfigCapabilitiesHostClass *klass)
41 {
42 g_type_class_add_private(klass, sizeof(GVirConfigCapabilitiesHostPrivate));
43 }
44
45 static void gvir_config_capabilities_host_init(GVirConfigCapabilitiesHost *host)
46 {
47 g_debug("Init GVirConfigCapabilitiesHost=%p", host);
48
49 host->priv = GVIR_CONFIG_CAPABILITIES_HOST_GET_PRIVATE(host);
50 }
51
52 const gchar *
53 gvir_config_capabilities_host_get_uuid(GVirConfigCapabilitiesHost *host)
54 {
55 return gvir_config_object_get_node_content(GVIR_CONFIG_OBJECT(host), "uuid");
56 }
57
58 /**
59 * gvir_config_capabilities_host_get_cpu:
60 *
61 * Gets the CPU capabilities of the host.
62 *
63 * Returns: (transfer full): a new #GVirConfigCapabilitiesCpu.
64 */
65 GVirConfigCapabilitiesCpu *
66 gvir_config_capabilities_host_get_cpu(GVirConfigCapabilitiesHost *host)
67 {
68 GVirConfigObject *object;
69
70 g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES_HOST(host), NULL);
71
72 object = gvir_config_object_get_child_with_type
73 (GVIR_CONFIG_OBJECT(host),
74 "cpu",
75 GVIR_CONFIG_TYPE_CAPABILITIES_CPU);
76
77 return GVIR_CONFIG_CAPABILITIES_CPU(object);
78 }
0 /*
1 * libvirt-gconfig-capabilities-host.h: libvirt host capabilities
2 *
3 * Copyright (C) 2010-2012 Red Hat, Inc.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * Authors: Zeeshan Ali <zeenix@redhat.com>
20 * Daniel P. Berrange <berrange@redhat.com>
21 */
22
23 #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD)
24 #error "Only <libvirt-gconfig/libvirt-gconfig.h> can be included directly."
25 #endif
26
27 #ifndef __LIBVIRT_GCONFIG_CAPABILITIES_HOST_H__
28 #define __LIBVIRT_GCONFIG_CAPABILITIES_HOST_H__
29
30 #include "libvirt-gconfig/libvirt-gconfig-capabilities-cpu.h"
31
32 G_BEGIN_DECLS
33
34 #define GVIR_CONFIG_TYPE_CAPABILITIES_HOST (gvir_config_capabilities_host_get_type ())
35 #define GVIR_CONFIG_CAPABILITIES_HOST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_HOST, GVirConfigCapabilitiesHost))
36 #define GVIR_CONFIG_CAPABILITIES_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_HOST, GVirConfigCapabilitiesHostClass))
37 #define GVIR_CONFIG_IS_CAPABILITIES_HOST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_HOST))
38 #define GVIR_CONFIG_IS_CAPABILITIES_HOST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_CAPABILITIES_HOST))
39 #define GVIR_CONFIG_CAPABILITIES_HOST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_CAPABILITIES_HOST, GVirConfigCapabilitiesHostClass))
40
41 typedef struct _GVirConfigCapabilitiesHost GVirConfigCapabilitiesHost;
42 typedef struct _GVirConfigCapabilitiesHostPrivate GVirConfigCapabilitiesHostPrivate;
43 typedef struct _GVirConfigCapabilitiesHostClass GVirConfigCapabilitiesHostClass;
44
45 struct _GVirConfigCapabilitiesHost
46 {
47 GVirConfigObject parent;
48
49 GVirConfigCapabilitiesHostPrivate *priv;
50
51 /* Do not add fields to this struct */
52 };
53
54 struct _GVirConfigCapabilitiesHostClass
55 {
56 GVirConfigObjectClass parent_class;
57
58 gpointer padding[20];
59 };
60
61 GType gvir_config_capabilities_host_get_type(void);
62
63 const gchar *
64 gvir_config_capabilities_host_get_uuid(GVirConfigCapabilitiesHost *host);
65
66 GVirConfigCapabilitiesCpu *
67 gvir_config_capabilities_host_get_cpu(GVirConfigCapabilitiesHost *host);
68
69 G_END_DECLS
70
71 #endif /* __LIBVIRT_GCONFIG_CAPABILITIES_HOST_H__ */
2323 #include <config.h>
2424
2525 #include "libvirt-gconfig/libvirt-gconfig.h"
26 #include "libvirt-gconfig/libvirt-gconfig-private.h"
2627
2728 #define GVIR_CONFIG_CAPABILITIES_GET_PRIVATE(obj) \
2829 (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_CAPABILITIES, GVirConfigCapabilitiesPrivate))
4142 }
4243
4344
44 static void gvir_config_capabilities_init(GVirConfigCapabilities *conn)
45 static void gvir_config_capabilities_init(GVirConfigCapabilities *caps)
4546 {
46 g_debug("Init GVirConfigCapabilities=%p", conn);
47 g_debug("Init GVirConfigCapabilities=%p", caps);
4748
48 conn->priv = GVIR_CONFIG_CAPABILITIES_GET_PRIVATE(conn);
49 caps->priv = GVIR_CONFIG_CAPABILITIES_GET_PRIVATE(caps);
4950 }
5051
5152
5354 {
5455 GVirConfigObject *object;
5556
56 /* FIXME: what is the XML root of the capability node? I suspect it is
57 * either 'guest' or 'host' */
5857 object = gvir_config_object_new(GVIR_CONFIG_TYPE_CAPABILITIES,
5958 "capabilities",
6059 DATADIR "/libvirt/schemas/capability.rng");
6665 {
6766 GVirConfigObject *object;
6867
69 /* FIXME: what is the XML root of the capability node? I suspect it is
70 * either 'guest' or 'host' */
7168 object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_CAPABILITIES,
7269 "capabilities",
7370 DATADIR "/libvirt/schemas/capability.rng",
7471 xml, error);
7572 return GVIR_CONFIG_CAPABILITIES(object);
7673 }
74
75 /**
76 * gvir_config_capabilities_get_host:
77 *
78 * Gets the host capabilities.
79 *
80 * Returns: (transfer full): a new #GVirConfigCapabilitiesHost.
81 */
82 GVirConfigCapabilitiesHost *
83 gvir_config_capabilities_get_host(GVirConfigCapabilities *caps)
84 {
85 GVirConfigObject *object;
86
87 g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES(caps), NULL);
88
89 object = gvir_config_object_get_child_with_type
90 (GVIR_CONFIG_OBJECT(caps),
91 "host",
92 GVIR_CONFIG_TYPE_CAPABILITIES_HOST);
93
94 return GVIR_CONFIG_CAPABILITIES_HOST(object);
95 }
96
97 struct GetGuestData {
98 GVirConfigXmlDoc *doc;
99 const gchar *schema;
100 GList *guests;
101 };
102
103 static gboolean add_guest(xmlNodePtr node, gpointer opaque)
104 {
105 struct GetGuestData* data = (struct GetGuestData*)opaque;
106 GVirConfigObject *object;
107
108 if (g_strcmp0((const gchar *)node->name, "guest") != 0)
109 return TRUE;
110
111 object = gvir_config_object_new_from_tree(GVIR_CONFIG_TYPE_CAPABILITIES_GUEST,
112 data->doc,
113 data->schema,
114 node);
115 if (object != NULL)
116 data->guests = g_list_append(data->guests, object);
117 else
118 g_debug("Failed to parse %s node", node->name);
119
120 return TRUE;
121 }
122
123 /**
124 * gvir_config_capabilities_get_guests:
125 *
126 * Gets the list of guest capabilities.
127 *
128 * Returns: (element-type LibvirtGConfig.CapabilitiesGuest) (transfer full):
129 * a newly allocated #GList of #GVirConfigCapabilitiesGuest.
130 */
131 GList *
132 gvir_config_capabilities_get_guests(GVirConfigCapabilities *caps)
133 {
134 struct GetGuestData data;
135
136 g_return_val_if_fail(GVIR_CONFIG_IS_CAPABILITIES(caps), NULL);
137
138 g_object_get(G_OBJECT(caps), "doc", &data.doc, NULL);
139 data.schema = gvir_config_object_get_schema(GVIR_CONFIG_OBJECT(caps));
140 data.guests = NULL;
141
142 gvir_config_object_foreach_child(GVIR_CONFIG_OBJECT(caps),
143 NULL,
144 add_guest,
145 &data);
146
147 g_clear_object(&data.doc);
148
149 return data.guests;
150 }
2525
2626 #ifndef __LIBVIRT_GCONFIG_CAPABILITIES_H__
2727 #define __LIBVIRT_GCONFIG_CAPABILITIES_H__
28
29 #include "libvirt-gconfig/libvirt-gconfig-capabilities-host.h"
2830
2931 G_BEGIN_DECLS
3032
5557 gpointer padding[20];
5658 };
5759
58
5960 GType gvir_config_capabilities_get_type(void);
6061
6162 GVirConfigCapabilities *gvir_config_capabilities_new(void);
6263 GVirConfigCapabilities *gvir_config_capabilities_new_from_xml(const gchar *xml,
6364 GError **error);
65 GVirConfigCapabilitiesHost *
66 gvir_config_capabilities_get_host(GVirConfigCapabilities *caps);
67 GList *gvir_config_capabilities_get_guests(GVirConfigCapabilities *caps);
6468
6569 G_END_DECLS
6670
8181 void gvir_config_domain_source_pty_set_path(GVirConfigDomainChardevSourcePty *pty,
8282 const char *path)
8383 {
84 GVirConfigObject *source;
8584 g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_CHARDEV_SOURCE_PTY(pty));
8685
87 source = gvir_config_object_replace_child(GVIR_CONFIG_OBJECT(pty),
88 "source");
89 g_return_if_fail(GVIR_CONFIG_IS_OBJECT(source));
90 gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(source),
91 "path", path);
92 g_object_unref(G_OBJECT(source));
86 gvir_config_object_replace_child_with_attribute(GVIR_CONFIG_OBJECT(pty),
87 "source",
88 "path",
89 path);
9390 }
2424 #include "libvirt-gconfig/libvirt-gconfig.h"
2525 #include "libvirt-gconfig/libvirt-gconfig-private.h"
2626
27 /**
28 * SECTION:libvirt-gconfig-domain-controller-usb
29 * @title: USB Controller Configuration
30 * @short_description: configuration of USB controllers
31 *
32 * A #GVirConfigDomainControllerUsb represents an USB controller device.
33 * A #GVirConfigDomain with #GVirConfigDomainControllerUsb devices will
34 * be able to use USB devices.
35 *
36 * Several USB controllers can be added to the same domain, for example
37 * to have an USB1 and an USB2 controller.
38 *
39 * When using SPICE (see #GVirConfigGraphicsSpice), USB devices plugged
40 * on the client can be forwarded to the guest through the use of
41 * #GVirConfigDomainRedirDev.
42 *
43 * <example>
44 * <title>Adding USB controllers to a standard x86 domain</title>
45 * <para>
46 * This example shows the recommended USB setup to get a virtual machine
47 * looking like your usual x86 desktop or laptop.
48 * </para>
49 * <programlisting>
50 * static GVirConfigDomainControllerUsb *
51 * create_usb_controller(GVirConfigDomainControllerUsbModel model, guint index,
52 * GVirConfigDomainControllerUsb *master, guint start_port)
53 * {
54 * GVirConfigDomainControllerUsb *controller;
55 *
56 * controller = gvir_config_domain_controller_usb_new();
57 * gvir_config_domain_controller_usb_set_model(controller, model);
58 * gvir_config_domain_controller_set_index(GVIR_CONFIG_DOMAIN_CONTROLLER(controller), index);
59 * if (master)
60 * gvir_config_domain_controller_usb_set_master(controller, master, start_port);
61 *
62 * return controller;
63 * }
64 *
65 * void setup_default_usb_controllers(GVirConfigDomain *domain)
66 * {
67 * GVirConfigDomainControllerUsb *ehci;
68 * GVirConfigDomainControllerUsb *uhci1;
69 * GVirConfigDomainControllerUsb *uhci2;
70 * GVirConfigDomainControllerUsb *uhci3;
71 *
72 * ehci = create_usb_controller(GVIR_CONFIG_DOMAIN_CONTROLLER_USB_MODEL_ICH9_EHCI1,
73 * 0, NULL, 0);
74 * gvir_config_domain_add_device(domain, GVIR_CONFIG_DOMAIN_DEVICE(ehci));
75 * uhci1 = create_usb_controller(GVIR_CONFIG_DOMAIN_CONTROLLER_USB_MODEL_ICH9_UHCI1,
76 * 0, ehci, 0);
77 * gvir_config_domain_add_device(domain, GVIR_CONFIG_DOMAIN_DEVICE(uhci1));
78 * g_object_unref(G_OBJECT(uhci1));
79 * uhci2 = create_usb_controller(GVIR_CONFIG_DOMAIN_CONTROLLER_USB_MODEL_ICH9_UHCI2,
80 * 0, ehci, 2);
81 * gvir_config_domain_add_device(domain, GVIR_CONFIG_DOMAIN_DEVICE(uhci2));
82 * g_object_unref(G_OBJECT(uhci2));
83 * uhci3 = create_usb_controller(GVIR_CONFIG_DOMAIN_CONTROLLER_USB_MODEL_ICH9_UHCI3,
84 * 0, ehci, 4);
85 * gvir_config_domain_add_device(domain, GVIR_CONFIG_DOMAIN_DEVICE(uhci3));
86 * g_object_unref(G_OBJECT(uhci3));
87 * g_object_unref(G_OBJECT(ehci));
88 *}
89 * </programlisting>
90 * </example>
91 *
92 * This class models libvirt XML nodes located at
93 * <ulink url="http://libvirt.org/formatdomain.html#elementsControllers">
94 * /domain/devices/controller[@type="usb"]</ulink>
95 */
96
97 /**
98 * GVirConfigDomainControllerUsb:
99 *
100 * The #GVirConfigDomainControllerUsb struct is an opaque data structure
101 * which is used to configure USB controllers on a domain. It should only
102 * be accessed via the following functions.
103 */
104
27105 #define GVIR_CONFIG_DOMAIN_CONTROLLER_USB_GET_PRIVATE(obj) \
28106 (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_CONTROLLER_USB, GVirConfigDomainControllerUsbPrivate))
29107
49127 }
50128
51129
130 /**
131 * gvir_config_domain_controller_usb_new:
132 *
133 * Creates a new #GVirConfigDomainControllerUsb with a reference count of 1.
134 * gvir_config_domain_controller_set_index() must be called before
135 * this controller is usable.
136 *
137 * Returns: a new #GVirConfigDomainControllerUsb
138 */
52139 GVirConfigDomainControllerUsb *gvir_config_domain_controller_usb_new(void)
53140 {
54141 GVirConfigObject *object;
59146 return GVIR_CONFIG_DOMAIN_CONTROLLER_USB(object);
60147 }
61148
149 /**
150 * gvir_config_domain_controller_usb_new_from_xml:
151 * @xml: xml data to create the controller from
152 * @error: return location for a #GError, or NULL
153 *
154 * Creates a new #GVirConfigDomainControllerUsb with a reference count of 1.
155 * The controller object will be created using the XML description stored
156 * in @xml. This is a fragment of libvirt domain XML whose root node is
157 * &lt;controller&gt;.
158 *
159 * Returns: a new #GVirConfigDomainControllerUsb, or NULL if @xml failed to
160 * be parsed.
161 */
62162 GVirConfigDomainControllerUsb *gvir_config_domain_controller_usb_new_from_xml(const gchar *xml,
63 GError **error)
163 GError **error)
64164 {
65165 GVirConfigObject *object;
66166
70170 return GVIR_CONFIG_DOMAIN_CONTROLLER_USB(object);
71171 }
72172
173 /**
174 * gvir_config_domain_controller_usb_set_model:
175 * @controller: a #GVirConfigDomainControllerUsb
176 * @model: the USB controller model
177 *
178 * Sets the model of @controller to @model.
179 */
73180 void gvir_config_domain_controller_usb_set_model(GVirConfigDomainControllerUsb *controller,
74181 GVirConfigDomainControllerUsbModel model)
75182 {
83190
84191 }
85192
193 /**
194 * gvir_config_domain_controller_usb_set_master:
195 * @controller: a #GVirConfigDomainControllerUsb
196 * @master: the master #GVirConfigDomainControllerUsb
197 * @startport: the start port number
198 *
199 * Sets @controller to be a companion controller of @master. @controller
200 * will be exposed from port @startport on @master in the guest.
201 * After this call, @controller's index will be set to @master's index.
202 */
86203 void gvir_config_domain_controller_usb_set_master(GVirConfigDomainControllerUsb *controller,
87204 GVirConfigDomainControllerUsb *master,
88205 guint startport)
114114 return index;
115115 }
116116
117 /**
118 * gvir_config_domain_controller_set_address:
119 * @address: (allow-none):
120 */
117121 void gvir_config_domain_controller_set_address(GVirConfigDomainController *controller,
118122 GVirConfigDomainAddress *address)
119123 {
120124 g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_CONTROLLER(controller));
121 g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_ADDRESS(address));
125 g_return_if_fail(address == NULL || GVIR_CONFIG_IS_DOMAIN_ADDRESS(address));
122126
123127 gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(controller),
128 "address",
124129 GVIR_CONFIG_OBJECT(address));
125130 }
0 /*
1 * libvirt-gconfig-domain-cpu-feature.c: libvirt domain CPU feature
2 *
3 * Copyright (C) 2008 Daniel P. Berrange
4 * Copyright (C) 2010-2012 Red Hat, Inc.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 *
20 * Authors: Zeeshan Ali <zeenix@redhat.com>
21 * Daniel P. Berrange <berrange@redhat.com>
22 */
23
24 #include <config.h>
25
26 #include "libvirt-gconfig/libvirt-gconfig.h"
27 #include "libvirt-gconfig/libvirt-gconfig-private.h"
28
29 #define GVIR_CONFIG_DOMAIN_CPU_FEATURE_GET_PRIVATE(obj) \
30 (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_CPU_FEATURE, GVirConfigDomainCpuFeaturePrivate))
31
32 struct _GVirConfigDomainCpuFeaturePrivate
33 {
34 gboolean unused;
35 };
36
37 G_DEFINE_TYPE(GVirConfigDomainCpuFeature, gvir_config_domain_cpu_feature, GVIR_CONFIG_TYPE_CAPABILITIES_CPU_FEATURE);
38
39 static void gvir_config_domain_cpu_feature_class_init(GVirConfigDomainCpuFeatureClass *klass)
40 {
41 g_type_class_add_private(klass, sizeof(GVirConfigDomainCpuFeaturePrivate));
42 }
43
44 static void gvir_config_domain_cpu_feature_init(GVirConfigDomainCpuFeature *feature)
45 {
46 g_debug("Init GVirConfigDomainCpuFeature=%p", feature);
47
48 feature->priv = GVIR_CONFIG_DOMAIN_CPU_FEATURE_GET_PRIVATE(feature);
49 }
50
51 GVirConfigDomainCpuFeature *gvir_config_domain_cpu_feature_new(void)
52 {
53 GVirConfigObject *object;
54
55 object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_CPU_FEATURE,
56 "feature",
57 NULL);
58
59 return GVIR_CONFIG_DOMAIN_CPU_FEATURE(object);
60 }
61
62 GVirConfigDomainCpuFeature *
63 gvir_config_domain_cpu_feature_new_from_xml(const gchar *xml, GError **error)
64 {
65 GVirConfigObject *object;
66
67 object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_CPU_FEATURE,
68 "feature",
69 NULL,
70 xml,
71 error);
72
73 return GVIR_CONFIG_DOMAIN_CPU_FEATURE(object);
74 }
75
76 GVirConfigDomainCpuFeaturePolicy
77 gvir_config_domain_cpu_feature_get_policy(GVirConfigDomainCpuFeature *feature)
78 {
79 g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_CPU_FEATURE(feature),
80 GVIR_CONFIG_DOMAIN_CPU_FEATURE_POLICY_REQUIRE);
81
82 return gvir_config_object_get_attribute_genum
83 (GVIR_CONFIG_OBJECT(feature),
84 NULL,
85 "policy",
86 GVIR_CONFIG_TYPE_DOMAIN_CPU_FEATURE_POLICY,
87 GVIR_CONFIG_DOMAIN_CPU_FEATURE_POLICY_REQUIRE);
88 }
89
90 void gvir_config_domain_cpu_feature_set_policy(GVirConfigDomainCpuFeature *feature,
91 GVirConfigDomainCpuFeaturePolicy policy)
92 {
93 g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_CPU_FEATURE(feature));
94
95 gvir_config_object_set_attribute_with_type
96 (GVIR_CONFIG_OBJECT(feature),
97 "policy", GVIR_CONFIG_TYPE_DOMAIN_CPU_FEATURE_POLICY, policy,
98 NULL);
99 }
0 /*
1 * libvirt-gconfig-domain-cpu-feature.h: libvirt domain CPU feature
2 *
3 * Copyright (C) 2010-2012 Red Hat, Inc.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * Authors: Zeeshan Ali <zeenix@redhat.com>
20 * Daniel P. Berrange <berrange@redhat.com>
21 */
22
23 #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD)
24 #error "Only <libvirt-gconfig/libvirt-gconfig.h> can be included directly."
25 #endif
26
27 #ifndef __LIBVIRT_GCONFIG_DOMAIN_CPU_FEATURE_H__
28 #define __LIBVIRT_GCONFIG_DOMAIN_CPU_FEATURE_H__
29
30 G_BEGIN_DECLS
31
32 #define GVIR_CONFIG_TYPE_DOMAIN_CPU_FEATURE (gvir_config_domain_cpu_feature_get_type ())
33 #define GVIR_CONFIG_DOMAIN_CPU_FEATURE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_CPU_FEATURE, GVirConfigDomainCpuFeature))
34 #define GVIR_CONFIG_DOMAIN_CPU_FEATURE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_CPU_FEATURE, GVirConfigDomainCpuFeatureClass))
35 #define GVIR_CONFIG_IS_DOMAIN_CPU_FEATURE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_CPU_FEATURE))
36 #define GVIR_CONFIG_IS_DOMAIN_CPU_FEATURE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_CPU_FEATURE))
37 #define GVIR_CONFIG_DOMAIN_CPU_FEATURE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_CPU_FEATURE, GVirConfigDomainCpuFeatureClass))
38
39 typedef struct _GVirConfigDomainCpuFeature GVirConfigDomainCpuFeature;
40 typedef struct _GVirConfigDomainCpuFeaturePrivate GVirConfigDomainCpuFeaturePrivate;
41 typedef struct _GVirConfigDomainCpuFeatureClass GVirConfigDomainCpuFeatureClass;
42
43 struct _GVirConfigDomainCpuFeature
44 {
45 GVirConfigCapabilitiesCpu parent;
46
47 GVirConfigDomainCpuFeaturePrivate *priv;
48
49 /* Do not add fields to this struct */
50 };
51
52 struct _GVirConfigDomainCpuFeatureClass
53 {
54 GVirConfigCapabilitiesCpuClass parent_class;
55
56 gpointer padding[20];
57 };
58
59 typedef enum {
60 GVIR_CONFIG_DOMAIN_CPU_FEATURE_POLICY_FORCE,
61 GVIR_CONFIG_DOMAIN_CPU_FEATURE_POLICY_REQUIRE,
62 GVIR_CONFIG_DOMAIN_CPU_FEATURE_POLICY_OPTIONAL,
63 GVIR_CONFIG_DOMAIN_CPU_FEATURE_POLICY_DISABLE,
64 GVIR_CONFIG_DOMAIN_CPU_FEATURE_POLICY_FORBID
65 } GVirConfigDomainCpuFeaturePolicy;
66
67 GType gvir_config_domain_cpu_feature_get_type(void);
68 GVirConfigDomainCpuFeature *gvir_config_domain_cpu_feature_new(void);
69 GVirConfigDomainCpuFeature *
70 gvir_config_domain_cpu_feature_new_from_xml(const gchar *xml, GError **error);
71
72 void
73 gvir_config_domain_cpu_feature_set_policy(GVirConfigDomainCpuFeature *feature,
74 GVirConfigDomainCpuFeaturePolicy policy);
75 GVirConfigDomainCpuFeaturePolicy
76 gvir_config_domain_cpu_feature_get_policy(GVirConfigDomainCpuFeature *feature);
77
78 G_END_DECLS
79
80 #endif /* __LIBVIRT_GCONFIG_DOMAIN_CPU_FEATURE_H__ */
0 /*
1 * libvirt-gconfig-domain-cpu.c: libvirt Domain CPU
2 *
3 * Copyright (C) 2008 Daniel P. Berrange
4 * Copyright (C) 2010-2012 Red Hat, Inc.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 *
20 * Authors: Zeeshan Ali <zeenix@redhat.com>
21 * Daniel P. Berrange <berrange@redhat.com>
22 */
23
24 #include <config.h>
25
26 #include "libvirt-gconfig/libvirt-gconfig.h"
27 #include "libvirt-gconfig/libvirt-gconfig-private.h"
28
29 #define GVIR_CONFIG_DOMAIN_CPU_GET_PRIVATE(obj) \
30 (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_CPU, GVirConfigDomainCpuPrivate))
31
32 struct _GVirConfigDomainCpuPrivate
33 {
34 gboolean unused;
35 };
36
37 G_DEFINE_TYPE(GVirConfigDomainCpu, gvir_config_domain_cpu, GVIR_CONFIG_TYPE_CAPABILITIES_CPU);
38
39 static GList *
40 _gvir_config_domain_cpu_get_features(GVirConfigCapabilitiesCpu *cpu);
41
42 static void gvir_config_domain_cpu_class_init(GVirConfigDomainCpuClass *klass)
43 {
44 GVirConfigCapabilitiesCpuClass *capabilities_class;
45
46 capabilities_class = GVIR_CONFIG_CAPABILITIES_CPU_CLASS(klass);
47 capabilities_class->get_features = _gvir_config_domain_cpu_get_features;
48
49 g_type_class_add_private(klass, sizeof(GVirConfigDomainCpuPrivate));
50 }
51
52 static void gvir_config_domain_cpu_init(GVirConfigDomainCpu *cpu)
53 {
54 g_debug("Init GVirConfigDomainCpu=%p", cpu);
55
56 cpu->priv = GVIR_CONFIG_DOMAIN_CPU_GET_PRIVATE(cpu);
57 }
58
59 GVirConfigDomainCpu *gvir_config_domain_cpu_new(void)
60 {
61 GVirConfigObject *object;
62
63 object = gvir_config_object_new(GVIR_CONFIG_TYPE_DOMAIN_CPU, "cpu", NULL);
64
65 return GVIR_CONFIG_DOMAIN_CPU(object);
66 }
67
68 GVirConfigDomainCpu *gvir_config_domain_cpu_new_from_xml(const gchar *xml,
69 GError **error)
70 {
71 GVirConfigObject *object;
72
73 object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_CPU,
74 "cpu",
75 NULL,
76 xml,
77 error);
78
79 return GVIR_CONFIG_DOMAIN_CPU(object);
80 }
81
82 static GList *
83 _gvir_config_domain_cpu_get_features(GVirConfigCapabilitiesCpu *cpu)
84 {
85 return gvir_config_capabilities_cpu_get_features_with_type(
86 cpu, GVIR_CONFIG_TYPE_DOMAIN_CPU_FEATURE);
87 }
88
89 GVirConfigDomainCpuMatchPolicy
90 gvir_config_domain_cpu_get_match_policy(GVirConfigDomainCpu *cpu)
91 {
92 g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_CPU(cpu),
93 GVIR_CONFIG_DOMAIN_CPU_MATCH_POLICY_EXACT);
94
95 return gvir_config_object_get_attribute_genum
96 (GVIR_CONFIG_OBJECT(cpu),
97 NULL,
98 "match",
99 GVIR_CONFIG_TYPE_DOMAIN_CPU_MATCH_POLICY,
100 GVIR_CONFIG_DOMAIN_CPU_MATCH_POLICY_EXACT);
101 }
102
103 void gvir_config_domain_cpu_set_match_policy(GVirConfigDomainCpu *cpu,
104 GVirConfigDomainCpuMatchPolicy policy)
105 {
106 g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_CPU(cpu));
107
108 gvir_config_object_set_attribute_with_type
109 (GVIR_CONFIG_OBJECT(cpu),
110 "match", GVIR_CONFIG_TYPE_DOMAIN_CPU_MATCH_POLICY, policy,
111 NULL);
112 }
113
114 GVirConfigDomainCpuMode
115 gvir_config_domain_cpu_get_mode(GVirConfigDomainCpu *cpu)
116 {
117 g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_CPU(cpu),
118 GVIR_CONFIG_DOMAIN_CPU_MODE_CUSTOM);
119
120 return gvir_config_object_get_attribute_genum
121 (GVIR_CONFIG_OBJECT(cpu),
122 NULL,
123 "mode",
124 GVIR_CONFIG_TYPE_DOMAIN_CPU_MODE,
125 GVIR_CONFIG_DOMAIN_CPU_MODE_CUSTOM);
126 }
127
128 void gvir_config_domain_cpu_set_mode(GVirConfigDomainCpu *cpu,
129 GVirConfigDomainCpuMode mode)
130 {
131 g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_CPU(cpu));
132
133 gvir_config_object_set_attribute_with_type
134 (GVIR_CONFIG_OBJECT(cpu),
135 "mode", GVIR_CONFIG_TYPE_DOMAIN_CPU_MODE, mode,
136 NULL);
137 }
0 /*
1 * libvirt-gconfig-domain-cpu.h: libvirt Domain CPU
2 *
3 * Copyright (C) 2010-2012 Red Hat, Inc.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * Authors: Zeeshan Ali <zeenix@redhat.com>
20 * Daniel P. Berrange <berrange@redhat.com>
21 */
22
23 #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD)
24 #error "Only <libvirt-gconfig/libvirt-gconfig.h> can be included directly."
25 #endif
26
27 #ifndef __LIBVIRT_GCONFIG_DOMAIN_CPU_H__
28 #define __LIBVIRT_GCONFIG_DOMAIN_CPU_H__
29
30 G_BEGIN_DECLS
31
32 #define GVIR_CONFIG_TYPE_DOMAIN_CPU (gvir_config_domain_cpu_get_type ())
33 #define GVIR_CONFIG_DOMAIN_CPU(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_CPU, GVirConfigDomainCpu))
34 #define GVIR_CONFIG_DOMAIN_CPU_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_CPU, GVirConfigDomainCpuClass))
35 #define GVIR_CONFIG_IS_DOMAIN_CPU(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_CPU))
36 #define GVIR_CONFIG_IS_DOMAIN_CPU_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_CPU))
37 #define GVIR_CONFIG_DOMAIN_CPU_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_CPU, GVirConfigDomainCpuClass))
38
39 typedef struct _GVirConfigDomainCpu GVirConfigDomainCpu;
40 typedef struct _GVirConfigDomainCpuPrivate GVirConfigDomainCpuPrivate;
41 typedef struct _GVirConfigDomainCpuClass GVirConfigDomainCpuClass;
42
43 struct _GVirConfigDomainCpu
44 {
45 GVirConfigCapabilitiesCpu parent;
46
47 GVirConfigDomainCpuPrivate *priv;
48
49 /* Do not add fields to this struct */
50 };
51
52 struct _GVirConfigDomainCpuClass
53 {
54 GVirConfigCapabilitiesCpuClass parent_class;
55
56 gpointer padding[20];
57 };
58
59 typedef enum {
60 GVIR_CONFIG_DOMAIN_CPU_MATCH_POLICY_MINIMUM,
61 GVIR_CONFIG_DOMAIN_CPU_MATCH_POLICY_EXACT,
62 GVIR_CONFIG_DOMAIN_CPU_MATCH_POLICY_STRICT
63 } GVirConfigDomainCpuMatchPolicy;
64
65 typedef enum {
66 GVIR_CONFIG_DOMAIN_CPU_MODE_CUSTOM,
67 GVIR_CONFIG_DOMAIN_CPU_MODE_HOST_MODEL,
68 GVIR_CONFIG_DOMAIN_CPU_MODE_HOST_PASSTHROUGH
69 } GVirConfigDomainCpuMode;
70
71 GType gvir_config_domain_cpu_get_type(void);
72 GVirConfigDomainCpu *gvir_config_domain_cpu_new(void);
73 GVirConfigDomainCpu *gvir_config_domain_cpu_new_from_xml(const gchar *xml,
74 GError **error);
75 void
76 gvir_config_domain_cpu_set_match_policy(GVirConfigDomainCpu *cpu,
77 GVirConfigDomainCpuMatchPolicy policy);
78 GVirConfigDomainCpuMatchPolicy
79 gvir_config_domain_cpu_get_match_policy(GVirConfigDomainCpu *cpu);
80 void gvir_config_domain_cpu_set_mode(GVirConfigDomainCpu *cpu,
81 GVirConfigDomainCpuMode mode);
82 GVirConfigDomainCpuMode
83 gvir_config_domain_cpu_get_mode(GVirConfigDomainCpu *cpu);
84
85 G_END_DECLS
86
87 #endif /* __LIBVIRT_GCONFIG_DOMAIN_CPU_H__ */
3636 gvir_config_domain_disk_new_from_tree(GVirConfigXmlDoc *doc,
3737 xmlNodePtr tree);
3838 GVirConfigDomainDevice *
39 gvir_config_domain_filesys_new_from_tree(GVirConfigXmlDoc *doc,
40 xmlNodePtr tree);
41 GVirConfigDomainDevice *
3942 gvir_config_domain_graphics_new_from_tree(GVirConfigXmlDoc *doc,
4043 xmlNodePtr tree);
4144 GVirConfigDomainDevice *
6161 if (xmlStrEqual(tree->name, (xmlChar*)"disk")) {
6262 return gvir_config_domain_disk_new_from_tree(doc, tree);
6363 } else if (xmlStrEqual(tree->name, (xmlChar*)"filesystem")) {
64 type = GVIR_CONFIG_TYPE_DOMAIN_FILESYS;
64 return gvir_config_domain_filesys_new_from_tree(doc, tree);
6565 } else if (xmlStrEqual(tree->name, (xmlChar*)"controller")) {
6666 return gvir_config_domain_controller_new_from_tree(doc, tree);
6767 } else if (xmlStrEqual(tree->name, (xmlChar*)"lease")) {
8484 type = gvir_config_genum_get_value(GVIR_CONFIG_TYPE_DOMAIN_DISK_TYPE,
8585 type_str,
8686 GVIR_CONFIG_DOMAIN_DISK_FILE);
87 if (type == -1)
88 return NULL;
8987
9088 object = gvir_config_object_new_from_tree(GVIR_CONFIG_TYPE_DOMAIN_DISK,
9189 doc, NULL, tree);
6666 object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_FILESYS,
6767 "filesystem", NULL, xml, error);
6868 return GVIR_CONFIG_DOMAIN_FILESYS(object);
69 }
70
71 GVirConfigDomainDevice *
72 gvir_config_domain_filesys_new_from_tree(GVirConfigXmlDoc *doc,
73 xmlNodePtr tree)
74 {
75 GVirConfigObject *object;
76 GVirConfigDomainFilesys *filesys;
77 GVirConfigDomainFilesysType type;
78 const char *type_str;
79
80 type_str = gvir_config_xml_get_attribute_content(tree, "type");
81 if (type_str == NULL)
82 return NULL;
83
84 type = gvir_config_genum_get_value(GVIR_CONFIG_TYPE_DOMAIN_FILESYS_TYPE,
85 type_str,
86 GVIR_CONFIG_DOMAIN_FILESYS_FILE);
87
88 object = gvir_config_object_new_from_tree(GVIR_CONFIG_TYPE_DOMAIN_FILESYS,
89 doc, NULL, tree);
90 filesys = GVIR_CONFIG_DOMAIN_FILESYS(object);
91 filesys->priv->type = type;
92
93 return GVIR_CONFIG_DOMAIN_DEVICE(object);
6994 }
7095
7196 void gvir_config_domain_filesys_set_type(GVirConfigDomainFilesys *filesys,
78103 GVIR_CONFIG_TYPE_DOMAIN_FILESYS_TYPE,
79104 type,
80105 NULL);
106 filesys->priv->type = type;
81107 }
82108
83109 void gvir_config_domain_filesys_set_access_type(GVirConfigDomainFilesys *filesys,
119145
120146 switch (filesys->priv->type) {
121147 case GVIR_CONFIG_DOMAIN_FILESYS_MOUNT:
148 case GVIR_CONFIG_DOMAIN_FILESYS_BIND:
122149 attribute_name = "dir";
123150 break;
124151 case GVIR_CONFIG_DOMAIN_FILESYS_FILE:
130157 case GVIR_CONFIG_DOMAIN_FILESYS_TEMPLATE:
131158 attribute_name = "name";
132159 break;
160 case GVIR_CONFIG_DOMAIN_FILESYS_RAM:
161 g_return_if_reached();
162
133163 default:
134164 g_return_if_reached();
135165 }
139169 attribute_name, source);
140170 }
141171
172 void gvir_config_domain_filesys_set_ram_usage(GVirConfigDomainFilesys *filesys,
173 guint64 bytes)
174 {
175 g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_FILESYS(filesys));
176 g_return_if_fail(filesys->priv->type == GVIR_CONFIG_DOMAIN_FILESYS_RAM);
177
178 GVirConfigObject *src;
179
180 src = gvir_config_object_replace_child(GVIR_CONFIG_OBJECT(filesys),
181 "source");
182
183 gvir_config_object_set_attribute_with_type(src,
184 "usage", G_TYPE_UINT64, bytes,
185 "units", G_TYPE_STRING, "bytes",
186 NULL);
187
188 }
142189
143190 void gvir_config_domain_filesys_set_target(GVirConfigDomainFilesys *filesys,
144191 const char *path)
6060 GVIR_CONFIG_DOMAIN_FILESYS_BLOCK,
6161 GVIR_CONFIG_DOMAIN_FILESYS_FILE,
6262 GVIR_CONFIG_DOMAIN_FILESYS_TEMPLATE,
63 GVIR_CONFIG_DOMAIN_FILESYS_RAM,
64 GVIR_CONFIG_DOMAIN_FILESYS_BIND,
6365 } GVirConfigDomainFilesysType;
6466
6567 typedef enum {
8890 GVirConfigDomainFilesysDriverType type);
8991 void gvir_config_domain_filesys_set_source(GVirConfigDomainFilesys *filesys,
9092 const char *source);
93 void gvir_config_domain_filesys_set_ram_usage(GVirConfigDomainFilesys *filesys,
94 guint64 bytes);
9195 void gvir_config_domain_filesys_set_target(GVirConfigDomainFilesys *filesys,
9296 const char *target);
9397 void gvir_config_domain_filesys_set_readonly(GVirConfigDomainFilesys *filesys,
8080 "type", type_str);
8181 }
8282
83 GVirConfigDomainOsType gvir_config_domain_os_get_os_type(GVirConfigDomainOs *os)
84 {
85 g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_OS(os),
86 GVIR_CONFIG_DOMAIN_OS_TYPE_HVM);
87
88 return gvir_config_object_get_node_content_genum
89 (GVIR_CONFIG_OBJECT(os),
90 "type",
91 GVIR_CONFIG_TYPE_DOMAIN_OS_TYPE,
92 GVIR_CONFIG_DOMAIN_OS_TYPE_HVM);
93 }
94
95 /**
96 * gvir_config_domain_os_set_kernel:
97 * @os: a #GVirConfigDomainOs
98 * @kernel: (allow-none): The kernel path
99 */
83100 void gvir_config_domain_os_set_kernel(GVirConfigDomainOs *os,
84101 const char * kernel)
85102 {
87104 "kernel", kernel);
88105 }
89106
107 /**
108 * gvir_config_domain_os_set_ramdisk:
109 * @os: a #GVirConfigDomainOs
110 * @ramdisk: (allow-none): The ramdisk path
111 */
90112 void gvir_config_domain_os_set_ramdisk(GVirConfigDomainOs *os,
91113 const char * ramdisk)
92114 {
94116 "initrd", ramdisk);
95117 }
96118
119 /**
120 * gvir_config_domain_os_set_cmdline:
121 * @os: a #GVirConfigDomainOs
122 * @cmdline: (allow-none): The direct boot commandline
123 */
97124 void gvir_config_domain_os_set_cmdline(GVirConfigDomainOs *os,
98125 const char * cmdline)
99126 {
101128 "cmdline", cmdline);
102129 }
103130
131 /**
132 * gvir_config_domain_os_set_init:
133 * @os: a #GVirConfigDomainOs
134 * @init: (allow-none):
135 */
104136 void gvir_config_domain_os_set_init(GVirConfigDomainOs *os,
105137 const char * init)
106138 {
108140 "init", init);
109141 }
110142
143 /**
144 * gvir_config_domain_os_set_loader:
145 * @os: a #GVirConfigDomainOs
146 * @loader: (allow-none):
147 */
111148 void gvir_config_domain_os_set_loader(GVirConfigDomainOs *os,
112149 const char * loader)
113150 {
162199
163200 /**
164201 * gvir_config_domain_os_set_boot_devices:
202 * @os: a #GVirConfigDomainOs
165203 * @boot_devices: (in) (element-type LibvirtGConfig.DomainOsBootDevice):
166204 */
167205 void gvir_config_domain_os_set_boot_devices(GVirConfigDomainOs *os, GList *boot_devices)
200238 }
201239 }
202240
241 static gboolean add_boot_device(xmlNodePtr node, gpointer opaque)
242 {
243 GList **devices = (GList **)opaque;
244 const gchar *value;
245
246 if (g_strcmp0((const gchar *)node->name, "boot") != 0)
247 return TRUE;
248
249 value = gvir_config_xml_get_attribute_content(node, "dev");
250 if (value != NULL) {
251 GVirConfigDomainOsBootDevice device;
252
253 device = gvir_config_genum_get_value
254 (GVIR_CONFIG_TYPE_DOMAIN_OS_BOOT_DEVICE,
255 value,
256 GVIR_CONFIG_DOMAIN_OS_BOOT_DEVICE_HD);
257 *devices = g_list_append(*devices, GINT_TO_POINTER(device));
258 } else
259 g_debug("Failed to parse attribute 'dev' of node 'boot'");
260
261 return TRUE;
262 }
263
264 /**
265 * gvir_config_domain_os_get_boot_devices:
266 * @os: a #GVirConfigDomainOs
267 *
268 * Gets the list of devices attached to @os. The returned list should be
269 * freed with g_list_free(), after its elements have been unreffed with
270 * g_object_unref().
271 *
272 * Returns: (element-type LibvirtGConfig.DomainOsBootDevice) (transfer full):
273 * a newly allocated #GList of #GVirConfigDomainOsBootDevice.
274 */
275 GList *gvir_config_domain_os_get_boot_devices(GVirConfigDomainOs *os)
276 {
277 GList *devices = NULL;
278
279 g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN_OS(os), NULL);
280
281 gvir_config_object_foreach_child(GVIR_CONFIG_OBJECT(os),
282 NULL,
283 add_boot_device,
284 &devices);
285
286 return devices;
287 }
288
289 const char *gvir_config_domain_os_get_arch(GVirConfigDomainOs *os)
290 {
291 return gvir_config_object_get_attribute(GVIR_CONFIG_OBJECT(os),
292 "type",
293 "arch");
294 }
295
203296 void gvir_config_domain_os_set_arch(GVirConfigDomainOs *os, const char *arch)
204297 {
205298 xmlNodePtr os_node;
5858 typedef enum {
5959 GVIR_CONFIG_DOMAIN_OS_TYPE_HVM,
6060 GVIR_CONFIG_DOMAIN_OS_TYPE_LINUX,
61 GVIR_CONFIG_DOMAIN_OS_TYPE_EXE
61 GVIR_CONFIG_DOMAIN_OS_TYPE_EXE,
62 GVIR_CONFIG_DOMAIN_OS_TYPE_XEN,
63 GVIR_CONFIG_DOMAIN_OS_TYPE_UML
6264 } GVirConfigDomainOsType;
6365
6466 typedef enum {
8082 GVirConfigDomainOs *gvir_config_domain_os_new_from_xml(const gchar *xml, GError **error);
8183
8284 void gvir_config_domain_os_set_os_type(GVirConfigDomainOs *os, GVirConfigDomainOsType type);
85 GVirConfigDomainOsType gvir_config_domain_os_get_os_type(GVirConfigDomainOs *os);
86 const char *gvir_config_domain_os_get_arch(GVirConfigDomainOs *os);
8387 void gvir_config_domain_os_set_arch(GVirConfigDomainOs *os, const char *arch);
88 GList *gvir_config_domain_os_get_boot_devices(GVirConfigDomainOs *os);
8489 void gvir_config_domain_os_set_boot_devices(GVirConfigDomainOs *os, GList *boot_devices);
8590 void gvir_config_domain_os_set_kernel(GVirConfigDomainOs *os, const char *kernel);
8691 void gvir_config_domain_os_set_ramdisk(GVirConfigDomainOs *os, const char *ramdisk);
8080 NULL);
8181 }
8282
83 /**
84 * gvir_config_domain_redirdev_set_address:
85 * @address: (allow-none):
86 */
8387 void gvir_config_domain_redirdev_set_address(GVirConfigDomainRedirdev *redirdev,
8488 GVirConfigDomainAddress *address)
8589 {
8690 g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_REDIRDEV(redirdev));
87 g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_ADDRESS(address));
91 g_return_if_fail(address == NULL || GVIR_CONFIG_IS_DOMAIN_ADDRESS(address));
8892
8993 gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(redirdev),
94 "address",
9095 GVIR_CONFIG_OBJECT(address));
9196 }
8888
8989 }
9090
91 /**
92 * gvir_config_domain_seclabel_set_baselabel:
93 * @label: (allow-none):
94 */
9195 void gvir_config_domain_seclabel_set_baselabel(GVirConfigDomainSeclabel *seclabel,
9296 const char *label)
9397 {
97101 "baselabel", label);
98102 }
99103
104 /**
105 * gvir_config_domain_seclabel_set_label:
106 * @label: (allow-none):
107 */
100108 void gvir_config_domain_seclabel_set_label(GVirConfigDomainSeclabel *seclabel,
101109 const char *label)
102110 {
3838 enum {
3939 PROP_0,
4040 PROP_NAME,
41 PROP_TITLE,
4142 PROP_DESCRIPTION,
4243 PROP_MEMORY,
4344 PROP_VCPU,
5556 case PROP_NAME:
5657 g_value_set_string(value, gvir_config_domain_get_name(domain));
5758 break;
59 case PROP_TITLE:
60 g_value_set_string(value, gvir_config_domain_get_title(domain));
61 break;
5862 case PROP_DESCRIPTION:
5963 g_value_set_string(value, gvir_config_domain_get_description(domain));
6064 break;
8387 switch (prop_id) {
8488 case PROP_NAME:
8589 gvir_config_domain_set_name(domain, g_value_get_string(value));
90 break;
91 case PROP_TITLE:
92 gvir_config_domain_set_title(domain, g_value_get_string(value));
8693 break;
8794 case PROP_DESCRIPTION:
8895 gvir_config_domain_set_description(domain, g_value_get_string(value));
116123 g_param_spec_string("name",
117124 "Name",
118125 "Domain Name",
126 NULL,
127 G_PARAM_READWRITE |
128 G_PARAM_STATIC_STRINGS));
129 g_object_class_install_property(object_class,
130 PROP_TITLE,
131 g_param_spec_string("title",
132 "Title",
133 "A short description - title - of the domain",
119134 NULL,
120135 G_PARAM_READWRITE |
121136 G_PARAM_STATIC_STRINGS));
186201 return GVIR_CONFIG_DOMAIN(object);
187202 }
188203
204 GVirConfigDomainVirtType gvir_config_domain_get_virt_type(GVirConfigDomain *domain)
205 {
206 g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN(domain),
207 GVIR_CONFIG_DOMAIN_VIRT_QEMU);
208
209 return gvir_config_object_get_attribute_genum
210 (GVIR_CONFIG_OBJECT(domain),
211 NULL,
212 "type",
213 GVIR_CONFIG_TYPE_DOMAIN_VIRT_TYPE,
214 GVIR_CONFIG_DOMAIN_VIRT_QEMU);
215 }
189216
190217 void gvir_config_domain_set_virt_type(GVirConfigDomain *domain, GVirConfigDomainVirtType type)
191218 {
203230 "name");
204231 }
205232
233 const char *gvir_config_domain_get_title(GVirConfigDomain *domain)
234 {
235 return gvir_config_object_get_node_content(GVIR_CONFIG_OBJECT(domain),
236 "title");
237 }
238
239 /**
240 * gvir_config_domain_set_name:
241 * @domain: a #GVirConfigDomain
242 * @name: (allow-none):
243 */
206244 void gvir_config_domain_set_name(GVirConfigDomain *domain, const char *name)
207245 {
208246 gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(domain),
210248 g_object_notify(G_OBJECT(domain), "name");
211249 }
212250
251 /**
252 * gvir_config_domain_set_title:
253 * @domain: a #GVirConfigDomain
254 * @title: (allow-none): title of the domain
255 *
256 * Sets the title of the domain. This is an optional short textual description of the domain. Passing a NULL @title
257 * unsets the current domain title.
258 */
259 void gvir_config_domain_set_title(GVirConfigDomain *domain, const char *title)
260 {
261 gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(domain),
262 "title", title);
263 g_object_notify(G_OBJECT(domain), "title");
264 }
265
213266 const char *gvir_config_domain_get_description(GVirConfigDomain *domain)
214267 {
215268 return gvir_config_object_get_node_content(GVIR_CONFIG_OBJECT(domain),
216269 "description");
217270 }
218271
272 /**
273 * gvir_config_domain_set_description:
274 * @domain: a #GVirConfigDomain
275 * @description: (allow-none):
276 */
219277 void gvir_config_domain_set_description(GVirConfigDomain *domain, const char *description)
220278 {
221279 gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(domain),
225283
226284 /**
227285 * gvir_config_domain_get_memory:
228 * @domain: A domain configuration object.
286 * @domain: a #GVirConfigDomain
229287 *
230288 * Returns: amount of RAM in kilobytes (i.e. blocks of 1024 bytes).
231289 */
237295
238296 /**
239297 * gvir_config_domain_set_memory:
240 * @domain: A domain configuration object.
298 * @domain: a #GVirConfigDomain
241299 * @memory: The amount of RAM in kilobytes.
242300 *
243301 * Sets the amount of RAM allocated to @domain in kilobytes (i.e. blocks of 1024 bytes).
276334
277335 /**
278336 * gvir_config_domain_get_features:
279 * Returns: (transfer full):
337 * @domain: a #GVirConfigDomain
338 *
339 * Returns: (transfer full): The returned list should be freed with
340 * g_strfreev() when no longer needed.
341
280342 */
281343 GStrv gvir_config_domain_get_features(GVirConfigDomain *domain)
282344 {
311373 g_object_notify(G_OBJECT(domain), "features");
312374 }
313375
376 /**
377 * gvir_config_domain_set_clock:
378 * @domain: a #GVirConfigDomain
379 * @klock: (allow-none):
380 */
314381 void gvir_config_domain_set_clock(GVirConfigDomain *domain,
315382 GVirConfigDomainClock *klock)
316383 {
317384 g_return_if_fail(GVIR_CONFIG_IS_DOMAIN(domain));
318 g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_CLOCK(klock));
385 g_return_if_fail(klock != NULL || GVIR_CONFIG_IS_DOMAIN_CLOCK(klock));
319386
320387 gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(domain),
388 "clock",
321389 GVIR_CONFIG_OBJECT(klock));
322390 }
323391
392 /**
393 * gvir_config_domain_get_os:
394 * @domain: a #GVirConfigDomain
395 *
396 * Gets the operating system configuration of @domain
397 *
398 * Returns: (transfer full): A #GVirConfigDomainOs. The returned
399 * object should be unreffed with g_object_unref() when no longer needed.
400 */
401 GVirConfigDomainOs *gvir_config_domain_get_os(GVirConfigDomain *domain)
402 {
403 GVirConfigObject *object;
404
405 g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN(domain), NULL);
406
407 object = gvir_config_object_get_child_with_type(GVIR_CONFIG_OBJECT(domain),
408 "os",
409 GVIR_CONFIG_TYPE_DOMAIN_OS);
410
411 return GVIR_CONFIG_DOMAIN_OS(object);
412 }
413
414 /**
415 * gvir_config_domain_set_os:
416 * @domain: a #GVirConfigDomain
417 * @os: (allow-none): the os configuration to set
418 */
324419 void gvir_config_domain_set_os(GVirConfigDomain *domain,
325420 GVirConfigDomainOs *os)
326421 {
327422 g_return_if_fail(GVIR_CONFIG_IS_DOMAIN(domain));
328 g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_OS(os));
423 g_return_if_fail(os == NULL || GVIR_CONFIG_IS_DOMAIN_OS(os));
329424
330425 gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(domain),
426 "os",
331427 GVIR_CONFIG_OBJECT(os));
332428 }
333429
430 /**
431 * gvir_config_domain_set_seclabel:
432 * @domain: a #GVirConfigDomain
433 * @seclabel: (allow-none): the security label configuration to set
434 */
334435 void gvir_config_domain_set_seclabel(GVirConfigDomain *domain,
335436 GVirConfigDomainSeclabel *seclabel)
336437 {
337438 g_return_if_fail(GVIR_CONFIG_IS_DOMAIN(domain));
338 g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_SECLABEL(seclabel));
439 g_return_if_fail(seclabel == NULL ||
440 GVIR_CONFIG_IS_DOMAIN_SECLABEL(seclabel));
339441
340442 gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(domain),
443 "seclabel",
341444 GVIR_CONFIG_OBJECT(seclabel));
342445 }
343446
364467
365468 /**
366469 * gvir_config_domain_set_devices:
470 * @domain: a #GVirConfigDomain
367471 * @devices: (in) (element-type LibvirtGConfig.DomainDevice):
368472 */
369473 void gvir_config_domain_set_devices(GVirConfigDomain *domain,
374478
375479 g_return_if_fail(GVIR_CONFIG_IS_DOMAIN(domain));
376480
481 if (devices == NULL) {
482 gvir_config_object_delete_children(GVIR_CONFIG_OBJECT(domain),
483 "devices",
484 NULL);
485 return;
486 }
377487 devices_node = gvir_config_object_new(GVIR_CONFIG_TYPE_OBJECT,
378488 "devices", NULL);
489
379490 for (it = devices; it != NULL; it = it->next) {
380491 if (!GVIR_CONFIG_IS_DOMAIN_DEVICE(it->data)) {
381492 g_warn_if_reached();
386497 }
387498
388499 gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(domain),
500 "devices",
389501 devices_node);
390502 g_object_unref(G_OBJECT(devices_node));
391503 }
426538
427539 /**
428540 * gvir_config_domain_get_devices:
429 *
430 * Gets the list of devices attached to @domain
541 * @domain: a #GVirConfigDomain
542 *
543 * Gets the list of devices attached to @domain. The returned list should
544 * be freed with g_list_free(), after its elements have been unreffed with
545 * g_object_unref().
431546 *
432547 * Returns: (element-type LibvirtGConfig.DomainDevice) (transfer full):
433548 * a newly allocated #GList of #GVirConfigDomainDevice.
516631 lookup_namespaced_node, &data);
517632 return gvir_config_xml_node_to_string(data.node);
518633 }
634
635 /**
636 * gvir_config_domain_get_cpu:
637 * @domain: a #GVirConfigDomain
638 *
639 * Gets the CPU configuration of @domain
640 *
641 * Returns: (transfer full): A #GVirConfigDomainCpu. The returned object
642 * should be unreffed with g_object_unref() when no longer needed.
643 */
644 GVirConfigDomainCpu *gvir_config_domain_get_cpu(GVirConfigDomain *domain)
645 {
646 GVirConfigObject *object;
647
648 g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN(domain), NULL);
649
650 object = gvir_config_object_get_child_with_type(GVIR_CONFIG_OBJECT(domain),
651 "cpu",
652 GVIR_CONFIG_TYPE_DOMAIN_CPU);
653
654 return GVIR_CONFIG_DOMAIN_CPU(object);
655 }
656
657 /**
658 * gvir_config_domain_set_cpu:
659 * @domain: a #GVirConfigDomain
660 * @cpu: (allow-none):
661 */
662 void gvir_config_domain_set_cpu(GVirConfigDomain *domain,
663 GVirConfigDomainCpu *cpu)
664 {
665 g_return_if_fail(GVIR_CONFIG_IS_DOMAIN(domain));
666 g_return_if_fail(cpu != NULL || GVIR_CONFIG_IS_DOMAIN_CPU(cpu));
667
668 gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(domain),
669 "cpu",
670 GVIR_CONFIG_OBJECT(cpu));
671 }
3030 #include <libvirt-gconfig/libvirt-gconfig-domain-os.h>
3131 #include <libvirt-gconfig/libvirt-gconfig-domain-device.h>
3232 #include <libvirt-gconfig/libvirt-gconfig-domain-seclabel.h>
33 #include <libvirt-gconfig/libvirt-gconfig-domain-cpu.h>
3334
3435 G_BEGIN_DECLS
3536
9899 GVirConfigDomain *gvir_config_domain_new_from_xml(const gchar *xml, GError **error);
99100 GVirConfigDomain *gvir_config_domain_new(void);
100101
102 GVirConfigDomainVirtType gvir_config_domain_get_virt_type(GVirConfigDomain *domain);
101103 void gvir_config_domain_set_virt_type(GVirConfigDomain *domain, GVirConfigDomainVirtType type);
102104 const char *gvir_config_domain_get_name(GVirConfigDomain *domain);
103105 void gvir_config_domain_set_name(GVirConfigDomain *domain, const char *name);
113115 const GStrv features);
114116 void gvir_config_domain_set_clock(GVirConfigDomain *domain,
115117 GVirConfigDomainClock *klock);
118 GVirConfigDomainOs *gvir_config_domain_get_os(GVirConfigDomain *domain);
116119 void gvir_config_domain_set_os(GVirConfigDomain *domain,
117120 GVirConfigDomainOs *os);
118121 void gvir_config_domain_set_seclabel(GVirConfigDomain *domain,
119122 GVirConfigDomainSeclabel *seclabel);
123 const char *gvir_config_domain_get_title(GVirConfigDomain *domain);
124 void gvir_config_domain_set_title(GVirConfigDomain *domain, const char *title);
120125 void gvir_config_domain_set_devices(GVirConfigDomain *domain,
121126 GList *devices);
122127 void gvir_config_domain_add_device(GVirConfigDomain *domain,
132137 GError **error);
133138 gchar *gvir_config_domain_get_custom_xml(GVirConfigDomain *domain,
134139 const gchar *ns_uri);
140 GVirConfigDomainCpu *gvir_config_domain_get_cpu(GVirConfigDomain *domain);
141 void gvir_config_domain_set_cpu(GVirConfigDomain *domain,
142 GVirConfigDomainCpu *cpu);
135143
136144 G_END_DECLS
137145
4141 const char *gvir_config_object_get_attribute(GVirConfigObject *object,
4242 const char *node_name,
4343 const char *attr_name);
44 guint64 gvir_config_object_get_attribute_uint64(GVirConfigObject *object,
45 const char *node_name,
46 const char *attr_name,
47 guint64 default_value);
4448 gint gvir_config_object_get_attribute_genum(GVirConfigObject *object,
4549 const char *node_name,
4650 const char *attr_name,
8185 void gvir_config_object_attach_add(GVirConfigObject *parent,
8286 GVirConfigObject *child);
8387 void gvir_config_object_attach_replace(GVirConfigObject *parent,
88 const char *child_name,
8489 GVirConfigObject *child);
8590 void gvir_config_object_set_attribute(GVirConfigObject *object,
8691 ...) G_GNUC_NULL_TERMINATED;
95100 gboolean gvir_config_object_set_namespace(GVirConfigObject *object,
96101 const char *ns,
97102 const char *ns_uri);
103 GVirConfigObject *gvir_config_object_get_child(GVirConfigObject *object,
104 const gchar *child_name);
105 GVirConfigObject *gvir_config_object_get_child_with_type(GVirConfigObject *object,
106 const gchar *child_name,
107 GType child_type);
98108
99109 G_END_DECLS
100110
190190 void gvir_config_object_validate(GVirConfigObject *config,
191191 GError **err)
192192 {
193 GVirConfigObjectPrivate *priv = config->priv;
193 GVirConfigObjectPrivate *priv;
194194 xmlRelaxNGParserCtxtPtr rngParser = NULL;
195195 xmlRelaxNGPtr rng = NULL;
196196 xmlRelaxNGValidCtxtPtr rngValid = NULL;
197
198 g_return_if_fail(GVIR_CONFIG_IS_OBJECT(config));
199 g_return_if_fail(err == NULL || *err == NULL);
200
201 priv = config->priv;
197202
198203 xmlSetGenericErrorFunc(NULL, gvir_xml_generic_error_nop);
199204 xmlSetStructuredErrorFunc(NULL, gvir_xml_structured_error_nop);
255260
256261 gchar *gvir_config_object_to_xml(GVirConfigObject *config)
257262 {
263 g_return_val_if_fail(GVIR_CONFIG_IS_OBJECT(config), NULL);
264
258265 return gvir_config_xml_node_to_string(config->priv->node);
259266 }
260267
261268 const gchar *gvir_config_object_get_schema(GVirConfigObject *config)
262269 {
263 GVirConfigObjectPrivate *priv = config->priv;
264 return priv->schema;
270 g_return_val_if_fail(GVIR_CONFIG_IS_OBJECT(config), NULL);
271
272 return config->priv->schema;
265273 }
266274
267275 /* FIXME: will we always have one xmlNode per GConfig object? */
526534
527535 g_return_if_fail(GVIR_CONFIG_IS_OBJECT(object));
528536 g_return_if_fail(node_name != NULL);
529 g_return_if_fail(value != NULL);
537
538 if (value == NULL) {
539 gvir_config_object_delete_child(object, node_name, NULL);
540
541 return;
542 }
530543
531544 node = gvir_config_object_replace_child(object, node_name);
532545 g_return_if_fail(node != NULL);
628641 default_value);
629642
630643 return value;
644 }
645
646 G_GNUC_INTERNAL guint64
647 gvir_config_object_get_attribute_uint64(GVirConfigObject *object,
648 const char *node_name,
649 const char *attr_name,
650 guint64 default_value)
651 {
652 const char *str;
653
654 str = gvir_config_object_get_attribute(object, node_name, attr_name);
655 if (str == NULL)
656 return default_value;
657
658 return g_ascii_strtoull(str, NULL, 0);
631659 }
632660
633661 GVirConfigObject *gvir_config_object_new_from_xml(GType type,
823851 }
824852
825853 G_GNUC_INTERNAL void
826 gvir_config_object_attach_replace(GVirConfigObject *parent, GVirConfigObject *child)
827 {
828 gvir_config_object_attach(parent, child, TRUE);
854 gvir_config_object_attach_replace(GVirConfigObject *parent,
855 const char *child_name,
856 GVirConfigObject *child)
857 {
858 g_return_if_fail(child_name != NULL);
859
860 if (child == NULL)
861 gvir_config_object_delete_children(parent, child_name, NULL);
862 else
863 gvir_config_object_attach(parent, child, TRUE);
829864 }
830865
831866 G_GNUC_INTERNAL void
864899
865900 return TRUE;
866901 }
902
903 G_GNUC_INTERNAL GVirConfigObject *
904 gvir_config_object_get_child_with_type(GVirConfigObject *object,
905 const gchar *child_name,
906 GType child_type)
907 {
908 xmlNodePtr node;
909
910 g_return_val_if_fail(GVIR_CONFIG_IS_OBJECT(object), NULL);
911 g_return_val_if_fail(child_name != NULL, NULL);
912
913 node = gvir_config_xml_get_element(object->priv->node, child_name, NULL);
914 g_return_val_if_fail(node != NULL, NULL);
915
916 return gvir_config_object_new_from_tree(child_type,
917 object->priv->doc,
918 object->priv->schema,
919 node);
920 }
921
922 G_GNUC_INTERNAL GVirConfigObject *
923 gvir_config_object_get_child(GVirConfigObject *object,
924 const gchar *child_name)
925 {
926 return gvir_config_object_get_child_with_type(object,
927 child_name,
928 GVIR_CONFIG_TYPE_OBJECT);
929 }
2222 #ifndef __LIBVIRT_GCONFIG_PRIVATE_H__
2323 #define __LIBVIRT_GCONFIG_PRIVATE_H__
2424
25 #include <libvirt-gconfig/libvirt-gconfig-capabilities-cpu-private.h>
2526 #include <libvirt-gconfig/libvirt-gconfig-domain-device-private.h>
2627 #include <libvirt-gconfig/libvirt-gconfig-helpers-private.h>
2728 #include <libvirt-gconfig/libvirt-gconfig-object-private.h>
7878 "group", group);
7979 }
8080
81 /**
82 * gvir_config_storage_permissions_set_label:
83 * @label: (allow-none):
84 */
8185 void gvir_config_storage_permissions_set_label(GVirConfigStoragePermissions *perms,
8286 const char *label)
8387 {
135135 g_object_unref(G_OBJECT(node));
136136 }
137137
138 /**
139 * gvir_config_storage_pool_source_set_name:
140 * @name: (allow-none):
141 */
138142 void gvir_config_storage_pool_source_set_name(GVirConfigStoragePoolSource *source,
139143 const char *name)
140144 {
7070 return GVIR_CONFIG_STORAGE_POOL_TARGET(object);
7171 }
7272
73 /**
74 * gvir_config_storage_pool_target_set_path:
75 * @path: (allow-none):
76 */
7377 void gvir_config_storage_pool_target_set_path(GVirConfigStoragePoolTarget *target,
7478 const char *path)
7579 {
7983 "path", path);
8084 }
8185
86 /**
87 * gvir_config_storage_pool_perms_set_permissions:
88 * @perms: (allow-none):
89 */
8290 void gvir_config_storage_pool_target_set_permissions(GVirConfigStoragePoolTarget *target,
8391 GVirConfigStoragePermissions *perms)
8492 {
8593 g_return_if_fail(GVIR_CONFIG_IS_STORAGE_POOL_TARGET(target));
86 g_return_if_fail(GVIR_CONFIG_IS_STORAGE_PERMISSIONS(perms));
94 g_return_if_fail(perms == NULL ||
95 GVIR_CONFIG_IS_STORAGE_PERMISSIONS(perms));
8796
8897 gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(target),
98 "permissions",
8999 GVIR_CONFIG_OBJECT(perms));
90100 }
8585 NULL);
8686 }
8787
88 /**
89 * gvir_config_storage_pool_set_name:
90 * @name: (allow-none):
91 */
8892 void gvir_config_storage_pool_set_name(GVirConfigStoragePool *pool,
8993 const char *name)
9094 {
9498 "name", name);
9599 }
96100
101 /**
102 * gvir_config_storage_pool_set_uuid:
103 * @uuid: (allow-none):
104 */
97105 void gvir_config_storage_pool_set_uuid(GVirConfigStoragePool *pool,
98106 const char *uuid)
99107 {
130138 "available", available);
131139 }
132140
141 /**
142 * gvir_config_storage_pool_set_source:
143 * @source: (allow-none):
144 */
133145 void gvir_config_storage_pool_set_source(GVirConfigStoragePool *pool,
134146 GVirConfigStoragePoolSource *source)
135147 {
136148 g_return_if_fail(GVIR_CONFIG_IS_STORAGE_POOL(pool));
137 g_return_if_fail(GVIR_CONFIG_IS_STORAGE_POOL_SOURCE(source));
149 g_return_if_fail(source == NULL ||
150 GVIR_CONFIG_IS_STORAGE_POOL_SOURCE(source));
138151
139152 gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(pool),
153 "source",
140154 GVIR_CONFIG_OBJECT(source));
141155 }
142156
157 /**
158 * gvir_config_storage_pool_set_target:
159 * @target: (allow-none):
160 */
143161 void gvir_config_storage_pool_set_target(GVirConfigStoragePool *pool,
144162 GVirConfigStoragePoolTarget *target)
145163 {
146164 g_return_if_fail(GVIR_CONFIG_IS_STORAGE_POOL(pool));
147 g_return_if_fail(GVIR_CONFIG_IS_STORAGE_POOL_TARGET(target));
165 g_return_if_fail(target == NULL ||
166 GVIR_CONFIG_IS_STORAGE_POOL_TARGET(target));
148167
149168 gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(pool),
169 "target",
150170 GVIR_CONFIG_OBJECT(target));
151171 }
8383 g_object_unref(G_OBJECT(node));
8484 }
8585
86 /**
87 * gvir_config_storage_vol_backing_store_set_path:
88 * @path: (allow-none):
89 */
8690 void gvir_config_storage_vol_backing_store_set_path(GVirConfigStorageVolBackingStore *backing_store,
8791 const char *path)
8892 {
8383 g_object_unref(G_OBJECT(node));
8484 }
8585
86 /**
87 * gvir_config_storage_vol_target_set_permissions:
88 * @perms: (allow-none):
89 */
8690 void gvir_config_storage_vol_target_set_permissions(GVirConfigStorageVolTarget *target,
8791 GVirConfigStoragePermissions *perms)
8892 {
8993 g_return_if_fail(GVIR_CONFIG_IS_STORAGE_VOL_TARGET(target));
90 g_return_if_fail(GVIR_CONFIG_IS_STORAGE_PERMISSIONS(perms));
94 g_return_if_fail(perms == NULL ||
95 GVIR_CONFIG_IS_STORAGE_PERMISSIONS(perms));
9196
9297 gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(target),
98 "permissions",
9399 GVIR_CONFIG_OBJECT(perms));
94100 }
7373 return GVIR_CONFIG_STORAGE_VOL(object);
7474 }
7575
76 /**
77 * gvir_config_storage_vol_set_name:
78 * @name: (allow-none):
79 */
7680 void gvir_config_storage_vol_set_name(GVirConfigStorageVol *vol,
7781 const char *name)
7882 {
100104 "allocation", allocation);
101105 }
102106
107 /**
108 * gvir_config_storage_vol_set_target:
109 * @target: (allow-none):
110 */
103111 void gvir_config_storage_vol_set_target(GVirConfigStorageVol *vol,
104112 GVirConfigStorageVolTarget *target)
105113 {
106114 g_return_if_fail(GVIR_CONFIG_IS_STORAGE_VOL(vol));
107 g_return_if_fail(GVIR_CONFIG_IS_STORAGE_VOL_TARGET(target));
115 g_return_if_fail(target == NULL ||
116 GVIR_CONFIG_IS_STORAGE_VOL_TARGET(target));
108117
109118 gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(vol),
119 "target",
110120 GVIR_CONFIG_OBJECT(target));
111121 }
112122
123 /**
124 * gvir_config_storage_vol_set_backing_store:
125 * @backing_store: (allow-none):
126 */
113127 void gvir_config_storage_vol_set_backing_store(GVirConfigStorageVol *vol,
114128 GVirConfigStorageVolBackingStore *backing_store)
115129 {
116130 g_return_if_fail(GVIR_CONFIG_IS_STORAGE_VOL(vol));
117 g_return_if_fail(GVIR_CONFIG_IS_STORAGE_VOL_BACKING_STORE(backing_store));
131 g_return_if_fail(backing_store == NULL ||
132 GVIR_CONFIG_IS_STORAGE_VOL_BACKING_STORE(backing_store));
118133
119134 gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(vol),
135 "backingStore",
120136 GVIR_CONFIG_OBJECT(backing_store));
121137 }
2828 #include <libvirt-gconfig/libvirt-gconfig-main.h>
2929 #include <libvirt-gconfig/libvirt-gconfig-object.h>
3030 #include <libvirt-gconfig/libvirt-gconfig-capabilities.h>
31 #include <libvirt-gconfig/libvirt-gconfig-capabilities-cpu.h>
32 #include <libvirt-gconfig/libvirt-gconfig-capabilities-cpu-feature.h>
33 #include <libvirt-gconfig/libvirt-gconfig-capabilities-cpu-topology.h>
34 #include <libvirt-gconfig/libvirt-gconfig-capabilities-guest.h>
35 #include <libvirt-gconfig/libvirt-gconfig-capabilities-guest-arch.h>
36 #include <libvirt-gconfig/libvirt-gconfig-capabilities-guest-domain.h>
37 #include <libvirt-gconfig/libvirt-gconfig-capabilities-guest-feature.h>
38 #include <libvirt-gconfig/libvirt-gconfig-capabilities-host.h>
3139 #include <libvirt-gconfig/libvirt-gconfig-domain.h>
3240 #include <libvirt-gconfig/libvirt-gconfig-domain-address.h>
3341 #include <libvirt-gconfig/libvirt-gconfig-domain-address-pci.h>
4149 #include <libvirt-gconfig/libvirt-gconfig-domain-console.h>
4250 #include <libvirt-gconfig/libvirt-gconfig-domain-controller.h>
4351 #include <libvirt-gconfig/libvirt-gconfig-domain-controller-usb.h>
52 #include <libvirt-gconfig/libvirt-gconfig-domain-cpu.h>
53 #include <libvirt-gconfig/libvirt-gconfig-domain-cpu-feature.h>
4454 #include <libvirt-gconfig/libvirt-gconfig-domain-device.h>
4555 #include <libvirt-gconfig/libvirt-gconfig-domain-disk.h>
4656 #include <libvirt-gconfig/libvirt-gconfig-domain-filesys.h>
373373 *;
374374 };
375375
376 LIBVIRT_GCONFIG_0.0.9 {
377 global:
378 gvir_config_domain_get_os;
379 gvir_config_domain_get_title;
380 gvir_config_domain_set_title;
381 gvir_config_domain_get_virt_type;
382
383 gvir_config_domain_filesys_set_ram_usage;
384
385 gvir_config_domain_os_get_arch;
386 gvir_config_domain_os_get_boot_devices;
387 gvir_config_domain_os_get_os_type;
388
389 gvir_config_capabilities_get_host;
390 gvir_config_capabilities_get_guests;
391
392 gvir_config_capabilities_cpu_get_type;
393 gvir_config_capabilities_cpu_get_arch;
394 gvir_config_capabilities_cpu_get_features;
395 gvir_config_capabilities_cpu_get_topology;
396
397 gvir_config_capabilities_cpu_feature_get_type;
398 gvir_config_capabilities_cpu_feature_get_name;
399
400 gvir_config_capabilities_cpu_topology_get_type;
401 gvir_config_capabilities_cpu_topology_get_cores;
402 gvir_config_capabilities_cpu_topology_get_sockets;
403 gvir_config_capabilities_cpu_topology_get_threads;
404
405 gvir_config_capabilities_guest_get_type;
406 gvir_config_capabilities_guest_get_arch;
407 gvir_config_capabilities_guest_get_features;
408 gvir_config_capabilities_guest_get_os_type;
409
410 gvir_config_capabilities_guest_arch_get_type;
411 gvir_config_capabilities_guest_arch_get_domains;
412 gvir_config_capabilities_guest_arch_get_emulator;
413 gvir_config_capabilities_guest_arch_get_name;
414
415 gvir_config_capabilities_guest_domain_get_type;
416 gvir_config_capabilities_guest_domain_get_emulator;
417 gvir_config_capabilities_guest_domain_get_virt_type;
418
419 gvir_config_capabilities_guest_feature_get_type;
420 gvir_config_capabilities_guest_feature_get_name;
421
422 gvir_config_capabilities_host_get_type;
423 gvir_config_capabilities_host_get_uuid;
424 gvir_config_capabilities_host_get_cpu;
425 } LIBVIRT_GCONFIG_0.0.8;
426
427 LIBVIRT_GCONFIG_0.1.0 {
428 global:
429 gvir_config_capabilities_cpu_add_feature;
430 gvir_config_capabilities_cpu_set_topology;
431
432 gvir_config_capabilities_cpu_feature_set_name;
433
434 gvir_config_capabilities_cpu_topology_new;
435 gvir_config_capabilities_cpu_topology_new_from_xml;
436 gvir_config_capabilities_cpu_topology_set_cores;
437 gvir_config_capabilities_cpu_topology_set_sockets;
438 gvir_config_capabilities_cpu_topology_set_threads;
439
440 gvir_config_domain_get_cpu;
441 gvir_config_domain_set_cpu;
442
443 gvir_config_domain_cpu_get_type;
444 gvir_config_domain_cpu_match_policy_get_type;
445 gvir_config_domain_cpu_mode_get_type;
446 gvir_config_domain_cpu_get_features;
447 gvir_config_domain_cpu_get_match_policy;
448 gvir_config_domain_cpu_set_match_policy;
449 gvir_config_domain_cpu_get_mode;
450 gvir_config_domain_cpu_set_mode;
451 gvir_config_domain_cpu_new;
452 gvir_config_domain_cpu_new_from_xml;
453
454 gvir_config_domain_cpu_feature_get_type;
455 gvir_config_domain_cpu_feature_new;
456 gvir_config_domain_cpu_feature_new_from_xml;
457 gvir_config_domain_cpu_feature_policy_get_type;
458 gvir_config_domain_cpu_feature_get_policy;
459 gvir_config_domain_cpu_feature_set_policy;
460 } LIBVIRT_GCONFIG_0.0.9;
461
376462 # .... define new API here using predicted next version number ....
0 noinst_PROGRAMS = test-domain-create test-domain-parse
0 noinst_PROGRAMS = test-domain-create test-domain-parse test-capabilities-parse
11
22 AM_CFLAGS = \
33 $(GOBJECT2_CFLAGS) \
1313 test_domain_create_SOURCES = test-domain-create.c
1414
1515 test_domain_parse_SOURCES = test-domain-parse.c
16
17 test_capabilities_parse_SOURCES = test-capabilities-parse.c
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
0 # Makefile.in generated by automake 1.12.2 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1514 @SET_MAKE@
1615
1716 VPATH = @srcdir@
17 am__make_dryrun = \
18 { \
19 am__dry=no; \
20 case $$MAKEFLAGS in \
21 *\\[\ \ ]*) \
22 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
23 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
24 *) \
25 for am__flg in $$MAKEFLAGS; do \
26 case $$am__flg in \
27 *=*|--*) ;; \
28 *n*) am__dry=yes; break;; \
29 esac; \
30 done;; \
31 esac; \
32 test $$am__dry = yes; \
33 }
1834 pkgdatadir = $(datadir)/@PACKAGE@
1935 pkgincludedir = $(includedir)/@PACKAGE@
2036 pkglibdir = $(libdir)/@PACKAGE@
3450 build_triplet = @build@
3551 host_triplet = @host@
3652 noinst_PROGRAMS = test-domain-create$(EXEEXT) \
37 test-domain-parse$(EXEEXT)
53 test-domain-parse$(EXEEXT) test-capabilities-parse$(EXEEXT)
3854 subdir = libvirt-gconfig/tests
39 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
55 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
56 $(top_srcdir)/build-aux/depcomp
4057 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
4158 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
4259 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
5168 CONFIG_CLEAN_FILES =
5269 CONFIG_CLEAN_VPATH_FILES =
5370 PROGRAMS = $(noinst_PROGRAMS)
54 am_test_domain_create_OBJECTS = test-domain-create.$(OBJEXT)
55 test_domain_create_OBJECTS = $(am_test_domain_create_OBJECTS)
56 test_domain_create_LDADD = $(LDADD)
71 am_test_capabilities_parse_OBJECTS = \
72 test-capabilities-parse.$(OBJEXT)
73 test_capabilities_parse_OBJECTS = \
74 $(am_test_capabilities_parse_OBJECTS)
75 test_capabilities_parse_LDADD = $(LDADD)
5776 am__DEPENDENCIES_1 =
58 test_domain_create_DEPENDENCIES = \
77 test_capabilities_parse_DEPENDENCIES = \
5978 $(top_builddir)/libvirt-gconfig/libvirt-gconfig-1.0.la \
6079 $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
6180 $(am__DEPENDENCIES_1)
6281 AM_V_lt = $(am__v_lt_@AM_V@)
6382 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
6483 am__v_lt_0 = --silent
84 am__v_lt_1 =
85 am_test_domain_create_OBJECTS = test-domain-create.$(OBJEXT)
86 test_domain_create_OBJECTS = $(am_test_domain_create_OBJECTS)
87 test_domain_create_LDADD = $(LDADD)
88 test_domain_create_DEPENDENCIES = \
89 $(top_builddir)/libvirt-gconfig/libvirt-gconfig-1.0.la \
90 $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
91 $(am__DEPENDENCIES_1)
6592 am_test_domain_parse_OBJECTS = test-domain-parse.$(OBJEXT)
6693 test_domain_parse_OBJECTS = $(am_test_domain_parse_OBJECTS)
6794 test_domain_parse_LDADD = $(LDADD)
6996 $(top_builddir)/libvirt-gconfig/libvirt-gconfig-1.0.la \
7097 $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
7198 $(am__DEPENDENCIES_1)
99 AM_V_P = $(am__v_P_@AM_V@)
100 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
101 am__v_P_0 = false
102 am__v_P_1 = :
103 AM_V_GEN = $(am__v_GEN_@AM_V@)
104 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
105 am__v_GEN_0 = @echo " GEN " $@;
106 am__v_GEN_1 =
107 AM_V_at = $(am__v_at_@AM_V@)
108 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
109 am__v_at_0 = @
110 am__v_at_1 =
72111 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
73112 depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
74113 am__depfiles_maybe = depfiles
81120 $(AM_CFLAGS) $(CFLAGS)
82121 AM_V_CC = $(am__v_CC_@AM_V@)
83122 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
84 am__v_CC_0 = @echo " CC " $@;
85 AM_V_at = $(am__v_at_@AM_V@)
86 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
87 am__v_at_0 = @
123 am__v_CC_0 = @echo " CC " $@;
124 am__v_CC_1 =
88125 CCLD = $(CC)
89126 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
90127 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
91128 $(AM_LDFLAGS) $(LDFLAGS) -o $@
92129 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
93130 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
94 am__v_CCLD_0 = @echo " CCLD " $@;
95 AM_V_GEN = $(am__v_GEN_@AM_V@)
96 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
97 am__v_GEN_0 = @echo " GEN " $@;
98 SOURCES = $(test_domain_create_SOURCES) $(test_domain_parse_SOURCES)
99 DIST_SOURCES = $(test_domain_create_SOURCES) \
100 $(test_domain_parse_SOURCES)
131 am__v_CCLD_0 = @echo " CCLD " $@;
132 am__v_CCLD_1 =
133 SOURCES = $(test_capabilities_parse_SOURCES) \
134 $(test_domain_create_SOURCES) $(test_domain_parse_SOURCES)
135 DIST_SOURCES = $(test_capabilities_parse_SOURCES) \
136 $(test_domain_create_SOURCES) $(test_domain_parse_SOURCES)
137 am__can_run_installinfo = \
138 case $$AM_UPDATE_INFO_DIR in \
139 n|no|NO) false;; \
140 *) (install-info --version) >/dev/null 2>&1;; \
141 esac
101142 ETAGS = etags
102143 CTAGS = ctags
103144 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
277318
278319 test_domain_create_SOURCES = test-domain-create.c
279320 test_domain_parse_SOURCES = test-domain-parse.c
321 test_capabilities_parse_SOURCES = test-capabilities-parse.c
280322 all: all-am
281323
282324 .SUFFIXES:
320362 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
321363 echo " rm -f" $$list; \
322364 rm -f $$list
365 test-capabilities-parse$(EXEEXT): $(test_capabilities_parse_OBJECTS) $(test_capabilities_parse_DEPENDENCIES) $(EXTRA_test_capabilities_parse_DEPENDENCIES)
366 @rm -f test-capabilities-parse$(EXEEXT)
367 $(AM_V_CCLD)$(LINK) $(test_capabilities_parse_OBJECTS) $(test_capabilities_parse_LDADD) $(LIBS)
323368 test-domain-create$(EXEEXT): $(test_domain_create_OBJECTS) $(test_domain_create_DEPENDENCIES) $(EXTRA_test_domain_create_DEPENDENCIES)
324369 @rm -f test-domain-create$(EXEEXT)
325370 $(AM_V_CCLD)$(LINK) $(test_domain_create_OBJECTS) $(test_domain_create_LDADD) $(LIBS)
333378 distclean-compile:
334379 -rm -f *.tab.c
335380
381 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-capabilities-parse.Po@am__quote@
336382 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-domain-create.Po@am__quote@
337383 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-domain-parse.Po@am__quote@
338384
411457 here=`$(am__cd) $(top_builddir) && pwd` \
412458 && $(am__cd) $(top_srcdir) \
413459 && gtags -i $(GTAGS_ARGS) "$$here"
460
461 cscopelist: $(HEADERS) $(SOURCES) $(LISP)
462 list='$(SOURCES) $(HEADERS) $(LISP)'; \
463 case "$(srcdir)" in \
464 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
465 *) sdir=$(subdir)/$(srcdir) ;; \
466 esac; \
467 for i in $$list; do \
468 if test -f "$$i"; then \
469 echo "$(subdir)/$$i"; \
470 else \
471 echo "$$sdir/$$i"; \
472 fi; \
473 done >> $(top_builddir)/cscope.files
414474
415475 distclean-tags:
416476 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
553613 .MAKE: install-am install-strip
554614
555615 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
556 clean-libtool clean-noinstPROGRAMS ctags distclean \
616 clean-libtool clean-noinstPROGRAMS cscopelist ctags distclean \
557617 distclean-compile distclean-generic distclean-libtool \
558618 distclean-tags distdir dvi dvi-am html html-am info info-am \
559619 install install-am install-data install-data-am install-dvi \
0 /*
1 * test-capabilities-parse.c: test libvirt-gconfig capabilities parsing
2 *
3 * Copyright (C) 2011-2012 Red Hat, Inc.
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the
7 * "Software"), to deal in the Software without restriction, including
8 * without limitation the rights to use, copy, modify, merge, publish,
9 * distribute, sublicense, and/or sell copies of the Software, and to
10 * permit persons to whom the Software is furnished to do so, subject to
11 * the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included
14 * in all copies or substantial portions of the Software.
15 *
16 * The Software is provided "as is", without warranty of any kind, express
17 * or implied, including but not limited to the warranties of
18 * merchantability, fitness for a particular purpose and noninfringement.
19 * In no event shall the authors or copyright holders be liable for any
20 * claim, damages or other liability, whether in an action of contract,
21 * tort or otherwise, arising from, out of or in connection with the
22 * software or the use or other dealings in the Software.
23 *
24 * Authors: Zeeshan Ali <zeenix@redhat.com>
25 * Christophe Fergeau <cfergeau@redhat.com>
26 */
27
28 #include <config.h>
29
30 #include <string.h>
31 #include <libvirt-gconfig/libvirt-gconfig.h>
32
33 static void verify_host_caps(GVirConfigCapabilitiesHost *host_caps)
34 {
35 GVirConfigCapabilitiesCpu *cpu_caps;
36 GVirConfigCapabilitiesCpuTopology *topology;
37 GList *features, *iter;
38 const char *str;
39
40 g_assert(host_caps != NULL);
41 str = gvir_config_capabilities_host_get_uuid(host_caps);
42 g_assert(g_strcmp0(str, "cd6a24b3-46f8-01aa-bb39-c39aa2123730") == 0);
43 cpu_caps = gvir_config_capabilities_host_get_cpu(host_caps);
44 g_assert(cpu_caps != NULL);
45 str = gvir_config_capabilities_cpu_get_arch(cpu_caps);
46 g_assert(g_strcmp0(str, "x86_64") == 0);
47
48 features = gvir_config_capabilities_cpu_get_features(cpu_caps);
49 for (iter = features; iter != NULL; iter = iter->next) {
50 g_assert(iter->data != NULL);
51 g_object_unref(G_OBJECT(iter->data));
52 }
53 g_list_free(features);
54
55 topology = gvir_config_capabilities_cpu_get_topology(cpu_caps);
56 g_assert(topology != NULL);
57 g_assert(gvir_config_capabilities_cpu_topology_get_sockets(topology) == 1);
58 g_assert(gvir_config_capabilities_cpu_topology_get_cores(topology) == 2);
59 g_assert(gvir_config_capabilities_cpu_topology_get_threads(topology) == 2);
60 g_object_unref(G_OBJECT(topology));
61 g_object_unref(G_OBJECT(cpu_caps));
62 }
63
64 static void verify_guest_caps(GVirConfigCapabilitiesGuest *guest_caps)
65 {
66 GVirConfigCapabilitiesGuestArch *arch_caps;
67 GList *features, *domains, *iter;
68 const char *str;
69
70 g_assert(guest_caps != NULL);
71 g_assert(gvir_config_capabilities_guest_get_os_type(guest_caps) ==
72 GVIR_CONFIG_DOMAIN_OS_TYPE_HVM);
73
74 features = gvir_config_capabilities_guest_get_features(guest_caps);
75 for (iter = features; iter != NULL; iter = iter->next) {
76 GVirConfigCapabilitiesGuestFeature *feature_caps;
77
78 feature_caps = GVIR_CONFIG_CAPABILITIES_GUEST_FEATURE(iter->data);
79 g_assert(feature_caps != NULL);
80 str = gvir_config_capabilities_guest_feature_get_name(feature_caps);
81 g_assert(str != NULL);
82 g_object_unref(G_OBJECT(feature_caps));
83 }
84 g_list_free(features);
85
86 arch_caps = gvir_config_capabilities_guest_get_arch(guest_caps);
87 g_assert(arch_caps != NULL);
88 str = gvir_config_capabilities_guest_arch_get_name(arch_caps);
89 g_assert(str != NULL);
90 str = gvir_config_capabilities_guest_arch_get_emulator(arch_caps);
91 g_assert(str != NULL);
92
93 domains = gvir_config_capabilities_guest_arch_get_domains(arch_caps);
94 for (iter = domains; iter != NULL; iter = iter->next) {
95 GVirConfigCapabilitiesGuestDomain *domain_caps;
96 GVirConfigDomainVirtType virt_type;
97
98 domain_caps = GVIR_CONFIG_CAPABILITIES_GUEST_DOMAIN(iter->data);
99 g_assert(domain_caps != NULL);
100 virt_type = gvir_config_capabilities_guest_domain_get_virt_type(domain_caps);
101 str = gvir_config_capabilities_guest_domain_get_emulator(domain_caps);
102 g_assert((virt_type == GVIR_CONFIG_DOMAIN_VIRT_QEMU && str == NULL) ||
103 (virt_type == GVIR_CONFIG_DOMAIN_VIRT_KVM &&
104 g_strcmp0(str, "/usr/bin/qemu-kvm") == 0));
105 g_object_unref(G_OBJECT(domain_caps));
106 }
107 g_list_free(domains);
108 g_object_unref(G_OBJECT(arch_caps));
109 }
110
111 int main(int argc, char **argv)
112 {
113 GVirConfigCapabilities *caps;
114 GVirConfigCapabilitiesHost *host_caps;
115 GList *guests_caps, *iter;
116 char *xml;
117 GError *error = NULL;
118
119 gvir_config_init(&argc, &argv);
120 if (argc != 2) {
121 g_print("Usage: %s filename\n", argv[0]);
122 g_print("Attempt to parse the libvirt XML definition from filename\n");
123 return 1;
124 }
125
126 g_file_get_contents(argv[1], &xml, NULL, &error);
127 if (error != NULL) {
128 g_print("Couldn't read %s: %s\n", argv[1], error->message);
129 return 2;
130 }
131
132 caps = gvir_config_capabilities_new_from_xml(xml, &error);
133 g_free(xml);
134 if (error != NULL) {
135 g_print("Couldn't parse %s: %s\n", argv[1], error->message);
136 return 3;
137 }
138 g_assert(caps != NULL);
139 gvir_config_object_validate(GVIR_CONFIG_OBJECT(caps), &error);
140 if (error != NULL) {
141 g_print("%s format is invalid: %s\n", argv[1], error->message);
142 g_clear_error(&error);
143 }
144
145 host_caps = gvir_config_capabilities_get_host(caps);
146 verify_host_caps(host_caps);
147 g_object_unref(G_OBJECT(host_caps));
148
149 guests_caps = gvir_config_capabilities_get_guests(caps);
150 for (iter = guests_caps; iter != NULL; iter = iter->next) {
151 GVirConfigCapabilitiesGuest *guest_caps;
152
153 guest_caps = GVIR_CONFIG_CAPABILITIES_GUEST(iter->data);
154 verify_guest_caps(guest_caps);
155 g_object_unref(G_OBJECT(guest_caps));
156 }
157 g_list_free(guests_caps);
158
159 xml = gvir_config_object_to_xml(GVIR_CONFIG_OBJECT(caps));
160 g_print("%s\n", xml);
161 g_free(xml);
162 g_object_unref(G_OBJECT(caps));
163
164 return 0;
165 }
172172 gvir_config_domain_set_os(domain, os);
173173 g_object_unref(G_OBJECT(os));
174174
175 /* cpu node */
176 GVirConfigDomainCpu *cpu;
177
178 cpu = gvir_config_domain_cpu_new();
179
180 /* cpu/feature nodes */
181 GVirConfigDomainCpuFeature *feature;
182 GList *cpu_features = NULL;
183
184 gvir_config_domain_cpu_set_match_policy(cpu, GVIR_CONFIG_DOMAIN_CPU_MATCH_POLICY_STRICT);
185 gvir_config_domain_cpu_set_mode(cpu, GVIR_CONFIG_DOMAIN_CPU_MODE_HOST_PASSTHROUGH);
186 feature = gvir_config_domain_cpu_feature_new();
187 gvir_config_capabilities_cpu_feature_set_name(GVIR_CONFIG_CAPABILITIES_CPU_FEATURE(feature),
188 "foo");
189 gvir_config_domain_cpu_feature_set_policy(feature, GVIR_CONFIG_DOMAIN_CPU_FEATURE_POLICY_REQUIRE);
190 gvir_config_capabilities_cpu_add_feature(GVIR_CONFIG_CAPABILITIES_CPU(cpu),
191 GVIR_CONFIG_CAPABILITIES_CPU_FEATURE(feature));
192 g_object_unref(feature);
193
194 /* cpu/topology nodes */
195 GVirConfigCapabilitiesCpuTopology *topology;
196
197 topology = gvir_config_capabilities_cpu_topology_new();
198 gvir_config_capabilities_cpu_topology_set_cores(topology, 1);
199 gvir_config_capabilities_cpu_topology_set_sockets(topology, 2);
200 gvir_config_capabilities_cpu_topology_set_threads(topology, 3);
201 gvir_config_capabilities_cpu_set_topology(GVIR_CONFIG_CAPABILITIES_CPU(cpu),
202 topology);
203 g_object_unref(topology);
204 gvir_config_domain_set_cpu(domain, cpu);
205 g_object_unref(cpu);
206
207 cpu = gvir_config_domain_get_cpu(domain);
208 g_assert(gvir_config_domain_cpu_get_match_policy(cpu) == GVIR_CONFIG_DOMAIN_CPU_MATCH_POLICY_STRICT);
209 g_assert(gvir_config_domain_cpu_get_mode(cpu) == GVIR_CONFIG_DOMAIN_CPU_MODE_HOST_PASSTHROUGH);
210 g_assert(cpu != NULL);
211 g_assert(GVIR_CONFIG_IS_CAPABILITIES_CPU(cpu));
212
213 cpu_features = gvir_config_capabilities_cpu_get_features(GVIR_CONFIG_CAPABILITIES_CPU(cpu));
214 g_assert(g_list_length(cpu_features) >= 1);
215 g_assert(GVIR_CONFIG_IS_DOMAIN_CPU_FEATURE(cpu_features->data));
216 feature = GVIR_CONFIG_DOMAIN_CPU_FEATURE(cpu_features->data);
217 g_str_const_check(gvir_config_capabilities_cpu_feature_get_name
218 (GVIR_CONFIG_CAPABILITIES_CPU_FEATURE(feature)), "foo");
219 g_assert(gvir_config_domain_cpu_feature_get_policy(feature) == GVIR_CONFIG_DOMAIN_CPU_FEATURE_POLICY_REQUIRE);
220 g_list_free_full(cpu_features, g_object_unref);
221
222 topology = gvir_config_capabilities_cpu_get_topology(GVIR_CONFIG_CAPABILITIES_CPU(cpu));
223 g_assert(topology != NULL);
224 g_assert(gvir_config_capabilities_cpu_topology_get_cores(topology) == 1);
225 g_assert(gvir_config_capabilities_cpu_topology_get_sockets(topology) == 2);
226 g_assert(gvir_config_capabilities_cpu_topology_get_threads(topology) == 3);
227 g_object_unref(topology);
228 g_object_unref(cpu);
229
175230 /* disk node */
176231 GVirConfigDomainDisk *disk;
177232
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
0 # Makefile.in generated by automake 1.12.2 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1716
1817
1918 VPATH = @srcdir@
19 am__make_dryrun = \
20 { \
21 am__dry=no; \
22 case $$MAKEFLAGS in \
23 *\\[\ \ ]*) \
24 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
25 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
26 *) \
27 for am__flg in $$MAKEFLAGS; do \
28 case $$am__flg in \
29 *=*|--*) ;; \
30 *n*) am__dry=yes; break;; \
31 esac; \
32 done;; \
33 esac; \
34 test $$am__dry = yes; \
35 }
2036 pkgdatadir = $(datadir)/@PACKAGE@
2137 pkgincludedir = $(includedir)/@PACKAGE@
2238 pkglibdir = $(libdir)/@PACKAGE@
3753 host_triplet = @host@
3854 subdir = libvirt-glib
3955 DIST_COMMON = $(libvirt_glib_1_0_la_HEADERS) $(srcdir)/Makefile.am \
40 $(srcdir)/Makefile.in
56 $(srcdir)/Makefile.in $(top_srcdir)/build-aux/depcomp
4157 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
4258 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
4359 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
92108 AM_V_lt = $(am__v_lt_@AM_V@)
93109 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
94110 am__v_lt_0 = --silent
111 am__v_lt_1 =
95112 libvirt_glib_1_0_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
96113 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
97114 $(libvirt_glib_1_0_la_CFLAGS) $(CFLAGS) \
98115 $(libvirt_glib_1_0_la_LDFLAGS) $(LDFLAGS) -o $@
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
99128 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
100129 depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
101130 am__depfiles_maybe = depfiles
108137 $(AM_CFLAGS) $(CFLAGS)
109138 AM_V_CC = $(am__v_CC_@AM_V@)
110139 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
111 am__v_CC_0 = @echo " CC " $@;
112 AM_V_at = $(am__v_at_@AM_V@)
113 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
114 am__v_at_0 = @
140 am__v_CC_0 = @echo " CC " $@;
141 am__v_CC_1 =
115142 CCLD = $(CC)
116143 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
117144 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
118145 $(AM_LDFLAGS) $(LDFLAGS) -o $@
119146 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
120147 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
121 am__v_CCLD_0 = @echo " CCLD " $@;
122 AM_V_GEN = $(am__v_GEN_@AM_V@)
123 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
124 am__v_GEN_0 = @echo " GEN " $@;
148 am__v_CCLD_0 = @echo " CCLD " $@;
149 am__v_CCLD_1 =
125150 SOURCES = $(libvirt_glib_1_0_la_SOURCES)
126151 DIST_SOURCES = $(libvirt_glib_1_0_la_SOURCES)
152 am__can_run_installinfo = \
153 case $$AM_UPDATE_INFO_DIR in \
154 n|no|NO) false;; \
155 *) (install-info --version) >/dev/null 2>&1;; \
156 esac
127157 DATA = $(gir_DATA) $(typelibs_DATA)
128158 HEADERS = $(libvirt_glib_1_0_la_HEADERS)
129159 ETAGS = etags
372402 $(am__aclocal_m4_deps):
373403 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
374404 @$(NORMAL_INSTALL)
375 test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
376405 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
377406 list2=; for p in $$list; do \
378407 if test -f $$p; then \
380409 else :; fi; \
381410 done; \
382411 test -z "$$list2" || { \
412 echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
413 $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
383414 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
384415 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
385416 }
395426
396427 clean-libLTLIBRARIES:
397428 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
398 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
399 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
400 test "$$dir" != "$$p" || dir=.; \
401 echo "rm -f \"$${dir}/so_locations\""; \
402 rm -f "$${dir}/so_locations"; \
403 done
429 @list='$(lib_LTLIBRARIES)'; \
430 locs=`for p in $$list; do echo $$p; done | \
431 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
432 sort -u`; \
433 test -z "$$locs" || { \
434 echo rm -f $${locs}; \
435 rm -f $${locs}; \
436 }
404437 libvirt-glib-1.0.la: $(libvirt_glib_1_0_la_OBJECTS) $(libvirt_glib_1_0_la_DEPENDENCIES) $(EXTRA_libvirt_glib_1_0_la_DEPENDENCIES)
405438 $(AM_V_CCLD)$(libvirt_glib_1_0_la_LINK) -rpath $(libdir) $(libvirt_glib_1_0_la_OBJECTS) $(libvirt_glib_1_0_la_LIBADD) $(LIBS)
406439
463496 -rm -rf .libs _libs
464497 install-girDATA: $(gir_DATA)
465498 @$(NORMAL_INSTALL)
466 test -z "$(girdir)" || $(MKDIR_P) "$(DESTDIR)$(girdir)"
467499 @list='$(gir_DATA)'; test -n "$(girdir)" || list=; \
500 if test -n "$$list"; then \
501 echo " $(MKDIR_P) '$(DESTDIR)$(girdir)'"; \
502 $(MKDIR_P) "$(DESTDIR)$(girdir)" || exit 1; \
503 fi; \
468504 for p in $$list; do \
469505 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
470506 echo "$$d$$p"; \
481517 dir='$(DESTDIR)$(girdir)'; $(am__uninstall_files_from_dir)
482518 install-typelibsDATA: $(typelibs_DATA)
483519 @$(NORMAL_INSTALL)
484 test -z "$(typelibsdir)" || $(MKDIR_P) "$(DESTDIR)$(typelibsdir)"
485520 @list='$(typelibs_DATA)'; test -n "$(typelibsdir)" || list=; \
521 if test -n "$$list"; then \
522 echo " $(MKDIR_P) '$(DESTDIR)$(typelibsdir)'"; \
523 $(MKDIR_P) "$(DESTDIR)$(typelibsdir)" || exit 1; \
524 fi; \
486525 for p in $$list; do \
487526 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
488527 echo "$$d$$p"; \
499538 dir='$(DESTDIR)$(typelibsdir)'; $(am__uninstall_files_from_dir)
500539 install-libvirt_glib_1_0_laHEADERS: $(libvirt_glib_1_0_la_HEADERS)
501540 @$(NORMAL_INSTALL)
502 test -z "$(libvirt_glib_1_0_ladir)" || $(MKDIR_P) "$(DESTDIR)$(libvirt_glib_1_0_ladir)"
503541 @list='$(libvirt_glib_1_0_la_HEADERS)'; test -n "$(libvirt_glib_1_0_ladir)" || list=; \
542 if test -n "$$list"; then \
543 echo " $(MKDIR_P) '$(DESTDIR)$(libvirt_glib_1_0_ladir)'"; \
544 $(MKDIR_P) "$(DESTDIR)$(libvirt_glib_1_0_ladir)" || exit 1; \
545 fi; \
504546 for p in $$list; do \
505547 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
506548 echo "$$d$$p"; \
564606 here=`$(am__cd) $(top_builddir) && pwd` \
565607 && $(am__cd) $(top_srcdir) \
566608 && gtags -i $(GTAGS_ARGS) "$$here"
609
610 cscopelist: $(HEADERS) $(SOURCES) $(LISP)
611 list='$(SOURCES) $(HEADERS) $(LISP)'; \
612 case "$(srcdir)" in \
613 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
614 *) sdir=$(subdir)/$(srcdir) ;; \
615 esac; \
616 for i in $$list; do \
617 if test -f "$$i"; then \
618 echo "$(subdir)/$$i"; \
619 else \
620 echo "$$sdir/$$i"; \
621 fi; \
622 done >> $(top_builddir)/cscope.files
567623
568624 distclean-tags:
569625 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
712768 .MAKE: install-am install-strip
713769
714770 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
715 clean-libLTLIBRARIES clean-libtool ctags distclean \
771 clean-libLTLIBRARIES clean-libtool cscopelist ctags distclean \
716772 distclean-compile distclean-generic distclean-libtool \
717773 distclean-tags distdir dvi dvi-am html html-am info info-am \
718774 install install-am install-data install-data-am install-dvi \
2828 #include "libvirt-glib/libvirt-glib.h"
2929
3030 /**
31 * gvir_error_new: (skip)
32 * @domain: error domain
33 * @code: error code
34 * @format: printf()-style format for error message
35 * @Varargs: parameters for message format
31 * SECTION:libvirt-glib-error
32 * @short_description: Convert libvirt error reports to GLib error reports
33 * @title: Error reporting
34 * @stability: Stable
35 * @include: libvirt-glib/libvirt-glib.h
36 *
37 * The libvirt API uses the <code>virError</code> structure for reporting
38 * errors back to the application programmer. The libvirt API errors are
39 * provided in thread-local variables, while the GLib standard practice is
40 * to return errors via out parameters. This library provides a simple way
41 * to fill in <code>GError **</code> output parameters with the contents
42 * of the most recent libvirt error object in the current thread.
43 *
44 * The <code>gvir_error_new</code>, <code>gvir_error_new_literal</code> and
45 * <code>gvir_error_new_valist</code> methods all return a newly created
46 * <code>GError *</code> object instance, differing only in the way the
47 * message needs to be provided. For most usage though, it is preferrable
48 * to use the <code>gvir_set_error</code>, <code>gvir_set_error_literal</code>
49 * and <code>gvir_set_error_valist</code> methods. These all accept a
50 * <code>GError **</code> argument and take care to only fill it if it
51 * points to a non-NULL location.
52 *
53 * <example>
54 * <title>Reporting GLib errors with libvirt APIs</title>
55 * <programlisting><![CDATA[
56 * gboolean myapp_start_guest(const gchar *xml, GError **error)
57 * {
58 * if (virDomainCreate(conn, xml, 0) &lt; 0) {
59 * gvir_set_error_literal(error, "Unable to start virtual machine");
60 * return FALSE;
61 * }
62 *
63 * return TRUE;
64 * }
65 * ]]></programlisting>
66 * </example>
67 *
68 */
69
70 /**
71 * gvir_error_new:
72 * @domain: error domain
73 * @code: error code
74 * @format: printf()-style format for error message
75 * @...: parameters for message format
3676 *
3777 * Creates a new #GError with the given @domain and @code,
3878 * and a message formatted with @format.
60100 }
61101
62102 /**
63 * gvir_error_new_literal: (skip)
103 * gvir_error_new_literal:
64104 * @domain: error domain
65105 * @code: error code
66106 * @message: error message
98138 }
99139
100140 /**
101 * gvir_error_new_valist: (skip)
141 * gvir_error_new_valist:
102142 * @domain: error domain
103143 * @code: error code
104144 * @format: printf()-style format for error message
128168
129169
130170 /**
131 * gvir_set_error: (skip)
171 * gvir_set_error:
132172 * @error: pointer to error location
133173 * @domain: error domain
134174 * @code: error code
135175 * @format: printf()-style format for error message
136 * @Varargs: parameters for message format
176 * @...: parameters for message format
137177 *
138178 * If @error is NULL this does nothing. Otherwise it
139179 * creates a new #GError with the given @domain and @code,
163203
164204
165205 /**
166 * gvir_set_error_literal: (skip)
206 * gvir_set_error_literal:
167207 * @error: pointer to error location
168208 * @domain: error domain
169209 * @code: error code
189229
190230
191231 /**
192 * gvir_set_error_valist: (skip)
232 * gvir_set_error_valist:
193233 * @error: pointer to error location
194234 * @domain: error domain
195235 * @code: error code
3030
3131 #include "libvirt-glib/libvirt-glib.h"
3232
33 /**
34 * SECTION:libvirt-glib-event
35 * @short_description: Integrate libvirt with the GMain event framework
36 * @title: Event loop
37 * @stability: Stable
38 * @include: libvirt-glib/libvirt-glib.h
39 *
40 * The libvirt API has the ability to provide applications with asynchronous
41 * notifications of interesting events. To enable this functionality though,
42 * applications must provide libvirt with an event loop implementation. The
43 * libvirt-glib API provides such an implementation, which naturally integrates
44 * with the GMain event loop framework.
45 *
46 * To enable use of the GMain event loop glue, the <code>gvir_event_register()</code>
47 * should be invoked. Once this is done, it is mandatory to have the default
48 * GMain event loop run by a thread in the application, usually the primary
49 * thread, eg by using <code>gtk_main()</code> or <code>g_application_run()</code>
50 *
51 * <example>
52 * <title>Registering for events with a GTK application</title>
53 * <programlisting><![CDATA[
54 * int main(int argc, char **argv) {
55 * ...setup...
56 * gvir_event_register();
57 * ...more setup...
58 * gtk_main();
59 * return 0;
60 * }
61 * ]]></programlisting>
62 * </example>
63 *
64 * <example>
65 * <title>Registering for events using Appplication</title>
66 * <programlisting><![CDATA[
67 * int main(int argc, char **argv) {
68 * ...setup...
69 * GApplication *app = ...create some impl of GApplication...
70 * gvir_event_register();
71 * ...more setup...
72 * g_application_run(app);
73 * return 0;
74 * }
75 * ]]></programlisting>
76 * </example>
77 */
78
79
3380 #if GLIB_CHECK_VERSION(2, 31, 0)
3481 #define g_mutex_new() g_new0(GMutex, 1)
3582 #endif
3986 int watch;
4087 int fd;
4188 int events;
42 int enabled;
89 int removed;
4390 GIOChannel *channel;
4491 guint source;
4592 virEventHandleCallback cb;
5198 {
5299 int timer;
53100 int interval;
101 int removed;
54102 guint source;
55103 virEventTimeoutCallback cb;
56104 void *opaque;
82130 if (condition & G_IO_ERR)
83131 events |= VIR_EVENT_HANDLE_ERROR;
84132
85 g_debug("Dispatch handler %d %d %p\n", data->fd, events, data->opaque);
133 g_debug("Dispatch handler %p %d %d %d %p\n", data, data->watch, data->fd, events, data->opaque);
86134
87135 (data->cb)(data->watch, data->fd, events, data->opaque);
88136
118166 data->channel = g_io_channel_unix_new(fd);
119167 data->ff = ff;
120168
121 g_debug("Add handle %d %d %p\n", data->fd, events, data->opaque);
169 g_debug("Add handle %p %d %d %d %p\n", data, data->watch, data->fd, events, data->opaque);
122170
123171 data->source = g_io_add_watch(data->channel,
124172 cond,
135183 }
136184
137185 static struct gvir_event_handle *
138 gvir_event_handle_find(int watch, guint *idx)
186 gvir_event_handle_find(int watch)
139187 {
140188 guint i;
141189
147195 continue;
148196 }
149197
150 if (h->watch == watch) {
151 if (idx != NULL)
152 *idx = i;
198 if ((h->watch == watch) && !h->removed) {
153199 return h;
154200 }
155201 }
165211
166212 g_mutex_lock(eventlock);
167213
168 data = gvir_event_handle_find(watch, NULL);
214 data = gvir_event_handle_find(watch);
169215 if (!data) {
170216 g_debug("Update for missing handle watch %d", watch);
171217 goto cleanup;
172218 }
219
220 g_debug("Update handle %p %d %d %d\n", data, watch, data->fd, events);
173221
174222 if (events) {
175223 GIOCondition cond = 0;
210258 if (h->ff)
211259 (h->ff)(h->opaque);
212260
261 g_mutex_lock(eventlock);
213262 g_ptr_array_remove_fast(handles, h);
263 g_mutex_unlock(eventlock);
214264
215265 return FALSE;
216266 }
220270 {
221271 struct gvir_event_handle *data;
222272 int ret = -1;
223 guint idx;
224
225 g_mutex_lock(eventlock);
226
227 data = gvir_event_handle_find(watch, &idx);
273
274 g_mutex_lock(eventlock);
275
276 data = gvir_event_handle_find(watch);
228277 if (!data) {
229278 g_debug("Remove of missing watch %d", watch);
230279 goto cleanup;
231280 }
232281
233 g_debug("Remove handle %d %d\n", watch, data->fd);
282 g_debug("Remove handle %p %d %d\n", data, watch, data->fd);
234283
235284 if (!data->source)
236285 goto cleanup;
238287 g_source_remove(data->source);
239288 data->source = 0;
240289 data->events = 0;
290 /* since the actual watch deletion is done asynchronously, a handle_update call may
291 * reschedule the watch before it's fully deleted, that's why we need to mark it as
292 * 'removed' to prevent reuse
293 */
294 data->removed = TRUE;
241295 g_idle_add(_event_handle_remove, data);
242296
243297 ret = 0;
293347
294348
295349 static struct gvir_event_timeout *
296 gvir_event_timeout_find(int timer, guint *idx)
350 gvir_event_timeout_find(int timer)
297351 {
298352 guint i;
299353
307361 continue;
308362 }
309363
310 if (t->timer == timer) {
311 if (idx != NULL)
312 *idx = i;
364 if ((t->timer == timer) && !t->removed) {
313365 return t;
314366 }
315367 }
326378
327379 g_mutex_lock(eventlock);
328380
329 data = gvir_event_timeout_find(timer, NULL);
381 data = gvir_event_timeout_find(timer);
330382 if (!data) {
331383 g_debug("Update of missing timer %d", timer);
332384 goto cleanup;
336388
337389 if (interval >= 0) {
338390 if (data->source)
339 goto cleanup;
391 g_source_remove(data->source);
340392
341393 data->interval = interval;
342394 data->source = g_timeout_add(data->interval,
362414 if (t->ff)
363415 (t->ff)(t->opaque);
364416
417 g_mutex_lock(eventlock);
365418 g_ptr_array_remove_fast(timeouts, t);
419 g_mutex_unlock(eventlock);
366420
367421 return FALSE;
368422 }
371425 gvir_event_timeout_remove(int timer)
372426 {
373427 struct gvir_event_timeout *data;
374 guint idx;
375428 int ret = -1;
376429
377430 g_mutex_lock(eventlock);
378431
379 data = gvir_event_timeout_find(timer, &idx);
432 data = gvir_event_timeout_find(timer);
380433 if (!data) {
381434 g_debug("Remove of missing timer %d", timer);
382435 goto cleanup;
389442
390443 g_source_remove(data->source);
391444 data->source = 0;
445 /* since the actual timeout deletion is done asynchronously, a timeout_update call may
446 * reschedule the timeout before it's fully deleted, that's why we need to mark it as
447 * 'removed' to prevent reuse
448 */
449 data->removed = TRUE;
392450 g_idle_add(_event_timeout_remove, data);
393451
394452 ret = 0;
413471 return NULL;
414472 }
415473
474
475 /**
476 * gvir_event_register:
477 *
478 * Registers a libvirt event loop implementation that is backed
479 * by the default <code>GMain</code> context. If invoked more
480 * than once this method will be a no-op. Applications should,
481 * however, take care not to register any another non-GLib
482 * event loop with libvirt.
483 *
484 * After invoking this method, it is mandatory to run the
485 * default GMain event loop. Typically this can be satisfied
486 * by invoking <code>gtk_main</code> or <code>g_application_run</code>
487 * in the application's main thread. Failure to run the event
488 * loop will mean no libvirt events get dispatched, and the
489 * libvirt keepalive timer will kill off libvirt connections
490 * frequently.
491 */
416492 void gvir_event_register(void)
417493 {
418494 static GOnce once = G_ONCE_INIT;
2828
2929 #include "libvirt-glib-main.h"
3030
31 /**
32 * SECTION:libvirt-glib-main
33 * @short_description: Initialize the library
34 * @title: Library initialization
35 * @stability: Stable
36 * @include: libvirt-glib/libvirt-glib.h
37 *
38 * The Libvirt GLib library provides glue to integrate core libvirt
39 * infrastructure with the GLib library. This enables consistent
40 * error reporting procedures and a common event loop implementation
41 * for applications.
42 *
43 * Before using any functions in the Libvirt GLib library, it must be initialized
44 * by calling <code>gvir_init</code> or <code>gvir_init_check</code>.
45 *
46 * <example>
47 * <title>Initializing the Libvirt GLib library</title>
48 * <programlisting><![CDATA[
49 * int main(int argc, char **argv) {
50 * ...setup...
51 * gvir_init(&argc, &argv);
52 * ...more setup...
53 * gtk_main();
54 * return 0;
55 * }
56 * ]]></programlisting>
57 * </example>
58 *
59 */
60
3161 static void
3262 gvir_error_func(gpointer opaque G_GNUC_UNUSED,
3363 virErrorPtr err)
3666 }
3767
3868
69
70 /**
71 * gvir_init:
72 * @argc: (inout): Address of the argc parameter of your main() function (or 0
73 * if argv is NULL). This will be changed if any arguments were handled.
74 * @argv: (array length=argc) (inout) (allow-none): Address of the
75 * <parameter>argv</parameter> parameter of main(), or %NULL. Any options
76 * understood by GTK+ are stripped before return.
77 *
78 * Call this function before using any other Libvirt GLib functions in your applications.
79 * It will initialize everything needed to operate the toolkit and parses some standard
80 * command line options.
81 *
82 * Although you are expected to pass the @argc, @argv parameters from main() to this
83 * function, it is possible to pass NULL if @argv is not available or commandline
84 * handling is not required.
85 *
86 * @argc and @argv are adjusted accordingly so your own code will never see those
87 * standard arguments.
88 *
89 * This method will also turn on debug logging of the library if the
90 * <literal>LIBVIRT_GLIB_DEBUG</literal> environment variable is set.
91 *
92 * This function will terminate your program if it was unable to initialize
93 * for some reason. If you want the program to fall back to an alternate
94 * mode of operation call <code>gvir_init_check</code> instead.
95 */
3996 void gvir_init(int *argc,
4097 char ***argv)
4198 {
57114 }
58115
59116
117 /**
118 * gvir_init_check:
119 * @argc: (inout): Address of the argc parameter of your main() function (or 0
120 * if argv is NULL). This will be changed if any arguments were handled.
121 * @argv: (array length=argc) (inout) (allow-none): Address of the
122 * <parameter>argv</parameter> parameter of main(), or %NULL. Any options
123 * understood by GTK+ are stripped before return.
124 * @err: filled with the error information if initialized failed.
125 *
126 * This function does the same work as gvir_init() with only a single
127 * change: It does not terminate the program if the Libvirt GLib library
128 * can't be initialized. Instead it returns %FALSE on failure.
129 *
130 * This way the application can fall back to some other mode of
131 * operation.
132 *
133 * Return value: %TRUE if the library was successfully initialized,
134 * %FALSE otherwise
135 */
60136 gboolean gvir_init_check(int *argc G_GNUC_UNUSED,
61137 char ***argv G_GNUC_UNUSED,
62138 GError **err G_GNUC_UNUSED)
1515 %if 0%{?rhel} && 0%{?rhel} < 7
1616 %define with_python 1
1717 %endif
18 %if 0%{with_introspection} && 0%{?fedora} > 15
19 %define with_vala 1
20 %endif
18 %define with_vala %{with_introspection}
2119
2220 %define libvirt_version 0.9.10
2321
2422 Name: libvirt-glib
25 Version: 0.0.8
23 Version: 0.1.2
2624 Release: 1%{?dist}%{?extra_release}
2725 Summary: libvirt glib integration for events
2826 Group: Development/Libraries
1515 %if 0%{?rhel} && 0%{?rhel} < 7
1616 %define with_python 1
1717 %endif
18 %if 0%{with_introspection} && 0%{?fedora} > 15
19 %define with_vala 1
20 %endif
18 %define with_vala %{with_introspection}
2119
2220 %define libvirt_version 0.9.10
2321
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
0 # Makefile.in generated by automake 1.12.2 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1716
1817
1918 VPATH = @srcdir@
19 am__make_dryrun = \
20 { \
21 am__dry=no; \
22 case $$MAKEFLAGS in \
23 *\\[\ \ ]*) \
24 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
25 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
26 *) \
27 for am__flg in $$MAKEFLAGS; do \
28 case $$am__flg in \
29 *=*|--*) ;; \
30 *n*) am__dry=yes; break;; \
31 esac; \
32 done;; \
33 esac; \
34 test $$am__dry = yes; \
35 }
2036 pkgdatadir = $(datadir)/@PACKAGE@
2137 pkgincludedir = $(includedir)/@PACKAGE@
2238 pkglibdir = $(libdir)/@PACKAGE@
3854 @WITH_GOBJECT_INTROSPECTION_TRUE@am__append_1 = $(gir_DATA) $(typelibs_DATA)
3955 subdir = libvirt-gobject
4056 DIST_COMMON = $(libvirt_gobject_1_0_la_HEADERS) $(srcdir)/Makefile.am \
41 $(srcdir)/Makefile.in
57 $(srcdir)/Makefile.in $(top_srcdir)/build-aux/depcomp
4258 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
4359 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
4460 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
114130 AM_V_lt = $(am__v_lt_@AM_V@)
115131 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
116132 am__v_lt_0 = --silent
133 am__v_lt_1 =
117134 libvirt_gobject_1_0_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
118135 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
119136 $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) \
120137 $(libvirt_gobject_1_0_la_LDFLAGS) $(LDFLAGS) -o $@
138 AM_V_P = $(am__v_P_@AM_V@)
139 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
140 am__v_P_0 = false
141 am__v_P_1 = :
142 AM_V_GEN = $(am__v_GEN_@AM_V@)
143 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
144 am__v_GEN_0 = @echo " GEN " $@;
145 am__v_GEN_1 =
146 AM_V_at = $(am__v_at_@AM_V@)
147 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
148 am__v_at_0 = @
149 am__v_at_1 =
121150 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
122151 depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
123152 am__depfiles_maybe = depfiles
130159 $(AM_CFLAGS) $(CFLAGS)
131160 AM_V_CC = $(am__v_CC_@AM_V@)
132161 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
133 am__v_CC_0 = @echo " CC " $@;
134 AM_V_at = $(am__v_at_@AM_V@)
135 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
136 am__v_at_0 = @
162 am__v_CC_0 = @echo " CC " $@;
163 am__v_CC_1 =
137164 CCLD = $(CC)
138165 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
139166 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
140167 $(AM_LDFLAGS) $(LDFLAGS) -o $@
141168 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
142169 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
143 am__v_CCLD_0 = @echo " CCLD " $@;
144 AM_V_GEN = $(am__v_GEN_@AM_V@)
145 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
146 am__v_GEN_0 = @echo " GEN " $@;
170 am__v_CCLD_0 = @echo " CCLD " $@;
171 am__v_CCLD_1 =
147172 SOURCES = $(libvirt_gobject_1_0_la_SOURCES) \
148173 $(nodist_libvirt_gobject_1_0_la_SOURCES)
149174 DIST_SOURCES = $(libvirt_gobject_1_0_la_SOURCES)
175 am__can_run_installinfo = \
176 case $$AM_UPDATE_INFO_DIR in \
177 n|no|NO) false;; \
178 *) (install-info --version) >/dev/null 2>&1;; \
179 esac
150180 DATA = $(gir_DATA) $(typelibs_DATA)
151181 HEADERS = $(libvirt_gobject_1_0_la_HEADERS) \
152182 $(nodist_libvirt_gobject_1_0_la_HEADERS)
455485 $(am__aclocal_m4_deps):
456486 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
457487 @$(NORMAL_INSTALL)
458 test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
459488 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
460489 list2=; for p in $$list; do \
461490 if test -f $$p; then \
463492 else :; fi; \
464493 done; \
465494 test -z "$$list2" || { \
495 echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
496 $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
466497 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
467498 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
468499 }
478509
479510 clean-libLTLIBRARIES:
480511 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
481 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
482 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
483 test "$$dir" != "$$p" || dir=.; \
484 echo "rm -f \"$${dir}/so_locations\""; \
485 rm -f "$${dir}/so_locations"; \
486 done
512 @list='$(lib_LTLIBRARIES)'; \
513 locs=`for p in $$list; do echo $$p; done | \
514 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
515 sort -u`; \
516 test -z "$$locs" || { \
517 echo rm -f $${locs}; \
518 rm -f $${locs}; \
519 }
487520 libvirt-gobject-1.0.la: $(libvirt_gobject_1_0_la_OBJECTS) $(libvirt_gobject_1_0_la_DEPENDENCIES) $(EXTRA_libvirt_gobject_1_0_la_DEPENDENCIES)
488521 $(AM_V_CCLD)$(libvirt_gobject_1_0_la_LINK) -rpath $(libdir) $(libvirt_gobject_1_0_la_OBJECTS) $(libvirt_gobject_1_0_la_LIBADD) $(LIBS)
489522
682715 -rm -rf .libs _libs
683716 install-girDATA: $(gir_DATA)
684717 @$(NORMAL_INSTALL)
685 test -z "$(girdir)" || $(MKDIR_P) "$(DESTDIR)$(girdir)"
686718 @list='$(gir_DATA)'; test -n "$(girdir)" || list=; \
719 if test -n "$$list"; then \
720 echo " $(MKDIR_P) '$(DESTDIR)$(girdir)'"; \
721 $(MKDIR_P) "$(DESTDIR)$(girdir)" || exit 1; \
722 fi; \
687723 for p in $$list; do \
688724 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
689725 echo "$$d$$p"; \
700736 dir='$(DESTDIR)$(girdir)'; $(am__uninstall_files_from_dir)
701737 install-typelibsDATA: $(typelibs_DATA)
702738 @$(NORMAL_INSTALL)
703 test -z "$(typelibsdir)" || $(MKDIR_P) "$(DESTDIR)$(typelibsdir)"
704739 @list='$(typelibs_DATA)'; test -n "$(typelibsdir)" || list=; \
740 if test -n "$$list"; then \
741 echo " $(MKDIR_P) '$(DESTDIR)$(typelibsdir)'"; \
742 $(MKDIR_P) "$(DESTDIR)$(typelibsdir)" || exit 1; \
743 fi; \
705744 for p in $$list; do \
706745 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
707746 echo "$$d$$p"; \
718757 dir='$(DESTDIR)$(typelibsdir)'; $(am__uninstall_files_from_dir)
719758 install-libvirt_gobject_1_0_laHEADERS: $(libvirt_gobject_1_0_la_HEADERS)
720759 @$(NORMAL_INSTALL)
721 test -z "$(libvirt_gobject_1_0_ladir)" || $(MKDIR_P) "$(DESTDIR)$(libvirt_gobject_1_0_ladir)"
722760 @list='$(libvirt_gobject_1_0_la_HEADERS)'; test -n "$(libvirt_gobject_1_0_ladir)" || list=; \
761 if test -n "$$list"; then \
762 echo " $(MKDIR_P) '$(DESTDIR)$(libvirt_gobject_1_0_ladir)'"; \
763 $(MKDIR_P) "$(DESTDIR)$(libvirt_gobject_1_0_ladir)" || exit 1; \
764 fi; \
723765 for p in $$list; do \
724766 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
725767 echo "$$d$$p"; \
736778 dir='$(DESTDIR)$(libvirt_gobject_1_0_ladir)'; $(am__uninstall_files_from_dir)
737779 install-nodist_libvirt_gobject_1_0_laHEADERS: $(nodist_libvirt_gobject_1_0_la_HEADERS)
738780 @$(NORMAL_INSTALL)
739 test -z "$(libvirt_gobject_1_0_ladir)" || $(MKDIR_P) "$(DESTDIR)$(libvirt_gobject_1_0_ladir)"
740781 @list='$(nodist_libvirt_gobject_1_0_la_HEADERS)'; test -n "$(libvirt_gobject_1_0_ladir)" || list=; \
782 if test -n "$$list"; then \
783 echo " $(MKDIR_P) '$(DESTDIR)$(libvirt_gobject_1_0_ladir)'"; \
784 $(MKDIR_P) "$(DESTDIR)$(libvirt_gobject_1_0_ladir)" || exit 1; \
785 fi; \
741786 for p in $$list; do \
742787 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
743788 echo "$$d$$p"; \
801846 here=`$(am__cd) $(top_builddir) && pwd` \
802847 && $(am__cd) $(top_srcdir) \
803848 && gtags -i $(GTAGS_ARGS) "$$here"
849
850 cscopelist: $(HEADERS) $(SOURCES) $(LISP)
851 list='$(SOURCES) $(HEADERS) $(LISP)'; \
852 case "$(srcdir)" in \
853 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
854 *) sdir=$(subdir)/$(srcdir) ;; \
855 esac; \
856 for i in $$list; do \
857 if test -f "$$i"; then \
858 echo "$(subdir)/$$i"; \
859 else \
860 echo "$$sdir/$$i"; \
861 fi; \
862 done >> $(top_builddir)/cscope.files
804863
805864 distclean-tags:
806865 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
9551014 .MAKE: all check install install-am install-strip
9561015
9571016 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
958 clean-libLTLIBRARIES clean-libtool ctags distclean \
1017 clean-libLTLIBRARIES clean-libtool cscopelist ctags distclean \
9591018 distclean-compile distclean-generic distclean-libtool \
9601019 distclean-tags distdir dvi dvi-am html html-am info info-am \
9611020 install install-am install-data install-data-am install-dvi \
4040
4141 GHashTable *domains;
4242 GHashTable *pools;
43 gboolean domain_event;
4443 };
4544
4645 G_DEFINE_TYPE(GVirConnection, gvir_connection, G_TYPE_OBJECT);
400399
401400 /**
402401 * gvir_connection_open:
403 * @conn: the connection
402 * @conn: a #GVirConnection
404403 * @cancellable: (allow-none)(transfer none): cancellation object
405404 */
406405 gboolean gvir_connection_open(GVirConnection *conn,
407406 GCancellable *cancellable,
408407 GError **err)
409408 {
410 GVirConnectionPrivate *priv = conn->priv;
409 GVirConnectionPrivate *priv;
410
411 g_return_val_if_fail(GVIR_IS_CONNECTION(conn), FALSE);
412 g_return_val_if_fail((cancellable == NULL) || G_IS_CANCELLABLE(cancellable),
413 FALSE);
414 g_return_val_if_fail((err == NULL) || (*err == NULL), FALSE);
415
416 priv = conn->priv;
411417
412418 if (g_cancellable_set_error_if_cancelled(cancellable, err))
413419 return FALSE;
446452 free(uri);
447453 }
448454
449 if (virConnectDomainEventRegister(priv->conn, domain_event_cb, conn, NULL) != -1)
450 priv->domain_event = TRUE;
451 else
455 if (virConnectDomainEventRegister(priv->conn, domain_event_cb, conn, NULL) == -1)
452456 g_warning("Failed to register domain events, ignoring");
453457
454458 g_mutex_unlock(priv->lock);
476480
477481 /**
478482 * gvir_connection_open_async:
479 * @conn: the connection
483 * @conn: a #GVirConnection
480484 * @cancellable: (allow-none)(transfer none): cancellation object
481485 * @callback: (scope async): completion callback
482486 * @user_data: (closure): opaque data for callback
487491 gpointer user_data)
488492 {
489493 GSimpleAsyncResult *res;
494
495 g_return_if_fail(GVIR_IS_CONNECTION(conn));
496 g_return_if_fail((cancellable == NULL) || G_IS_CANCELLABLE(cancellable));
490497
491498 res = g_simple_async_result_new(G_OBJECT(conn),
492499 callback,
502509
503510 /**
504511 * gvir_connection_open_finish:
505 * @conn: the connection
512 * @conn: a #GVirConnection
506513 * @result: (transfer none): async method result
507514 */
508515 gboolean gvir_connection_open_finish(GVirConnection *conn,
523530
524531 gboolean gvir_connection_is_open(GVirConnection *conn)
525532 {
526 GVirConnectionPrivate *priv = conn->priv;
533 GVirConnectionPrivate *priv;
527534 gboolean open = TRUE;
535
536 g_return_val_if_fail(GVIR_IS_CONNECTION(conn), FALSE);
537
538 priv = conn->priv;
528539 g_mutex_lock(priv->lock);
529540 if (!priv->conn)
530541 open = FALSE;
534545
535546 void gvir_connection_close(GVirConnection *conn)
536547 {
537 GVirConnectionPrivate *priv = conn->priv;
548 GVirConnectionPrivate *priv;
549
550 g_return_if_fail(GVIR_IS_CONNECTION(conn));
551
552 priv = conn->priv;
553
538554 g_debug("Close GVirConnection=%p", conn);
539555
540556 g_mutex_lock(priv->lock);
551567
552568 if (priv->conn) {
553569 virConnectDomainEventDeregister(priv->conn, domain_event_cb);
554 priv->domain_event = FALSE;
555570 virConnectClose(priv->conn);
556571 priv->conn = NULL;
557572 }
609624
610625 /**
611626 * gvir_connection_fetch_domains:
612 * @conn: the connection
627 * @conn: a #GVirConnection
613628 * @cancellable: (allow-none)(transfer none): cancellation object
614629 */
615630 gboolean gvir_connection_fetch_domains(GVirConnection *conn,
616631 GCancellable *cancellable,
617632 GError **err)
618633 {
619 GVirConnectionPrivate *priv = conn->priv;
634 GVirConnectionPrivate *priv;
620635 GHashTable *doms;
621636 gchar **inactive = NULL;
622637 gint ninactive = 0;
627642 virConnectPtr vconn = NULL;
628643 GError *lerr = NULL;
629644
645 g_return_val_if_fail(GVIR_IS_CONNECTION(conn), FALSE);
646 g_return_val_if_fail((cancellable == NULL) || G_IS_CANCELLABLE(cancellable),
647 FALSE);
648 g_return_val_if_fail((err == NULL) || (*err == NULL), FALSE);
649
650 priv = conn->priv;
630651 g_mutex_lock(priv->lock);
631652 if (!priv->conn) {
632653 g_set_error_literal(err, GVIR_CONNECTION_ERROR,
738759
739760 /**
740761 * gvir_connection_fetch_storage_pools:
741 * @conn: the connection
762 * @conn: a #GVirConnection
742763 * @cancellable: (allow-none)(transfer none): cancellation object
743764 */
744765 gboolean gvir_connection_fetch_storage_pools(GVirConnection *conn,
745766 GCancellable *cancellable,
746767 GError **err)
747768 {
748 GVirConnectionPrivate *priv = conn->priv;
769 GVirConnectionPrivate *priv;
749770 GHashTable *pools;
750771 gchar **inactive = NULL;
751772 gint ninactive = 0;
756777 virConnectPtr vconn = NULL;
757778 GError *lerr = NULL;
758779
780 g_return_val_if_fail(GVIR_IS_CONNECTION(conn), FALSE);
781 g_return_val_if_fail((cancellable == NULL) || G_IS_CANCELLABLE(cancellable),
782 FALSE);
783 g_return_val_if_fail((err == NULL) || (*err == NULL), FALSE);
784
785 priv = conn->priv;
759786 g_mutex_lock(priv->lock);
760787 if (!priv->conn) {
761788 g_set_error_literal(err, GVIR_CONNECTION_ERROR,
882909
883910 /**
884911 * gvir_connection_fetch_domains_async:
885 * @conn: the connection
912 * @conn: a #GVirConnection
886913 * @cancellable: (allow-none)(transfer none): cancellation object
887914 * @callback: (scope async): completion callback
888915 * @user_data: (closure): opaque data for callback
893920 gpointer user_data)
894921 {
895922 GSimpleAsyncResult *res;
923
924 g_return_if_fail(GVIR_IS_CONNECTION(conn));
925 g_return_if_fail((cancellable == NULL) || G_IS_CANCELLABLE(cancellable));
896926
897927 res = g_simple_async_result_new(G_OBJECT(conn),
898928 callback,
907937
908938 /**
909939 * gvir_connection_fetch_domains_finish:
910 * @conn: the connection
940 * @conn: a #GVirConnection
911941 * @result: (transfer none): async method result
912942 */
913943 gboolean gvir_connection_fetch_domains_finish(GVirConnection *conn,
941971
942972 /**
943973 * gvir_connection_fetch_storage_pools_async:
944 * @conn: the connection
974 * @conn: a #GVirConnection
945975 * @cancellable: (allow-none)(transfer none): cancellation object
946976 * @callback: (scope async): completion callback
947977 * @user_data: (closure): opaque data for callback
952982 gpointer user_data)
953983 {
954984 GSimpleAsyncResult *res;
985
986 g_return_if_fail(GVIR_IS_CONNECTION(conn));
987 g_return_if_fail((cancellable == NULL) || G_IS_CANCELLABLE(cancellable));
955988
956989 res = g_simple_async_result_new(G_OBJECT(conn),
957990 callback,
966999
9671000 /**
9681001 * gvir_connection_fetch_storage_pools_finish:
969 * @conn: the connection
1002 * @conn: a #GVirConnection
9701003 * @result: (transfer none): async method result
9711004 */
9721005 gboolean gvir_connection_fetch_storage_pools_finish(GVirConnection *conn,
9861019
9871020 const gchar *gvir_connection_get_uri(GVirConnection *conn)
9881021 {
989 GVirConnectionPrivate *priv = conn->priv;
990 return priv->uri;
1022 g_return_val_if_fail(GVIR_IS_CONNECTION(conn), NULL);
1023
1024 return conn->priv->uri;
9911025 }
9921026
9931027 static void gvir_domain_ref(gpointer obj, gpointer ignore G_GNUC_UNUSED)
9971031
9981032 /**
9991033 * gvir_connection_get_domains:
1000 *
1001 * Return value: (element-type LibvirtGObject.Domain) (transfer full): List of #GVirDomain
1034 * @conn: a #GVirConnection
1035 *
1036 * Gets a list of the domains available through @conn.
1037 *
1038 * Return value: (element-type LibvirtGObject.Domain) (transfer full): List
1039 * of #GVirDomain. The returned list should be freed with g_list_free(),
1040 * after its elements have been unreffed with g_object_unref().
10021041 */
10031042 GList *gvir_connection_get_domains(GVirConnection *conn)
10041043 {
1005 GVirConnectionPrivate *priv = conn->priv;
1044 GVirConnectionPrivate *priv;
10061045 GList *domains = NULL;
10071046
1047 g_return_val_if_fail(GVIR_IS_CONNECTION(conn), NULL);
1048
1049 priv = conn->priv;
10081050 g_mutex_lock(priv->lock);
10091051 if (priv->domains != NULL) {
10101052 domains = g_hash_table_get_values(priv->domains);
10171059
10181060 /**
10191061 * gvir_connection_get_storage_pools:
1062 * @conn: a #GVirConnection
1063 *
1064 * Gets a list of the storage pools available through @conn.
10201065 *
10211066 * Return value: (element-type LibvirtGObject.StoragePool) (transfer full): List
1022 * of #GVirStoragePool
1067 * of #GVirStoragePool. The returned list should be freed with
1068 * g_list_free(), after its elements have been unreffed with
1069 * g_object_unref().
10231070 */
10241071 GList *gvir_connection_get_storage_pools(GVirConnection *conn)
10251072 {
1026 GVirConnectionPrivate *priv = conn->priv;
1073 GVirConnectionPrivate *priv;
10271074 GList *pools = NULL;
10281075
1076 g_return_val_if_fail(GVIR_IS_CONNECTION(conn), NULL);
1077
1078 priv = conn->priv;
10291079 g_mutex_lock(priv->lock);
10301080 if (priv->pools != NULL) {
10311081 pools = g_hash_table_get_values(priv->pools);
10381088
10391089 /**
10401090 * gvir_connection_get_domain:
1091 * @conn: a #GVirConnection
10411092 * @uuid: uuid string of the requested domain
10421093 *
1043 * Return value: (transfer full): the #GVirDomain, or NULL
1094 * Return value: (transfer full): the #GVirDomain, or NULL. The returned
1095 * object should be unreffed with g_object_unref() when no longer needed.
10441096 */
10451097 GVirDomain *gvir_connection_get_domain(GVirConnection *conn,
10461098 const gchar *uuid)
10471099 {
1048 GVirConnectionPrivate *priv = conn->priv;
1100 GVirConnectionPrivate *priv;
10491101 GVirDomain *dom;
1102
1103 g_return_val_if_fail(GVIR_IS_CONNECTION(conn), NULL);
1104 g_return_val_if_fail(uuid != NULL, NULL);
1105
1106 priv = conn->priv;
10501107 g_mutex_lock(priv->lock);
10511108 dom = g_hash_table_lookup(priv->domains, uuid);
10521109 if (dom)
10571114
10581115 /**
10591116 * gvir_connection_get_storage_pool:
1117 * @conn: a #GVirConnection
10601118 * @uuid: uuid string of the requested storage pool
10611119 *
1062 * Return value: (transfer full): the #GVirStoragePool, or NULL
1120 * Return value: (transfer full): the #GVirStoragePool, or NULL. The returned
1121 * object should be unreffed with g_object_unref() when no longer needed.
10631122 */
10641123 GVirStoragePool *gvir_connection_get_storage_pool(GVirConnection *conn,
10651124 const gchar *uuid)
10661125 {
1067 GVirConnectionPrivate *priv = conn->priv;
1126 GVirConnectionPrivate *priv;
10681127 GVirStoragePool *pool;
10691128
1129 g_return_val_if_fail(GVIR_IS_CONNECTION(conn), NULL);
1130 g_return_val_if_fail(uuid != NULL, NULL);
1131
1132 priv = conn->priv;
10701133 g_mutex_lock(priv->lock);
10711134 pool = g_hash_table_lookup(priv->pools, uuid);
10721135 if (pool)
10781141
10791142 /**
10801143 * gvir_connection_find_domain_by_id:
1144 * @conn: a #GVirConnection
10811145 * @id: id of the requested domain
10821146 *
1083 * Return value: (transfer full): the #GVirDomain, or NULL
1147 * Return value: (transfer full): the #GVirDomain, or NULL. The returned
1148 * object should be unreffed with g_object_unref() when no longer needed.
10841149 */
10851150 GVirDomain *gvir_connection_find_domain_by_id(GVirConnection *conn,
10861151 gint id)
10871152 {
1088 GVirConnectionPrivate *priv = conn->priv;
1153 GVirConnectionPrivate *priv;
10891154 GHashTableIter iter;
10901155 gpointer key, value;
10911156
1157 g_return_val_if_fail(GVIR_IS_CONNECTION(conn), NULL);
1158
1159 priv = conn->priv;
10921160 g_mutex_lock(priv->lock);
10931161 g_hash_table_iter_init(&iter, priv->domains);
10941162
11101178
11111179 /**
11121180 * gvir_connection_find_domain_by_name:
1181 * @conn: a #GVirConnection
11131182 * @name: name of the requested domain
11141183 *
1115 * Return value: (transfer full): the #GVirDomain, or NULL
1184 * Return value: (transfer full): the #GVirDomain, or NULL. The returned
1185 * object should be unreffed with g_object_unref() when no longer needed.
11161186 */
11171187 GVirDomain *gvir_connection_find_domain_by_name(GVirConnection *conn,
11181188 const gchar *name)
11191189 {
1120 GVirConnectionPrivate *priv = conn->priv;
1190 GVirConnectionPrivate *priv;
11211191 GHashTableIter iter;
11221192 gpointer key, value;
11231193
1194 g_return_val_if_fail(GVIR_IS_CONNECTION(conn), NULL);
1195 g_return_val_if_fail(name != NULL, NULL);
1196
1197 priv = conn->priv;
11241198 g_mutex_lock(priv->lock);
11251199 g_hash_table_iter_init(&iter, priv->domains);
11261200
11441218
11451219 /**
11461220 * gvir_connection_find_storage_pool_by_name:
1221 * @conn: a #GVirConnection
11471222 * @name: name of the requested storage pool
11481223 *
1149 * Return value: (transfer full): the #GVirStoragePool, or NULL
1224 * Return value: (transfer full): the #GVirStoragePool, or NULL. The returned
1225 * object should be unreffed with g_object_unref() when no longer needed.
11501226 */
11511227 GVirStoragePool *gvir_connection_find_storage_pool_by_name(GVirConnection *conn,
11521228 const gchar *name)
11531229 {
1154 GVirConnectionPrivate *priv = conn->priv;
1230 GVirConnectionPrivate *priv;
11551231 GHashTableIter iter;
11561232 gpointer key, value;
11571233
1234 g_return_val_if_fail(GVIR_IS_CONNECTION(conn), NULL);
1235 g_return_val_if_fail(name != NULL, NULL);
1236
1237 priv = conn->priv;
11581238 g_mutex_lock(priv->lock);
11591239 g_hash_table_iter_init(&iter, priv->pools);
11601240
11961276
11971277 /**
11981278 * gvir_connection_get_stream:
1279 * @conn: a #GVirConnection
11991280 * @flags: flags to use for the stream
12001281 *
1201 * Return value: (transfer full): a #GVirStream stream, or NULL
1282 * Return value: (transfer full): a #GVirStream stream, or NULL.The returned
1283 * object should be unreffed with g_object_unref() when no longer needed.
12021284 */
12031285 GVirStream *gvir_connection_get_stream(GVirConnection *self,
12041286 guint flags)
12181300
12191301 /**
12201302 * gvir_connection_create_domain:
1221 * @conn: the connection on which to create the domain
1303 * @conn: a #GVirConnection on which to create the domain
12221304 * @conf: the configuration for the new domain
12231305 *
12241306 * Create the configuration file for a new persistent domain.
12251307 * The returned domain will initially be in the shutoff state.
12261308 *
1227 * Returns: (transfer full): the newly created domain
1309 * Returns: (transfer full): the newly created domain, or NULL if an error
1310 * occurred. The returned object should be unreffed with g_object_unref()
1311 * when no longer needed.
12281312 */
12291313 GVirDomain *gvir_connection_create_domain(GVirConnection *conn,
12301314 GVirConfigDomain *conf,
12321316 {
12331317 gchar *xml;
12341318 virDomainPtr handle;
1235 GVirConnectionPrivate *priv = conn->priv;
1319 GVirConnectionPrivate *priv;
1320
1321 g_return_val_if_fail(GVIR_IS_CONNECTION(conn), NULL);
1322 g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN(conf), NULL);
1323 g_return_val_if_fail((err == NULL) || (*err == NULL), NULL);
12361324
12371325 xml = gvir_config_object_to_xml(GVIR_CONFIG_OBJECT(conf));
12381326
12391327 g_return_val_if_fail(xml != NULL, NULL);
12401328
1329 priv = conn->priv;
12411330 handle = virDomainDefineXML(priv->conn, xml);
12421331 g_free(xml);
12431332 if (!handle) {
12641353
12651354 /**
12661355 * gvir_connection_start_domain:
1267 * @conn: the connection on which to create the domain
1356 * @conn: a #GVirConnection on which to create the domain
12681357 * @conf: the configuration for the new domain
12691358 *
12701359 * Start a new transient domain without persistent configuration.
12711360 * The returned domain will initially be running.
12721361 *
1273 * Returns: (transfer full): the newly created domain
1362 * Returns: (transfer full): the newly created domain, or NULL if an error
1363 * occurred. The returned object should be unreffed with g_object_unref()
1364 * when no longer needed.
12741365 */
12751366 GVirDomain *gvir_connection_start_domain(GVirConnection *conn,
12761367 GVirConfigDomain *conf,
12791370 {
12801371 gchar *xml;
12811372 virDomainPtr handle;
1282 GVirConnectionPrivate *priv = conn->priv;
1373 GVirConnectionPrivate *priv;
1374
1375 g_return_val_if_fail(GVIR_IS_CONNECTION(conn), NULL);
1376 g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN(conf), NULL);
1377 g_return_val_if_fail((err == NULL) || (*err == NULL), NULL);
12831378
12841379 xml = gvir_config_object_to_xml(GVIR_CONFIG_OBJECT(conf));
12851380
12861381 g_return_val_if_fail(xml != NULL, NULL);
12871382
1383 priv = conn->priv;
12881384 handle = virDomainCreateXML(priv->conn, xml, flags);
12891385 g_free(xml);
12901386 if (!handle) {
13111407
13121408 /**
13131409 * gvir_connection_create_storage_pool:
1314 * @conn: the connection on which to create the pool
1410 * @conn: a #GVirConnection on which to create the pool
13151411 * @conf: the configuration for the new storage pool
13161412 * @flags: the flags
13171413 * @err: return location for any #GError
13181414 *
1319 * Returns: (transfer full): the newly created storage pool
1415 * Returns: (transfer full): the newly created storage pool, or NULL if an
1416 * error occurred. The returned list should be freed with g_list_free(),
1417 * after its elements have been unreffed with g_object_unref().
13201418 */
13211419 GVirStoragePool *gvir_connection_create_storage_pool
13221420 (GVirConnection *conn,
13251423 GError **err) {
13261424 const gchar *xml;
13271425 virStoragePoolPtr handle;
1328 GVirConnectionPrivate *priv = conn->priv;
1426 GVirConnectionPrivate *priv;
1427
1428 g_return_val_if_fail(GVIR_IS_CONNECTION(conn), NULL);
1429 g_return_val_if_fail(GVIR_CONFIG_IS_STORAGE_POOL(conf), NULL);
1430 g_return_val_if_fail((err == NULL) || (*err == NULL), NULL);
13291431
13301432 xml = gvir_config_object_to_xml(GVIR_CONFIG_OBJECT(conf));
13311433
13321434 g_return_val_if_fail(xml != NULL, NULL);
13331435
1436 priv = conn->priv;
13341437 if (!(handle = virStoragePoolDefineXML(priv->conn, xml, flags))) {
13351438 gvir_set_error_literal(err, GVIR_CONNECTION_ERROR,
13361439 flags,
13551458
13561459 /**
13571460 * gvir_connection_get_node_info:
1358 * @conn: the connection
1461 * @conn: a #GVirConnection
13591462 * @err: return location for any #GError
13601463 *
1361 * Returns: (transfer full): the info
1464 * Returns: (transfer full): the info, or NULL if an error occurred. The
1465 * returned object should be unreffed with g_object_unref() when no longer
1466 * needed.
13621467 */
13631468 GVirNodeInfo *gvir_connection_get_node_info(GVirConnection *conn,
13641469 GError **err)
13651470 {
1366 GVirConnectionPrivate *priv = conn->priv;
1471 GVirConnectionPrivate *priv;
13671472 virNodeInfo info;
13681473 GVirNodeInfo *ret;
13691474
1475 g_return_val_if_fail(GVIR_IS_CONNECTION(conn), NULL);
1476 g_return_val_if_fail((err == NULL) || (*err == NULL), NULL);
1477
1478 priv = conn->priv;
13701479 if (virNodeGetInfo(priv->conn, &info) < 0) {
13711480 gvir_set_error_literal(err, GVIR_CONNECTION_ERROR,
13721481 0,
13861495
13871496 return ret;
13881497 }
1498
1499 /**
1500 * gvir_connection_get_capabilities:
1501 * @conn: a #GVirConnection
1502 * @err: return location for any #GError
1503 *
1504 * Return value: (transfer full): a #GVirConfigCapabilities or NULL. The
1505 * returned object should be unreffed with g_object_unref() when no longer
1506 * needed.
1507 */
1508 GVirConfigCapabilities *gvir_connection_get_capabilities(GVirConnection *conn,
1509 GError **err)
1510 {
1511 GVirConfigCapabilities *caps;
1512 char *caps_xml;
1513
1514 g_return_val_if_fail(GVIR_IS_CONNECTION(conn), NULL);
1515 g_return_val_if_fail(err == NULL || *err == NULL, NULL);
1516 g_return_val_if_fail(conn->priv->conn, NULL);
1517
1518 caps_xml = virConnectGetCapabilities(conn->priv->conn);
1519 if (caps_xml == NULL) {
1520 gvir_set_error_literal(err, GVIR_CONNECTION_ERROR,
1521 0,
1522 "Unable to get capabilities");
1523 return NULL;
1524 }
1525
1526 caps = gvir_config_capabilities_new_from_xml(caps_xml, err);
1527 free(caps_xml);
1528
1529 return caps;
1530 }
1531
1532 static void
1533 gvir_connection_get_capabilities_helper(GSimpleAsyncResult *res,
1534 GObject *object,
1535 GCancellable *cancellable)
1536 {
1537 GVirConnection *conn = GVIR_CONNECTION(object);
1538 GError *err = NULL;
1539 GVirConfigCapabilities *caps;
1540
1541 caps = gvir_connection_get_capabilities(conn, &err);
1542 if (caps == NULL) {
1543 g_simple_async_result_take_error(res, err);
1544
1545 return;
1546 }
1547
1548 g_simple_async_result_set_op_res_gpointer(res, caps, g_object_unref);
1549 }
1550
1551 /**
1552 * gvir_connection_get_capabilities_async:
1553 * @conn: a #GVirConnection
1554 * @cancellable: (allow-none)(transfer none): cancellation object
1555 * @callback: (scope async): completion callback
1556 * @user_data: (closure): opaque data for callback
1557 */
1558 void gvir_connection_get_capabilities_async(GVirConnection *conn,
1559 GCancellable *cancellable,
1560 GAsyncReadyCallback callback,
1561 gpointer user_data)
1562 {
1563 GSimpleAsyncResult *res;
1564
1565 g_return_if_fail(GVIR_IS_CONNECTION(conn));
1566 g_return_if_fail((cancellable == NULL) || G_IS_CANCELLABLE(cancellable));
1567
1568 res = g_simple_async_result_new(G_OBJECT(conn),
1569 callback,
1570 user_data,
1571 gvir_connection_get_capabilities_async);
1572 g_simple_async_result_run_in_thread(res,
1573 gvir_connection_get_capabilities_helper,
1574 G_PRIORITY_DEFAULT,
1575 cancellable);
1576 g_object_unref(res);
1577 }
1578
1579 /**
1580 * gvir_connection_get_capabilities_finish:
1581 * @conn: a #GVirConnection
1582 * @result: (transfer none): async method result
1583 *
1584 * Return value: (transfer full): a #GVirConfigCapabilities or NULL. The
1585 * returned object should be unreffed with g_object_unref() when no longer
1586 * needed.
1587 */
1588 GVirConfigCapabilities *
1589 gvir_connection_get_capabilities_finish(GVirConnection *conn,
1590 GAsyncResult *result,
1591 GError **err)
1592 {
1593 GVirConfigCapabilities *caps;
1594
1595 g_return_val_if_fail(GVIR_IS_CONNECTION(conn), NULL);
1596 g_return_val_if_fail(g_simple_async_result_is_valid(result, G_OBJECT(conn),
1597 gvir_connection_get_capabilities_async),
1598 NULL);
1599
1600 if (g_simple_async_result_propagate_error(G_SIMPLE_ASYNC_RESULT(result), err))
1601 return NULL;
1602
1603 caps = g_simple_async_result_get_op_res_gpointer(G_SIMPLE_ASYNC_RESULT(result));
1604
1605 return g_object_ref(caps);
1606 }
1607
1608 /**
1609 * gvir_connection_restore_domain_from_file:
1610 * @conn: a #GVirConnection
1611 * @filename: path to input file
1612 * @custom_conf: (allow-none): configuration for domain or NULL
1613 * @flags: the flags
1614 *
1615 * Restores the domain saved with #gvir_domain_save_to_file
1616 *
1617 * Returns: TRUE on success, FALSE otherwise
1618 */
1619 gboolean gvir_connection_restore_domain_from_file(GVirConnection *conn,
1620 gchar *filename,
1621 GVirConfigDomain *custom_conf,
1622 guint flags,
1623 GError **err)
1624 {
1625 GVirConnectionPrivate *priv;
1626 int ret;
1627
1628 g_return_val_if_fail(GVIR_IS_CONNECTION(conn), FALSE);
1629 g_return_val_if_fail((filename != NULL), FALSE);
1630 g_return_val_if_fail((err == NULL) || (*err == NULL), FALSE);
1631
1632 priv = conn->priv;
1633
1634 if (flags || (custom_conf != NULL)) {
1635 gchar *custom_xml = NULL;
1636
1637 if (custom_conf != NULL)
1638 custom_xml = gvir_config_object_to_xml(GVIR_CONFIG_OBJECT(custom_conf));
1639
1640 ret = virDomainRestoreFlags(priv->conn, filename, custom_xml, flags);
1641 g_free (custom_xml);
1642 }
1643 else {
1644 ret = virDomainRestore(priv->conn, filename);
1645 }
1646
1647 if (ret < 0) {
1648 gvir_set_error_literal(err, GVIR_CONNECTION_ERROR,
1649 0,
1650 "Unable to restore domain");
1651
1652 return FALSE;
1653 }
1654
1655 return TRUE;
1656 }
1657
1658 typedef struct {
1659 gchar *filename;
1660 GVirConfigDomain *custom_conf;
1661 guint flags;
1662 } RestoreDomainFromFileData;
1663
1664 static void restore_domain_from_file_data_free(RestoreDomainFromFileData *data)
1665 {
1666 g_free(data->filename);
1667 g_clear_object(&data->custom_conf);
1668 g_slice_free(RestoreDomainFromFileData, data);
1669 }
1670
1671 static void
1672 gvir_connection_restore_domain_from_file_helper
1673 (GSimpleAsyncResult *res,
1674 GObject *object,
1675 GCancellable *cancellable G_GNUC_UNUSED)
1676 {
1677 GVirConnection *conn = GVIR_CONNECTION(object);
1678 RestoreDomainFromFileData *data;
1679 GError *err = NULL;
1680
1681 data = g_simple_async_result_get_op_res_gpointer(res);
1682
1683 if (!gvir_connection_restore_domain_from_file(conn,
1684 data->filename,
1685 data->custom_conf,
1686 data->flags,
1687 &err))
1688 g_simple_async_result_take_error(res, err);
1689 }
1690
1691 /**
1692 * gvir_connection_restore_domain_from_file_async:
1693 * @conn: a #GVirConnection
1694 * @filename: path to input file
1695 * @custom_conf: (allow-none): configuration for domain
1696 * @flags: the flags
1697 * @cancellable: (allow-none) (transfer none): cancellation object
1698 * @callback: (scope async): completion callback
1699 * @user_data: (closure): opaque data for callback
1700 *
1701 * Asynchronous variant of #gvir_connection_restore_domain_from_file
1702 */
1703 void
1704 gvir_connection_restore_domain_from_file_async(GVirConnection *conn,
1705 gchar *filename,
1706 GVirConfigDomain *custom_conf,
1707 guint flags,
1708 GCancellable *cancellable,
1709 GAsyncReadyCallback callback,
1710 gpointer user_data)
1711 {
1712 GSimpleAsyncResult *res;
1713 RestoreDomainFromFileData *data;
1714
1715 g_return_if_fail(GVIR_IS_CONNECTION(conn));
1716 g_return_if_fail(filename != NULL);
1717 g_return_if_fail((cancellable == NULL) || G_IS_CANCELLABLE(cancellable));
1718
1719 data = g_slice_new0(RestoreDomainFromFileData);
1720 data->filename = g_strdup(filename);
1721 if (custom_conf != NULL)
1722 data->custom_conf = g_object_ref(custom_conf);
1723 data->flags = flags;
1724
1725 res = g_simple_async_result_new
1726 (G_OBJECT(conn),
1727 callback,
1728 user_data,
1729 gvir_connection_restore_domain_from_file_async);
1730 g_simple_async_result_set_op_res_gpointer
1731 (res,
1732 data,
1733 (GDestroyNotify)restore_domain_from_file_data_free);
1734
1735 g_simple_async_result_run_in_thread
1736 (res,
1737 gvir_connection_restore_domain_from_file_helper,
1738 G_PRIORITY_DEFAULT,
1739 cancellable);
1740
1741 g_object_unref(res);
1742 }
1743
1744 /**
1745 * gvir_connection_restore_domain_from_file_finish:
1746 * @conn: a #GVirConnection
1747 * @result: (transfer none): async method result
1748 * @err: Place-holder for possible errors
1749 *
1750 * Finishes the operation started by #gvir_restore_domain_from_file_async.
1751 *
1752 * Returns: TRUE if domain was restored successfully, FALSE otherwise.
1753 */
1754 gboolean
1755 gvir_connection_restore_domain_from_file_finish(GVirConnection *conn,
1756 GAsyncResult *result,
1757 GError **err)
1758 {
1759 g_return_val_if_fail(GVIR_IS_CONNECTION(conn), FALSE);
1760 g_return_val_if_fail(g_simple_async_result_is_valid
1761 (result,
1762 G_OBJECT(conn),
1763 gvir_connection_restore_domain_from_file_async),
1764 FALSE);
1765
1766 if (g_simple_async_result_propagate_error(G_SIMPLE_ASYNC_RESULT(result),
1767 err))
1768 return FALSE;
1769
1770 return TRUE;
1771 }
190190 GVirNodeInfo *gvir_connection_get_node_info(GVirConnection *conn,
191191 GError **err);
192192
193 GVirConfigCapabilities *gvir_connection_get_capabilities(GVirConnection *conn,
194 GError **err);
195 void gvir_connection_get_capabilities_async(GVirConnection *conn,
196 GCancellable *cancellable,
197 GAsyncReadyCallback callback,
198 gpointer user_data);
199 GVirConfigCapabilities *
200 gvir_connection_get_capabilities_finish(GVirConnection *conn,
201 GAsyncResult *result,
202 GError **err);
203
204 gboolean
205 gvir_connection_restore_domain_from_file(GVirConnection *conn,
206 gchar *filename,
207 GVirConfigDomain *custom_conf,
208 guint flags,
209 GError **err);
210
211 void
212 gvir_connection_restore_domain_from_file_async(GVirConnection *conn,
213 gchar *filename,
214 GVirConfigDomain *custom_conf,
215 guint flags,
216 GCancellable *cancellable,
217 GAsyncReadyCallback callback,
218 gpointer user_data);
219
220 gboolean
221 gvir_connection_restore_domain_from_file_finish(GVirConnection *conn,
222 GAsyncResult *result,
223 GError **err);
193224 G_END_DECLS
194225
195226 #endif /* __LIBVIRT_GOBJECT_CONNECTION_H__ */
160160 * gvir_domain_device_get_domain:
161161 * @device: the domain device
162162 *
163 * Returns: (transfer full): the associated domain
163 * Returns: (transfer full): the associated domain. The returned object
164 * should be unreffed with g_object_unref() when no longer needed.
165
164166 */
165167 GVirDomain *gvir_domain_device_get_domain(GVirDomainDevice *device)
166168 {
169 g_return_val_if_fail(GVIR_IS_DOMAIN_DEVICE(device), NULL);
170
167171 return g_object_ref (device->priv->domain);
168172 }
169173
171175 * gvir_domain_device_get_config:
172176 * @device: the domain device
173177 *
174 * Returns: (transfer full): the config
178 * Returns: (transfer full): the config. The returned object should be
179 * unreffed with g_object_unref() when no longer needed.
180
175181 */
176182 GVirConfigDomainDevice *gvir_domain_device_get_config(GVirDomainDevice *device)
177183 {
184 g_return_val_if_fail(GVIR_IS_DOMAIN_DEVICE(device), NULL);
185
178186 return g_object_ref (device->priv->config);
179187 }
180188
111111 * within the stats structure may be returned as -1, which indicates
112112 * that the hypervisor does not support that particular statistic.
113113 *
114 * Returns: (transfer full): the stats or %NULL in case of error
114 * Returns: (transfer full): the stats or %NULL in case of error.The
115 * returned object should be unreffed with g_object_unref() when no longer
116 * needed.
115117 **/
116118 GVirDomainDiskStats *gvir_domain_disk_get_stats(GVirDomainDisk *self, GError **err)
117119 {
121123 const gchar *path;
122124
123125 g_return_val_if_fail(GVIR_IS_DOMAIN_DISK(self), NULL);
126 g_return_val_if_fail((err == NULL) || (*err == NULL), NULL);
124127
125128 handle = gvir_domain_device_get_domain_handle(GVIR_DOMAIN_DEVICE(self));
126129 path = gvir_domain_disk_get_path (self);
113113 * within the stats structure may be returned as -1, which indicates
114114 * that the hypervisor does not support that particular statistic.
115115 *
116 * Returns: (transfer full): the stats or %NULL in case of error
116 * Returns: (transfer full): the stats or %NULL in case of error. The
117 * returned object should be unreffed with g_object_unref() when no longer
118 * needed.
117119 **/
118120 GVirDomainInterfaceStats *gvir_domain_interface_get_stats(GVirDomainInterface *self, GError **err)
119121 {
123125 const gchar *path;
124126
125127 g_return_val_if_fail(GVIR_IS_DOMAIN_INTERFACE(self), NULL);
128 g_return_val_if_fail(err == NULL || *err == NULL, NULL);
126129
127130 handle = gvir_domain_device_get_domain_handle(GVIR_DOMAIN_DEVICE(self));
128131 path = gvir_domain_interface_get_path (self);
160160
161161 const gchar *gvir_domain_snapshot_get_name(GVirDomainSnapshot *snapshot)
162162 {
163 g_return_val_if_fail(GVIR_IS_DOMAIN_SNAPSHOT(snapshot), NULL);
163164 #if 0
164165 GVirDomainSnapshotPrivate *priv = snapshot->priv;
165166 const char *name;
183184 * gvir_domain_snapshot_get_config:
184185 * @snapshot: the domain_snapshot
185186 * @flags: the flags
186 * Returns: (transfer full): the config
187 *
188 * Returns: (transfer full): the config. The returned object should be
189 * unreffed with g_object_unref() when no longer needed.
190
187191 */
188192 GVirConfigDomainSnapshot *gvir_domain_snapshot_get_config
189193 (GVirDomainSnapshot *snapshot,
190194 guint flags,
191195 GError **err)
192196 {
193 GVirDomainSnapshotPrivate *priv = snapshot->priv;
197 GVirDomainSnapshotPrivate *priv;
194198 gchar *xml;
195199
200 g_return_val_if_fail(GVIR_IS_DOMAIN_SNAPSHOT(snapshot), NULL);
201 g_return_val_if_fail(err == NULL || *err == NULL, NULL);
202
203 priv = snapshot->priv;
196204 if (!(xml = virDomainSnapshotGetXMLDesc(priv->handle, flags))) {
197205 gvir_set_error_literal(err, GVIR_DOMAIN_SNAPSHOT_ERROR,
198206 0,
273273
274274 const gchar *gvir_domain_get_name(GVirDomain *dom)
275275 {
276 GVirDomainPrivate *priv = dom->priv;
276 GVirDomainPrivate *priv;
277277 const char *name;
278278
279 g_return_val_if_fail(GVIR_IS_DOMAIN(dom), NULL);
280
281 priv = dom->priv;
279282 if (!(name = virDomainGetName(priv->handle))) {
280283 g_warning("Failed to get domain name on %p", priv->handle);
281284 return NULL;
295298 gint gvir_domain_get_id(GVirDomain *dom,
296299 GError **err)
297300 {
298 GVirDomainPrivate *priv = dom->priv;
301 GVirDomainPrivate *priv;
299302 gint ret;
300303
304 g_return_val_if_fail(GVIR_IS_DOMAIN(dom), -1);
305 g_return_val_if_fail(err == NULL || *err == NULL, -1);
306
307 priv = dom->priv;
301308 if ((ret = virDomainGetID(priv->handle)) < 0) {
302309 gvir_set_error_literal(err, GVIR_DOMAIN_ERROR,
303310 0,
316323 guint flags,
317324 GError **err)
318325 {
319 GVirDomainPrivate *priv = dom->priv;
326 GVirDomainPrivate *priv;
320327 int ret;
321328
329 g_return_val_if_fail(GVIR_IS_DOMAIN(dom), FALSE);
330 g_return_val_if_fail(err == NULL || *err == NULL, FALSE);
331
332 priv = dom->priv;
322333 if (flags)
323334 ret = virDomainCreateWithFlags(priv->handle, flags);
324335 else
333344 return TRUE;
334345 }
335346
347 typedef struct {
348 guint flags;
349 } DomainStartData;
350
351 static void domain_start_data_free(DomainStartData *data)
352 {
353 g_slice_free(DomainStartData, data);
354 }
355
356 static void
357 gvir_domain_start_helper(GSimpleAsyncResult *res,
358 GObject *object,
359 GCancellable *cancellable G_GNUC_UNUSED)
360 {
361 GVirDomain *dom = GVIR_DOMAIN(object);
362 DomainStartData *data;
363 GError *err = NULL;
364
365 data = g_simple_async_result_get_op_res_gpointer(res);
366
367 if (!gvir_domain_start(dom, data->flags, &err))
368 g_simple_async_result_take_error(res, err);
369 }
370
371 /**
372 * gvir_domain_start_async:
373 * @dom: the domain
374 * @flags: the flags
375 * @cancellable: (allow-none)(transfer none): cancellation object
376 * @callback: (scope async): completion callback
377 * @user_data: (closure): opaque data for callback
378 *
379 * Asynchronous variant of #gvir_domain_start.
380 */
381 void gvir_domain_start_async(GVirDomain *dom,
382 guint flags,
383 GCancellable *cancellable,
384 GAsyncReadyCallback callback,
385 gpointer user_data)
386 {
387 GSimpleAsyncResult *res;
388 DomainStartData *data;
389
390 g_return_if_fail(GVIR_IS_DOMAIN(dom));
391 g_return_if_fail((cancellable == NULL) || G_IS_CANCELLABLE(cancellable));
392
393 data = g_slice_new0(DomainStartData);
394 data->flags = flags;
395
396 res = g_simple_async_result_new(G_OBJECT(dom),
397 callback,
398 user_data,
399 gvir_domain_start_async);
400 g_simple_async_result_set_op_res_gpointer (res, data, (GDestroyNotify)domain_start_data_free);
401 g_simple_async_result_run_in_thread(res,
402 gvir_domain_start_helper,
403 G_PRIORITY_DEFAULT,
404 cancellable);
405 g_object_unref(res);
406 }
407
408 gboolean gvir_domain_start_finish(GVirDomain *dom,
409 GAsyncResult *result,
410 GError **err)
411 {
412 g_return_val_if_fail(GVIR_IS_DOMAIN(dom), FALSE);
413 g_return_val_if_fail(g_simple_async_result_is_valid(result, G_OBJECT(dom), gvir_domain_start_async), FALSE);
414 g_return_val_if_fail(err == NULL || *err == NULL, FALSE);
415
416 if (g_simple_async_result_propagate_error(G_SIMPLE_ASYNC_RESULT(result), err))
417 return FALSE;
418
419 return TRUE;
420 }
421
336422 /**
337423 * gvir_domain_resume:
338424 * @dom: the domain
425 * @err: Place-holder for possible errors
339426 *
340427 * Returns: TRUE on success
341428 */
342429 gboolean gvir_domain_resume(GVirDomain *dom,
343430 GError **err)
344431 {
345 GVirDomainPrivate *priv = dom->priv;
346
432 GVirDomainPrivate *priv;
433
434 g_return_val_if_fail(GVIR_IS_DOMAIN(dom), FALSE);
435 g_return_val_if_fail(err == NULL || *err == NULL, FALSE);
436
437 priv = dom->priv;
347438 if (virDomainResume(priv->handle) < 0) {
348439 gvir_set_error_literal(err, GVIR_DOMAIN_ERROR,
349440 0,
350441 "Unable to resume domain");
351442 return FALSE;
352443 }
444
445 return TRUE;
446 }
447
448 static void
449 gvir_domain_resume_helper(GSimpleAsyncResult *res,
450 GObject *object,
451 GCancellable *cancellable G_GNUC_UNUSED)
452 {
453 GVirDomain *dom = GVIR_DOMAIN(object);
454 GError *err = NULL;
455
456 if (!gvir_domain_resume(dom, &err))
457 g_simple_async_result_take_error(res, err);
458 }
459
460 /**
461 * gvir_domain_resume_async:
462 * @dom: the domain to resume
463 * @cancellable: (allow-none)(transfer none): cancellation object
464 * @callback: (scope async): completion callback
465 * @user_data: (closure): opaque data for callback
466 *
467 * Asynchronous variant of #gvir_domain_resume.
468 */
469 void gvir_domain_resume_async(GVirDomain *dom,
470 GCancellable *cancellable,
471 GAsyncReadyCallback callback,
472 gpointer user_data)
473 {
474 GSimpleAsyncResult *res;
475
476 g_return_if_fail(GVIR_IS_DOMAIN(dom));
477 g_return_if_fail((cancellable == NULL) || G_IS_CANCELLABLE(cancellable));
478
479 res = g_simple_async_result_new(G_OBJECT(dom),
480 callback,
481 user_data,
482 gvir_domain_resume_async);
483 g_simple_async_result_run_in_thread(res,
484 gvir_domain_resume_helper,
485 G_PRIORITY_DEFAULT,
486 cancellable);
487 g_object_unref(res);
488 }
489
490 gboolean gvir_domain_resume_finish(GVirDomain *dom,
491 GAsyncResult *result,
492 GError **err)
493 {
494 g_return_val_if_fail(GVIR_IS_DOMAIN(dom), FALSE);
495 g_return_val_if_fail(g_simple_async_result_is_valid(result, G_OBJECT(dom), gvir_domain_resume_async), FALSE);
496 g_return_val_if_fail(err == NULL || *err == NULL, FALSE);
497
498 if (g_simple_async_result_propagate_error(G_SIMPLE_ASYNC_RESULT(result), err))
499 return FALSE;
353500
354501 return TRUE;
355502 }
363510 guint flags,
364511 GError **err)
365512 {
366 GVirDomainPrivate *priv = dom->priv;
513 GVirDomainPrivate *priv;
367514 int ret;
368515
516 g_return_val_if_fail(GVIR_IS_DOMAIN(dom), FALSE);
517 g_return_val_if_fail(err == NULL || *err == NULL, FALSE);
518
519 priv = dom->priv;
369520 if (flags)
370521 ret = virDomainDestroyFlags(priv->handle, flags);
371522 else
389540 guint flags,
390541 GError **err)
391542 {
392 GVirDomainPrivate *priv = dom->priv;
543 GVirDomainPrivate *priv;
393544 int ret;
394545
546 g_return_val_if_fail(GVIR_IS_DOMAIN(dom), FALSE);
547 g_return_val_if_fail(err == NULL || *err == NULL, FALSE);
548
549 priv = dom->priv;
395550 if (flags)
396551 ret = virDomainUndefineFlags(priv->handle, flags);
397552 else
409564 /**
410565 * gvir_domain_shutdown:
411566 * @dom: the domain
412 * @flags: the flags
567 * @flags: the %GVirDomainShutdownFlags flags
413568 */
414569 gboolean gvir_domain_shutdown(GVirDomain *dom,
415 guint flags G_GNUC_UNUSED,
570 guint flags,
416571 GError **err)
417572 {
418 GVirDomainPrivate *priv = dom->priv;
419
420 if (virDomainShutdown(priv->handle) < 0) {
573 GVirDomainPrivate *priv;
574
575 g_return_val_if_fail(GVIR_IS_DOMAIN(dom), FALSE);
576 g_return_val_if_fail(err == NULL || *err == NULL, FALSE);
577
578 priv = dom->priv;
579 if (virDomainShutdownFlags(priv->handle, flags) < 0) {
421580 gvir_set_error_literal(err, GVIR_DOMAIN_ERROR,
422581 0,
423582 "Unable to shutdown domain");
436595 guint flags,
437596 GError **err)
438597 {
439 GVirDomainPrivate *priv = dom->priv;
440
598 GVirDomainPrivate *priv;
599
600 g_return_val_if_fail(GVIR_IS_DOMAIN(dom), FALSE);
601 g_return_val_if_fail(err == NULL || *err == NULL, FALSE);
602
603 priv = dom->priv;
441604 if (virDomainReboot(priv->handle, flags) < 0) {
442605 gvir_set_error_literal(err, GVIR_DOMAIN_ERROR,
443606 0,
449612 }
450613
451614 /**
615 * gvir_domain_save_to_file:
616 * @dom: the domain
617 * @filename: path to the output file
618 * @custom_conf: (allow-none): configuration for domain or NULL
619 * @flags: the flags
620 *
621 * Returns: TRUE on success, FALSE otherwise
622 */
623 gboolean gvir_domain_save_to_file(GVirDomain *dom,
624 gchar *filename,
625 GVirConfigDomain *custom_conf,
626 guint flags,
627 GError **err)
628 {
629 GVirDomainPrivate *priv;
630 int ret;
631
632 g_return_val_if_fail(GVIR_IS_DOMAIN(dom), FALSE);
633 g_return_val_if_fail(filename != NULL, FALSE);
634 g_return_val_if_fail(err == NULL || *err == NULL, FALSE);
635
636 priv = dom->priv;
637
638 if (flags || custom_conf != NULL) {
639 gchar *custom_xml = NULL;
640
641 if (custom_conf != NULL)
642 custom_xml = gvir_config_object_to_xml(GVIR_CONFIG_OBJECT(custom_conf));
643
644 ret = virDomainSaveFlags(priv->handle, filename, custom_xml, flags);
645 g_free(custom_xml);
646 }
647 else {
648 ret = virDomainSave(priv->handle, filename);
649 }
650
651 if (ret < 0) {
652 gvir_set_error_literal(err, GVIR_DOMAIN_ERROR,
653 0,
654 "Unable to save domain to file");
655 return FALSE;
656 }
657
658 return TRUE;
659 }
660
661 typedef struct {
662 gchar *filename;
663 GVirConfigDomain *custom_conf;
664 guint flags;
665 } DomainSaveToFileData;
666
667 static void domain_save_to_file_data_free(DomainSaveToFileData *data)
668 {
669 g_free(data->filename);
670 g_clear_object(&data->custom_conf);
671 g_slice_free(DomainSaveToFileData, data);
672 }
673
674 static void
675 gvir_domain_save_to_file_helper(GSimpleAsyncResult *res,
676 GObject *object,
677 GCancellable *cancellable G_GNUC_UNUSED)
678 {
679 GVirDomain *dom = GVIR_DOMAIN(object);
680 DomainSaveToFileData *data;
681 GError *err = NULL;
682
683 data = g_simple_async_result_get_op_res_gpointer(res);
684
685 if (!gvir_domain_save_to_file(dom, data->filename, data->custom_conf, data->flags, &err))
686 g_simple_async_result_take_error(res, err);
687 }
688
689 /**
690 * gvir_domain_save_to_file_async:
691 * @dom: the domain
692 * @filename: path to output file
693 * @custom_conf: (allow-none): configuration for domain or NULL
694 * @flags: the flags
695 * @cancellable: (allow-none) (transfer none): cancallation object
696 * @callback: (scope async): completion callback
697 * @user_data: (closure): opaque data for callback
698 *
699 * Asynchronous variant of #gvir_domain_save_to_file
700 */
701 void gvir_domain_save_to_file_async(GVirDomain *dom,
702 gchar *filename,
703 GVirConfigDomain *custom_conf,
704 guint flags,
705 GCancellable *cancellable,
706 GAsyncReadyCallback callback,
707 gpointer user_data)
708 {
709 GSimpleAsyncResult *res;
710 DomainSaveToFileData *data;
711
712 g_return_if_fail(GVIR_IS_DOMAIN(dom));
713 g_return_if_fail(filename != NULL);
714 g_return_if_fail((cancellable == NULL) || G_IS_CANCELLABLE(cancellable));
715
716 data = g_slice_new0(DomainSaveToFileData);
717 data->filename = g_strdup(filename);
718 if (custom_conf != NULL)
719 data->custom_conf = g_object_ref(custom_conf);
720 data->flags = flags;
721
722 res = g_simple_async_result_new(G_OBJECT(dom),
723 callback,
724 user_data,
725 gvir_domain_save_to_file_async);
726 g_simple_async_result_set_op_res_gpointer(res, data, (GDestroyNotify)
727 domain_save_to_file_data_free);
728
729 g_simple_async_result_run_in_thread(res,
730 gvir_domain_save_to_file_helper,
731 G_PRIORITY_DEFAULT,
732 cancellable);
733
734 g_object_unref(res);
735 }
736
737 /**
738 * gvir_domain_save_to_file_finish:
739 * @dom: the domain to save
740 * @result: (transfer none): async method result
741 * @err: Place-holder for possible errors
742 *
743 * Finishes the operation started by #gvir_domain_save_to_file_async.
744 *
745 * Returns: TRUE if domain was saved successfully, FALSE otherwise.
746 */
747 gboolean gvir_domain_save_to_file_finish(GVirDomain *dom,
748 GAsyncResult *result,
749 GError **err)
750 {
751 g_return_val_if_fail(GVIR_IS_DOMAIN(dom), FALSE);
752 g_return_val_if_fail(g_simple_async_result_is_valid
753 (result,
754 G_OBJECT(dom),
755 gvir_domain_save_to_file_async), FALSE);
756 g_return_val_if_fail(err == NULL || *err == NULL, FALSE);
757
758 if (g_simple_async_result_propagate_error(G_SIMPLE_ASYNC_RESULT(result), err))
759 return FALSE;
760
761 return TRUE;
762 }
763
764 /**
452765 * gvir_domain_get_config:
453766 * @dom: the domain
454 * @flags: the flags
455 * Returns: (transfer full): the config
767 * @flags: the %GVirDomainXMLFlags flags
768 *
769 * Returns: (transfer full): the config. The returned object should be
770 * unreffed with g_object_unref() when no longer needed.
456771 */
457772 GVirConfigDomain *gvir_domain_get_config(GVirDomain *dom,
458773 guint flags,
459774 GError **err)
460775 {
461 GVirDomainPrivate *priv = dom->priv;
776 GVirDomainPrivate *priv;
462777 gchar *xml;
463778
779 g_return_val_if_fail(GVIR_IS_DOMAIN(dom), NULL);
780 g_return_val_if_fail(err == NULL || *err == NULL, NULL);
781
782 priv = dom->priv;
464783 if (!(xml = virDomainGetXMLDesc(priv->handle, flags))) {
465784 gvir_set_error_literal(err, GVIR_DOMAIN_ERROR,
466785 0,
497816 virConnectPtr conn;
498817 virDomainPtr handle;
499818 gchar uuid[VIR_UUID_STRING_BUFLEN];
500 GVirDomainPrivate *priv = domain->priv;
819 GVirDomainPrivate *priv;
501820
502821 g_return_val_if_fail(GVIR_IS_DOMAIN (domain), FALSE);
503822 g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN (conf), FALSE);
504823 g_return_val_if_fail(err == NULL || *err == NULL, FALSE);
505824
825 priv = domain->priv;
506826 xml = gvir_config_object_to_xml(GVIR_CONFIG_OBJECT(conf));
507827
508828 g_return_val_if_fail(xml != NULL, FALSE);
545865 /**
546866 * gvir_domain_get_info:
547867 * @dom: the domain
548 * Returns: (transfer full): the info
868 *
869 * Returns: (transfer full): the info. The returned object should be
870 * unreffed with g_object_unref() when no longer needed.
549871 */
550872 GVirDomainInfo *gvir_domain_get_info(GVirDomain *dom,
551873 GError **err)
552874 {
553 GVirDomainPrivate *priv = dom->priv;
875 GVirDomainPrivate *priv;
554876 virDomainInfo info;
555877 GVirDomainInfo *ret;
556878
879 g_return_val_if_fail(GVIR_IS_DOMAIN(dom), NULL);
880 g_return_val_if_fail(err == NULL || *err == NULL, NULL);
881
882 priv = dom->priv;
557883 if (virDomainGetInfo(priv->handle, &info) < 0) {
558884 gvir_set_error_literal(err, GVIR_DOMAIN_ERROR,
559885 0,
607933 GSimpleAsyncResult *res;
608934
609935 g_return_if_fail(GVIR_IS_DOMAIN(dom));
936 g_return_if_fail((cancellable == NULL) || G_IS_CANCELLABLE(cancellable));
610937
611938 res = g_simple_async_result_new(G_OBJECT(dom),
612939 callback,
627954 *
628955 * Finishes the operation started by #gvir_domain_get_info_async.
629956 *
630 * Returns: (transfer full): the info
957 * Returns: (transfer full): the info. The returned object should be
958 * unreffed with g_object_unref() when no longer needed.
631959 */
632960 GVirDomainInfo *gvir_domain_get_info_finish(GVirDomain *dom,
633961 GAsyncResult *result,
657985 * @monitor_id: monitor ID to take screenshot from
658986 * @flags: extra flags, currently unused
659987 *
660 * Returns: (transfer full): mime-type of the image format, or NULL upon error.
988 * Returns: (transfer full): a newly allocated string containing the
989 * mime-type of the image format, or NULL upon error.
661990 */
662991 gchar *gvir_domain_screenshot(GVirDomain *dom,
663992 GVirStream *stream,
6711000
6721001 g_return_val_if_fail(GVIR_IS_DOMAIN(dom), NULL);
6731002 g_return_val_if_fail(GVIR_IS_STREAM(stream), NULL);
1003 g_return_val_if_fail(err == NULL || *err == NULL, NULL);
6741004
6751005 priv = dom->priv;
6761006 g_object_get(stream, "handle", &st, NULL);
7171047
7181048 g_return_val_if_fail(GVIR_IS_DOMAIN(dom), FALSE);
7191049 g_return_val_if_fail(GVIR_IS_STREAM(stream), FALSE);
1050 g_return_val_if_fail(err == NULL || *err == NULL, FALSE);
7201051
7211052 priv = dom->priv;
7221053 g_object_get(stream, "handle", &st, NULL);
7611092 gboolean ret = FALSE;
7621093
7631094 g_return_val_if_fail(GVIR_IS_DOMAIN(dom), FALSE);
1095 g_return_val_if_fail(err == NULL || *err == NULL, FALSE);
7641096
7651097 priv = dom->priv;
7661098
7961128 gboolean ret = FALSE;
7971129
7981130 g_return_val_if_fail(GVIR_IS_DOMAIN(dom), FALSE);
1131 g_return_val_if_fail(err == NULL || *err == NULL, FALSE);
7991132
8001133 if (virDomainSuspend(dom->priv->handle) < 0) {
8011134 gvir_set_error_literal(err, GVIR_DOMAIN_ERROR,
8261159 GError **err)
8271160 {
8281161 g_return_val_if_fail(GVIR_IS_DOMAIN(dom), FALSE);
1162 g_return_val_if_fail(err == NULL || *err == NULL, FALSE);
8291163
8301164 if (virDomainManagedSave(dom->priv->handle, flags) < 0) {
8311165 gvir_set_error_literal(err, GVIR_DOMAIN_ERROR,
8811215 DomainSaveData *data;
8821216
8831217 g_return_if_fail(GVIR_IS_DOMAIN(dom));
1218 g_return_if_fail((cancellable == NULL) || G_IS_CANCELLABLE(cancellable));
8841219
8851220 data = g_slice_new0(DomainSaveData);
8861221 data->flags = flags;
9151250 g_return_val_if_fail(g_simple_async_result_is_valid(result, G_OBJECT(dom),
9161251 gvir_domain_save_async),
9171252 FALSE);
1253 g_return_val_if_fail(err == NULL || *err == NULL, FALSE);
9181254
9191255 if (g_simple_async_result_propagate_error(G_SIMPLE_ASYNC_RESULT(result), err))
9201256 return FALSE;
9541290 * @domain: the domain
9551291 * @err: place-holder for possible errors, or NULL
9561292 *
957 * Gets the list of devices attached to @domain
1293 * Gets the list of devices attached to @domain. The returned list should
1294 * be freed with g_list_free(), after its elements have been unreffed with
1295 * g_object_unref().
9581296 *
9591297 * Returns: (element-type LibvirtGObject.DomainDevice) (transfer full): a newly
9601298 * allocated #GList of #GVirDomainDevice.
9901328
9911329 return g_list_reverse (ret);
9921330 }
1331
1332 /**
1333 * gvir_domain_create_snapshot:
1334 * @dom: the domain
1335 * @custom_conf: (allow-none): configuration of snapshot or NULL
1336 * @flags: bitwise-OR of #GVirDomainSnapshotCreateFlags
1337 * @err: (allow-none):Place-holder for error or NULL
1338 *
1339 * Returns: (transfer full): snapshot of domain. The returned object should be
1340 * unreffed when no longer needed
1341 */
1342 GVirDomainSnapshot *
1343 gvir_domain_create_snapshot(GVirDomain *dom,
1344 GVirConfigDomainSnapshot *custom_conf,
1345 guint flags,
1346 GError **err)
1347 {
1348 GVirDomainPrivate *priv;
1349 virDomainSnapshot *snapshot;
1350 GVirDomainSnapshot *dom_snapshot;
1351 gchar *custom_xml = NULL;
1352
1353 g_return_val_if_fail(GVIR_IS_DOMAIN(dom), FALSE);
1354 g_return_val_if_fail(err == NULL || *err == NULL, NULL);
1355
1356 priv = dom->priv;
1357
1358 if (custom_conf != NULL)
1359 custom_xml = gvir_config_object_to_xml(GVIR_CONFIG_OBJECT(custom_conf));
1360
1361 if (!(snapshot = virDomainSnapshotCreateXML(priv->handle,
1362 custom_xml,
1363 flags))) {
1364 const gchar *domain_name = NULL;
1365 domain_name = gvir_domain_get_name(dom);
1366
1367 gvir_set_error(err, GVIR_DOMAIN_ERROR,
1368 0,
1369 "Unable to create snapshot of %s", domain_name);
1370
1371 g_free(custom_xml);
1372 return NULL;
1373 }
1374
1375 dom_snapshot = GVIR_DOMAIN_SNAPSHOT(g_object_new(GVIR_TYPE_DOMAIN_SNAPSHOT,
1376 "handle",
1377 snapshot,
1378 NULL));
1379
1380 g_free(custom_xml);
1381 return dom_snapshot;
1382 }
3030
3131 #include <libvirt-gobject/libvirt-gobject-stream.h>
3232 #include <libvirt/libvirt.h>
33 #include <libvirt-gobject/libvirt-gobject-domain-snapshot.h>
3334
3435 #define GVIR_TYPE_DOMAIN (gvir_domain_get_type ())
3536 #define GVIR_DOMAIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_TYPE_DOMAIN, GVirDomain))
100101 GVIR_DOMAIN_DELETE_SAVED_STATE = VIR_DOMAIN_UNDEFINE_MANAGED_SAVE,
101102 GVIR_DOMAIN_DELETE_SNAPSHOTS_METADATA = VIR_DOMAIN_UNDEFINE_SNAPSHOTS_METADATA,
102103 } GVirDomainDeleteFlags;
104
105 /**
106 * GVirDomainXMLFlags:
107 * @GVIR_DOMAIN_XML_NONE: No flags
108 * @GVIR_DOMAIN_XML_SECURE: Dump security sensitive information too
109 * @GVIR_DOMAIN_XML_INACTIVE: Dump inactive domain information
110 * @GVIR_DOMAIN_XML_UPDATE_CPU: Update guest CPU requirements according to host CPU
111 */
112 typedef enum {
113 GVIR_DOMAIN_XML_NONE = 0,
114 GVIR_DOMAIN_XML_SECURE = VIR_DOMAIN_XML_SECURE,
115 GVIR_DOMAIN_XML_INACTIVE = VIR_DOMAIN_XML_INACTIVE,
116 GVIR_DOMAIN_XML_UPDATE_CPU = VIR_DOMAIN_XML_UPDATE_CPU,
117 } GVirDomainXMLFlags;
118
119 /**
120 * GVirDomainShutdownFlags:
121 * @GVIR_DOMAIN_SHUTDOWN_NONE: No flags, hypervisor choice
122 * @GVIR_DOMAIN_SHUTDOWN_ACPI_POWER_BTN: Send ACPI event
123 * @GVIR_DOMAIN_SHUTDOWN_GUEST_AGENT: Use guest agent
124 *
125 */
126 typedef enum {
127 GVIR_DOMAIN_SHUTDOWN_NONE = 0,
128 GVIR_DOMAIN_SHUTDOWN_ACPI_POWER_BTN = VIR_DOMAIN_SHUTDOWN_ACPI_POWER_BTN,
129 GVIR_DOMAIN_SHUTDOWN_GUEST_AGENT = VIR_DOMAIN_SHUTDOWN_GUEST_AGENT,
130 } GVirDomainShutdownFlags;
131
132 /**
133 * GVirDomainSnapshotCreateFlags:
134 * @GVIR_DOMAIN_SNAPSHOT_NONE: No flags
135 * @GVIR_DOMAIN_SNAPSHOT_REDEFINE: Restore or alter metadata
136 * @GVIR_DOMAIN_SNAPSHOT_CURRENT: With redefine, make snapshot current
137 * @GVIR_DOMAIN_SNAPSHOT_NO_METADATA: Make snapshot without remembering it
138 * @GVIR_DOMAIN_SNAPSHOT_HALT: Stop running guest after snapshot
139 * @GVIR_DOMAIN_SNAPSHOT_DISK_ONLY: Disk snapshot, not system checkpoint
140 * @GVIR_DOMAIN_SNAPSHOT_REUSE_EXT: Reuse any existing external files
141 * @GVIR_DOMAIN_SNAPSHOT_QUIESCE: Use guest agent to quiesce all mounter
142 * file systems within the domain
143 * @GVIR_DOMAIN_SNAPSHOT_ATOMIC: Atomically avoid partial changes
144 */
145 typedef enum {
146 GVIR_DOMAIN_SNAPSHOT_NONE = 0,
147 GVIR_DOMAIN_SNAPSHOT_REDEFINE = VIR_DOMAIN_SNAPSHOT_CREATE_REDEFINE,
148 GVIR_DOMAIN_SNAPSHOT_CURRENT = VIR_DOMAIN_SNAPSHOT_CREATE_CURRENT,
149 GVIR_DOMAIN_SNAPSHOT_NO_METADATA = VIR_DOMAIN_SNAPSHOT_CREATE_NO_METADATA,
150 GVIR_DOMAIN_SNAPSHOT_HALT = VIR_DOMAIN_SNAPSHOT_CREATE_HALT,
151 GVIR_DOMAIN_SNAPSHOT_DISK_ONLY = VIR_DOMAIN_SNAPSHOT_CREATE_DISK_ONLY,
152 GVIR_DOMAIN_SNAPSHOT_REUSE_EXT = VIR_DOMAIN_SNAPSHOT_CREATE_REUSE_EXT,
153 GVIR_DOMAIN_SNAPSHOT_QUIESCE = VIR_DOMAIN_SNAPSHOT_CREATE_QUIESCE,
154 GVIR_DOMAIN_SNAPSHOT_ATOMIC = VIR_DOMAIN_SNAPSHOT_CREATE_ATOMIC,
155 } GVirDomainSnapshotCreateFlags;
103156
104157 typedef struct _GVirDomainInfo GVirDomainInfo;
105158 struct _GVirDomainInfo
123176 gboolean gvir_domain_start(GVirDomain *dom,
124177 guint flags,
125178 GError **err);
179 void gvir_domain_start_async(GVirDomain *dom,
180 guint flags,
181 GCancellable *cancellable,
182 GAsyncReadyCallback callback,
183 gpointer user_data);
184 gboolean gvir_domain_start_finish(GVirDomain *dom,
185 GAsyncResult *result,
186 GError **err);
187
126188 gboolean gvir_domain_resume(GVirDomain *dom,
127189 GError **err);
190 void gvir_domain_resume_async(GVirDomain *dom,
191 GCancellable *cancellable,
192 GAsyncReadyCallback callback,
193 gpointer user_data);
194 gboolean gvir_domain_resume_finish(GVirDomain *dom,
195 GAsyncResult *result,
196 GError **err);
128197 gboolean gvir_domain_stop(GVirDomain *dom,
129198 guint flags,
130199 GError **err);
137206 gboolean gvir_domain_reboot(GVirDomain *dom,
138207 guint flags,
139208 GError **err);
209
210 gboolean gvir_domain_save_to_file(GVirDomain *dom,
211 gchar *filename,
212 GVirConfigDomain *custom_conf,
213 guint flags,
214 GError **err);
215
216 void gvir_domain_save_to_file_async(GVirDomain *dom,
217 gchar *filename,
218 GVirConfigDomain *custom_conf,
219 guint flags,
220 GCancellable *cancellable,
221 GAsyncReadyCallback callback,
222 gpointer user_data);
223
224 gboolean gvir_domain_save_to_file_finish(GVirDomain *dom,
225 GAsyncResult *result,
226 GError **err);
140227
141228 GVirDomainInfo *gvir_domain_get_info(GVirDomain *dom,
142229 GError **err);
192279 GList *gvir_domain_get_devices(GVirDomain *domain,
193280 GError **err);
194281
282 GVirDomainSnapshot *
283 gvir_domain_create_snapshot(GVirDomain *dom,
284 GVirConfigDomainSnapshot *custom_conf,
285 guint flags,
286 GError **err);
287
195288 G_END_DECLS
196289
197290 #endif /* __LIBVIRT_GOBJECT_DOMAIN_H__ */
158158
159159 const gchar *gvir_interface_get_name(GVirInterface *iface)
160160 {
161 GVirInterfacePrivate *priv = iface->priv;
162161 const char *name;
163162
164 if (!(name = virInterfaceGetName(priv->handle))) {
165 g_warning("Failed to get interface name on %p", priv->handle);
163 g_return_val_if_fail(GVIR_IS_INTERFACE(iface), NULL);
164
165 if (!(name = virInterfaceGetName(iface->priv->handle))) {
166 g_warning("Failed to get interface name on %p", iface->priv->handle);
166167 return NULL;
167168 }
168169
174175 * gvir_interface_get_config:
175176 * @iface: the interface
176177 * @flags: the flags
177 * Returns: (transfer full): the config
178 * @err: Place-holder for possible errors
179 *
180 * Returns: (transfer full): the config. The returned object should be
181 * unreffed with g_object_unref() when no longer needed.
178182 */
179183 GVirConfigInterface *gvir_interface_get_config(GVirInterface *iface,
180184 guint flags,
181185 GError **err)
182186 {
183 GVirInterfacePrivate *priv = iface->priv;
187 GVirInterfacePrivate *priv;
184188 gchar *xml;
185189
190 g_return_val_if_fail(GVIR_IS_INTERFACE(iface), NULL);
191 g_return_val_if_fail(err == NULL || *err == NULL, NULL);
192
193 priv = iface->priv;
186194 if (!(xml = virInterfaceGetXMLDesc(priv->handle, flags))) {
187195 gvir_set_error_literal(err, GVIR_INTERFACE_ERROR,
188196 0,
130130 void gvir_manager_add_connection(GVirManager *man,
131131 GVirConnection *conn)
132132 {
133 GVirManagerPrivate *priv = man->priv;
134
133 GVirManagerPrivate *priv;
134
135 g_return_if_fail(GVIR_IS_MANAGER(man));
136 g_return_if_fail(GVIR_IS_CONNECTION(conn));
137
138 priv = man->priv;
135139 g_mutex_lock(priv->lock);
136140 g_object_ref(conn);
137141 priv->connections = g_list_append(priv->connections, conn);
146150 void gvir_manager_remove_connection(GVirManager *man,
147151 GVirConnection *conn)
148152 {
149 GVirManagerPrivate *priv = man->priv;
150
153 GVirManagerPrivate *priv;
154
155 g_return_if_fail(GVIR_IS_MANAGER(man));
156 g_return_if_fail(GVIR_IS_CONNECTION(conn));
157
158 priv = man->priv;
151159 g_mutex_lock(priv->lock);
152160 priv->connections = g_list_remove(priv->connections, conn);
153161 g_mutex_unlock(priv->lock);
159167
160168 /**
161169 * gvir_manager_get_connections:
162 * Returns: (transfer full)(element-type GVirConnection): the connections
170 *
171 * Returns: (transfer full)(element-type GVirConnection): the connections.
172 * The returned list should be freed with g_list_free(), after its elements
173 * have been unreffed with g_object_unref().
163174 */
164175 GList *gvir_manager_get_connections(GVirManager *man)
165176 {
166 GVirManagerPrivate *priv = man->priv;
167
168 GList *tmp = priv->connections;
177 GList *tmp;
178
179 g_return_val_if_fail(GVIR_IS_MANAGER(man), NULL);
180
181 tmp = man->priv->connections;
169182 while (tmp) {
170183 GVirConnection *conn = tmp->data;
171184 g_object_ref(conn);
172185 tmp = tmp->next;
173186 }
174187
175 return g_list_copy(priv->connections);
188 return g_list_copy(man->priv->connections);
176189 }
177190
178191
179192 /**
180193 * gvir_manager_find_connection_by_uri:
181 * Returns: (transfer full)(allow-none): the connection,or NULL
194 *
195 * Returns: (transfer full)(allow-none): the connection,or NULL. The
196 * returned object should be unreffed with g_object_unref() when no longer
197 * needed.
182198 */
183199 GVirConnection *gvir_manager_find_connection_by_uri(GVirManager *man,
184200 const gchar *uri)
185201 {
186 GVirManagerPrivate *priv = man->priv;
187
188 GList *tmp = priv->connections;
202 GList *tmp;
203
204 g_return_val_if_fail(GVIR_IS_MANAGER(man), NULL);
205 g_return_val_if_fail(uri != NULL, NULL);
206
207 tmp = man->priv->connections;
189208 while (tmp) {
190209 GVirConnection *conn = tmp->data;
191210 if (g_strcmp0(gvir_connection_get_uri(conn), uri) == 0)
181181
182182 const gchar *gvir_network_filter_get_name(GVirNetworkFilter *filter)
183183 {
184 GVirNetworkFilterPrivate *priv = filter->priv;
185184 const char *name;
186185
187 if (!(name = virNWFilterGetName(priv->handle))) {
188 g_warning("Failed to get network_filter name on %p", priv->handle);
186 g_return_val_if_fail(GVIR_IS_NETWORK_FILTER(filter), NULL);
187
188 if (!(name = virNWFilterGetName(filter->priv->handle))) {
189 g_warning("Failed to get network_filter name on %p",
190 filter->priv->handle);
189191 return NULL;
190192 }
191193
205207 * gvir_network_filter_get_config:
206208 * @filter: the network_filter
207209 * @flags: the flags
208 * Returns: (transfer full): the config
210 * @err: Place-holder for possible errors
211 *
212 * Returns: (transfer full): the config. The returned object should be
213 * unreffed with g_object_unref() when no longer needed.
214
209215 */
210216 GVirConfigNetworkFilter *gvir_network_filter_get_config
211217 (GVirNetworkFilter *filter,
212218 guint flags,
213219 GError **err)
214220 {
215 GVirNetworkFilterPrivate *priv = filter->priv;
221 GVirNetworkFilterPrivate *priv;
216222 gchar *xml;
217223
224 g_return_val_if_fail(GVIR_IS_NETWORK_FILTER(filter), NULL);
225 g_return_val_if_fail(err == NULL || *err == NULL, NULL);
226
227 priv = filter->priv;
218228 if (!(xml = virNWFilterGetXMLDesc(priv->handle, flags))) {
219229 gvir_set_error_literal(err, GVIR_NETWORK_FILTER_ERROR,
220230 0,
179179
180180 const gchar *gvir_network_get_name(GVirNetwork *network)
181181 {
182 GVirNetworkPrivate *priv = network->priv;
183182 const char *name;
184183
185 if (!(name = virNetworkGetName(priv->handle))) {
186 g_warning("Failed to get network name on %p", priv->handle);
184 g_return_val_if_fail(GVIR_IS_NETWORK(network), NULL);
185
186 if (!(name = virNetworkGetName(network->priv->handle))) {
187 g_warning("Failed to get network name on %p", network->priv->handle);
187188 return NULL;
188189 }
189190
202203 * gvir_network_get_config:
203204 * @network: the network
204205 * @flags: the flags
205 * Returns: (transfer full): the config
206 * @err: Place-holder for possible errors
207 *
208 * Returns: (transfer full): the config. The returned object should be
209 * unreffed with g_object_unref() when no longer needed.
206210 */
207211 GVirConfigNetwork *gvir_network_get_config(GVirNetwork *network,
208212 guint flags,
209213 GError **err)
210214 {
211 GVirNetworkPrivate *priv = network->priv;
215 GVirNetworkPrivate *priv;
212216 gchar *xml;
213217
218 g_return_val_if_fail(GVIR_IS_NETWORK(network), NULL);
219 g_return_val_if_fail(err == NULL || *err == NULL, NULL);
220
221 priv = network->priv;
214222 if (!(xml = virNetworkGetXMLDesc(priv->handle, flags))) {
215223 gvir_set_error_literal(err, GVIR_NETWORK_ERROR,
216224 0,
158158
159159 const gchar *gvir_node_device_get_name(GVirNodeDevice *device)
160160 {
161 GVirNodeDevicePrivate *priv = device->priv;
162161 const char *name;
163162
164 if (!(name = virNodeDeviceGetName(priv->handle))) {
165 g_warning("Failed to get node_device name on %p", priv->handle);
163 g_return_val_if_fail(GVIR_IS_NODE_DEVICE(device), NULL);
164
165 if (!(name = virNodeDeviceGetName(device->priv->handle))) {
166 g_warning("Failed to get node_device name on %p",
167 device->priv->handle);
166168 return NULL;
167169 }
168170
174176 * gvir_node_device_get_config:
175177 * @device: the node_device
176178 * @flags: the flags
177 * Returns: (transfer full): the config
179 * @err: Place-holder for possible errors
180 *
181 * Returns: (transfer full): the config. The returned object should be
182 * unreffed with g_object_unref() when no longer needed.
183
178184 */
179185 GVirConfigNodeDevice *gvir_node_device_get_config(GVirNodeDevice *device,
180186 guint flags,
181187 GError **err)
182188 {
183 GVirNodeDevicePrivate *priv = device->priv;
189 GVirNodeDevicePrivate *priv;
184190 gchar *xml;
185191
192 g_return_val_if_fail(GVIR_IS_NODE_DEVICE(device), NULL);
193 g_return_val_if_fail(err == NULL || *err == NULL, NULL);
194
195 priv = device->priv;
186196 if (!(xml = virNodeDeviceGetXMLDesc(priv->handle, flags))) {
187197 gvir_set_error_literal(err, GVIR_NODE_DEVICE_ERROR,
188198 0,
190190 * gvir_secret_get_config:
191191 * @secret: the secret
192192 * @flags: the flags
193 * Returns: (transfer full): the config
193 * @err: Place-holder for possible errors
194 *
195 * Returns: (transfer full): the config. The returned object should be
196 * unreffed with g_object_unref() when no longer needed.
197
194198 */
195199 GVirConfigSecret *gvir_secret_get_config(GVirSecret *secret,
196200 guint flags,
197201 GError **err)
198202 {
199 GVirSecretPrivate *priv = secret->priv;
203 GVirSecretPrivate *priv;
200204 gchar *xml;
201205
206 g_return_val_if_fail(GVIR_IS_SECRET(secret), NULL);
207 g_return_val_if_fail(err == NULL || *err == NULL, NULL);
208
209 priv = secret->priv;
202210 if (!(xml = virSecretGetXMLDesc(priv->handle, flags))) {
203211 gvir_set_error_literal(err, GVIR_SECRET_ERROR,
204212 0,
210210
211211 const gchar *gvir_storage_pool_get_name(GVirStoragePool *pool)
212212 {
213 GVirStoragePoolPrivate *priv = pool->priv;
214213 const char *name;
215214
216 if (!(name = virStoragePoolGetName(priv->handle))) {
217 g_warning("Failed to get storage_pool name on %p", priv->handle);
215 g_return_val_if_fail(GVIR_IS_STORAGE_POOL(pool), NULL);
216
217 if (!(name = virStoragePoolGetName(pool->priv->handle))) {
218 g_warning("Failed to get storage_pool name on %p", pool->priv->handle);
218219 return NULL;
219220 }
220221
234235 * gvir_storage_pool_get_config:
235236 * @pool: the storage_pool
236237 * @flags: the flags
237 * Returns: (transfer full): the config
238 * @err: Place-holder for possible errors
239 *
240 * Returns: (transfer full): the config. The returned object should be
241 * unreffed with g_object_unref() when no longer needed.
238242 */
239243 GVirConfigStoragePool *gvir_storage_pool_get_config(GVirStoragePool *pool,
240244 guint flags,
241245 GError **err)
242246 {
243 GVirStoragePoolPrivate *priv = pool->priv;
247 GVirStoragePoolPrivate *priv;
244248 gchar *xml;
245249
250 g_return_val_if_fail(GVIR_IS_STORAGE_POOL(pool), NULL);
251 g_return_val_if_fail(err == NULL || *err == NULL, NULL);
252
253 priv = pool->priv;
246254 if (!(xml = virStoragePoolGetXMLDesc(priv->handle, flags))) {
247255 gvir_set_error_literal(err, GVIR_STORAGE_POOL_ERROR,
248256 0,
259267 /**
260268 * gvir_storage_pool_get_info:
261269 * @pool: the storage_pool
262 * Returns: (transfer full): the info
270 * @err: Place-holder for possible errors
271 *
272 * Returns: (transfer full): the info. The returned object should be
273 * unreffed with g_object_unref() when no longer needed.
263274 */
264275 GVirStoragePoolInfo *gvir_storage_pool_get_info(GVirStoragePool *pool,
265276 GError **err)
266277 {
267 GVirStoragePoolPrivate *priv = pool->priv;
278 GVirStoragePoolPrivate *priv;
268279 virStoragePoolInfo info;
269280 GVirStoragePoolInfo *ret;
270281
282 g_return_val_if_fail(GVIR_IS_STORAGE_POOL(pool), NULL);
283 g_return_val_if_fail(err == NULL || *err == NULL, NULL);
284
285 priv = pool->priv;
271286 if (virStoragePoolGetInfo(priv->handle, &info) < 0) {
272287 if (err)
273288 *err = gvir_error_new_literal(GVIR_STORAGE_POOL_ERROR,
339354 GCancellable *cancellable,
340355 GError **err)
341356 {
342 GVirStoragePoolPrivate *priv = pool->priv;
357 GVirStoragePoolPrivate *priv;
343358 GHashTable *vol_hash;
344359 gchar **volumes = NULL;
345360 gint nvolumes = 0;
348363 virStoragePoolPtr vpool = NULL;
349364 GError *lerr = NULL;
350365
366 g_return_val_if_fail(GVIR_IS_STORAGE_POOL(pool), FALSE);
367 g_return_val_if_fail((cancellable == NULL) || G_IS_CANCELLABLE(cancellable),
368 FALSE);
369 g_return_val_if_fail(err == NULL || *err == NULL, FALSE);
370
371 priv = pool->priv;
351372 vpool = priv->handle;
352373
353374 if (virStoragePoolRefresh(vpool, 0) < 0) {
440461 {
441462 GSimpleAsyncResult *res;
442463
464 g_return_if_fail(GVIR_IS_STORAGE_POOL(pool));
465 g_return_if_fail((cancellable == NULL) || G_IS_CANCELLABLE(cancellable));
466
443467 res = g_simple_async_result_new(G_OBJECT(pool),
444468 callback,
445469 user_data,
481505 * gvir_storage_pool_get_volumes:
482506 * @pool: the storage pool
483507 *
484 * Return value: (element-type LibvirtGObject.StorageVol) (transfer full): List
485 * of #GVirStorageVol
508 * Return value: (element-type LibvirtGObject.StorageVol) (transfer full):
509 * List of #GVirStorageVol. The returned list should be freed with
510 * g_list_free(), after its elements have been unreffed with
511 * g_object_unref().
486512 */
487513 GList *gvir_storage_pool_get_volumes(GVirStoragePool *pool)
488514 {
489 GVirStoragePoolPrivate *priv = pool->priv;
515 GVirStoragePoolPrivate *priv;
490516 GList *volumes = NULL;
491517
518 g_return_val_if_fail(GVIR_IS_STORAGE_POOL(pool), NULL);
519
520 priv = pool->priv;
492521 g_mutex_lock(priv->lock);
493522 if (priv->volumes != NULL) {
494523 volumes = g_hash_table_get_values(priv->volumes);
504533 * @pool: the storage pool
505534 * @name: Name of the requested storage volume
506535 *
507 * Return value: (transfer full): the #GVirStorageVol, or NULL
536 * Return value: (transfer full): the #GVirStorageVol, or NULL. The
537 * returned object should be unreffed with g_object_unref() when no longer
538 * needed.
508539 */
509540 GVirStorageVol *gvir_storage_pool_get_volume(GVirStoragePool *pool,
510541 const gchar *name)
511542 {
512 GVirStoragePoolPrivate *priv = pool->priv;
543 GVirStoragePoolPrivate *priv;
513544 GVirStorageVol *volume;
514545
546 g_return_val_if_fail(GVIR_IS_STORAGE_POOL(pool), NULL);
547
548 priv = pool->priv;
515549 g_mutex_lock(priv->lock);
516550 volume = g_hash_table_lookup(priv->volumes, name);
517551 if (volume)
525559 * gvir_storage_pool_create_volume:
526560 * @pool: the storage pool in which to create the volume
527561 * @conf: the configuration for the new volume
528 * Returns: (transfer full): the newly created volume
562 * @err: Place-holder for possible errors
563 *
564 * Returns: (transfer full): the newly created volume. The returned object
565 * should be unreffed with g_object_unref() when no longer needed.
529566 */
530567 GVirStorageVol *gvir_storage_pool_create_volume
531568 (GVirStoragePool *pool,
534571 {
535572 const gchar *xml;
536573 virStorageVolPtr handle;
537 GVirStoragePoolPrivate *priv = pool->priv;
574 GVirStoragePoolPrivate *priv;
575
576 g_return_val_if_fail(GVIR_IS_STORAGE_POOL(pool), NULL);
577 g_return_val_if_fail(GVIR_CONFIG_IS_STORAGE_VOL(conf), NULL);
578 g_return_val_if_fail(err == NULL || *err == NULL, NULL);
538579
539580 xml = gvir_config_object_to_xml(GVIR_CONFIG_OBJECT(conf));
540581
541582 g_return_val_if_fail(xml != NULL, NULL);
542583
584 priv = pool->priv;
543585 if (!(handle = virStorageVolCreateXML(priv->handle, xml, 0))) {
544586 gvir_set_error_literal(err, GVIR_STORAGE_POOL_ERROR,
545587 0,
579621 guint flags,
580622 GError **err)
581623 {
624 g_return_val_if_fail(GVIR_IS_STORAGE_POOL(pool), FALSE);
625 g_return_val_if_fail(err == NULL || *err == NULL, FALSE);
626
582627 if (virStoragePoolBuild(pool->priv->handle, flags)) {
583628 gvir_set_error_literal(err, GVIR_STORAGE_POOL_ERROR,
584629 0,
629674 {
630675 GSimpleAsyncResult *res;
631676 StoragePoolBuildData *data;
677
678 g_return_if_fail(GVIR_IS_STORAGE_POOL(pool));
679 g_return_if_fail((cancellable == NULL) || G_IS_CANCELLABLE(cancellable));
632680
633681 data = g_slice_new0(StoragePoolBuildData);
634682 data->flags = flags;
661709 g_return_val_if_fail(g_simple_async_result_is_valid(result, G_OBJECT(pool),
662710 gvir_storage_pool_build_async),
663711 FALSE);
712 g_return_val_if_fail(err == NULL || *err == NULL, FALSE);
664713
665714 if (g_simple_async_result_propagate_error(G_SIMPLE_ASYNC_RESULT(result),
666715 err))
681730 guint flags,
682731 GError **err)
683732 {
733 g_return_val_if_fail(GVIR_IS_STORAGE_POOL(pool), FALSE);
734 g_return_val_if_fail(err == NULL || *err == NULL, FALSE);
735
684736 if (virStoragePoolCreate(pool->priv->handle, flags)) {
685737 gvir_set_error_literal(err, GVIR_STORAGE_POOL_ERROR,
686738 0,
727779 {
728780 GSimpleAsyncResult *res;
729781 StoragePoolBuildData *data;
782
783 g_return_if_fail(GVIR_IS_STORAGE_POOL(pool));
784 g_return_if_fail((cancellable == NULL) || G_IS_CANCELLABLE(cancellable));
730785
731786 data = g_slice_new0(StoragePoolBuildData);
732787 data->flags = flags;
759814 g_return_val_if_fail(g_simple_async_result_is_valid(result, G_OBJECT(pool),
760815 gvir_storage_pool_start_async),
761816 FALSE);
817 g_return_val_if_fail(err == NULL || *err == NULL, FALSE);
762818
763819 if (g_simple_async_result_propagate_error(G_SIMPLE_ASYNC_RESULT(result),
764820 err))
194194
195195 const gchar *gvir_storage_vol_get_name(GVirStorageVol *vol)
196196 {
197 GVirStorageVolPrivate *priv = vol->priv;
198197 const char *name;
199198
200 if (!(name = virStorageVolGetName(priv->handle))) {
201 g_warning("Failed to get storage_vol name on %p", priv->handle);
199 g_return_val_if_fail(GVIR_IS_STORAGE_VOL(vol), NULL);
200
201 if (!(name = virStorageVolGetName(vol->priv->handle))) {
202 g_warning("Failed to get storage_vol name on %p", vol->priv->handle);
202203 return NULL;
203204 }
204205
207208
208209 const gchar *gvir_storage_vol_get_path(GVirStorageVol *vol, GError **error)
209210 {
210 GVirStorageVolPrivate *priv = vol->priv;
211211 const char *path;
212212
213 if (!(path = virStorageVolGetPath(priv->handle))) {
213 g_return_val_if_fail(GVIR_IS_STORAGE_VOL(vol), NULL);
214 g_return_val_if_fail(error == NULL || *error == NULL, NULL);
215
216 if (!(path = virStorageVolGetPath(vol->priv->handle))) {
214217 gvir_set_error(error, GVIR_STORAGE_VOL_ERROR, 0,
215218 "Failed to get storage_vol path on %p",
216 priv->handle);
219 vol->priv->handle);
217220 return NULL;
218221 }
219222
224227 * gvir_storage_vol_get_config:
225228 * @vol: the storage_vol
226229 * @flags: the flags
227 * Returns: (transfer full): the config
230 * @err: Place-holder for possible errors
231 *
232 * Returns: (transfer full): the config. The returned object should be
233 * unreffed with g_object_unref() when no longer needed.
228234 */
229235 GVirConfigStorageVol *gvir_storage_vol_get_config(GVirStorageVol *vol,
230236 guint flags,
231237 GError **err)
232238 {
233 GVirStorageVolPrivate *priv = vol->priv;
239 GVirStorageVolPrivate *priv;
234240 gchar *xml;
235241
242 g_return_val_if_fail(GVIR_IS_STORAGE_VOL(vol), NULL);
243 g_return_val_if_fail(err == NULL || *err == NULL, NULL);
244
245 priv = vol->priv;
236246 if (!(xml = virStorageVolGetXMLDesc(priv->handle, flags))) {
237247 gvir_set_error_literal(err, GVIR_STORAGE_VOL_ERROR,
238248 0,
249259 /**
250260 * gvir_storage_vol_get_info:
251261 * @vol: the storage_vol
252 * Returns: (transfer full): the info
262 * @err: Place-holder for possible errors
263 *
264 * Returns: (transfer full): the info. The returned object should be
265 * unreffed with g_object_unref() when no longer needed.
253266 */
254267 GVirStorageVolInfo *gvir_storage_vol_get_info(GVirStorageVol *vol,
255268 GError **err)
256269 {
257 GVirStorageVolPrivate *priv = vol->priv;
270 GVirStorageVolPrivate *priv;
258271 virStorageVolInfo info;
259272 GVirStorageVolInfo *ret;
260273
274 g_return_val_if_fail(GVIR_IS_STORAGE_VOL(vol), NULL);
275 g_return_val_if_fail(err == NULL || *err == NULL, NULL);
276
277 priv = vol->priv;
261278 if (virStorageVolGetInfo(priv->handle, &info) < 0) {
262279 if (err)
263280 *err = gvir_error_new_literal(GVIR_STORAGE_VOL_ERROR,
288305 guint flags,
289306 GError **err)
290307 {
308 g_return_val_if_fail(GVIR_IS_STORAGE_VOL(vol), FALSE);
309 g_return_val_if_fail(err == NULL || *err == NULL, FALSE);
310
291311 if (virStorageVolDelete(vol->priv->handle, flags) < 0) {
292312 gvir_set_error_literal(err,
293313 GVIR_STORAGE_VOL_ERROR,
315335 guint flags,
316336 GError **err)
317337 {
338 g_return_val_if_fail(GVIR_IS_STORAGE_VOL(vol), FALSE);
339 g_return_val_if_fail(err == NULL || *err == NULL, FALSE);
340
318341 if (virStorageVolResize(vol->priv->handle, capacity, flags) < 0) {
319342 gvir_set_error_literal(err,
320343 GVIR_STORAGE_VOL_ERROR,
325348
326349 return TRUE;
327350 }
351
352 /**
353 * gvir_storage_vol_download:
354 * @vol: the storage volume to download from
355 * @stream: stream to use as output
356 * @offset: position in @vol to start reading from
357 * @length: limit on amount of data to download, or 0 for downloading all data
358 * @flags: extra flags, not used yet, pass 0
359 *
360 * Returns: #TRUE of success, #FALSE otherwise
361 */
362 gboolean gvir_storage_vol_download(GVirStorageVol *vol,
363 GVirStream *stream,
364 guint64 offset,
365 guint64 length,
366 guint flags,
367 GError **err)
368 {
369 virStreamPtr stream_handle = NULL;
370 gboolean ret = FALSE;
371
372 g_object_get(stream, "handle", &stream_handle, NULL);
373
374 g_return_val_if_fail(GVIR_IS_STORAGE_VOL(vol), FALSE);
375 g_return_val_if_fail(GVIR_IS_STREAM(stream), FALSE);
376 g_return_val_if_fail(err == NULL || *err == NULL, FALSE);
377
378 if (virStorageVolDownload(vol->priv->handle,
379 stream_handle,
380 offset,
381 length,
382 0) < 0) {
383 gvir_set_error_literal(err,
384 GVIR_STORAGE_VOL_ERROR,
385 0,
386 "Unable to download volume storage");
387
388 goto cleanup;
389 }
390
391 ret = TRUE;
392 cleanup:
393 if (stream_handle != NULL)
394 virStreamFree(stream_handle);
395 return ret;
396 }
397
398 /**
399 * gvir_storage_vol_upload:
400 * @vol: the storage volume to upload
401 * @stream: stream to use as input
402 * @offset: position in @vol to start to write to
403 * @length: limit on amount of data to upload, or 0 for uploading all data
404 * @flags: the flags, not set yet, pass 0
405 *
406 * Returns: #TRUE of success, #FALSE otherwise
407 */
408 gboolean gvir_storage_vol_upload(GVirStorageVol *vol,
409 GVirStream *stream,
410 guint64 offset,
411 guint64 length,
412 guint flags,
413 GError **err)
414 {
415 virStreamPtr stream_handle = NULL;
416 gboolean ret = FALSE;
417
418 g_object_get(stream, "handle", &stream_handle, NULL);
419
420 g_return_val_if_fail(GVIR_IS_STORAGE_VOL(vol), FALSE);
421 g_return_val_if_fail(GVIR_IS_STREAM(stream), FALSE);
422 g_return_val_if_fail(err == NULL || *err == NULL, FALSE);
423
424 if (virStorageVolUpload(vol->priv->handle,
425 stream_handle,
426 offset,
427 length,
428 0) < 0) {
429 gvir_set_error_literal(err,
430 GVIR_STORAGE_VOL_ERROR,
431 0,
432 "Unable to upload to stream");
433
434 goto cleanup;
435 }
436
437 ret = TRUE;
438 cleanup:
439 if (stream_handle != NULL)
440 virStreamFree(stream_handle);
441 return ret;
442 }
109109 guint flags,
110110 GError **err);
111111
112 gboolean gvir_storage_vol_download(GVirStorageVol *vol,
113 GVirStream *stream,
114 guint64 offset,
115 guint64 length,
116 guint flags,
117 GError **err);
118
119 gboolean gvir_storage_vol_upload(GVirStorageVol *vol,
120 GVirStream *stream,
121 guint64 offset,
122 guint64 length,
123 guint flags,
124 GError **err);
125
112126 G_END_DECLS
113127
114128 #endif /* __LIBVIRT_GOBJECT_STORAGE_VOL_H__ */
354354 * @cancellable: cancellation notifier
355355 * @func: (scope notified): the callback for writing data to application
356356 * @user_data: (closure): data to be passed to @callback
357 * Returns: the number of bytes consumed or -1 upon error
357 * @error: #GError for error reporting, or %NULL to ignore.
358358 *
359359 * Receive the entire data stream, sending the data to the
360360 * requested data sink. This is simply a convenient alternative
361361 * to virStreamRecv, for apps that do blocking-I/o.
362 *
363 * Returns: the number of bytes consumed or -1 upon error
362364 */
363365 gssize
364366 gvir_stream_receive_all(GVirStream *self,
365367 GCancellable *cancellable,
366368 GVirStreamSinkFunc func,
367369 gpointer user_data,
368 GError **err)
370 GError **error)
369371 {
370372 struct stream_sink_helper helper = {
371373 .self = self,
376378 int r;
377379
378380 g_return_val_if_fail(GVIR_IS_STREAM(self), -1);
381 g_return_val_if_fail((cancellable == NULL) || G_IS_CANCELLABLE(cancellable), -1);
379382 g_return_val_if_fail(func != NULL, -1);
383 g_return_val_if_fail(error == NULL || *error == NULL, -1);
380384
381385 r = virStreamRecvAll(self->priv->handle, stream_sink, &helper);
382386 if (r < 0) {
383 gvir_set_error_literal(err, GVIR_STREAM_ERROR,
387 gvir_set_error_literal(error, GVIR_STREAM_ERROR,
384388 0,
385389 "Unable to perform RecvAll");
386390 }
421425
422426 g_return_val_if_fail(GVIR_IS_STREAM(self), -1);
423427 g_return_val_if_fail(buffer != NULL, -1);
428 g_return_val_if_fail((cancellable == NULL) || G_IS_CANCELLABLE(cancellable), -1);
429 g_return_val_if_fail(error == NULL || *error == NULL, -1);
424430
425431 if (g_cancellable_set_error_if_cancelled (cancellable, error))
426432 return -1;
464470 * @cancellable: cancellation notifier
465471 * @func: (scope notified): the callback for writing data to application
466472 * @user_data: (closure): data to be passed to @callback
467 * Returns: the number of bytes consumed or -1 upon error
473 * @error: #GError for error reporting, or %NULL to ignore.
468474 *
469475 * Send the entire data stream, sending the data to the
470476 * requested data source. This is simply a convenient alternative
471477 * to virStreamRecv, for apps that do blocking-I/o.
478 *
479 * Returns: the number of bytes consumed or -1 upon error
472480 */
473481 gssize
474482 gvir_stream_send_all(GVirStream *self,
475483 GCancellable *cancellable,
476484 GVirStreamSourceFunc func,
477485 gpointer user_data,
478 GError **err)
486 GError **error)
479487 {
480488 struct stream_source_helper helper = {
481489 .self = self,
486494 int r;
487495
488496 g_return_val_if_fail(GVIR_IS_STREAM(self), -1);
497 g_return_val_if_fail((cancellable == NULL) || G_IS_CANCELLABLE(cancellable), -1);
489498 g_return_val_if_fail(func != NULL, -1);
499 g_return_val_if_fail(error == NULL || *error == NULL, -1);
490500
491501 r = virStreamSendAll(self->priv->handle, stream_source, &helper);
492502 if (r < 0) {
493 gvir_set_error_literal(err, GVIR_STREAM_ERROR,
503 gvir_set_error_literal(error, GVIR_STREAM_ERROR,
494504 0,
495505 "Unable to perform SendAll");
496506 }
617627
618628
619629 /**
620 * gvir_stream_add_watch: (skip):
630 * gvir_stream_add_watch: (skip)
621631 * @stream: the stream
622632 * @cond: the conditions to watch for (bitfield of #GVirStreamIOCondition)
623633 * @func: (closure opaque): the function to call when the condition is satisfied
6767 * @buf: (out) (array length=nbytes) (transfer none): data pointer
6868 * @nbytes: data size
6969 * @user_data: user data passed to the function
70 *
7071 * Returns: the number of bytes filled, 0 upon end
7172 * of file, or -1 upon error
7273 */
8182 * @buf: (out) (array length=nbytes) (transfer none): data pointer
8283 * @nbytes: data size
8384 * @user_data: user data passed to the function
85 *
8486 * Returns: the number of bytes filled, 0 upon end
8587 * of file, or -1 upon error
8688 */
4343 #include <libvirt-gobject/libvirt-gobject-storage-pool.h>
4444 #include <libvirt-gobject/libvirt-gobject-connection.h>
4545 #include <libvirt-gobject/libvirt-gobject-manager.h>
46 #include <libvirt-gobject/libvirt-gobject-stream.h>
4647
4748 #endif /* __LIBVIRT_GOBJECT_H__ */
7474 gvir_domain_get_persistent;
7575 gvir_domain_get_saved;
7676 gvir_domain_screenshot;
77 gvir_domain_save_to_file;
78 gvir_domain_save_to_file_async;
79 gvir_domain_save_to_file_finish;
7780
7881 gvir_domain_snapshot_get_type;
7982 gvir_domain_snapshot_handle_get_type;
136139 gvir_storage_vol_get_info;
137140 gvir_storage_vol_delete;
138141 gvir_storage_vol_resize;
142 gvir_storage_vol_download;
143 gvir_storage_vol_upload;
139144
140145 gvir_connection_handle_get_type;
141146
159164 *;
160165 };
161166
167 LIBVIRT_GOBJECT_0.0.9 {
168 global:
169 gvir_connection_get_capabilities;
170 gvir_connection_get_capabilities_async;
171 gvir_connection_get_capabilities_finish;
172
173 gvir_connection_restore_domain_from_file;
174 gvir_connection_restore_domain_from_file_async;
175 gvir_conecction_restore_domain_from_file_finish;
176
177 gvir_domain_start_async;
178 gvir_domain_start_finish;
179 } LIBVIRT_GOBJECT_0.0.8;
180
181 LIBVIRT_GOBJECT_0.1.1 {
182 global:
183 gvir_domain_shutdown_flags_get_type;
184 gvir_domain_snapshot_create_flags_get_type;
185 gvir_domain_xml_flags_get_type;
186
187 gvir_domain_create_snapshot;
188 } LIBVIRT_GOBJECT_0.0.9;
189
190 LIBVIRT_GOBJECT_0.1.2 {
191 global:
192 gvir_domain_resume_async;
193 gvir_domain_resume_finish;
194 } LIBVIRT_GOBJECT_0.1.1;
195
162196 # .... define new API here using predicted next version number ....
8383 gl_WARN_ADD([-Wframe-larger-than=4096])
8484
8585 # Use improved glibc headers
86 AC_DEFINE([_FORTIFY_SOURCE], [2],
87 [enable compile-time and run-time bounds-checking, and some warnings])
86 AH_VERBATIM([FORTIFY_SOURCE],
87 [/* Enable compile-time and run-time bounds-checking, and some warnings,
88 without upsetting newer glibc. */
89 #if defined __OPTIMIZE__ && __OPTIMIZE__
90 # define _FORTIFY_SOURCE 2
91 #endif
92 ])
8893
8994 # Extra special flags
9095 dnl -fstack-protector stuff passes gl_WARN_ADD with gcc
0 %{?mingw_package_header}
1
2 Name: mingw-libvirt-glib
3 Version: @VERSION@
4 Release: 1%{?dist}%{?extra_release}
5 Summary: MinGW Windows libvirt-glib virtualization library
6
7 License: LGPLv2+
8 Group: Development/Libraries
9 URL: http://libvirt.org/
10 Source0: ftp://libvirt.org/libvirt/glib/libvirt-glib-%{version}.tar.gz
11
12 BuildRequires: mingw32-filesystem >= 95
13 BuildRequires: mingw64-filesystem >= 95
14 BuildRequires: mingw32-glib2
15 BuildRequires: mingw64-glib2
16 BuildRequires: mingw32-libvirt >= 0.9.10
17 BuildRequires: mingw64-libvirt >= 0.9.10
18
19 BuildRequires: pkgconfig
20
21 BuildArch: noarch
22
23 %package -n mingw32-libvirt-glib
24 Summary: MingwGW Windows libvirt-gconfig virtualization library
25 Group: Development/Libraries
26
27 Requires: pkgconfig
28
29 %package -n mingw32-libvirt-gconfig
30 Summary: MingwGW Windows libvirt-gconfig virtualization library
31 Group: Development/Libraries
32
33 Requires: pkgconfig
34
35 %package -n mingw32-libvirt-gobject
36 Summary: MingwGW Windows libvirt-gobject virtualization library
37 Group: Development/Libraries
38
39 Requires: pkgconfig
40
41 %package -n mingw64-libvirt-glib
42 Summary: MingwGW Windows libvirt-gconfig virtualization library
43 Group: Development/Libraries
44
45 Requires: pkgconfig
46
47 %package -n mingw64-libvirt-gconfig
48 Summary: MingwGW Windows libvirt-gconfig virtualization library
49 Group: Development/Libraries
50
51 Requires: pkgconfig
52
53 %package -n mingw64-libvirt-gobject
54 Summary: MingwGW Windows libvirt-gobject virtualization library
55 Group: Development/Libraries
56
57 Requires: pkgconfig
58
59 %description
60 MinGW Windows libvirt-glib virtualization library.
61
62 %description -n mingw32-libvirt-glib
63 MinGW Windows libvirt-glib virtualization library.
64
65 %description -n mingw32-libvirt-gconfig
66 MinGW Windows libvirt-gconfig virtualization library.
67
68 %description -n mingw32-libvirt-gobject
69 MinGW Windows libvirt-gobject virtualization library.
70
71
72 %description -n mingw64-libvirt-glib
73 MinGW Windows libvirt-glib virtualization library.
74
75 %description -n mingw64-libvirt-gconfig
76 MinGW Windows libvirt-gconfig virtualization library.
77
78 %description -n mingw64-libvirt-gobject
79 MinGW Windows libvirt-gobject virtualization library.
80
81 %{?mingw_debug_package}
82
83 %prep
84 %setup -q -n libvirt-glib-%{version}
85
86
87 %build
88 %mingw_configure \
89 --enable-introspection=no \
90 --without-python
91
92 %mingw_make %{?_smp_mflags}
93
94
95 %install
96 %mingw_make_install DESTDIR=$RPM_BUILD_ROOT
97
98 rm -f $RPM_BUILD_ROOT%{mingw32_libdir}/libvirt-gconfig-1.0.a
99 rm -f $RPM_BUILD_ROOT%{mingw32_libdir}/libvirt-glib-1.0.a
100 rm -f $RPM_BUILD_ROOT%{mingw32_libdir}/libvirt-gobject-1.0.a
101 rm -f $RPM_BUILD_ROOT%{mingw64_libdir}/libvirt-gconfig-1.0.a
102 rm -f $RPM_BUILD_ROOT%{mingw64_libdir}/libvirt-glib-1.0.a
103 rm -f $RPM_BUILD_ROOT%{mingw64_libdir}/libvirt-gobject-1.0.a
104
105 rm -rf $RPM_BUILD_ROOT%{mingw32_datadir}/gtk-doc
106 rm -rf $RPM_BUILD_ROOT%{mingw64_datadir}/gtk-doc
107
108
109 %files -n mingw32-libvirt-glib
110 %doc README COPYING AUTHORS ChangeLog NEWS
111 %{mingw32_bindir}/libvirt-glib-1.0-0.dll
112
113 %{mingw32_libdir}/libvirt-glib-1.0.dll.a
114 %{mingw32_libdir}/libvirt-glib-1.0.la
115
116 %{mingw32_libdir}/pkgconfig/libvirt-glib-1.0.pc
117
118 %dir %{mingw32_includedir}/libvirt-glib-1.0
119 %dir %{mingw32_includedir}/libvirt-glib-1.0/libvirt-glib
120 %{mingw32_includedir}/libvirt-glib-1.0/libvirt-glib/libvirt-glib.h
121 %{mingw32_includedir}/libvirt-glib-1.0/libvirt-glib/libvirt-glib-*.h
122
123 %files -n mingw64-libvirt-glib
124 %doc README COPYING AUTHORS ChangeLog NEWS
125 %{mingw64_bindir}/libvirt-glib-1.0-0.dll
126
127 %{mingw64_libdir}/libvirt-glib-1.0.dll.a
128 %{mingw64_libdir}/libvirt-glib-1.0.la
129
130 %{mingw64_libdir}/pkgconfig/libvirt-glib-1.0.pc
131
132 %dir %{mingw64_includedir}/libvirt-glib-1.0
133 %dir %{mingw64_includedir}/libvirt-glib-1.0/libvirt-glib
134 %{mingw64_includedir}/libvirt-glib-1.0/libvirt-glib/libvirt-glib.h
135 %{mingw64_includedir}/libvirt-glib-1.0/libvirt-glib/libvirt-glib-*.h
136
137
138
139 %files -n mingw32-libvirt-gconfig
140 %{mingw32_bindir}/libvirt-gconfig-1.0-0.dll
141
142 %{mingw32_libdir}/libvirt-gconfig-1.0.dll.a
143 %{mingw32_libdir}/libvirt-gconfig-1.0.la
144
145 %{mingw32_libdir}/pkgconfig/libvirt-gconfig-1.0.pc
146
147 %dir %{mingw32_includedir}/libvirt-gconfig-1.0
148 %dir %{mingw32_includedir}/libvirt-gconfig-1.0/libvirt-gconfig
149 %{mingw32_includedir}/libvirt-gconfig-1.0/libvirt-gconfig/libvirt-gconfig.h
150 %{mingw32_includedir}/libvirt-gconfig-1.0/libvirt-gconfig/libvirt-gconfig-*.h
151
152 %files -n mingw64-libvirt-gconfig
153 %{mingw64_bindir}/libvirt-gconfig-1.0-0.dll
154
155 %{mingw64_libdir}/libvirt-gconfig-1.0.dll.a
156 %{mingw64_libdir}/libvirt-gconfig-1.0.la
157
158 %{mingw64_libdir}/pkgconfig/libvirt-gconfig-1.0.pc
159
160 %dir %{mingw64_includedir}/libvirt-gconfig-1.0
161 %dir %{mingw64_includedir}/libvirt-gconfig-1.0/libvirt-gconfig
162 %{mingw64_includedir}/libvirt-gconfig-1.0/libvirt-gconfig/libvirt-gconfig.h
163 %{mingw64_includedir}/libvirt-gconfig-1.0/libvirt-gconfig/libvirt-gconfig-*.h
164
165
166
167 %files -n mingw32-libvirt-gobject
168 %{mingw32_bindir}/libvirt-gobject-1.0-0.dll
169
170 %{mingw32_libdir}/libvirt-gobject-1.0.dll.a
171 %{mingw32_libdir}/libvirt-gobject-1.0.la
172
173 %{mingw32_libdir}/pkgconfig/libvirt-gobject-1.0.pc
174
175 %dir %{mingw32_includedir}/libvirt-gobject-1.0
176 %dir %{mingw32_includedir}/libvirt-gobject-1.0/libvirt-gobject
177 %{mingw32_includedir}/libvirt-gobject-1.0/libvirt-gobject/libvirt-gobject.h
178 %{mingw32_includedir}/libvirt-gobject-1.0/libvirt-gobject/libvirt-gobject-*.h
179
180 %files -n mingw64-libvirt-gobject
181 %{mingw64_bindir}/libvirt-gobject-1.0-0.dll
182
183 %{mingw64_libdir}/libvirt-gobject-1.0.dll.a
184 %{mingw64_libdir}/libvirt-gobject-1.0.la
185
186 %{mingw64_libdir}/pkgconfig/libvirt-gobject-1.0.pc
187
188 %dir %{mingw64_includedir}/libvirt-gobject-1.0
189 %dir %{mingw64_includedir}/libvirt-gobject-1.0/libvirt-gobject
190 %{mingw64_includedir}/libvirt-gobject-1.0/libvirt-gobject/libvirt-gobject.h
191 %{mingw64_includedir}/libvirt-gobject-1.0/libvirt-gobject/libvirt-gobject-*.h
192
193
194 %changelog
+0
-112
mingw32-libvirt-glib.spec.in less more
0 %define __strip %{_mingw32_strip}
1 %define __objdump %{_mingw32_objdump}
2 %define _use_internal_dependency_generator 0
3 %define __find_requires %{_mingw32_findrequires}
4 %define __find_provides %{_mingw32_findprovides}
5
6 Name: mingw32-libvirt-glib
7 Version: @VERSION@
8 Release: 1%{?dist}%{?extra_release}
9 Summary: MinGW Windows libvirt-glib virtualization library
10
11 License: LGPLv2+
12 Group: Development/Libraries
13 URL: http://libvirt.org/
14 Source0: ftp://libvirt.org/libvirt-glib/libvirt-glib-%{version}.tar.gz
15 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
16
17 BuildRequires: mingw32-filesystem >= 23
18 BuildRequires: mingw32-glib2
19 BuildRequires: mingw32-libvirt >= 0.9.10
20 BuildRequires: pkgconfig
21
22 BuildArch: noarch
23
24 %package -n mingw32-libvirt-gconfig
25 Summary: MingwGW Windows libvirt-gconfig virtualization library
26 Group: Development/Libraries
27
28 %package -n mingw32-libvirt-gobject
29 Summary: MingwGW Windows libvirt-gobject virtualization library
30 Group: Development/Libraries
31
32 %description
33 MinGW Windows libvirt-glib virtualization library.
34
35 %description -n mingw32-libvirt-gconfig
36 MinGW Windows libvirt-gconfig virtualization library.
37
38 %description -n mingw32-libvirt-gobject
39 MinGW Windows libvirt-gobject virtualization library.
40
41
42 %prep
43 %setup -q -n libvirt-glib-%{version}
44
45
46 %build
47 %{_mingw32_configure} \
48 --without-python
49 make
50
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54
55 make DESTDIR=$RPM_BUILD_ROOT install
56
57 rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libvirt-glib-1.0.a
58 rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libvirt-gconfig-1.0.a
59 rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libvirt-gobject-1.0.a
60 rm -rf $RPM_BUILD_ROOT%{_mingw32_datadir}/gtk-doc
61
62 %clean
63 rm -rf $RPM_BUILD_ROOT
64
65
66 %files
67 %defattr(-,root,root)
68 %{_mingw32_bindir}/libvirt-glib-1.0-0.dll
69
70 %{_mingw32_libdir}/libvirt-glib-1.0.dll.a
71 %{_mingw32_libdir}/libvirt-glib-1.0.la
72
73 %{_mingw32_libdir}/pkgconfig/libvirt-glib-1.0.pc
74
75 %dir %{_mingw32_includedir}/libvirt-glib-1.0
76 %dir %{_mingw32_includedir}/libvirt-glib-1.0/libvirt-glib
77 %{_mingw32_includedir}/libvirt-glib-1.0/libvirt-glib/libvirt-glib.h
78 %{_mingw32_includedir}/libvirt-glib-1.0/libvirt-glib/libvirt-glib-*.h
79
80 %files -n mingw32-libvirt-gconfig
81 %defattr(-,root,root)
82 %{_mingw32_bindir}/libvirt-gconfig-1.0-0.dll
83
84 %{_mingw32_libdir}/libvirt-gconfig-1.0.dll.a
85 %{_mingw32_libdir}/libvirt-gconfig-1.0.la
86
87 %{_mingw32_libdir}/pkgconfig/libvirt-gconfig-1.0.pc
88
89 %dir %{_mingw32_includedir}/libvirt-gconfig-1.0
90 %dir %{_mingw32_includedir}/libvirt-gconfig-1.0/libvirt-gconfig
91 %{_mingw32_includedir}/libvirt-gconfig-1.0/libvirt-gconfig/libvirt-gconfig.h
92 %{_mingw32_includedir}/libvirt-gconfig-1.0/libvirt-gconfig/libvirt-gconfig-*.h
93
94 %files -n mingw32-libvirt-gobject
95 %defattr(-,root,root)
96 %{_mingw32_bindir}/libvirt-gobject-1.0-0.dll
97
98 %{_mingw32_libdir}/libvirt-gobject-1.0.dll.a
99 %{_mingw32_libdir}/libvirt-gobject-1.0.la
100
101 %{_mingw32_libdir}/pkgconfig/libvirt-gobject-1.0.pc
102
103 %dir %{_mingw32_includedir}/libvirt-gobject-1.0
104 %dir %{_mingw32_includedir}/libvirt-gobject-1.0/libvirt-gobject
105 %{_mingw32_includedir}/libvirt-gobject-1.0/libvirt-gobject/libvirt-gobject.h
106 %{_mingw32_includedir}/libvirt-gobject-1.0/libvirt-gobject/libvirt-gobject-*.h
107
108
109 %changelog
110 * Fri Nov 28 2008 Daniel P. Berrange <berrange@redhat.com> - 0.0.1-1
111 - Initial release
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
0 # Makefile.in generated by automake 1.12.2 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1716 # Makefile for libvirt python library
1817
1918 VPATH = @srcdir@
19 am__make_dryrun = \
20 { \
21 am__dry=no; \
22 case $$MAKEFLAGS in \
23 *\\[\ \ ]*) \
24 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
25 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
26 *) \
27 for am__flg in $$MAKEFLAGS; do \
28 case $$am__flg in \
29 *=*|--*) ;; \
30 *n*) am__dry=yes; break;; \
31 esac; \
32 done;; \
33 esac; \
34 test $$am__dry = yes; \
35 }
2036 pkgdatadir = $(datadir)/@PACKAGE@
2137 pkgincludedir = $(includedir)/@PACKAGE@
2238 pkglibdir = $(libdir)/@PACKAGE@
3652 build_triplet = @build@
3753 host_triplet = @host@
3854 subdir = python
39 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
55 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
56 $(top_srcdir)/build-aux/depcomp
4057 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
4158 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
4259 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
88105 AM_V_lt = $(am__v_lt_@AM_V@)
89106 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
90107 am__v_lt_0 = --silent
108 am__v_lt_1 =
91109 libvirtglibmod_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
92110 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
93111 $(libvirtglibmod_la_CFLAGS) $(CFLAGS) \
94112 $(libvirtglibmod_la_LDFLAGS) $(LDFLAGS) -o $@
95113 @WITH_PYTHON_TRUE@am_libvirtglibmod_la_rpath = -rpath $(pythondir)
114 AM_V_P = $(am__v_P_@AM_V@)
115 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
116 am__v_P_0 = false
117 am__v_P_1 = :
118 AM_V_GEN = $(am__v_GEN_@AM_V@)
119 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
120 am__v_GEN_0 = @echo " GEN " $@;
121 am__v_GEN_1 =
122 AM_V_at = $(am__v_at_@AM_V@)
123 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
124 am__v_at_0 = @
125 am__v_at_1 =
96126 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
97127 depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
98128 am__depfiles_maybe = depfiles
105135 $(AM_CFLAGS) $(CFLAGS)
106136 AM_V_CC = $(am__v_CC_@AM_V@)
107137 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
108 am__v_CC_0 = @echo " CC " $@;
109 AM_V_at = $(am__v_at_@AM_V@)
110 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
111 am__v_at_0 = @
138 am__v_CC_0 = @echo " CC " $@;
139 am__v_CC_1 =
112140 CCLD = $(CC)
113141 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
114142 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
115143 $(AM_LDFLAGS) $(LDFLAGS) -o $@
116144 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
117145 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
118 am__v_CCLD_0 = @echo " CCLD " $@;
119 AM_V_GEN = $(am__v_GEN_@AM_V@)
120 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
121 am__v_GEN_0 = @echo " GEN " $@;
146 am__v_CCLD_0 = @echo " CCLD " $@;
147 am__v_CCLD_1 =
122148 SOURCES = $(libvirtglibmod_la_SOURCES)
123149 DIST_SOURCES = $(am__libvirtglibmod_la_SOURCES_DIST)
150 am__can_run_installinfo = \
151 case $$AM_UPDATE_INFO_DIR in \
152 n|no|NO) false;; \
153 *) (install-info --version) >/dev/null 2>&1;; \
154 esac
124155 ETAGS = etags
125156 CTAGS = ctags
126157 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
337368 $(am__aclocal_m4_deps):
338369 install-pythonLTLIBRARIES: $(python_LTLIBRARIES)
339370 @$(NORMAL_INSTALL)
340 test -z "$(pythondir)" || $(MKDIR_P) "$(DESTDIR)$(pythondir)"
341371 @list='$(python_LTLIBRARIES)'; test -n "$(pythondir)" || list=; \
342372 list2=; for p in $$list; do \
343373 if test -f $$p; then \
345375 else :; fi; \
346376 done; \
347377 test -z "$$list2" || { \
378 echo " $(MKDIR_P) '$(DESTDIR)$(pythondir)'"; \
379 $(MKDIR_P) "$(DESTDIR)$(pythondir)" || exit 1; \
348380 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pythondir)'"; \
349381 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pythondir)"; \
350382 }
360392
361393 clean-pythonLTLIBRARIES:
362394 -test -z "$(python_LTLIBRARIES)" || rm -f $(python_LTLIBRARIES)
363 @list='$(python_LTLIBRARIES)'; for p in $$list; do \
364 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
365 test "$$dir" != "$$p" || dir=.; \
366 echo "rm -f \"$${dir}/so_locations\""; \
367 rm -f "$${dir}/so_locations"; \
368 done
395 @list='$(python_LTLIBRARIES)'; \
396 locs=`for p in $$list; do echo $$p; done | \
397 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
398 sort -u`; \
399 test -z "$$locs" || { \
400 echo rm -f $${locs}; \
401 rm -f $${locs}; \
402 }
369403 libvirtglibmod.la: $(libvirtglibmod_la_OBJECTS) $(libvirtglibmod_la_DEPENDENCIES) $(EXTRA_libvirtglibmod_la_DEPENDENCIES)
370404 $(AM_V_CCLD)$(libvirtglibmod_la_LINK) $(am_libvirtglibmod_la_rpath) $(libvirtglibmod_la_OBJECTS) $(libvirtglibmod_la_LIBADD) $(LIBS)
371405
459493 here=`$(am__cd) $(top_builddir) && pwd` \
460494 && $(am__cd) $(top_srcdir) \
461495 && gtags -i $(GTAGS_ARGS) "$$here"
496
497 cscopelist: $(HEADERS) $(SOURCES) $(LISP)
498 list='$(SOURCES) $(HEADERS) $(LISP)'; \
499 case "$(srcdir)" in \
500 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
501 *) sdir=$(subdir)/$(srcdir) ;; \
502 esac; \
503 for i in $$list; do \
504 if test -f "$$i"; then \
505 echo "$(subdir)/$$i"; \
506 else \
507 echo "$$sdir/$$i"; \
508 fi; \
509 done >> $(top_builddir)/cscope.files
462510
463511 distclean-tags:
464512 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
606654 .MAKE: install-am install-strip
607655
608656 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
609 clean-libtool clean-pythonLTLIBRARIES ctags distclean \
610 distclean-compile distclean-generic distclean-libtool \
611 distclean-tags distdir dvi dvi-am html html-am info info-am \
612 install install-am install-data install-data-am \
613 install-data-local install-dvi install-dvi-am install-exec \
614 install-exec-am install-html install-html-am install-info \
615 install-info-am install-man install-pdf install-pdf-am \
616 install-ps install-ps-am install-pythonLTLIBRARIES \
617 install-strip installcheck installcheck-am installdirs \
618 maintainer-clean maintainer-clean-generic mostlyclean \
619 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
620 pdf pdf-am ps ps-am tags uninstall uninstall-am \
621 uninstall-local uninstall-pythonLTLIBRARIES
657 clean-libtool clean-pythonLTLIBRARIES cscopelist ctags \
658 distclean distclean-compile distclean-generic \
659 distclean-libtool distclean-tags distdir dvi dvi-am html \
660 html-am info info-am install install-am install-data \
661 install-data-am install-data-local install-dvi install-dvi-am \
662 install-exec install-exec-am install-html install-html-am \
663 install-info install-info-am install-man install-pdf \
664 install-pdf-am install-ps install-ps-am \
665 install-pythonLTLIBRARIES install-strip installcheck \
666 installcheck-am installdirs maintainer-clean \
667 maintainer-clean-generic mostlyclean mostlyclean-compile \
668 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
669 tags uninstall uninstall-am uninstall-local \
670 uninstall-pythonLTLIBRARIES
622671
623672 @WITH_PYTHON_TRUE@ $(CYGWIN_EXTRA_LIBADD) $(CYGWIN_EXTRA_PYTHON_LIBADD)
624673
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
0 # Makefile.in generated by automake 1.12.2 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1514 @SET_MAKE@
1615
1716 VPATH = @srcdir@
17 am__make_dryrun = \
18 { \
19 am__dry=no; \
20 case $$MAKEFLAGS in \
21 *\\[\ \ ]*) \
22 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
23 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
24 *) \
25 for am__flg in $$MAKEFLAGS; do \
26 case $$am__flg in \
27 *=*|--*) ;; \
28 *n*) am__dry=yes; break;; \
29 esac; \
30 done;; \
31 esac; \
32 test $$am__dry = yes; \
33 }
1834 pkgdatadir = $(datadir)/@PACKAGE@
1935 pkgincludedir = $(includedir)/@PACKAGE@
2036 pkglibdir = $(libdir)/@PACKAGE@
4864 CONFIG_HEADER = $(top_builddir)/config.h
4965 CONFIG_CLEAN_FILES =
5066 CONFIG_CLEAN_VPATH_FILES =
67 AM_V_P = $(am__v_P_@AM_V@)
68 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
69 am__v_P_0 = false
70 am__v_P_1 = :
5171 AM_V_GEN = $(am__v_GEN_@AM_V@)
5272 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
53 am__v_GEN_0 = @echo " GEN " $@;
73 am__v_GEN_0 = @echo " GEN " $@;
74 am__v_GEN_1 =
5475 AM_V_at = $(am__v_at_@AM_V@)
5576 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
5677 am__v_at_0 = @
78 am__v_at_1 =
5779 SOURCES =
5880 DIST_SOURCES =
81 am__can_run_installinfo = \
82 case $$AM_UPDATE_INFO_DIR in \
83 n|no|NO) false;; \
84 *) (install-info --version) >/dev/null 2>&1;; \
85 esac
5986 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
6087 am__vpath_adj = case $$p in \
6188 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
305332 -rm -rf .libs _libs
306333 install-vapiDATA: $(vapi_DATA)
307334 @$(NORMAL_INSTALL)
308 test -z "$(vapidir)" || $(MKDIR_P) "$(DESTDIR)$(vapidir)"
309335 @list='$(vapi_DATA)'; test -n "$(vapidir)" || list=; \
336 if test -n "$$list"; then \
337 echo " $(MKDIR_P) '$(DESTDIR)$(vapidir)'"; \
338 $(MKDIR_P) "$(DESTDIR)$(vapidir)" || exit 1; \
339 fi; \
310340 for p in $$list; do \
311341 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
312342 echo "$$d$$p"; \
326356
327357 ctags: CTAGS
328358 CTAGS:
359
360 cscope cscopelist:
329361
330362
331363 distdir: $(DISTFILES)