New upstream version 0.1.2
Guido Günther
11 years ago
12 | 12 | Guido Günther <agx@sigxcpu.org> |
13 | 13 | Nirbheek Chauhan <nirbheek@gentoo.org> |
14 | 14 | Michal Privoznik <mprivozn@redhat.com> |
15 | Jovanka Gulicoska <jovanka.gulicoska@gmail.com> | |
15 | 16 | |
16 | 17 | ... 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 | ||
0 | 347 | 2012-04-27 Daniel P. Berrange <berrange@redhat.com> |
1 | 348 | |
2 | 349 | Prep NEWS for 0.0.8 release |
0 | 0 | Installation Instructions |
1 | 1 | ************************* |
2 | 2 | |
3 | Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation, | |
3 | Copyright (C) 1994-1996, 1999-2002, 2004-2012 Free Software Foundation, | |
4 | 4 | Inc. |
5 | 5 | |
6 | 6 | Copying and distribution of this file, with or without modification, |
308 | 308 | overridden in the site shell script). |
309 | 309 | |
310 | 310 | 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 | |
314 | 315 | |
315 | 316 | `configure' Invocation |
316 | 317 | ====================== |
366 | 367 | |
367 | 368 | `configure' also accepts some other, not widely useful, options. Run |
368 | 369 | `configure --help' for more details. |
369 |
6 | 6 | pkgconfig_DATA = libvirt-glib-1.0.pc libvirt-gconfig-1.0.pc libvirt-gobject-1.0.pc |
7 | 7 | |
8 | 8 | EXTRA_DIST = $(PACKAGE).spec \ |
9 | $(PACKAGE).spec.in \ | |
10 | mingw-$(PACKAGE).spec.in \ | |
9 | 11 | $(pkgconfig_DATA:%.pc=%.pc.in) \ |
10 | 12 | GNUmakefile \ |
11 | 13 | maint.mk \ |
12 | cfg.mk | |
14 | cfg.mk \ | |
15 | $(NULL) | |
13 | 16 | |
14 | 17 | DISTCLEAN_FILES = $(PACKAGE).spec $(pkgconfig_DATA) |
15 | 18 |
0 | # Makefile.in generated by automake 1.11.3 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.12.2 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
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 | ||
6 | 5 | # This Makefile.in is free software; the Free Software Foundation |
7 | 6 | # gives unlimited permission to copy and/or distribute it, |
8 | 7 | # with or without modifications, as long as this notice is preserved. |
15 | 14 | @SET_MAKE@ |
16 | 15 | |
17 | 16 | 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 | } | |
18 | 34 | pkgdatadir = $(datadir)/@PACKAGE@ |
19 | 35 | pkgincludedir = $(includedir)/@PACKAGE@ |
20 | 36 | pkglibdir = $(libdir)/@PACKAGE@ |
40 | 56 | $(srcdir)/libvirt-glib-1.0.pc.in \ |
41 | 57 | $(srcdir)/libvirt-glib.spec.in \ |
42 | 58 | $(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 \ | |
44 | 66 | 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 \ | |
46 | 68 | build-aux/install-sh build-aux/ltmain.sh build-aux/missing |
47 | 69 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
48 | 70 | am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ |
59 | 81 | CONFIG_HEADER = config.h |
60 | 82 | CONFIG_CLEAN_FILES = libvirt-glib-1.0.pc libvirt-gconfig-1.0.pc \ |
61 | 83 | libvirt-gobject-1.0.pc libvirt-glib.spec \ |
62 | mingw32-libvirt-glib.spec | |
84 | mingw-libvirt-glib.spec | |
63 | 85 | 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 = : | |
64 | 90 | AM_V_GEN = $(am__v_GEN_@AM_V@) |
65 | 91 | 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 = | |
67 | 94 | AM_V_at = $(am__v_at_@AM_V@) |
68 | 95 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) |
69 | 96 | am__v_at_0 = @ |
97 | am__v_at_1 = | |
70 | 98 | SOURCES = |
71 | 99 | DIST_SOURCES = |
72 | 100 | RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ |
76 | 104 | install-pdf-recursive install-ps-recursive install-recursive \ |
77 | 105 | installcheck-recursive installdirs-recursive pdf-recursive \ |
78 | 106 | 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 | |
79 | 112 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; |
80 | 113 | am__vpath_adj = case $$p in \ |
81 | 114 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ |
109 | 142 | distclean-recursive maintainer-clean-recursive |
110 | 143 | AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ |
111 | 144 | $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ |
112 | distdir dist dist-all distcheck | |
145 | cscope distdir dist dist-all distcheck | |
113 | 146 | ETAGS = etags |
114 | 147 | CTAGS = ctags |
148 | CSCOPE = cscope | |
115 | 149 | DIST_SUBDIRS = $(SUBDIRS) |
116 | 150 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
117 | 151 | distdir = $(PACKAGE)-$(VERSION) |
122 | 156 | && rm -rf "$(distdir)" \ |
123 | 157 | || { sleep 5 && rm -rf "$(distdir)"; }; \ |
124 | 158 | else :; fi |
159 | am__post_remove_distdir = $(am__remove_distdir) | |
125 | 160 | am__relativize = \ |
126 | 161 | dir0=`pwd`; \ |
127 | 162 | sed_first='s,^\([^/]*\)/.*$$,\1,'; \ |
149 | 184 | reldir="$$dir2" |
150 | 185 | DIST_ARCHIVES = $(distdir).tar.gz |
151 | 186 | GZIP_ENV = --best |
187 | DIST_TARGETS = dist-gzip | |
152 | 188 | distuninstallcheck_listfiles = find . -type f -print |
153 | 189 | am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ |
154 | 190 | | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' |
320 | 356 | pkgconfigdir = $(libdir)/pkgconfig |
321 | 357 | pkgconfig_DATA = libvirt-glib-1.0.pc libvirt-gconfig-1.0.pc libvirt-gobject-1.0.pc |
322 | 358 | EXTRA_DIST = $(PACKAGE).spec \ |
359 | $(PACKAGE).spec.in \ | |
360 | mingw-$(PACKAGE).spec.in \ | |
323 | 361 | $(pkgconfig_DATA:%.pc=%.pc.in) \ |
324 | 362 | GNUmakefile \ |
325 | 363 | maint.mk \ |
326 | cfg.mk | |
364 | cfg.mk \ | |
365 | $(NULL) | |
327 | 366 | |
328 | 367 | DISTCLEAN_FILES = $(PACKAGE).spec $(pkgconfig_DATA) |
329 | 368 | DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc=yes --enable-introspection=yes |
388 | 427 | cd $(top_builddir) && $(SHELL) ./config.status $@ |
389 | 428 | libvirt-glib.spec: $(top_builddir)/config.status $(srcdir)/libvirt-glib.spec.in |
390 | 429 | 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 | |
392 | 431 | cd $(top_builddir) && $(SHELL) ./config.status $@ |
393 | 432 | |
394 | 433 | mostlyclean-libtool: |
401 | 440 | -rm -f libtool config.lt |
402 | 441 | install-pkgconfigDATA: $(pkgconfig_DATA) |
403 | 442 | @$(NORMAL_INSTALL) |
404 | test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" | |
405 | 443 | @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; \ | |
406 | 448 | for p in $$list; do \ |
407 | 449 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ |
408 | 450 | echo "$$d$$p"; \ |
419 | 461 | dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir) |
420 | 462 | |
421 | 463 | # 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): | |
428 | 470 | @fail= failcom='exit 1'; \ |
429 | 471 | for f in x $$MAKEFLAGS; do \ |
430 | 472 | case $$f in \ |
434 | 476 | done; \ |
435 | 477 | dot_seen=no; \ |
436 | 478 | 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 \ | |
438 | 484 | echo "Making $$target in $$subdir"; \ |
439 | 485 | if test "$$subdir" = "."; then \ |
440 | 486 | dot_seen=yes; \ |
448 | 494 | if test "$$dot_seen" = "no"; then \ |
449 | 495 | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ |
450 | 496 | 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" | |
482 | 497 | tags-recursive: |
483 | 498 | list='$(SUBDIRS)'; for subdir in $$list; do \ |
484 | 499 | test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ |
486 | 501 | ctags-recursive: |
487 | 502 | list='$(SUBDIRS)'; for subdir in $$list; do \ |
488 | 503 | 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); \ | |
489 | 508 | done |
490 | 509 | |
491 | 510 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) |
550 | 569 | && $(am__cd) $(top_srcdir) \ |
551 | 570 | && gtags -i $(GTAGS_ARGS) "$$here" |
552 | 571 | |
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 | ||
553 | 595 | distclean-tags: |
554 | 596 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
597 | -rm -f cscope.out cscope.in.out cscope.po.out cscope.files | |
555 | 598 | |
556 | 599 | distdir: $(DISTFILES) |
557 | 600 | $(am__remove_distdir) |
587 | 630 | done |
588 | 631 | @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ |
589 | 632 | 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; \ | |
597 | 637 | dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ |
598 | 638 | $(am__relativize); \ |
599 | 639 | new_distdir=$$reldir; \ |
625 | 665 | || chmod -R a+r "$(distdir)" |
626 | 666 | dist-gzip: distdir |
627 | 667 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz |
628 | $(am__remove_distdir) | |
668 | $(am__post_remove_distdir) | |
629 | 669 | |
630 | 670 | dist-bzip2: distdir |
631 | 671 | tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 |
632 | $(am__remove_distdir) | |
672 | $(am__post_remove_distdir) | |
633 | 673 | |
634 | 674 | dist-lzip: distdir |
635 | 675 | 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) | |
641 | 677 | |
642 | 678 | dist-xz: distdir |
643 | 679 | tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz |
644 | $(am__remove_distdir) | |
680 | $(am__post_remove_distdir) | |
645 | 681 | |
646 | 682 | dist-tarZ: distdir |
647 | 683 | tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z |
648 | $(am__remove_distdir) | |
684 | $(am__post_remove_distdir) | |
649 | 685 | |
650 | 686 | dist-shar: distdir |
651 | 687 | shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz |
652 | $(am__remove_distdir) | |
688 | $(am__post_remove_distdir) | |
653 | 689 | |
654 | 690 | dist-zip: distdir |
655 | 691 | -rm -f $(distdir).zip |
656 | 692 | 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) | |
662 | 698 | |
663 | 699 | # This target untars the dist file and tries a VPATH configuration. Then |
664 | 700 | # it guarantees that the distribution is self-contained by making another |
669 | 705 | GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ |
670 | 706 | *.tar.bz2*) \ |
671 | 707 | bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ |
672 | *.tar.lzma*) \ | |
673 | lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ | |
674 | 708 | *.tar.lz*) \ |
675 | 709 | lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ |
676 | 710 | *.tar.xz*) \ |
682 | 716 | *.zip*) \ |
683 | 717 | unzip $(distdir).zip ;;\ |
684 | 718 | esac |
685 | chmod -R a-w $(distdir); chmod a+w $(distdir) | |
719 | chmod -R a-w $(distdir); chmod u+w $(distdir) | |
686 | 720 | mkdir $(distdir)/_build |
687 | 721 | mkdir $(distdir)/_inst |
688 | 722 | chmod a-w $(distdir) |
716 | 750 | && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ |
717 | 751 | && cd "$$am__cwd" \ |
718 | 752 | || exit 1 |
719 | $(am__remove_distdir) | |
753 | $(am__post_remove_distdir) | |
720 | 754 | @(echo "$(distdir) archives ready for distribution: "; \ |
721 | 755 | list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ |
722 | 756 | sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' |
855 | 889 | uninstall-am: uninstall-pkgconfigDATA |
856 | 890 | |
857 | 891 | .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 | |
859 | 894 | |
860 | 895 | .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 \ | |
864 | 900 | dist-xz dist-zip distcheck distclean distclean-generic \ |
865 | 901 | distclean-hdr distclean-libtool distclean-tags distcleancheck \ |
866 | 902 | distdir distuninstallcheck dvi dvi-am html html-am info \ |
0 | 0 | libvirt-glib News |
1 | 1 | ================= |
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 | |
2 | 43 | |
3 | 44 | 0.0.8 - Apr 27, 2012 |
4 | 45 | ==================== |
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 | ||
5 | 4 | # This file is free software; the Free Software Foundation |
6 | 5 | # gives unlimited permission to copy and/or distribute it, |
7 | 6 | # with or without modifications, as long as this notice is preserved. |
17 | 16 | [m4_warning([this file was generated for autoconf 2.68. |
18 | 17 | You have another version of autoconf. It may work, but is not guaranteed to. |
19 | 18 | 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'.])]) | |
21 | 20 | |
22 | 21 | dnl -*- mode: autoconf -*- |
23 | 22 | |
245 | 244 | fi[]dnl |
246 | 245 | ])# PKG_CHECK_MODULES |
247 | 246 | |
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 | |
256 | 254 | |
257 | 255 | # AM_AUTOMAKE_VERSION(VERSION) |
258 | 256 | # ---------------------------- |
260 | 258 | # generated from the m4 files accompanying Automake X.Y. |
261 | 259 | # (This private macro should not be called outside this file.) |
262 | 260 | AC_DEFUN([AM_AUTOMAKE_VERSION], |
263 | [am__api_version='1.11' | |
261 | [am__api_version='1.12' | |
264 | 262 | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
265 | 263 | 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], [], | |
267 | 265 | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
268 | 266 | ]) |
269 | 267 | |
279 | 277 | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
280 | 278 | # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. |
281 | 279 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
282 | [AM_AUTOMAKE_VERSION([1.11.3])dnl | |
280 | [AM_AUTOMAKE_VERSION([1.12.2])dnl | |
283 | 281 | m4_ifndef([AC_AUTOCONF_VERSION], |
284 | 282 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
285 | 283 | _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) |
286 | 284 | |
287 | 285 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- |
288 | 286 | |
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 | |
296 | 294 | |
297 | 295 | # 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/../..'. | |
300 | 298 | # |
301 | 299 | # Of course, Automake must honor this variable whenever it calls a |
302 | 300 | # tool from the auxiliary directory. The problem is that $srcdir (and |
315 | 313 | # |
316 | 314 | # The reason of the latter failure is that $top_srcdir and $ac_aux_dir |
317 | 315 | # 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 | |
319 | 317 | # start a VPATH build or use an absolute $srcdir. |
320 | 318 | # |
321 | 319 | # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, |
341 | 339 | |
342 | 340 | # AM_CONDITIONAL -*- Autoconf -*- |
343 | 341 | |
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 | |
352 | 349 | |
353 | 350 | # AM_CONDITIONAL(NAME, SHELL-CONDITION) |
354 | 351 | # ------------------------------------- |
355 | 352 | # Define a conditional. |
356 | 353 | 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 | |
360 | 357 | AC_SUBST([$1_TRUE])dnl |
361 | 358 | AC_SUBST([$1_FALSE])dnl |
362 | 359 | _AM_SUBST_NOTMAKE([$1_TRUE])dnl |
375 | 372 | Usually this means the macro was only invoked conditionally.]]) |
376 | 373 | fi])]) |
377 | 374 | |
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 | |
388 | 384 | # written in clear, in which case automake, when reading aclocal.m4, |
389 | 385 | # will think it sees a *use*, and therefore will trigger all it's |
390 | 386 | # C support machinery. Also note that it means that autoscan, seeing |
394 | 390 | # _AM_DEPENDENCIES(NAME) |
395 | 391 | # ---------------------- |
396 | 392 | # 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". | |
398 | 394 | # We try a few techniques and use that to set a single cache variable. |
399 | 395 | # |
400 | 396 | # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was |
407 | 403 | AC_REQUIRE([AM_MAKE_INCLUDE])dnl |
408 | 404 | AC_REQUIRE([AM_DEP_TRACK])dnl |
409 | 405 | |
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=]) | |
416 | 413 | |
417 | 414 | AC_CACHE_CHECK([dependency style of $depcc], |
418 | 415 | [am_cv_$1_dependencies_compiler_type], |
420 | 417 | # We make a subdir and do the tests there. Otherwise we can end up |
421 | 418 | # making bogus files that we don't know about and never remove. For |
422 | 419 | # 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". | |
425 | 422 | rm -rf conftest.dir |
426 | 423 | mkdir conftest.dir |
427 | 424 | # Copy depcomp to subdir because otherwise we won't find it if we're |
461 | 458 | : > sub/conftest.c |
462 | 459 | for i in 1 2 3 4 5 6; do |
463 | 460 | 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 | |
467 | 464 | done |
468 | 465 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
469 | 466 | |
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" | |
471 | 468 | # 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. | |
474 | 471 | am__obj=sub/conftest.${OBJEXT-o} |
475 | 472 | am__minus_obj="-o $am__obj" |
476 | 473 | case $depmode in |
479 | 476 | test "$am__universal" = false || continue |
480 | 477 | ;; |
481 | 478 | 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. | |
484 | 481 | if test "x$enable_dependency_tracking" = xyes; then |
485 | 482 | continue |
486 | 483 | else |
488 | 485 | fi |
489 | 486 | ;; |
490 | 487 | 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 | |
492 | 489 | # not run yet. These depmodes are late enough in the game, and |
493 | 490 | # so weak that their functioning should not be impacted. |
494 | 491 | am__obj=conftest.${OBJEXT-o} |
536 | 533 | # AM_SET_DEPDIR |
537 | 534 | # ------------- |
538 | 535 | # 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. | |
540 | 537 | AC_DEFUN([AM_SET_DEPDIR], |
541 | 538 | [AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
542 | 539 | AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl |
546 | 543 | # AM_DEP_TRACK |
547 | 544 | # ------------ |
548 | 545 | 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])]) | |
552 | 553 | if test "x$enable_dependency_tracking" != xno; then |
553 | 554 | am_depcomp="$ac_aux_dir/depcomp" |
554 | 555 | AMDEPBACKSLASH='\' |
563 | 564 | |
564 | 565 | # Generate code to set up dependency tracking. -*- Autoconf -*- |
565 | 566 | |
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 | |
574 | 574 | |
575 | 575 | # _AM_OUTPUT_DEPENDENCY_COMMANDS |
576 | 576 | # ------------------------------ |
589 | 589 | # Strip MF so we end up with the name of the file. |
590 | 590 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
591 | 591 | # 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 | |
593 | 593 | # some people rename them; so instead we look at the file content. |
594 | 594 | # Grep'ing the first line is not enough: some people post-process |
595 | 595 | # each Makefile.in and add a new line on top of each file to say so. |
601 | 601 | continue |
602 | 602 | fi |
603 | 603 | # Extract the definition of DEPDIR, am__include, and am__quote |
604 | # from the Makefile without running `make'. | |
604 | # from the Makefile without running 'make'. | |
605 | 605 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
606 | 606 | test -z "$DEPDIR" && continue |
607 | 607 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
608 | 608 | test -z "am__include" && continue |
609 | 609 | 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"` | |
612 | 610 | # Find all dependency output files, they are included files with |
613 | 611 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
614 | 612 | # simplest approach to changing $(DEPDIR) to its actual value in the |
615 | 613 | # expansion. |
616 | 614 | for file in `sed -n " |
617 | 615 | 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 | |
619 | 617 | # Make sure the directory exists. |
620 | 618 | test -f "$dirpart/$file" && continue |
621 | 619 | fdir=`AS_DIRNAME(["$file"])` |
633 | 631 | # This macro should only be invoked once -- use via AC_REQUIRE. |
634 | 632 | # |
635 | 633 | # 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 | |
637 | 635 | # need in order to bootstrap the dependency handling code. |
638 | 636 | AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], |
639 | 637 | [AC_CONFIG_COMMANDS([depfiles], |
641 | 639 | [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) |
642 | 640 | ]) |
643 | 641 | |
644 | # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 | |
645 | # Free Software Foundation, Inc. | |
642 | # Copyright (C) 1996-2012 Free Software Foundation, Inc. | |
646 | 643 | # |
647 | 644 | # This file is free software; the Free Software Foundation |
648 | 645 | # gives unlimited permission to copy and/or distribute it, |
655 | 652 | |
656 | 653 | # Do all the work for Automake. -*- Autoconf -*- |
657 | 654 | |
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 | |
666 | 662 | |
667 | 663 | # This macro actually does too much. Some checks are only needed if |
668 | 664 | # your package does certain things. But this isn't really a big deal. |
708 | 704 | # Define the identity of the package. |
709 | 705 | dnl Distinguish between old-style and new-style calls. |
710 | 706 | 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 | |
712 | 711 | AC_SUBST([PACKAGE], [$1])dnl |
713 | 712 | AC_SUBST([VERSION], [$2])], |
714 | 713 | [_AM_SET_OPTIONS([$1])dnl |
715 | 714 | 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],, | |
717 | 718 | [m4_fatal([AC_INIT should be called with package and version arguments])])dnl |
718 | 719 | AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl |
719 | 720 | AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl |
720 | 721 | |
721 | 722 | _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 | |
724 | 725 | |
725 | 726 | # Some tools Automake needs. |
726 | 727 | AC_REQUIRE([AM_SANITY_CHECK])dnl |
727 | 728 | 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]) | |
733 | 734 | AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
734 | 735 | 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)']) | |
736 | 742 | # We need awk for the "check" target. The system "awk" is bad on |
737 | 743 | # some platforms. |
738 | 744 | AC_REQUIRE([AC_PROG_AWK])dnl |
743 | 749 | [_AM_PROG_TAR([v7])])]) |
744 | 750 | _AM_IF_OPTION([no-dependencies],, |
745 | 751 | [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 | |
749 | 755 | 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 | |
753 | 759 | 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 | |
757 | 770 | ]) |
758 | 771 | _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 | |
761 | 774 | dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. |
762 | 775 | AC_CONFIG_COMMANDS_PRE(dnl |
763 | 776 | [m4_provide_if([_AM_COMPILER_EXEEXT], |
764 | 777 | [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl |
765 | 778 | ]) |
766 | 779 | |
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 | |
768 | 781 | dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further |
769 | 782 | dnl mangled by Autoconf and run in a shell conditional statement. |
770 | 783 | m4_define([_AC_COMPILER_EXEEXT], |
792 | 805 | done |
793 | 806 | echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) |
794 | 807 | |
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 | |
803 | 815 | |
804 | 816 | # AM_PROG_INSTALL_SH |
805 | 817 | # ------------------ |
814 | 826 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
815 | 827 | esac |
816 | 828 | 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. | |
820 | 832 | # |
821 | 833 | # This file is free software; the Free Software Foundation |
822 | 834 | # gives unlimited permission to copy and/or distribute it, |
839 | 851 | |
840 | 852 | # Check to see how 'make' treats includes. -*- Autoconf -*- |
841 | 853 | |
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 | |
849 | 861 | |
850 | 862 | # AM_MAKE_INCLUDE() |
851 | 863 | # ----------------- |
864 | 876 | _am_result=none |
865 | 877 | # First try GNU make style include. |
866 | 878 | echo "include confinc" > confmf |
867 | # Ignore all kinds of additional output from `make'. | |
879 | # Ignore all kinds of additional output from 'make'. | |
868 | 880 | case `$am_make -s -f confmf 2> /dev/null` in #( |
869 | 881 | *the\ am__doit\ target*) |
870 | 882 | am__include=include |
889 | 901 | rm -f confinc confmf |
890 | 902 | ]) |
891 | 903 | |
892 | # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008 | |
893 | # Free Software Foundation, Inc. | |
904 | # Copyright (C) 1999-2012 Free Software Foundation, Inc. | |
894 | 905 | # |
895 | 906 | # This file is free software; the Free Software Foundation |
896 | 907 | # gives unlimited permission to copy and/or distribute it, |
926 | 937 | |
927 | 938 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
928 | 939 | |
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 | |
937 | 947 | |
938 | 948 | # AM_MISSING_PROG(NAME, PROGRAM) |
939 | 949 | # ------------------------------ |
963 | 973 | am_missing_run="$MISSING --run " |
964 | 974 | else |
965 | 975 | 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 | |
997 | 978 | ]) |
998 | 979 | |
999 | 980 | # Helper functions for option handling. -*- Autoconf -*- |
1000 | 981 | |
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 | |
1009 | 989 | |
1010 | 990 | # _AM_MANGLE_OPTION(NAME) |
1011 | 991 | # ----------------------- |
1016 | 996 | # -------------------- |
1017 | 997 | # Set option NAME. Presently that only means defining a flag for this option. |
1018 | 998 | AC_DEFUN([_AM_SET_OPTION], |
1019 | [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) | |
999 | [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) | |
1020 | 1000 | |
1021 | 1001 | # _AM_SET_OPTIONS(OPTIONS) |
1022 | 1002 | # ------------------------ |
1032 | 1012 | |
1033 | 1013 | # Check to make sure that the build environment is sane. -*- Autoconf -*- |
1034 | 1014 | |
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 | |
1043 | 1022 | |
1044 | 1023 | # AM_SANITY_CHECK |
1045 | 1024 | # --------------- |
1046 | 1025 | AC_DEFUN([AM_SANITY_CHECK], |
1047 | 1026 | [AC_MSG_CHECKING([whether build environment is sane]) |
1048 | # Just in case | |
1049 | sleep 1 | |
1050 | echo timestamp > conftest.file | |
1051 | 1027 | # Reject unsafe characters in $srcdir or the absolute working directory |
1052 | 1028 | # name. Accept space and tab only in the latter. |
1053 | 1029 | am_lf=' |
1058 | 1034 | esac |
1059 | 1035 | case $srcdir in |
1060 | 1036 | *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) |
1061 | AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; | |
1037 | AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; | |
1062 | 1038 | esac |
1063 | 1039 | |
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 | |
1065 | 1041 | # arguments. Must try -L first in case configure is actually a |
1066 | 1042 | # symlink; some systems play weird games with the mod time of symlinks |
1067 | 1043 | # (eg FreeBSD returns the mod time of the symlink's containing |
1068 | 1044 | # directory). |
1069 | 1045 | 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 | |
1087 | 1071 | test "$[2]" = conftest.file |
1088 | 1072 | ) |
1089 | 1073 | then |
1093 | 1077 | AC_MSG_ERROR([newly created file is older than distributed files! |
1094 | 1078 | Check your system clock]) |
1095 | 1079 | 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 | |
1105 | 1105 | |
1106 | 1106 | # AM_SILENT_RULES([DEFAULT]) |
1107 | 1107 | # -------------------------- |
1108 | 1108 | # 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). | |
1110 | 1110 | 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]);; | |
1118 | 1123 | esac |
1119 | 1124 | 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) | |
1121 | 1126 | dnl do not support nested variable expansions. |
1122 | 1127 | dnl See automake bug#9928 and bug#10237. |
1123 | 1128 | am_make=${MAKE-make} |
1135 | 1140 | am_cv_make_support_nested_variables=no |
1136 | 1141 | fi]) |
1137 | 1142 | 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. | |
1139 | 1144 | AM_V='$(V)' |
1140 | 1145 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
1141 | 1146 | else |
1152 | 1157 | _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl |
1153 | 1158 | ]) |
1154 | 1159 | |
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 | |
1162 | 1167 | |
1163 | 1168 | # AM_PROG_INSTALL_STRIP |
1164 | 1169 | # --------------------- |
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 | |
1166 | 1171 | # specify the program used to strip binaries. This is especially |
1167 | 1172 | # annoying in cross-compiling environments, where the build's strip |
1168 | 1173 | # is unlikely to handle the host's binaries. |
1169 | 1174 | # 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 | |
1171 | 1176 | # STRIPPROG with the value of the STRIP variable (set by the user). |
1172 | 1177 | AC_DEFUN([AM_PROG_INSTALL_STRIP], |
1173 | 1178 | [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 | |
1176 | 1181 | # 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'. | |
1179 | 1184 | if test "$cross_compiling" != no; then |
1180 | 1185 | AC_CHECK_TOOL([STRIP], [strip], :) |
1181 | 1186 | fi |
1182 | 1187 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
1183 | 1188 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
1184 | 1189 | |
1185 | # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc. | |
1190 | # Copyright (C) 2006-2012 Free Software Foundation, Inc. | |
1186 | 1191 | # |
1187 | 1192 | # This file is free software; the Free Software Foundation |
1188 | 1193 | # gives unlimited permission to copy and/or distribute it, |
1203 | 1208 | |
1204 | 1209 | # Check how to create a tarball. -*- Autoconf -*- |
1205 | 1210 | |
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 | |
1213 | 1218 | |
1214 | 1219 | # _AM_PROG_TAR(FORMAT) |
1215 | 1220 | # -------------------- |
1216 | 1221 | # 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'. | |
1218 | 1223 | # |
1219 | 1224 | # Substitute a variable $(am__tar) that is a command |
1220 | 1225 | # writing to stdout a FORMAT-tarball containing the directory |
1237 | 1242 | _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' |
1238 | 1243 | _am_tools=${am_cv_prog_tar_$1-$_am_tools} |
1239 | 1244 | # 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 '-'. | |
1241 | 1246 | for _am_tool in $_am_tools |
1242 | 1247 | do |
1243 | 1248 | case $_am_tool in |
0 | 0 | #! /bin/sh |
1 | 1 | # Wrapper for compilers which do not understand '-c -o'. |
2 | 2 | |
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. | |
7 | 6 | # Written by Tom Tromey <tromey@cygnus.com>. |
8 | 7 | # |
9 | 8 | # This program is free software; you can redistribute it and/or modify |
76 | 75 | esac |
77 | 76 | ;; |
78 | 77 | 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 | |
79 | 120 | } |
80 | 121 | |
81 | 122 | # func_cl_wrapper cl arg... |
108 | 149 | ;; |
109 | 150 | esac |
110 | 151 | ;; |
152 | -I) | |
153 | eat=1 | |
154 | func_file_conv "$2" mingw | |
155 | set x "$@" -I"$file" | |
156 | shift | |
157 | ;; | |
111 | 158 | -I*) |
112 | 159 | func_file_conv "${1#-I}" mingw |
113 | 160 | set x "$@" -I"$file" |
114 | 161 | shift |
115 | 162 | ;; |
163 | -l) | |
164 | eat=1 | |
165 | func_cl_dashl "$2" | |
166 | set x "$@" "$lib" | |
167 | shift | |
168 | ;; | |
116 | 169 | -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" | |
139 | 177 | ;; |
140 | 178 | -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}" | |
148 | 180 | ;; |
149 | 181 | -static) |
150 | 182 | shared=false |
3 | 3 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, |
4 | 4 | # 2011, 2012 Free Software Foundation, Inc. |
5 | 5 | |
6 | timestamp='2012-01-01' | |
6 | timestamp='2012-06-10' | |
7 | 7 | |
8 | 8 | # This file is free software; you can redistribute it and/or modify it |
9 | 9 | # under the terms of the GNU General Public License as published by |
16 | 16 | # General Public License for more details. |
17 | 17 | # |
18 | 18 | # 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/>. | |
22 | 20 | # |
23 | 21 | # As a special exception to the GNU General Public License, if you |
24 | 22 | # distribute this file as part of a program that contains a |
862 | 860 | i*86:Minix:*:*) |
863 | 861 | echo ${UNAME_MACHINE}-pc-minix |
864 | 862 | 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 ;; | |
865 | 870 | alpha:Linux:*:*) |
866 | 871 | case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
867 | 872 | EV5) UNAME_MACHINE=alphaev5 ;; |
1250 | 1255 | NEO-?:NONSTOP_KERNEL:*:*) |
1251 | 1256 | echo neo-tandem-nsk${UNAME_RELEASE} |
1252 | 1257 | exit ;; |
1253 | NSE-?:NONSTOP_KERNEL:*:*) | |
1258 | NSE-*:NONSTOP_KERNEL:*:*) | |
1254 | 1259 | echo nse-tandem-nsk${UNAME_RELEASE} |
1255 | 1260 | exit ;; |
1256 | 1261 | NSR-?:NONSTOP_KERNEL:*:*) |
1318 | 1323 | exit ;; |
1319 | 1324 | i*86:AROS:*:*) |
1320 | 1325 | echo ${UNAME_MACHINE}-pc-aros |
1326 | exit ;; | |
1327 | x86_64:VMkernel:*:*) | |
1328 | echo ${UNAME_MACHINE}-unknown-esx | |
1321 | 1329 | exit ;; |
1322 | 1330 | esac |
1323 | 1331 |
3 | 3 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, |
4 | 4 | # 2011, 2012 Free Software Foundation, Inc. |
5 | 5 | |
6 | timestamp='2012-01-01' | |
6 | timestamp='2012-04-18' | |
7 | 7 | |
8 | 8 | # This file is (in principle) common to ALL GNU software. |
9 | 9 | # The presence of a machine in this file suggests that SOME GNU software |
20 | 20 | # GNU General Public License for more details. |
21 | 21 | # |
22 | 22 | # 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/>. | |
26 | 24 | # |
27 | 25 | # As a special exception to the GNU General Public License, if you |
28 | 26 | # distribute this file as part of a program that contains a |
131 | 129 | os=-$maybe_os |
132 | 130 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
133 | 131 | ;; |
132 | android-linux) | |
133 | os=-linux-android | |
134 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown | |
135 | ;; | |
134 | 136 | *) |
135 | 137 | basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
136 | 138 | if [ $basic_machine != $1 ] |
222 | 224 | -isc*) |
223 | 225 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
224 | 226 | ;; |
227 | -lynx*178) | |
228 | os=-lynxos178 | |
229 | ;; | |
230 | -lynx*5) | |
231 | os=-lynxos5 | |
232 | ;; | |
225 | 233 | -lynx*) |
226 | 234 | os=-lynxos |
227 | 235 | ;; |
246 | 254 | # Some are omitted here because they have special meanings below. |
247 | 255 | 1750a | 580 \ |
248 | 256 | | a29k \ |
257 | | aarch64 | aarch64_be \ | |
249 | 258 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
250 | 259 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
251 | 260 | | am33_2.0 \ |
318 | 327 | c6x) |
319 | 328 | basic_machine=tic6x-unknown |
320 | 329 | ;; |
321 | m6811 | m68hc11 | m6812 | m68hc12 | picochip) | |
330 | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip) | |
322 | 331 | basic_machine=$basic_machine-unknown |
323 | 332 | os=-none |
324 | 333 | ;; |
331 | 340 | strongarm | thumb | xscale) |
332 | 341 | basic_machine=arm-unknown |
333 | 342 | ;; |
334 | ||
343 | xgate) | |
344 | basic_machine=$basic_machine-unknown | |
345 | os=-none | |
346 | ;; | |
335 | 347 | xscaleeb) |
336 | 348 | basic_machine=armeb-unknown |
337 | 349 | ;; |
354 | 366 | # Recognize the basic CPU types with company name. |
355 | 367 | 580-* \ |
356 | 368 | | a29k-* \ |
369 | | aarch64-* | aarch64_be-* \ | |
357 | 370 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
358 | 371 | | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
359 | 372 | | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
1529 | 1542 | c4x-* | tic4x-*) |
1530 | 1543 | os=-coff |
1531 | 1544 | ;; |
1545 | hexagon-*) | |
1546 | os=-elf | |
1547 | ;; | |
1532 | 1548 | tic54x-*) |
1533 | 1549 | os=-coff |
1534 | 1550 | ;; |
0 | 0 | #! /bin/sh |
1 | 1 | # depcomp - compile a program generating dependencies as side-effects |
2 | 2 | |
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. | |
7 | 6 | |
8 | 7 | # This program is free software; you can redistribute it and/or modify |
9 | 8 | # it under the terms of the GNU General Public License as published by |
27 | 26 | |
28 | 27 | case $1 in |
29 | 28 | '') |
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 | |
31 | 30 | exit 1; |
32 | 31 | ;; |
33 | 32 | -h | --h*) |
39 | 38 | |
40 | 39 | Environment variables: |
41 | 40 | 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'. | |
44 | 43 | DEPDIR directory where to store dependencies. |
45 | 44 | depfile Dependency file to output. |
46 | 45 | tmpdepfile Temporary file to use when outputting dependencies. |
56 | 55 | ;; |
57 | 56 | esac |
58 | 57 | |
58 | # A tabulation character. | |
59 | tab=' ' | |
60 | # A newline character. | |
61 | nl=' | |
62 | ' | |
63 | ||
59 | 64 | if test -z "$depmode" || test -z "$source" || test -z "$object"; then |
60 | 65 | echo "depcomp: Variables source, object and depmode must be set" 1>&2 |
61 | 66 | exit 1 |
99 | 104 | # slashes to satisfy depend.m4 |
100 | 105 | cygpath_u='sed s,\\\\,/,g' |
101 | 106 | 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 | |
102 | 113 | fi |
103 | 114 | |
104 | 115 | case "$depmode" in |
155 | 166 | ## The second -e expression handles DOS-style file names with drive letters. |
156 | 167 | sed -e 's/^[^:]*: / /' \ |
157 | 168 | -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. | |
159 | 170 | ## The problem is that when a header file which appears in a .P file |
160 | 171 | ## is deleted, the dependency causes make to die (because there is |
161 | 172 | ## typically no way to rebuild the header). We avoid this by adding |
162 | 173 | ## dummy dependencies for each header file. Too bad gcc doesn't do |
163 | 174 | ## 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 | |
167 | 177 | ## that the space means something, we add a space to the output as |
168 | 178 | ## well. hp depmode also adds that space, but also prefixes the VPATH |
169 | 179 | ## to the object. Take care to not repeat it in the output. |
202 | 212 | # clever and replace this with sed code, as IRIX sed won't handle |
203 | 213 | # lines with more than a fixed number of characters (4096 in |
204 | 214 | # 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 | |
206 | 216 | # dependency line. |
207 | tr ' ' ' | |
208 | ' < "$tmpdepfile" \ | |
217 | tr ' ' "$nl" < "$tmpdepfile" \ | |
209 | 218 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ |
210 | tr ' | |
211 | ' ' ' >> "$depfile" | |
219 | tr "$nl" ' ' >> "$depfile" | |
212 | 220 | echo >> "$depfile" |
213 | 221 | |
214 | 222 | # The second pass generates a dummy entry for each header file. |
215 | tr ' ' ' | |
216 | ' < "$tmpdepfile" \ | |
223 | tr ' ' "$nl" < "$tmpdepfile" \ | |
217 | 224 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ |
218 | 225 | >> "$depfile" |
219 | 226 | else |
225 | 232 | rm -f "$tmpdepfile" |
226 | 233 | ;; |
227 | 234 | |
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 | ||
228 | 242 | aix) |
229 | 243 | # The C for AIX Compiler uses -M and outputs the dependencies |
230 | 244 | # 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 | |
232 | 246 | # start of each line; $object doesn't have directory information. |
233 | 247 | # Version 6 uses the directory in both cases. |
234 | 248 | dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` |
258 | 272 | test -f "$tmpdepfile" && break |
259 | 273 | done |
260 | 274 | 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'. | |
262 | 276 | # 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:'. | |
264 | 278 | 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" | |
267 | 280 | else |
268 | 281 | # The sourcefile does not contain any dependencies, so just |
269 | 282 | # store a dummy comment line, to avoid errors with the Makefile |
274 | 287 | ;; |
275 | 288 | |
276 | 289 | 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 | |
279 | 293 | # ICC 7.0 will fill foo.d with something like |
280 | 294 | # foo.o: sub/foo.c |
281 | 295 | # foo.o: sub/foo.h |
282 | # which is wrong. We want: | |
296 | # which is wrong. We want | |
283 | 297 | # sub/foo.o: sub/foo.c |
284 | 298 | # sub/foo.o: sub/foo.h |
285 | 299 | # sub/foo.c: |
286 | 300 | # sub/foo.h: |
287 | 301 | # ICC 7.1 will output |
288 | 302 | # foo.o: sub/foo.c sub/foo.h |
289 | # and will wrap long lines using \ : | |
303 | # and will wrap long lines using '\': | |
290 | 304 | # foo.o: sub/foo.c ... \ |
291 | 305 | # sub/foo.h ... \ |
292 | 306 | # ... |
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. | |
294 | 310 | "$@" -MD -MF "$tmpdepfile" |
295 | 311 | stat=$? |
296 | 312 | if test $stat -eq 0; then : |
299 | 315 | exit $stat |
300 | 316 | fi |
301 | 317 | 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 \'. | |
304 | 320 | # 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" | |
311 | 333 | rm -f "$tmpdepfile" |
312 | 334 | ;; |
313 | 335 | |
343 | 365 | done |
344 | 366 | if test -f "$tmpdepfile"; then |
345 | 367 | sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" |
346 | # Add `dependent.h:' lines. | |
368 | # Add 'dependent.h:' lines. | |
347 | 369 | sed -ne '2,${ |
348 | 370 | s/^ *// |
349 | 371 | s/ \\*$// |
358 | 380 | |
359 | 381 | tru64) |
360 | 382 | # 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'. | |
362 | 384 | # 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. | |
364 | 386 | # Subdirectories are respected. |
365 | 387 | dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` |
366 | 388 | test "x$dir" = "x$object" && dir= |
406 | 428 | done |
407 | 429 | if test -f "$tmpdepfile"; then |
408 | 430 | 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" | |
411 | 432 | else |
412 | 433 | echo "#dummy" > "$depfile" |
413 | 434 | fi |
442 | 463 | p |
443 | 464 | }' | $cygpath_u | sort -u | sed -n ' |
444 | 465 | s/ /\\ /g |
445 | s/\(.*\)/ \1 \\/p | |
466 | s/\(.*\)/'"$tab"'\1 \\/p | |
446 | 467 | s/.\(.*\) \\/\1:/ |
447 | 468 | H |
448 | 469 | $ { |
449 | s/.*/ / | |
470 | s/.*/'"$tab"'/ | |
450 | 471 | G |
451 | 472 | p |
452 | 473 | }' >> "$depfile" |
477 | 498 | shift |
478 | 499 | fi |
479 | 500 | |
480 | # Remove `-o $object'. | |
501 | # Remove '-o $object'. | |
481 | 502 | IFS=" " |
482 | 503 | for arg |
483 | 504 | do |
497 | 518 | done |
498 | 519 | |
499 | 520 | test -z "$dashmflag" && dashmflag=-M |
500 | # Require at least two characters before searching for `:' | |
521 | # Require at least two characters before searching for ':' | |
501 | 522 | # 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. | |
503 | 524 | "$@" $dashmflag | |
504 | sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" | |
525 | sed 's:^['"$tab"' ]*[^:'"$tab"' ][^:][^:]*\:['"$tab"' ]*:'"$object"'\: :' > "$tmpdepfile" | |
505 | 526 | rm -f "$depfile" |
506 | 527 | cat < "$tmpdepfile" > "$depfile" |
507 | tr ' ' ' | |
508 | ' < "$tmpdepfile" | \ | |
528 | tr ' ' "$nl" < "$tmpdepfile" | \ | |
509 | 529 | ## Some versions of the HPUX 10.20 sed can't process this invocation |
510 | 530 | ## correctly. Breaking it into two sed invocations is a workaround. |
511 | 531 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" |
561 | 581 | # makedepend may prepend the VPATH from the source file name to the object. |
562 | 582 | # No need to regex-escape $object, excess matching of '.' is harmless. |
563 | 583 | sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" |
564 | sed '1,2d' "$tmpdepfile" | tr ' ' ' | |
565 | ' | \ | |
584 | sed '1,2d' "$tmpdepfile" | tr ' ' "$nl" | \ | |
566 | 585 | ## Some versions of the HPUX 10.20 sed can't process this invocation |
567 | 586 | ## correctly. Breaking it into two sed invocations is a workaround. |
568 | 587 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" |
582 | 601 | shift |
583 | 602 | fi |
584 | 603 | |
585 | # Remove `-o $object'. | |
604 | # Remove '-o $object'. | |
586 | 605 | IFS=" " |
587 | 606 | for arg |
588 | 607 | do |
651 | 670 | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" |
652 | 671 | rm -f "$depfile" |
653 | 672 | 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" | |
656 | 675 | sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" |
657 | 676 | rm -f "$tmpdepfile" |
658 | 677 | ;; |
0 | 0 | #!/bin/sh |
1 | 1 | # install - install a program, script, or datafile |
2 | 2 | |
3 | scriptversion=2011-01-19.21; # UTC | |
3 | scriptversion=2011-11-20.07; # UTC | |
4 | 4 | |
5 | 5 | # This originates from X11R5 (mit/util/scripts/install.sh), which was |
6 | 6 | # later released in X11R6 (xc/config/util/install.sh) with the |
34 | 34 | # FSF changes to this file are in the public domain. |
35 | 35 | # |
36 | 36 | # 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 | |
38 | 38 | # when there is no Makefile. |
39 | 39 | # |
40 | 40 | # This script is compatible with the BSD install script, but was written |
155 | 155 | -s) stripcmd=$stripprog;; |
156 | 156 | |
157 | 157 | -t) dst_arg=$2 |
158 | # Protect names problematic for `test' and other utilities. | |
158 | # Protect names problematic for 'test' and other utilities. | |
159 | 159 | case $dst_arg in |
160 | 160 | -* | [=\(\)!]) dst_arg=./$dst_arg;; |
161 | 161 | esac |
189 | 189 | fi |
190 | 190 | shift # arg |
191 | 191 | dst_arg=$arg |
192 | # Protect names problematic for `test' and other utilities. | |
192 | # Protect names problematic for 'test' and other utilities. | |
193 | 193 | case $dst_arg in |
194 | 194 | -* | [=\(\)!]) dst_arg=./$dst_arg;; |
195 | 195 | esac |
201 | 201 | echo "$0: no input file specified." >&2 |
202 | 202 | exit 1 |
203 | 203 | fi |
204 | # It's OK to call `install-sh -d' without argument. | |
204 | # It's OK to call 'install-sh -d' without argument. | |
205 | 205 | # This can happen when creating conditional directories. |
206 | 206 | exit 0 |
207 | 207 | fi |
239 | 239 | |
240 | 240 | for src |
241 | 241 | do |
242 | # Protect names problematic for `test' and other utilities. | |
242 | # Protect names problematic for 'test' and other utilities. | |
243 | 243 | case $src in |
244 | 244 | -* | [=\(\)!]) src=./$src;; |
245 | 245 | esac |
353 | 353 | if test -z "$dir_arg" || { |
354 | 354 | # Check for POSIX incompatibilities with -m. |
355 | 355 | # 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. | |
357 | 357 | # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. |
358 | 358 | ls_ld_tmpdir=`ls -ld "$tmpdir"` |
359 | 359 | case $ls_ld_tmpdir in |
0 | 0 | #! /bin/sh |
1 | 1 | # Common stub for a few missing GNU programs while installing. |
2 | 2 | |
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. | |
7 | 6 | # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. |
8 | 7 | |
9 | 8 | # This program is free software; you can redistribute it and/or modify |
25 | 24 | # the same distribution terms that you use for the rest of that program. |
26 | 25 | |
27 | 26 | 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" | |
29 | 28 | exit 1 |
30 | 29 | fi |
31 | 30 | |
33 | 32 | sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' |
34 | 33 | sed_minuso='s/.* -o \([^ ]*\).*/\1/p' |
35 | 34 | |
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 | |
37 | 36 | # srcdir already. |
38 | 37 | if test -f configure.ac; then |
39 | 38 | configure_ac=configure.ac |
64 | 63 | echo "\ |
65 | 64 | $0 [OPTION]... PROGRAM [ARGUMENT]... |
66 | 65 | |
67 | Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an | |
66 | Handle 'PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an | |
68 | 67 | error status if there is no known handling for PROGRAM. |
69 | 68 | |
70 | 69 | Options: |
73 | 72 | --run try to run the given command, and emulate it if it fails |
74 | 73 | |
75 | 74 | 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' | |
79 | 78 | 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 | |
83 | 82 | 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 | |
85 | 84 | 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. | |
90 | 89 | |
91 | 90 | Send bug reports to <bug-automake@gnu.org>." |
92 | 91 | exit $? |
98 | 97 | ;; |
99 | 98 | |
100 | 99 | -*) |
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" | |
103 | 102 | exit 1 |
104 | 103 | ;; |
105 | 104 | |
126 | 125 | exit 1 |
127 | 126 | elif test "x$2" = "x--version" || test "x$2" = "x--help"; then |
128 | 127 | # 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 | |
130 | 129 | # $TOOL exists and not knowing $TOOL uses missing. |
131 | 130 | exit 1 |
132 | 131 | fi |
138 | 137 | case $program in |
139 | 138 | aclocal*) |
140 | 139 | 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 | |
144 | 143 | any GNU archive site." |
145 | 144 | touch aclocal.m4 |
146 | 145 | ;; |
147 | 146 | |
148 | 147 | autoconf*) |
149 | 148 | 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 | |
153 | 152 | archive site." |
154 | 153 | touch configure |
155 | 154 | ;; |
156 | 155 | |
157 | 156 | autoheader*) |
158 | 157 | 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 | |
162 | 161 | from any GNU archive site." |
163 | 162 | files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` |
164 | 163 | test -z "$files" && files="config.h" |
175 | 174 | |
176 | 175 | automake*) |
177 | 176 | 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. | |
181 | 180 | Grab them from any GNU archive site." |
182 | 181 | find . -type f -name Makefile.am -print | |
183 | 182 | sed 's/\.am$/.in/' | |
186 | 185 | |
187 | 186 | autom4te*) |
188 | 187 | echo 1>&2 "\ |
189 | WARNING: \`$1' is needed, but is $msg. | |
188 | WARNING: '$1' is needed, but is $msg. | |
190 | 189 | You might have modified some files without having the |
191 | 190 | 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 | |
193 | 192 | archive site." |
194 | 193 | |
195 | 194 | file=`echo "$*" | sed -n "$sed_output"` |
209 | 208 | |
210 | 209 | bison*|yacc*) |
211 | 210 | 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 | |
214 | 213 | 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." | |
216 | 215 | rm -f y.tab.c y.tab.h |
217 | 216 | if test $# -ne 1; then |
218 | 217 | eval LASTARG=\${$#} |
239 | 238 | |
240 | 239 | lex*|flex*) |
241 | 240 | 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 | |
244 | 243 | 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." | |
246 | 245 | rm -f lex.yy.c |
247 | 246 | if test $# -ne 1; then |
248 | 247 | eval LASTARG=\${$#} |
262 | 261 | |
263 | 262 | help2man*) |
264 | 263 | 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 | |
266 | 265 | 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." | |
269 | 268 | |
270 | 269 | file=`echo "$*" | sed -n "$sed_output"` |
271 | 270 | test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` |
280 | 279 | |
281 | 280 | makeinfo*) |
282 | 281 | 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 | |
285 | 284 | 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." | |
289 | 288 | # The file to touch is that specified with -o ... |
290 | 289 | file=`echo "$*" | sed -n "$sed_output"` |
291 | 290 | test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` |
309 | 308 | |
310 | 309 | *) |
311 | 310 | echo 1>&2 "\ |
312 | WARNING: \`$1' is needed, and is $msg. | |
311 | WARNING: '$1' is needed, and is $msg. | |
313 | 312 | 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, | |
315 | 314 | it often tells you about the needed prerequisites for installing |
316 | 315 | 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." | |
318 | 317 | exit 1 |
319 | 318 | ;; |
320 | 319 | esac |
123 | 123 | test $$fail = 0 |
124 | 124 | |
125 | 125 | |
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 | |
127 | 127 | |
128 | 128 | exclude_file_name_regexp--sc_preprocessor_indentation = ^*/*.[ch] |
129 | 129 |
0 | 0 | /* 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 | ||
1 | 8 | |
2 | 9 | /* Define to 1 if you have the <dlfcn.h> header file. */ |
3 | 10 | #undef HAVE_DLFCN_H |
66 | 73 | /* enable GObject introspection support */ |
67 | 74 | #undef WITH_GOBJECT_INTROSPECTION |
68 | 75 | |
69 | /* enable compile-time and run-time bounds-checking, and some warnings */ | |
70 | #undef _FORTIFY_SOURCE | |
71 | ||
72 | 76 | /* Enable GNU extensions */ |
73 | 77 | #undef _GNU_SOURCE |
0 | 0 | #! /bin/sh |
1 | 1 | # 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. | |
3 | 3 | # |
4 | 4 | # |
5 | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
566 | 566 | # Identity of this package. |
567 | 567 | PACKAGE_NAME='libvirt-glib' |
568 | 568 | 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' | |
571 | 571 | PACKAGE_BUGREPORT='' |
572 | 572 | PACKAGE_URL='' |
573 | 573 | |
1380 | 1380 | # Omit some internal or obsolete options to make the list less imposing. |
1381 | 1381 | # This message is too long to be a string in the A/UX 3.1 sh. |
1382 | 1382 | 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. | |
1384 | 1384 | |
1385 | 1385 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1386 | 1386 | |
1450 | 1450 | |
1451 | 1451 | if test -n "$ac_init_help"; then |
1452 | 1452 | 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:";; | |
1454 | 1454 | esac |
1455 | 1455 | cat <<\_ACEOF |
1456 | 1456 | |
1458 | 1458 | --disable-option-checking ignore unrecognized --enable/--with options |
1459 | 1459 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1460 | 1460 | --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 | |
1465 | 1467 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1466 | 1468 | --enable-static[=PKGS] build static libraries [default=yes] |
1467 | 1469 | --enable-fast-install[=PKGS] |
1597 | 1599 | test -n "$ac_init_help" && exit $ac_status |
1598 | 1600 | if $ac_init_version; then |
1599 | 1601 | cat <<\_ACEOF |
1600 | libvirt-glib configure 0.0.8 | |
1602 | libvirt-glib configure 0.1.2 | |
1601 | 1603 | generated by GNU Autoconf 2.68 |
1602 | 1604 | |
1603 | 1605 | Copyright (C) 2010 Free Software Foundation, Inc. |
1875 | 1877 | This file contains any messages produced by compilers while |
1876 | 1878 | running configure, to aid debugging if configure makes a mistake. |
1877 | 1879 | |
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 | |
1879 | 1881 | generated by GNU Autoconf 2.68. Invocation command line was |
1880 | 1882 | |
1881 | 1883 | $ $0 $@ |
2256 | 2258 | ac_config_headers="$ac_config_headers config.h" |
2257 | 2259 | |
2258 | 2260 | |
2259 | am__api_version='1.11' | |
2261 | am__api_version='1.12' | |
2260 | 2262 | |
2261 | 2263 | # Find a good install program. We prefer a C program (faster), |
2262 | 2264 | # so one script is as good as another. But avoid the broken or |
2353 | 2355 | |
2354 | 2356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2355 | 2357 | $as_echo_n "checking whether build environment is sane... " >&6; } |
2356 | # Just in case | |
2357 | sleep 1 | |
2358 | echo timestamp > conftest.file | |
2359 | 2358 | # Reject unsafe characters in $srcdir or the absolute working directory |
2360 | 2359 | # name. Accept space and tab only in the latter. |
2361 | 2360 | am_lf=' |
2366 | 2365 | esac |
2367 | 2366 | case $srcdir in |
2368 | 2367 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
2369 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
2368 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
2370 | 2369 | esac |
2371 | 2370 | |
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 | |
2373 | 2372 | # arguments. Must try -L first in case configure is actually a |
2374 | 2373 | # symlink; some systems play weird games with the mod time of symlinks |
2375 | 2374 | # (eg FreeBSD returns the mod time of the symlink's containing |
2376 | 2375 | # directory). |
2377 | 2376 | 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 | |
2395 | 2402 | test "$2" = conftest.file |
2396 | 2403 | ) |
2397 | 2404 | then |
2403 | 2410 | fi |
2404 | 2411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2405 | 2412 | $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 | ||
2406 | 2423 | test "$program_prefix" != NONE && |
2407 | 2424 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
2408 | 2425 | # Use a double $ so make ignores it. |
2429 | 2446 | am_missing_run="$MISSING --run " |
2430 | 2447 | else |
2431 | 2448 | 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;} | |
2434 | 2451 | fi |
2435 | 2452 | |
2436 | 2453 | if test x"${install_sh}" != xset; then |
2442 | 2459 | esac |
2443 | 2460 | fi |
2444 | 2461 | |
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 | |
2447 | 2464 | # 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. | |
2449 | 2466 | if test "$cross_compiling" != no; then |
2450 | 2467 | if test -n "$ac_tool_prefix"; then |
2451 | 2468 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
2584 | 2601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
2585 | 2602 | $as_echo "$MKDIR_P" >&6; } |
2586 | 2603 | |
2587 | mkdir_p="$MKDIR_P" | |
2588 | case $mkdir_p in | |
2589 | [\\/$]* | ?:[\\/]*) ;; | |
2590 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2591 | esac | |
2592 | ||
2593 | 2604 | for ac_prog in gawk mawk nawk awk |
2594 | 2605 | do |
2595 | 2606 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2694 | 2705 | |
2695 | 2706 | # Define the identity of the package. |
2696 | 2707 | PACKAGE='libvirt-glib' |
2697 | VERSION='0.0.8' | |
2708 | VERSION='0.1.2' | |
2698 | 2709 | |
2699 | 2710 | |
2700 | 2711 | cat >>confdefs.h <<_ACEOF |
2721 | 2732 | |
2722 | 2733 | |
2723 | 2734 | 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)' | |
2724 | 2741 | |
2725 | 2742 | # We need awk for the "check" target. The system "awk" is bad on |
2726 | 2743 | # some platforms. |
2811 | 2828 | enableval=$enable_silent_rules; |
2812 | 2829 | fi |
2813 | 2830 | |
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;; | |
2818 | 2835 | esac |
2819 | 2836 | am_make=${MAKE-make} |
2820 | 2837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
3675 | 3692 | _am_result=none |
3676 | 3693 | # First try GNU make style include. |
3677 | 3694 | echo "include confinc" > confmf |
3678 | # Ignore all kinds of additional output from `make'. | |
3695 | # Ignore all kinds of additional output from 'make'. | |
3679 | 3696 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3680 | 3697 | *the\ am__doit\ target*) |
3681 | 3698 | am__include=include |
3731 | 3748 | # We make a subdir and do the tests there. Otherwise we can end up |
3732 | 3749 | # making bogus files that we don't know about and never remove. For |
3733 | 3750 | # 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". | |
3736 | 3753 | rm -rf conftest.dir |
3737 | 3754 | mkdir conftest.dir |
3738 | 3755 | # Copy depcomp to subdir because otherwise we won't find it if we're |
3767 | 3784 | : > sub/conftest.c |
3768 | 3785 | for i in 1 2 3 4 5 6; do |
3769 | 3786 | 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 | |
3773 | 3790 | done |
3774 | 3791 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
3775 | 3792 | |
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" | |
3777 | 3794 | # 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. | |
3780 | 3797 | am__obj=sub/conftest.${OBJEXT-o} |
3781 | 3798 | am__minus_obj="-o $am__obj" |
3782 | 3799 | case $depmode in |
3785 | 3802 | test "$am__universal" = false || continue |
3786 | 3803 | ;; |
3787 | 3804 | 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. | |
3790 | 3807 | if test "x$enable_dependency_tracking" = xyes; then |
3791 | 3808 | continue |
3792 | 3809 | else |
3794 | 3811 | fi |
3795 | 3812 | ;; |
3796 | 3813 | 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 | |
3798 | 3815 | # not run yet. These depmodes are late enough in the game, and |
3799 | 3816 | # so weak that their functioning should not be impacted. |
3800 | 3817 | am__obj=conftest.${OBJEXT-o} |
12342 | 12359 | |
12343 | 12360 | # Use improved glibc headers |
12344 | 12361 | |
12345 | $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h | |
12346 | ||
12347 | 12362 | |
12348 | 12363 | # Extra special flags |
12349 | 12364 | case $host in |
14145 | 14160 | fi |
14146 | 14161 | |
14147 | 14162 | |
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" | |
14149 | 14164 | |
14150 | 14165 | cat >confcache <<\_ACEOF |
14151 | 14166 | # This file is a shell script that caches the results of configure |
14256 | 14271 | LTLIBOBJS=$ac_ltlibobjs |
14257 | 14272 | |
14258 | 14273 | |
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; } | |
14259 | 14282 | if test -n "$EXEEXT"; then |
14260 | 14283 | am__EXEEXT_TRUE= |
14261 | 14284 | am__EXEEXT_FALSE='#' |
14713 | 14736 | # report actual input values of CONFIG_FILES etc. instead of their |
14714 | 14737 | # values after options handling. |
14715 | 14738 | 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 | |
14717 | 14740 | generated by GNU Autoconf 2.68. Invocation command line was |
14718 | 14741 | |
14719 | 14742 | CONFIG_FILES = $CONFIG_FILES |
14783 | 14806 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14784 | 14807 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
14785 | 14808 | ac_cs_version="\\ |
14786 | libvirt-glib config.status 0.0.8 | |
14809 | libvirt-glib config.status 0.1.2 | |
14787 | 14810 | configured by $0, generated by GNU Autoconf 2.68, |
14788 | 14811 | with options \\"\$ac_cs_config\\" |
14789 | 14812 | |
15206 | 15229 | "vapi/Makefile") CONFIG_FILES="$CONFIG_FILES vapi/Makefile" ;; |
15207 | 15230 | "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; |
15208 | 15231 | "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" ;; | |
15209 | 15233 | "docs/libvirt-gobject/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libvirt-gobject/Makefile" ;; |
15210 | 15234 | "docs/libvirt-gconfig/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libvirt-gconfig/Makefile" ;; |
15211 | 15235 | "libvirt-glib-1.0.pc") CONFIG_FILES="$CONFIG_FILES libvirt-glib-1.0.pc" ;; |
15212 | 15236 | "libvirt-gconfig-1.0.pc") CONFIG_FILES="$CONFIG_FILES libvirt-gconfig-1.0.pc" ;; |
15213 | 15237 | "libvirt-gobject-1.0.pc") CONFIG_FILES="$CONFIG_FILES libvirt-gobject-1.0.pc" ;; |
15214 | 15238 | "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" ;; | |
15216 | 15240 | |
15217 | 15241 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
15218 | 15242 | esac |
15854 | 15878 | # Strip MF so we end up with the name of the file. |
15855 | 15879 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
15856 | 15880 | # 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 | |
15858 | 15882 | # some people rename them; so instead we look at the file content. |
15859 | 15883 | # Grep'ing the first line is not enough: some people post-process |
15860 | 15884 | # each Makefile.in and add a new line on top of each file to say so. |
15888 | 15912 | continue |
15889 | 15913 | fi |
15890 | 15914 | # Extract the definition of DEPDIR, am__include, and am__quote |
15891 | # from the Makefile without running `make'. | |
15915 | # from the Makefile without running 'make'. | |
15892 | 15916 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
15893 | 15917 | test -z "$DEPDIR" && continue |
15894 | 15918 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
15895 | 15919 | test -z "am__include" && continue |
15896 | 15920 | 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"` | |
15899 | 15921 | # Find all dependency output files, they are included files with |
15900 | 15922 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
15901 | 15923 | # simplest approach to changing $(DEPDIR) to its actual value in the |
15902 | 15924 | # expansion. |
15903 | 15925 | for file in `sed -n " |
15904 | 15926 | 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 | |
15906 | 15928 | # Make sure the directory exists. |
15907 | 15929 | test -f "$dirpart/$file" && continue |
15908 | 15930 | fdir=`$as_dirname -- "$file" || |
0 | AC_INIT(libvirt-glib, 0.0.8) | |
0 | AC_INIT(libvirt-glib, 0.1.2) | |
1 | 1 | AC_CONFIG_SRCDIR(libvirt-glib/libvirt-glib-main.c) |
2 | 2 | AC_CONFIG_AUX_DIR([build-aux]) |
3 | 3 | AM_CONFIG_HEADER(config.h) |
258 | 258 | vapi/Makefile |
259 | 259 | docs/Makefile |
260 | 260 | docs/libvirt-glib/Makefile |
261 | docs/libvirt-glib/version.xml | |
261 | 262 | docs/libvirt-gobject/Makefile |
262 | 263 | docs/libvirt-gconfig/Makefile |
263 | 264 | libvirt-glib-1.0.pc |
264 | 265 | libvirt-gconfig-1.0.pc |
265 | 266 | libvirt-gobject-1.0.pc |
266 | 267 | 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. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
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 | ||
6 | 5 | # This Makefile.in is free software; the Free Software Foundation |
7 | 6 | # gives unlimited permission to copy and/or distribute it, |
8 | 7 | # with or without modifications, as long as this notice is preserved. |
14 | 13 | |
15 | 14 | @SET_MAKE@ |
16 | 15 | 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 | } | |
17 | 33 | pkgdatadir = $(datadir)/@PACKAGE@ |
18 | 34 | pkgincludedir = $(includedir)/@PACKAGE@ |
19 | 35 | pkglibdir = $(libdir)/@PACKAGE@ |
47 | 63 | CONFIG_HEADER = $(top_builddir)/config.h |
48 | 64 | CONFIG_CLEAN_FILES = |
49 | 65 | 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 = : | |
50 | 70 | AM_V_GEN = $(am__v_GEN_@AM_V@) |
51 | 71 | 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 = | |
53 | 74 | AM_V_at = $(am__v_at_@AM_V@) |
54 | 75 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) |
55 | 76 | am__v_at_0 = @ |
77 | am__v_at_1 = | |
56 | 78 | SOURCES = |
57 | 79 | DIST_SOURCES = |
58 | 80 | RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ |
62 | 84 | install-pdf-recursive install-ps-recursive install-recursive \ |
63 | 85 | installcheck-recursive installdirs-recursive pdf-recursive \ |
64 | 86 | 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 | |
65 | 92 | RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ |
66 | 93 | distclean-recursive maintainer-clean-recursive |
67 | 94 | AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ |
300 | 327 | -rm -rf .libs _libs |
301 | 328 | |
302 | 329 | # 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): | |
309 | 336 | @fail= failcom='exit 1'; \ |
310 | 337 | for f in x $$MAKEFLAGS; do \ |
311 | 338 | case $$f in \ |
315 | 342 | done; \ |
316 | 343 | dot_seen=no; \ |
317 | 344 | 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 \ | |
319 | 350 | echo "Making $$target in $$subdir"; \ |
320 | 351 | if test "$$subdir" = "."; then \ |
321 | 352 | dot_seen=yes; \ |
329 | 360 | if test "$$dot_seen" = "no"; then \ |
330 | 361 | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ |
331 | 362 | 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" | |
363 | 363 | tags-recursive: |
364 | 364 | list='$(SUBDIRS)'; for subdir in $$list; do \ |
365 | 365 | test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ |
367 | 367 | ctags-recursive: |
368 | 368 | list='$(SUBDIRS)'; for subdir in $$list; do \ |
369 | 369 | 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); \ | |
370 | 374 | done |
371 | 375 | |
372 | 376 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) |
431 | 435 | && $(am__cd) $(top_srcdir) \ |
432 | 436 | && gtags -i $(GTAGS_ARGS) "$$here" |
433 | 437 | |
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 | ||
434 | 452 | distclean-tags: |
435 | 453 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
436 | 454 | |
466 | 484 | done |
467 | 485 | @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ |
468 | 486 | 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; \ | |
476 | 491 | dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ |
477 | 492 | $(am__relativize); \ |
478 | 493 | new_distdir=$$reldir; \ |
593 | 608 | |
594 | 609 | uninstall-am: |
595 | 610 | |
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 | |
598 | 614 | |
599 | 615 | .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ |
600 | 616 | 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 | |
612 | 628 | |
613 | 629 | |
614 | 630 | # Tell versions [3.59,3.63) of GNU make to not export all variables. |
7 | 7 | <TITLE>GVirConfigCapabilities</TITLE> |
8 | 8 | GVirConfigCapabilities |
9 | 9 | GVirConfigCapabilitiesClass |
10 | gvir_config_capabilities_get_guests | |
11 | gvir_config_capabilities_get_host | |
10 | 12 | gvir_config_capabilities_new |
11 | 13 | gvir_config_capabilities_new_from_xml |
12 | 14 | <SUBSECTION Standard> |
21 | 23 | </SECTION> |
22 | 24 | |
23 | 25 | <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> | |
24 | 185 | <FILE>libvirt-gconfig-domain</FILE> |
25 | 186 | <TITLE>GVirConfigDomain</TITLE> |
26 | 187 | GVirConfigDomain |
29 | 190 | GVirConfigDomainLifecycleEvent |
30 | 191 | GVirConfigDomainVirtType |
31 | 192 | gvir_config_domain_add_device |
193 | gvir_config_domain_get_cpu | |
32 | 194 | gvir_config_domain_get_custom_xml |
33 | 195 | gvir_config_domain_get_description |
34 | 196 | gvir_config_domain_get_devices |
35 | 197 | gvir_config_domain_get_features |
36 | 198 | gvir_config_domain_get_memory |
37 | 199 | gvir_config_domain_get_name |
200 | gvir_config_domain_get_os | |
201 | gvir_config_domain_get_title | |
38 | 202 | gvir_config_domain_get_vcpus |
203 | gvir_config_domain_get_virt_type | |
39 | 204 | gvir_config_domain_new |
40 | 205 | gvir_config_domain_new_from_xml |
41 | 206 | gvir_config_domain_set_clock |
207 | gvir_config_domain_set_cpu | |
42 | 208 | gvir_config_domain_set_custom_xml |
43 | 209 | gvir_config_domain_set_description |
44 | 210 | gvir_config_domain_set_devices |
48 | 214 | gvir_config_domain_set_name |
49 | 215 | gvir_config_domain_set_os |
50 | 216 | gvir_config_domain_set_seclabel |
217 | gvir_config_domain_set_title | |
51 | 218 | gvir_config_domain_set_vcpus |
52 | 219 | gvir_config_domain_set_virt_type |
53 | 220 | <SUBSECTION Standard> |
295 | 462 | </SECTION> |
296 | 463 | |
297 | 464 | <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> | |
298 | 510 | <FILE>libvirt-gconfig-domain-device</FILE> |
299 | 511 | <TITLE>GVirConfigDomainDevice</TITLE> |
300 | 512 | GVirConfigDomainDevice |
315 | 527 | gvir_config_domain_controller_new_from_tree |
316 | 528 | gvir_config_domain_device_new_from_tree |
317 | 529 | gvir_config_domain_disk_new_from_tree |
530 | gvir_config_domain_filesys_new_from_tree | |
318 | 531 | gvir_config_domain_graphics_new_from_tree |
319 | 532 | gvir_config_domain_interface_new_from_tree |
320 | 533 | </SECTION> |
376 | 589 | gvir_config_domain_filesys_new_from_xml |
377 | 590 | gvir_config_domain_filesys_set_access_type |
378 | 591 | gvir_config_domain_filesys_set_driver_type |
592 | gvir_config_domain_filesys_set_ram_usage | |
379 | 593 | gvir_config_domain_filesys_set_readonly |
380 | 594 | gvir_config_domain_filesys_set_source |
381 | 595 | gvir_config_domain_filesys_set_target |
604 | 818 | GVirConfigDomainOsType |
605 | 819 | gvir_config_domain_os_bios_enable_serial |
606 | 820 | 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 | |
607 | 824 | gvir_config_domain_os_new |
608 | 825 | gvir_config_domain_os_new_from_xml |
609 | 826 | gvir_config_domain_os_set_arch |
957 | 1174 | gvir_config_object_foreach_child |
958 | 1175 | gvir_config_object_get_attribute |
959 | 1176 | 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 | |
960 | 1180 | gvir_config_object_get_node_content |
961 | 1181 | gvir_config_object_get_node_content_genum |
962 | 1182 | 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 | |
0 | 3 | 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 | |
1 | 9 | gvir_config_domain_address_get_type |
2 | 10 | gvir_config_domain_address_pci_get_type |
3 | 11 | gvir_config_domain_address_usb_get_type |
10 | 18 | gvir_config_domain_console_get_type |
11 | 19 | gvir_config_domain_controller_get_type |
12 | 20 | gvir_config_domain_controller_usb_get_type |
21 | gvir_config_domain_cpu_feature_get_type | |
22 | gvir_config_domain_cpu_get_type | |
13 | 23 | gvir_config_domain_device_get_type |
14 | 24 | gvir_config_domain_disk_get_type |
15 | 25 | 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. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
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 | ||
6 | 5 | # This Makefile.in is free software; the Free Software Foundation |
7 | 6 | # gives unlimited permission to copy and/or distribute it, |
8 | 7 | # with or without modifications, as long as this notice is preserved. |
20 | 19 | # Everything below here is generic # |
21 | 20 | #################################### |
22 | 21 | 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 | } | |
23 | 39 | pkgdatadir = $(datadir)/@PACKAGE@ |
24 | 40 | pkgincludedir = $(includedir)/@PACKAGE@ |
25 | 41 | pkglibdir = $(libdir)/@PACKAGE@ |
54 | 70 | CONFIG_HEADER = $(top_builddir)/config.h |
55 | 71 | CONFIG_CLEAN_FILES = |
56 | 72 | 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 = : | |
57 | 77 | AM_V_GEN = $(am__v_GEN_@AM_V@) |
58 | 78 | 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 = | |
60 | 81 | AM_V_at = $(am__v_at_@AM_V@) |
61 | 82 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) |
62 | 83 | am__v_at_0 = @ |
84 | am__v_at_1 = | |
63 | 85 | SOURCES = |
64 | 86 | 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 | |
65 | 92 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
66 | 93 | ACLOCAL = @ACLOCAL@ |
67 | 94 | AMTAR = @AMTAR@ |
340 | 367 | ctags: CTAGS |
341 | 368 | CTAGS: |
342 | 369 | |
370 | cscope cscopelist: | |
371 | ||
343 | 372 | |
344 | 373 | distdir: $(DISTFILES) |
345 | 374 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
40 | 40 | <a name="GVirConfigCapabilities.synopsis"></a><h2>Synopsis</h2> |
41 | 41 | <pre class="synopsis">struct <a class="link" href="GVirConfigCapabilities.html#GVirConfigCapabilities-struct" title="struct GVirConfigCapabilities">GVirConfigCapabilities</a>; |
42 | 42 | 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>); | |
43 | 46 | <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>); |
44 | 47 | <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> |
45 | 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> *xml</code></em>, |
75 | 78 | </div> |
76 | 79 | <hr> |
77 | 80 | <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"> | |
78 | 114 | <a name="gvir-config-capabilities-new"></a><h3>gvir_config_capabilities_new ()</h3> |
79 | 115 | <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> |
80 | 116 | </div> |
47 | 47 | enum <a class="link" href="GVirConfigDomain.html#GVirConfigDomainVirtType" title="enum GVirConfigDomainVirtType">GVirConfigDomainVirtType</a>; |
48 | 48 | <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>, |
49 | 49 | <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>); | |
50 | 51 | <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>, |
51 | 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> *ns_uri</code></em>); |
52 | 53 | 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>); |
54 | 55 | <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>); |
55 | 56 | <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>); |
56 | 57 | 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>); | |
57 | 60 | <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>); | |
58 | 63 | <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>); |
59 | 64 | <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>, |
60 | 65 | <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>); |
61 | 66 | <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>, |
62 | 67 | <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>); | |
63 | 70 | <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>, |
64 | 71 | <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>, |
65 | 72 | <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>, |
82 | 89 | <em class="parameter"><code><span class="type">GVirConfigDomainOs</span> *os</code></em>); |
83 | 90 | <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>, |
84 | 91 | <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>); | |
85 | 94 | <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>, |
86 | 95 | <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>); |
87 | 96 | <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>, |
103 | 112 | "<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 |
104 | 113 | "<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 |
105 | 114 | "<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 | |
106 | 116 | "<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 |
107 | 117 | </pre> |
108 | 118 | </div> |
178 | 188 | </div> |
179 | 189 | <hr> |
180 | 190 | <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"> | |
181 | 215 | <a name="gvir-config-domain-get-custom-xml"></a><h3>gvir_config_domain_get_custom_xml ()</h3> |
182 | 216 | <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>, |
183 | 217 | <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> |
192 | 226 | <a name="gvir-config-domain-get-devices"></a><h3>gvir_config_domain_get_devices ()</h3> |
193 | 227 | <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> |
194 | 228 | <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>. | |
196 | 232 | </p> |
197 | 233 | <div class="variablelist"><table border="0"> |
198 | 234 | <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> | |
200 | 242 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
201 | 243 | <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> |
202 | 244 | </td> |
203 | </tr></tbody> | |
245 | </tr> | |
246 | </tbody> | |
204 | 247 | </table></div> |
205 | 248 | </div> |
206 | 249 | <hr> |
207 | 250 | <div class="refsect2"> |
208 | 251 | <a name="gvir-config-domain-get-features"></a><h3>gvir_config_domain_get_features ()</h3> |
209 | 252 | <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> | |
210 | 269 | </div> |
211 | 270 | <hr> |
212 | 271 | <div class="refsect2"> |
217 | 276 | <tbody> |
218 | 277 | <tr> |
219 | 278 | <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> | |
221 | 281 | </tr> |
222 | 282 | <tr> |
223 | 283 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
233 | 293 | </div> |
234 | 294 | <hr> |
235 | 295 | <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"> | |
236 | 325 | <a name="gvir-config-domain-get-vcpus"></a><h3>gvir_config_domain_get_vcpus ()</h3> |
237 | 326 | <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> | |
238 | 333 | </div> |
239 | 334 | <hr> |
240 | 335 | <div class="refsect2"> |
252 | 347 | <a name="gvir-config-domain-set-clock"></a><h3>gvir_config_domain_set_clock ()</h3> |
253 | 348 | <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>, |
254 | 349 | <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> | |
255 | 386 | </div> |
256 | 387 | <hr> |
257 | 388 | <div class="refsect2"> |
267 | 398 | <a name="gvir-config-domain-set-description"></a><h3>gvir_config_domain_set_description ()</h3> |
268 | 399 | <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>, |
269 | 400 | <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> | |
270 | 416 | </div> |
271 | 417 | <hr> |
272 | 418 | <div class="refsect2"> |
275 | 421 | <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> |
276 | 422 | <div class="variablelist"><table border="0"> |
277 | 423 | <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> | |
279 | 431 | <td><p><span class="term"><em class="parameter"><code>devices</code></em> :</span></p></td> |
280 | 432 | <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> |
281 | 433 | </td> |
282 | </tr></tbody> | |
434 | </tr> | |
435 | </tbody> | |
283 | 436 | </table></div> |
284 | 437 | </div> |
285 | 438 | <hr> |
308 | 461 | <tbody> |
309 | 462 | <tr> |
310 | 463 | <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> | |
312 | 466 | </tr> |
313 | 467 | <tr> |
314 | 468 | <td><p><span class="term"><em class="parameter"><code>memory</code></em> :</span></p></td> |
322 | 476 | <a name="gvir-config-domain-set-name"></a><h3>gvir_config_domain_set_name ()</h3> |
323 | 477 | <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>, |
324 | 478 | <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> | |
325 | 494 | </div> |
326 | 495 | <hr> |
327 | 496 | <div class="refsect2"> |
328 | 497 | <a name="gvir-config-domain-set-os"></a><h3>gvir_config_domain_set_os ()</h3> |
329 | 498 | <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>, |
330 | 499 | <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> | |
331 | 515 | </div> |
332 | 516 | <hr> |
333 | 517 | <div class="refsect2"> |
334 | 518 | <a name="gvir-config-domain-set-seclabel"></a><h3>gvir_config_domain_set_seclabel ()</h3> |
335 | 519 | <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>, |
336 | 520 | <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> | |
337 | 561 | </div> |
338 | 562 | <hr> |
339 | 563 | <div class="refsect2"> |
378 | 602 | </div> |
379 | 603 | <hr> |
380 | 604 | <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"> | |
381 | 612 | <a name="GVirConfigDomain--vcpu"></a><h3>The <code class="literal">"vcpu"</code> property</h3> |
382 | 613 | <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> |
383 | 614 | <p>Maximum Number of Guest Virtual CPUs.</p> |
61 | 61 | <pre class="synopsis"> |
62 | 62 | <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a> |
63 | 63 | +----GVirConfigObject |
64 | +----GVirConfigCapabilitiesCpuFeature | |
65 | +----GVirConfigCapabilitiesCpu | |
66 | +----GVirConfigCapabilitiesCpuTopology | |
64 | 67 | +----<a class="link" href="GVirConfigCapabilities.html" title="GVirConfigCapabilities">GVirConfigCapabilities</a> |
68 | +----GVirConfigCapabilitiesGuestArch | |
69 | +----GVirConfigCapabilitiesGuestDomain | |
70 | +----GVirConfigCapabilitiesGuestFeature | |
71 | +----GVirConfigCapabilitiesGuest | |
72 | +----GVirConfigCapabilitiesHost | |
65 | 73 | +----GVirConfigDomainAddress |
66 | 74 | +----GVirConfigDomainDevice |
67 | 75 | +----GVirConfigDomainChardevSource |
147 | 147 | <a name="gvir-config-storage-pool-set-name"></a><h3>gvir_config_storage_pool_set_name ()</h3> |
148 | 148 | <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>, |
149 | 149 | <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> | |
150 | 158 | </div> |
151 | 159 | <hr> |
152 | 160 | <div class="refsect2"> |
160 | 168 | <a name="gvir-config-storage-pool-set-source"></a><h3>gvir_config_storage_pool_set_source ()</h3> |
161 | 169 | <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>, |
162 | 170 | <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> | |
163 | 179 | </div> |
164 | 180 | <hr> |
165 | 181 | <div class="refsect2"> |
166 | 182 | <a name="gvir-config-storage-pool-set-target"></a><h3>gvir_config_storage_pool_set_target ()</h3> |
167 | 183 | <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>, |
168 | 184 | <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> | |
169 | 193 | </div> |
170 | 194 | <hr> |
171 | 195 | <div class="refsect2"> |
172 | 196 | <a name="gvir-config-storage-pool-set-uuid"></a><h3>gvir_config_storage_pool_set_uuid ()</h3> |
173 | 197 | <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>, |
174 | 198 | <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> | |
175 | 207 | </div> |
176 | 208 | </div> |
177 | 209 | </div> |
111 | 111 | <pre class="programlisting"><span class="returnvalue">void</span> gvir_config_storage_vol_set_backing_store |
112 | 112 | (<em class="parameter"><code><a class="link" href="GVirConfigStorageVol.html" title="GVirConfigStorageVol"><span class="type">GVirConfigStorageVol</span></a> *vol</code></em>, |
113 | 113 | <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> | |
114 | 122 | </div> |
115 | 123 | <hr> |
116 | 124 | <div class="refsect2"> |
124 | 132 | <a name="gvir-config-storage-vol-set-name"></a><h3>gvir_config_storage_vol_set_name ()</h3> |
125 | 133 | <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>, |
126 | 134 | <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> | |
127 | 143 | </div> |
128 | 144 | <hr> |
129 | 145 | <div class="refsect2"> |
130 | 146 | <a name="gvir-config-storage-vol-set-target"></a><h3>gvir_config_storage_vol_set_target ()</h3> |
131 | 147 | <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>, |
132 | 148 | <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> | |
133 | 157 | </div> |
134 | 158 | </div> |
135 | 159 | </div> |
35 | 35 | <keyword type="enum" name="enum GVirConfigDomainLifecycleEvent" link="GVirConfigDomain.html#GVirConfigDomainLifecycleEvent"/> |
36 | 36 | <keyword type="enum" name="enum GVirConfigDomainVirtType" link="GVirConfigDomain.html#GVirConfigDomainVirtType"/> |
37 | 37 | <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"/> | |
38 | 39 | <keyword type="function" name="gvir_config_domain_get_custom_xml ()" link="GVirConfigDomain.html#gvir-config-domain-get-custom-xml"/> |
39 | 40 | <keyword type="function" name="gvir_config_domain_get_description ()" link="GVirConfigDomain.html#gvir-config-domain-get-description"/> |
40 | 41 | <keyword type="function" name="gvir_config_domain_get_devices ()" link="GVirConfigDomain.html#gvir-config-domain-get-devices"/> |
41 | 42 | <keyword type="function" name="gvir_config_domain_get_features ()" link="GVirConfigDomain.html#gvir-config-domain-get-features"/> |
42 | 43 | <keyword type="function" name="gvir_config_domain_get_memory ()" link="GVirConfigDomain.html#gvir-config-domain-get-memory"/> |
43 | 44 | <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"/> | |
44 | 47 | <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"/> | |
45 | 49 | <keyword type="function" name="gvir_config_domain_new ()" link="GVirConfigDomain.html#gvir-config-domain-new"/> |
46 | 50 | <keyword type="function" name="gvir_config_domain_new_from_xml ()" link="GVirConfigDomain.html#gvir-config-domain-new-from-xml"/> |
47 | 51 | <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"/> | |
48 | 53 | <keyword type="function" name="gvir_config_domain_set_custom_xml ()" link="GVirConfigDomain.html#gvir-config-domain-set-custom-xml"/> |
49 | 54 | <keyword type="function" name="gvir_config_domain_set_description ()" link="GVirConfigDomain.html#gvir-config-domain-set-description"/> |
50 | 55 | <keyword type="function" name="gvir_config_domain_set_devices ()" link="GVirConfigDomain.html#gvir-config-domain-set-devices"/> |
54 | 59 | <keyword type="function" name="gvir_config_domain_set_name ()" link="GVirConfigDomain.html#gvir-config-domain-set-name"/> |
55 | 60 | <keyword type="function" name="gvir_config_domain_set_os ()" link="GVirConfigDomain.html#gvir-config-domain-set-os"/> |
56 | 61 | <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"/> | |
57 | 63 | <keyword type="function" name="gvir_config_domain_set_vcpus ()" link="GVirConfigDomain.html#gvir-config-domain-set-vcpus"/> |
58 | 64 | <keyword type="function" name="gvir_config_domain_set_virt_type ()" link="GVirConfigDomain.html#gvir-config-domain-set-virt-type"/> |
59 | 65 | <keyword type="property" name="The "description" property" link="GVirConfigDomain.html#GVirConfigDomain--description"/> |
60 | 66 | <keyword type="property" name="The "features" property" link="GVirConfigDomain.html#GVirConfigDomain--features"/> |
61 | 67 | <keyword type="property" name="The "memory" property" link="GVirConfigDomain.html#GVirConfigDomain--memory"/> |
62 | 68 | <keyword type="property" name="The "name" property" link="GVirConfigDomain.html#GVirConfigDomain--name"/> |
69 | <keyword type="property" name="The "title" property" link="GVirConfigDomain.html#GVirConfigDomain--title"/> | |
63 | 70 | <keyword type="property" name="The "vcpu" property" link="GVirConfigDomain.html#GVirConfigDomain--vcpu"/> |
64 | 71 | <keyword type="struct" name="struct GVirConfigDomainSnapshot" link="GVirConfigDomainSnapshot.html#GVirConfigDomainSnapshot-struct"/> |
65 | 72 | <keyword type="struct" name="struct GVirConfigDomainSnapshotClass" link="GVirConfigDomainSnapshot.html#GVirConfigDomainSnapshotClass"/> |
109 | 116 | <keyword type="function" name="gvir_config_storage_vol_set_target ()" link="GVirConfigStorageVol.html#gvir-config-storage-vol-set-target"/> |
110 | 117 | <keyword type="struct" name="struct GVirConfigCapabilities" link="GVirConfigCapabilities.html#GVirConfigCapabilities-struct"/> |
111 | 118 | <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"/> | |
112 | 121 | <keyword type="function" name="gvir_config_capabilities_new ()" link="GVirConfigCapabilities.html#gvir-config-capabilities-new"/> |
113 | 122 | <keyword type="function" name="gvir_config_capabilities_new_from_xml ()" link="GVirConfigCapabilities.html#gvir-config-capabilities-new-from-xml"/> |
114 | 123 | </functions> |
34 | 34 | </dt> |
35 | 35 | <dd></dd> |
36 | 36 | <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> | |
37 | 101 | <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> |
38 | 102 | </dt> |
39 | 103 | <dd></dd> |
54 | 118 | </dt> |
55 | 119 | <dd></dd> |
56 | 120 | <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> | |
57 | 125 | <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> |
58 | 126 | </dt> |
59 | 127 | <dd></dd> |
174 | 242 | </dt> |
175 | 243 | <dd></dd> |
176 | 244 | <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> | |
177 | 273 | GVirConfigDomainDevice, struct in GVirConfigDomainDevice |
178 | 274 | </dt> |
179 | 275 | <dd></dd> |
598 | 694 | </dt> |
599 | 695 | <dd></dd> |
600 | 696 | <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> | |
601 | 813 | <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> |
602 | 814 | </dt> |
603 | 815 | <dd></dd> |
758 | 970 | </dt> |
759 | 971 | <dd></dd> |
760 | 972 | <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> | |
761 | 1013 | gvir_config_domain_device_new_from_tree, function in libvirt-gconfig-domain-device-private |
762 | 1014 | </dt> |
763 | 1015 | <dd></dd> |
862 | 1114 | </dt> |
863 | 1115 | <dd></dd> |
864 | 1116 | <dt> |
1117 | gvir_config_domain_filesys_new_from_tree, function in libvirt-gconfig-domain-device-private | |
1118 | </dt> | |
1119 | <dd></dd> | |
1120 | <dt> | |
865 | 1121 | gvir_config_domain_filesys_new_from_xml, function in GVirConfigDomainFilesys |
866 | 1122 | </dt> |
867 | 1123 | <dd></dd> |
874 | 1130 | </dt> |
875 | 1131 | <dd></dd> |
876 | 1132 | <dt> |
1133 | gvir_config_domain_filesys_set_ram_usage, function in GVirConfigDomainFilesys | |
1134 | </dt> | |
1135 | <dd></dd> | |
1136 | <dt> | |
877 | 1137 | gvir_config_domain_filesys_set_readonly, function in GVirConfigDomainFilesys |
878 | 1138 | </dt> |
879 | 1139 | <dd></dd> |
890 | 1150 | </dt> |
891 | 1151 | <dd></dd> |
892 | 1152 | <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> | |
893 | 1157 | <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> |
894 | 1158 | </dt> |
895 | 1159 | <dd></dd> |
914 | 1178 | </dt> |
915 | 1179 | <dd></dd> |
916 | 1180 | <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> | |
917 | 1189 | <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> |
918 | 1190 | </dt> |
919 | 1191 | <dd></dd> |
920 | 1192 | <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> | |
921 | 1197 | gvir_config_domain_graphics_new_from_tree, function in libvirt-gconfig-domain-device-private |
922 | 1198 | </dt> |
923 | 1199 | <dd></dd> |
1094 | 1370 | </dt> |
1095 | 1371 | <dd></dd> |
1096 | 1372 | <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> | |
1097 | 1385 | gvir_config_domain_os_new, function in GVirConfigDomainOs |
1098 | 1386 | </dt> |
1099 | 1387 | <dd></dd> |
1202 | 1490 | </dt> |
1203 | 1491 | <dd></dd> |
1204 | 1492 | <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> | |
1205 | 1497 | <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> |
1206 | 1498 | </dt> |
1207 | 1499 | <dd></dd> |
1238 | 1530 | </dt> |
1239 | 1531 | <dd></dd> |
1240 | 1532 | <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> | |
1241 | 1537 | <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> |
1242 | 1538 | </dt> |
1243 | 1539 | <dd></dd> |
1411 | 1707 | <dd></dd> |
1412 | 1708 | <dt> |
1413 | 1709 | 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 | |
1414 | 1722 | </dt> |
1415 | 1723 | <dd></dd> |
1416 | 1724 | <dt> |
20 | 20 | </tr></table> |
21 | 21 | <div class="chapter"> |
22 | 22 | <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> | |
24 | 24 | <div class="toc"><dl> |
25 | 25 | <dt> |
26 | 26 | <span class="refentrytitle"><a href="GVirConfigObject.html">GVirConfigObject</a></span><span class="refpurpose"></span> |
26 | 26 | <ANCHOR id="GVirConfigDomainLifecycleEvent" href="Libvirt-gconfig/GVirConfigDomain.html#GVirConfigDomainLifecycleEvent"> |
27 | 27 | <ANCHOR id="GVirConfigDomainVirtType" href="Libvirt-gconfig/GVirConfigDomain.html#GVirConfigDomainVirtType"> |
28 | 28 | <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"> | |
29 | 30 | <ANCHOR id="gvir-config-domain-get-custom-xml" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-get-custom-xml"> |
30 | 31 | <ANCHOR id="gvir-config-domain-get-description" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-get-description"> |
31 | 32 | <ANCHOR id="gvir-config-domain-get-devices" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-get-devices"> |
32 | 33 | <ANCHOR id="gvir-config-domain-get-features" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-get-features"> |
33 | 34 | <ANCHOR id="gvir-config-domain-get-memory" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-get-memory"> |
34 | 35 | <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"> | |
35 | 38 | <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"> | |
36 | 40 | <ANCHOR id="gvir-config-domain-new" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-new"> |
37 | 41 | <ANCHOR id="gvir-config-domain-new-from-xml" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-new-from-xml"> |
38 | 42 | <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"> | |
39 | 44 | <ANCHOR id="gvir-config-domain-set-custom-xml" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-set-custom-xml"> |
40 | 45 | <ANCHOR id="gvir-config-domain-set-description" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-set-description"> |
41 | 46 | <ANCHOR id="gvir-config-domain-set-devices" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-set-devices"> |
45 | 50 | <ANCHOR id="gvir-config-domain-set-name" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-set-name"> |
46 | 51 | <ANCHOR id="gvir-config-domain-set-os" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-set-os"> |
47 | 52 | <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"> | |
48 | 54 | <ANCHOR id="gvir-config-domain-set-vcpus" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-set-vcpus"> |
49 | 55 | <ANCHOR id="gvir-config-domain-set-virt-type" href="Libvirt-gconfig/GVirConfigDomain.html#gvir-config-domain-set-virt-type"> |
50 | 56 | <ANCHOR id="GVirConfigDomain.property-details" href="Libvirt-gconfig/GVirConfigDomain.html#GVirConfigDomain.property-details"> |
52 | 58 | <ANCHOR id="GVirConfigDomain--features" href="Libvirt-gconfig/GVirConfigDomain.html#GVirConfigDomain--features"> |
53 | 59 | <ANCHOR id="GVirConfigDomain--memory" href="Libvirt-gconfig/GVirConfigDomain.html#GVirConfigDomain--memory"> |
54 | 60 | <ANCHOR id="GVirConfigDomain--name" href="Libvirt-gconfig/GVirConfigDomain.html#GVirConfigDomain--name"> |
61 | <ANCHOR id="GVirConfigDomain--title" href="Libvirt-gconfig/GVirConfigDomain.html#GVirConfigDomain--title"> | |
55 | 62 | <ANCHOR id="GVirConfigDomain--vcpu" href="Libvirt-gconfig/GVirConfigDomain.html#GVirConfigDomain--vcpu"> |
56 | 63 | <ANCHOR id="GVirConfigDomainSnapshot" href="Libvirt-gconfig/GVirConfigDomainSnapshot.html"> |
57 | 64 | <ANCHOR id="GVirConfigDomainSnapshot.synopsis" href="Libvirt-gconfig/GVirConfigDomainSnapshot.html#GVirConfigDomainSnapshot.synopsis"> |
146 | 153 | <ANCHOR id="GVirConfigCapabilities.details" href="Libvirt-gconfig/GVirConfigCapabilities.html#GVirConfigCapabilities.details"> |
147 | 154 | <ANCHOR id="GVirConfigCapabilities-struct" href="Libvirt-gconfig/GVirConfigCapabilities.html#GVirConfigCapabilities-struct"> |
148 | 155 | <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"> | |
149 | 158 | <ANCHOR id="gvir-config-capabilities-new" href="Libvirt-gconfig/GVirConfigCapabilities.html#gvir-config-capabilities-new"> |
150 | 159 | <ANCHOR id="gvir-config-capabilities-new-from-xml" href="Libvirt-gconfig/GVirConfigCapabilities.html#gvir-config-capabilities-new-from-xml"> |
151 | 160 | <ANCHOR id="annotation-glossterm-array" href="Libvirt-gconfig/annotation-glossary.html#annotation-glossterm-array"> |
24 | 24 | <pre class="screen"> |
25 | 25 | <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a> |
26 | 26 | <a class="link" href="GVirConfigObject.html" title="GVirConfigObject">GVirConfigObject</a> |
27 | GVirConfigCapabilitiesCpuFeature | |
28 | GVirConfigDomainCpuFeature | |
29 | GVirConfigCapabilitiesCpu | |
30 | GVirConfigDomainCpu | |
31 | GVirConfigCapabilitiesCpuTopology | |
27 | 32 | <a class="link" href="GVirConfigCapabilities.html" title="GVirConfigCapabilities">GVirConfigCapabilities</a> |
33 | GVirConfigCapabilitiesGuestArch | |
34 | GVirConfigCapabilitiesGuestDomain | |
35 | GVirConfigCapabilitiesGuestFeature | |
36 | GVirConfigCapabilitiesGuest | |
37 | GVirConfigCapabilitiesHost | |
28 | 38 | GVirConfigDomainAddress |
29 | 39 | GVirConfigDomainAddressPci |
30 | 40 | GVirConfigDomainAddressUsb |
2 | 2 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" |
3 | 3 | [ |
4 | 4 | <!ENTITY % local.common.attrib "xmlns:xi CDATA #FIXED 'http://www.w3.org/2003/XInclude'"> |
5 | <!ENTITY version SYSTEM "version.xml"> | |
5 | 6 | ]> |
6 | 7 | <book id="index"> |
7 | 8 | <bookinfo> |
8 | <title>Libvirt-glib Reference Manual</title> | |
9 | <title>Libvirt GLib Reference Manual</title> | |
9 | 10 | </bookinfo> |
10 | 11 | |
11 | 12 | <chapter> |
12 | <title>Libvirt-glib</title> | |
13 | <title>API Reference</title> | |
13 | 14 | <xi:include href="xml/libvirt-glib-main.xml"/> |
14 | 15 | <xi:include href="xml/libvirt-glib-error.xml"/> |
15 | 16 | <xi:include href="xml/libvirt-glib-event.xml"/> |
16 | 17 | </chapter> |
17 | 18 | <chapter id="object-tree"> |
18 | 19 | <title>Object Hierarchy</title> |
19 | <xi:include href="xml/tree_index.sgml"/> | |
20 | <xi:include href="xml/tree_index.sgml"/> | |
20 | 21 | </chapter> |
21 | 22 | <index id="api-index-full"> |
22 | 23 | <title>API Index</title> |
38 | 38 | $(top_builddir)/libvirt-glib/libvirt-glib-1.0.la |
39 | 39 | |
40 | 40 | 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. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
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 | ||
6 | 5 | # This Makefile.in is free software; the Free Software Foundation |
7 | 6 | # gives unlimited permission to copy and/or distribute it, |
8 | 7 | # with or without modifications, as long as this notice is preserved. |
20 | 19 | # Everything below here is generic # |
21 | 20 | #################################### |
22 | 21 | 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 | } | |
23 | 39 | pkgdatadir = $(datadir)/@PACKAGE@ |
24 | 40 | pkgincludedir = $(includedir)/@PACKAGE@ |
25 | 41 | pkglibdir = $(libdir)/@PACKAGE@ |
39 | 55 | build_triplet = @build@ |
40 | 56 | host_triplet = @host@ |
41 | 57 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ |
42 | $(top_srcdir)/gtk-doc.make | |
58 | $(srcdir)/version.xml.in $(top_srcdir)/gtk-doc.make | |
43 | 59 | subdir = docs/libvirt-glib |
44 | 60 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
45 | 61 | am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ |
52 | 68 | $(ACLOCAL_M4) |
53 | 69 | mkinstalldirs = $(install_sh) -d |
54 | 70 | CONFIG_HEADER = $(top_builddir)/config.h |
55 | CONFIG_CLEAN_FILES = | |
71 | CONFIG_CLEAN_FILES = version.xml | |
56 | 72 | 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 = : | |
57 | 77 | AM_V_GEN = $(am__v_GEN_@AM_V@) |
58 | 78 | 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 = | |
60 | 81 | AM_V_at = $(am__v_at_@AM_V@) |
61 | 82 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) |
62 | 83 | am__v_at_0 = @ |
84 | am__v_at_1 = | |
63 | 85 | SOURCES = |
64 | 86 | 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 | |
65 | 92 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
66 | 93 | ACLOCAL = @ACLOCAL@ |
67 | 94 | AMTAR = @AMTAR@ |
271 | 298 | $(DOC_MODULE)-sections.txt \ |
272 | 299 | $(DOC_MODULE)-overrides.txt |
273 | 300 | |
274 | EXTRA_DIST = \ | |
275 | $(HTML_IMAGES) \ | |
276 | $(SETUP_FILES) | |
277 | ||
301 | EXTRA_DIST = $(HTML_IMAGES) $(SETUP_FILES) version.xml.in | |
278 | 302 | DOC_STAMPS = setup-build.stamp scan-build.stamp sgml-build.stamp \ |
279 | 303 | html-build.stamp pdf-build.stamp \ |
280 | 304 | sgml.stamp html.stamp pdf.stamp |
330 | 354 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) |
331 | 355 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh |
332 | 356 | $(am__aclocal_m4_deps): |
357 | version.xml: $(top_builddir)/config.status $(srcdir)/version.xml.in | |
358 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ | |
333 | 359 | |
334 | 360 | mostlyclean-libtool: |
335 | 361 | -rm -f *.lo |
341 | 367 | |
342 | 368 | ctags: CTAGS |
343 | 369 | CTAGS: |
370 | ||
371 | cscope cscopelist: | |
344 | 372 | |
345 | 373 | |
346 | 374 | 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 <libvirt-glib/libvirt-glib.h> | |
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">&</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 <libvirt-glib/libvirt-glib.h> | |
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 <libvirt-glib/libvirt-glib.h> | |
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">(&</span><span class="normal">argc</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</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 | <!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 | <!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 | <!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>⏎ |
0 | 0 | <?xml version="1.0" encoding="utf-8" standalone="no"?> |
1 | 1 | <!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"> | |
3 | 3 | <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"/> | |
8 | 8 | </sub> |
9 | 9 | <sub name="Object Hierarchy" link="object-tree.html"/> |
10 | 10 | <sub name="API Index" link="api-index-full.html"/> |
11 | <sub name="Annotation Glossary" link="annotation-glossary.html"/> | |
11 | 12 | </chapters> |
12 | 13 | <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"/> | |
22 | 23 | </functions> |
23 | 24 | </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>⏎ |
3 | 3 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
4 | 4 | <title>API Index</title> |
5 | 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"> | |
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 | 8 | <link rel="prev" href="object-tree.html" title="Object Hierarchy"> |
9 | <link rel="next" href="annotation-glossary.html" title="Annotation Glossary"> | |
9 | 10 | <meta name="generator" content="GTK-Doc V1.18 (XML mode)"> |
10 | 11 | <link rel="stylesheet" href="style.css" type="text/css"> |
11 | 12 | </head> |
15 | 16 | <td><a accesskey="p" href="object-tree.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> |
16 | 17 | <td> </td> |
17 | 18 | <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> | |
20 | 21 | </tr> |
21 | 22 | <tr><td colspan="5" class="shortcuts"> |
22 | 23 | <a class="shortcut" href="#idxE">E</a> |
31 | 32 | <a name="api-index-full"></a>API Index</h2></div></div></div> |
32 | 33 | <a name="idx"></a><a name="idxE"></a><h3 class="title">E</h3> |
33 | 34 | <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> | |
35 | 36 | </dt> |
36 | 37 | <dd></dd> |
37 | 38 | <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> | |
39 | 40 | </dt> |
40 | 41 | <dd></dd> |
41 | 42 | <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> | |
43 | 44 | </dt> |
44 | 45 | <dd></dd> |
45 | 46 | <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> | |
47 | 48 | </dt> |
48 | 49 | <dd></dd> |
49 | 50 | <a name="idxI"></a><h3 class="title">I</h3> |
50 | 51 | <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> | |
52 | 53 | </dt> |
53 | 54 | <dd></dd> |
54 | 55 | <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> | |
56 | 57 | </dt> |
57 | 58 | <dd></dd> |
58 | 59 | <a name="idxS"></a><h3 class="title">S</h3> |
59 | 60 | <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> | |
61 | 62 | </dt> |
62 | 63 | <dd></dd> |
63 | 64 | <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> | |
65 | 66 | </dt> |
66 | 67 | <dd></dd> |
67 | 68 | <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> | |
69 | 70 | </dt> |
70 | 71 | <dd></dd> |
71 | 72 | </div> |
1 | 1 | <html> |
2 | 2 | <head> |
3 | 3 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
4 | <title>Libvirt-glib</title> | |
4 | <title>API Reference</title> | |
5 | 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="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"> | |
10 | 10 | <meta name="generator" content="GTK-Doc V1.18 (XML mode)"> |
11 | 11 | <link rel="stylesheet" href="style.css" type="text/css"> |
12 | 12 | </head> |
15 | 15 | <td><a accesskey="p" href="index.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> |
16 | 16 | <td> </td> |
17 | 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><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> | |
20 | 20 | </tr></table> |
21 | 21 | <div class="chapter"> |
22 | 22 | <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> | |
24 | 24 | <div class="toc"><dl> |
25 | 25 | <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> | |
27 | 27 | </dt> |
28 | 28 | <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> | |
30 | 30 | </dt> |
31 | 31 | <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> | |
33 | 33 | </dt> |
34 | 34 | </dl></div> |
35 | 35 | </div> |
1 | 1 | <html> |
2 | 2 | <head> |
3 | 3 | <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> | |
5 | 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="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"> | |
8 | 8 | <meta name="generator" content="GTK-Doc V1.18 (XML mode)"> |
9 | 9 | <link rel="stylesheet" href="style.css" type="text/css"> |
10 | 10 | </head> |
11 | 11 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> |
12 | 12 | <div class="book"> |
13 | 13 | <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> | |
15 | 15 | <hr> |
16 | 16 | </div> |
17 | 17 | <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> | |
19 | 19 | <dd><dl> |
20 | 20 | <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> | |
22 | 22 | </dt> |
23 | 23 | <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> | |
25 | 25 | </dt> |
26 | 26 | <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> | |
28 | 28 | </dt> |
29 | 29 | </dl></dd> |
30 | 30 | <dt><span class="chapter"><a href="object-tree.html">Object Hierarchy</a></span></dt> |
31 | 31 | <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> | |
32 | 33 | </dl></div> |
33 | 34 | </div> |
34 | 35 | <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"> |
3 | 3 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
4 | 4 | <title>Object Hierarchy</title> |
5 | 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="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"> | |
9 | 9 | <link rel="next" href="api-index-full.html" title="API Index"> |
10 | 10 | <meta name="generator" content="GTK-Doc V1.18 (XML mode)"> |
11 | 11 | <link rel="stylesheet" href="style.css" type="text/css"> |
12 | 12 | </head> |
13 | 13 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> |
14 | 14 | <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> | |
16 | 16 | <td> </td> |
17 | 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> | |
18 | <th width="100%" align="center">Libvirt GLib Reference Manual</th> | |
19 | 19 | <td><a accesskey="n" href="api-index-full.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> |
20 | 20 | </tr></table> |
21 | 21 | <div class="chapter"> |
0 | @VERSION@ |
35 | 35 | gvir_connection_find_network_by_name |
36 | 36 | gvir_connection_find_network_filter_by_name |
37 | 37 | gvir_connection_find_storage_pool_by_name |
38 | gvir_connection_get_capabilities | |
39 | gvir_connection_get_capabilities_async | |
40 | gvir_connection_get_capabilities_finish | |
38 | 41 | gvir_connection_get_domain |
39 | 42 | gvir_connection_get_domains |
40 | 43 | gvir_connection_get_interface |
57 | 60 | gvir_connection_open |
58 | 61 | gvir_connection_open_async |
59 | 62 | 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 | |
60 | 66 | gvir_connection_start_domain |
61 | 67 | <SUBSECTION Standard> |
62 | 68 | GVIR_CONNECTION |
79 | 85 | GVirDomainClass |
80 | 86 | GVirDomainDeleteFlags |
81 | 87 | GVirDomainInfo |
88 | GVirDomainShutdownFlags | |
89 | GVirDomainSnapshotCreateFlags | |
82 | 90 | GVirDomainStartFlags |
83 | 91 | GVirDomainState |
92 | GVirDomainXMLFlags | |
93 | gvir_domain_create_snapshot | |
84 | 94 | gvir_domain_delete |
85 | 95 | gvir_domain_get_config |
86 | 96 | gvir_domain_get_devices |
96 | 106 | gvir_domain_open_graphics |
97 | 107 | gvir_domain_reboot |
98 | 108 | gvir_domain_resume |
109 | gvir_domain_resume_async | |
110 | gvir_domain_resume_finish | |
99 | 111 | gvir_domain_save |
100 | 112 | gvir_domain_save_async |
101 | 113 | gvir_domain_save_finish |
114 | gvir_domain_save_to_file | |
115 | gvir_domain_save_to_file_async | |
116 | gvir_domain_save_to_file_finish | |
102 | 117 | gvir_domain_screenshot |
103 | 118 | gvir_domain_set_config |
104 | 119 | gvir_domain_shutdown |
105 | 120 | gvir_domain_start |
121 | gvir_domain_start_async | |
122 | gvir_domain_start_finish | |
106 | 123 | gvir_domain_stop |
107 | 124 | gvir_domain_suspend |
108 | 125 | <SUBSECTION Standard> |
411 | 428 | GVirStorageVolResizeFlags |
412 | 429 | GVirStorageVolType |
413 | 430 | gvir_storage_vol_delete |
431 | gvir_storage_vol_download | |
414 | 432 | gvir_storage_vol_get_config |
415 | 433 | gvir_storage_vol_get_info |
416 | 434 | gvir_storage_vol_get_name |
417 | 435 | gvir_storage_vol_get_path |
418 | 436 | gvir_storage_vol_resize |
437 | gvir_storage_vol_upload | |
419 | 438 | <SUBSECTION Standard> |
420 | 439 | GVIR_IS_STORAGE_VOL |
421 | 440 | 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. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
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 | ||
6 | 5 | # This Makefile.in is free software; the Free Software Foundation |
7 | 6 | # gives unlimited permission to copy and/or distribute it, |
8 | 7 | # with or without modifications, as long as this notice is preserved. |
20 | 19 | # Everything below here is generic # |
21 | 20 | #################################### |
22 | 21 | 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 | } | |
23 | 39 | pkgdatadir = $(datadir)/@PACKAGE@ |
24 | 40 | pkgincludedir = $(includedir)/@PACKAGE@ |
25 | 41 | pkglibdir = $(libdir)/@PACKAGE@ |
54 | 70 | CONFIG_HEADER = $(top_builddir)/config.h |
55 | 71 | CONFIG_CLEAN_FILES = |
56 | 72 | 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 = : | |
57 | 77 | AM_V_GEN = $(am__v_GEN_@AM_V@) |
58 | 78 | 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 = | |
60 | 81 | AM_V_at = $(am__v_at_@AM_V@) |
61 | 82 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) |
62 | 83 | am__v_at_0 = @ |
84 | am__v_at_1 = | |
63 | 85 | SOURCES = |
64 | 86 | 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 | |
65 | 92 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
66 | 93 | ACLOCAL = @ACLOCAL@ |
67 | 94 | AMTAR = @AMTAR@ |
342 | 369 | ctags: CTAGS |
343 | 370 | CTAGS: |
344 | 371 | |
372 | cscope cscopelist: | |
373 | ||
345 | 374 | |
346 | 375 | distdir: $(DISTFILES) |
347 | 376 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
92 | 92 | <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> |
93 | 93 | (<em class="parameter"><code><a class="link" href="GVirConnection.html" title="GVirConnection"><span class="type">GVirConnection</span></a> *conn</code></em>, |
94 | 94 | <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>); | |
95 | 107 | <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>, |
96 | 108 | <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>); |
97 | 109 | <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>); |
130 | 142 | <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>, |
131 | 143 | <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *result</code></em>, |
132 | 144 | <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>); | |
133 | 163 | <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>, |
134 | 164 | <em class="parameter"><code><a href="/usr/share/gtk-doc/html/Libvirt-gconfig/GVirConfigDomain.html"><span class="type">GVirConfigDomain</span></a> *conf</code></em>, |
135 | 165 | <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>, |
226 | 256 | <tbody> |
227 | 257 | <tr> |
228 | 258 | <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> | |
230 | 260 | </tr> |
231 | 261 | <tr> |
232 | 262 | <td><p><span class="term"><em class="parameter"><code>conf</code></em> :</span></p></td> |
234 | 264 | </tr> |
235 | 265 | <tr> |
236 | 266 | <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> | |
238 | 270 | </td> |
239 | 271 | </tr> |
240 | 272 | </tbody> |
252 | 284 | <tbody> |
253 | 285 | <tr> |
254 | 286 | <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> | |
256 | 288 | </tr> |
257 | 289 | <tr> |
258 | 290 | <td><p><span class="term"><em class="parameter"><code>conf</code></em> :</span></p></td> |
269 | 301 | </tr> |
270 | 302 | <tr> |
271 | 303 | <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> | |
273 | 307 | </td> |
274 | 308 | </tr> |
275 | 309 | </tbody> |
286 | 320 | <tbody> |
287 | 321 | <tr> |
288 | 322 | <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> | |
290 | 325 | </tr> |
291 | 326 | <tr> |
292 | 327 | <td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td> |
308 | 343 | <tbody> |
309 | 344 | <tr> |
310 | 345 | <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> | |
312 | 348 | </tr> |
313 | 349 | <tr> |
314 | 350 | <td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td> |
340 | 376 | <tbody> |
341 | 377 | <tr> |
342 | 378 | <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> | |
344 | 381 | </tr> |
345 | 382 | <tr> |
346 | 383 | <td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td> |
361 | 398 | <tbody> |
362 | 399 | <tr> |
363 | 400 | <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> | |
365 | 403 | </tr> |
366 | 404 | <tr> |
367 | 405 | <td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td> |
384 | 422 | <tbody> |
385 | 423 | <tr> |
386 | 424 | <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> | |
388 | 427 | </tr> |
389 | 428 | <tr> |
390 | 429 | <td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td> |
416 | 455 | <tbody> |
417 | 456 | <tr> |
418 | 457 | <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> | |
420 | 460 | </tr> |
421 | 461 | <tr> |
422 | 462 | <td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td> |
435 | 475 | <col align="left" valign="top"> |
436 | 476 | <tbody> |
437 | 477 | <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> | |
438 | 483 | <td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td> |
439 | 484 | <td>id of the requested domain</td> |
440 | 485 | </tr> |
441 | 486 | <tr> |
442 | 487 | <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> | |
444 | 490 | </td> |
445 | 491 | </tr> |
446 | 492 | </tbody> |
455 | 501 | <col align="left" valign="top"> |
456 | 502 | <tbody> |
457 | 503 | <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> | |
458 | 509 | <td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td> |
459 | 510 | <td>name of the requested domain</td> |
460 | 511 | </tr> |
461 | 512 | <tr> |
462 | 513 | <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> | |
464 | 516 | </td> |
465 | 517 | </tr> |
466 | 518 | </tbody> |
497 | 549 | <col align="left" valign="top"> |
498 | 550 | <tbody> |
499 | 551 | <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> | |
500 | 557 | <td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td> |
501 | 558 | <td>name of the requested storage pool</td> |
502 | 559 | </tr> |
503 | 560 | <tr> |
504 | 561 | <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> | |
506 | 657 | </td> |
507 | 658 | </tr> |
508 | 659 | </tbody> |
517 | 668 | <col align="left" valign="top"> |
518 | 669 | <tbody> |
519 | 670 | <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> | |
520 | 676 | <td><p><span class="term"><em class="parameter"><code>uuid</code></em> :</span></p></td> |
521 | 677 | <td>uuid string of the requested domain</td> |
522 | 678 | </tr> |
523 | 679 | <tr> |
524 | 680 | <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> | |
526 | 683 | </td> |
527 | 684 | </tr> |
528 | 685 | </tbody> |
532 | 689 | <div class="refsect2"> |
533 | 690 | <a name="gvir-connection-get-domains"></a><h3>gvir_connection_get_domains ()</h3> |
534 | 691 | <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> | |
542 | 711 | </table></div> |
543 | 712 | </div> |
544 | 713 | <hr> |
595 | 764 | <tbody> |
596 | 765 | <tr> |
597 | 766 | <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> | |
599 | 769 | </tr> |
600 | 770 | <tr> |
601 | 771 | <td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td> |
604 | 774 | </tr> |
605 | 775 | <tr> |
606 | 776 | <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> | |
608 | 780 | </td> |
609 | 781 | </tr> |
610 | 782 | </tbody> |
630 | 802 | <col align="left" valign="top"> |
631 | 803 | <tbody> |
632 | 804 | <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> | |
633 | 810 | <td><p><span class="term"><em class="parameter"><code>uuid</code></em> :</span></p></td> |
634 | 811 | <td>uuid string of the requested storage pool</td> |
635 | 812 | </tr> |
636 | 813 | <tr> |
637 | 814 | <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> | |
639 | 817 | </td> |
640 | 818 | </tr> |
641 | 819 | </tbody> |
645 | 823 | <div class="refsect2"> |
646 | 824 | <a name="gvir-connection-get-storage-pools"></a><h3>gvir_connection_get_storage_pools ()</h3> |
647 | 825 | <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> | |
651 | 838 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
652 | 839 | <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> | |
656 | 846 | </table></div> |
657 | 847 | </div> |
658 | 848 | <hr> |
664 | 854 | <col align="left" valign="top"> |
665 | 855 | <tbody> |
666 | 856 | <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> | |
667 | 862 | <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td> |
668 | 863 | <td>flags to use for the stream</td> |
669 | 864 | </tr> |
670 | 865 | <tr> |
671 | 866 | <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> | |
673 | 869 | </td> |
674 | 870 | </tr> |
675 | 871 | </tbody> |
701 | 897 | <tbody> |
702 | 898 | <tr> |
703 | 899 | <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> | |
705 | 902 | </tr> |
706 | 903 | <tr> |
707 | 904 | <td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td> |
723 | 920 | <tbody> |
724 | 921 | <tr> |
725 | 922 | <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> | |
727 | 925 | </tr> |
728 | 926 | <tr> |
729 | 927 | <td><p><span class="term"><em class="parameter"><code>cancellable</code></em> :</span></p></td> |
754 | 952 | <tbody> |
755 | 953 | <tr> |
756 | 954 | <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> | |
758 | 957 | </tr> |
759 | 958 | <tr> |
760 | 959 | <td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td> |
761 | 960 | <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> |
762 | 961 | </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> | |
763 | 1089 | </tr> |
764 | 1090 | </tbody> |
765 | 1091 | </table></div> |
780 | 1106 | <tbody> |
781 | 1107 | <tr> |
782 | 1108 | <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> | |
784 | 1110 | </tr> |
785 | 1111 | <tr> |
786 | 1112 | <td><p><span class="term"><em class="parameter"><code>conf</code></em> :</span></p></td> |
788 | 1114 | </tr> |
789 | 1115 | <tr> |
790 | 1116 | <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> | |
792 | 1120 | </td> |
793 | 1121 | </tr> |
794 | 1122 | </tbody> |
46 | 46 | struct <a class="link" href="GVirDomain.html#GVirDomainClass" title="struct GVirDomainClass">GVirDomainClass</a>; |
47 | 47 | enum <a class="link" href="GVirDomain.html#GVirDomainDeleteFlags" title="enum GVirDomainDeleteFlags">GVirDomainDeleteFlags</a>; |
48 | 48 | 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>; | |
49 | 51 | enum <a class="link" href="GVirDomain.html#GVirDomainStartFlags" title="enum GVirDomainStartFlags">GVirDomainStartFlags</a>; |
50 | 52 | 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>); | |
51 | 58 | <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>, |
52 | 59 | <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>, |
53 | 60 | <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>); |
86 | 93 | <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>); |
87 | 94 | <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>, |
88 | 95 | <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>); | |
89 | 103 | <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>, |
90 | 104 | <em class="parameter"><code>unsigned <span class="type">int</span> flags</code></em>, |
91 | 105 | <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>); |
97 | 111 | <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>, |
98 | 112 | <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *result</code></em>, |
99 | 113 | <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>); | |
100 | 129 | <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>, |
101 | 130 | <em class="parameter"><code><a class="link" href="GVirStream.html" title="GVirStream"><span class="type">GVirStream</span></a> *stream</code></em>, |
102 | 131 | <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>, |
110 | 139 | <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>); |
111 | 140 | <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>, |
112 | 141 | <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>, | |
113 | 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>); |
114 | 151 | <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>, |
115 | 152 | <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>, |
217 | 254 | </div> |
218 | 255 | <hr> |
219 | 256 | <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"> | |
220 | 354 | <a name="GVirDomainStartFlags"></a><h3>enum GVirDomainStartFlags</h3> |
221 | 355 | <pre class="programlisting">typedef enum { |
222 | 356 | GVIR_DOMAIN_START_NONE = 0, |
243 | 377 | </div> |
244 | 378 | <hr> |
245 | 379 | <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"> | |
246 | 454 | <a name="gvir-domain-delete"></a><h3>gvir_domain_delete ()</h3> |
247 | 455 | <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>, |
248 | 456 | <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>, |
276 | 484 | </tr> |
277 | 485 | <tr> |
278 | 486 | <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> | |
281 | 494 | </tr> |
282 | 495 | </tbody> |
283 | 496 | </table></div> |
288 | 501 | <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>, |
289 | 502 | <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> |
290 | 503 | <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>. | |
292 | 507 | </p> |
293 | 508 | <div class="variablelist"><table border="0"> |
294 | 509 | <col align="left" valign="top"> |
323 | 538 | <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> |
324 | 539 | <div class="variablelist"><table border="0"> |
325 | 540 | <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> | |
331 | 553 | </table></div> |
332 | 554 | </div> |
333 | 555 | <hr> |
392 | 614 | </tr> |
393 | 615 | <tr> |
394 | 616 | <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> | |
396 | 619 | </td> |
397 | 620 | </tr> |
398 | 621 | </tbody> |
559 | 782 | <td>the domain</td> |
560 | 783 | </tr> |
561 | 784 | <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> | |
562 | 789 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
563 | 790 | <td>TRUE on success</td> |
564 | 791 | </tr> |
565 | 792 | </tbody> |
566 | 793 | </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> | |
567 | 836 | </div> |
568 | 837 | <hr> |
569 | 838 | <div class="refsect2"> |
672 | 941 | </div> |
673 | 942 | <hr> |
674 | 943 | <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"> | |
675 | 1062 | <a name="gvir-domain-screenshot"></a><h3>gvir_domain_screenshot ()</h3> |
676 | 1063 | <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>, |
677 | 1064 | <em class="parameter"><code><a class="link" href="GVirStream.html" title="GVirStream"><span class="type">GVirStream</span></a> *stream</code></em>, |
695 | 1082 | </tr> |
696 | 1083 | <tr> |
697 | 1084 | <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> | |
699 | 1087 | </td> |
700 | 1088 | </tr> |
701 | 1089 | </tbody> |
752 | 1140 | </tr> |
753 | 1141 | <tr> |
754 | 1142 | <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> | |
756 | 1144 | </tr> |
757 | 1145 | </tbody> |
758 | 1146 | </table></div> |
776 | 1164 | </tr> |
777 | 1165 | </tbody> |
778 | 1166 | </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> | |
779 | 1214 | </div> |
780 | 1215 | <hr> |
781 | 1216 | <div class="refsect2"> |
97 | 97 | </tr> |
98 | 98 | <tr> |
99 | 99 | <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> | |
102 | 107 | </tr> |
103 | 108 | </tbody> |
104 | 109 | </table></div> |
95 | 95 | </tr> |
96 | 96 | <tr> |
97 | 97 | <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> | |
100 | 109 | </tr> |
101 | 110 | </tbody> |
102 | 111 | </table></div> |
100 | 100 | <a name="gvir-manager-find-connection-by-uri"></a><h3>gvir_manager_find_connection_by_uri ()</h3> |
101 | 101 | <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>, |
102 | 102 | <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> | |
103 | 113 | </div> |
104 | 114 | <hr> |
105 | 115 | <div class="refsect2"> |
106 | 116 | <a name="gvir-manager-get-connections"></a><h3>gvir_manager_get_connections ()</h3> |
107 | 117 | <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> | |
108 | 128 | </div> |
109 | 129 | <hr> |
110 | 130 | <div class="refsect2"> |
99 | 99 | </tr> |
100 | 100 | <tr> |
101 | 101 | <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> | |
104 | 113 | </tr> |
105 | 114 | </tbody> |
106 | 115 | </table></div> |
98 | 98 | </tr> |
99 | 99 | <tr> |
100 | 100 | <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> | |
103 | 112 | </tr> |
104 | 113 | </tbody> |
105 | 114 | </table></div> |
95 | 95 | </tr> |
96 | 96 | <tr> |
97 | 97 | <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> | |
100 | 109 | </tr> |
101 | 110 | </tbody> |
102 | 111 | </table></div> |
96 | 96 | </tr> |
97 | 97 | <tr> |
98 | 98 | <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> | |
101 | 110 | </tr> |
102 | 111 | </tbody> |
103 | 112 | </table></div> |
263 | 263 | </tr> |
264 | 264 | <tr> |
265 | 265 | <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> | |
268 | 277 | </tr> |
269 | 278 | </tbody> |
270 | 279 | </table></div> |
284 | 293 | </tr> |
285 | 294 | <tr> |
286 | 295 | <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> | |
289 | 307 | </tr> |
290 | 308 | </tbody> |
291 | 309 | </table></div> |
297 | 315 | <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> |
298 | 316 | <div class="variablelist"><table border="0"> |
299 | 317 | <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> | |
305 | 334 | </table></div> |
306 | 335 | </div> |
307 | 336 | <hr> |
332 | 361 | </tr> |
333 | 362 | <tr> |
334 | 363 | <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> | |
336 | 367 | </td> |
337 | 368 | </tr> |
338 | 369 | </tbody> |
351 | 382 | </tr> |
352 | 383 | <tr> |
353 | 384 | <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> | |
356 | 388 | </td> |
357 | 389 | </tr> |
358 | 390 | </tbody> |
48 | 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="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>, |
49 | 49 | <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>, |
50 | 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 | <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>); | |
51 | 57 | <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>, |
52 | 58 | <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>, |
53 | 59 | <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>); |
58 | 64 | <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>); |
59 | 65 | <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>, |
60 | 66 | <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>, | |
61 | 73 | <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>, |
62 | 74 | <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>); |
63 | 75 | </pre> |
190 | 202 | </div> |
191 | 203 | <hr> |
192 | 204 | <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"> | |
193 | 245 | <a name="gvir-storage-vol-get-config"></a><h3>gvir_storage_vol_get_config ()</h3> |
194 | 246 | <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>, |
195 | 247 | <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>, |
203 | 255 | </tr> |
204 | 256 | <tr> |
205 | 257 | <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> | |
208 | 269 | </tr> |
209 | 270 | </tbody> |
210 | 271 | </table></div> |
216 | 277 | <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> |
217 | 278 | <div class="variablelist"><table border="0"> |
218 | 279 | <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> | |
224 | 296 | </table></div> |
225 | 297 | </div> |
226 | 298 | <hr> |
272 | 344 | </tbody> |
273 | 345 | </table></div> |
274 | 346 | </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> | |
275 | 387 | </div> |
276 | 388 | <div class="refsect1"> |
277 | 389 | <a name="GVirStorageVol.property-details"></a><h2>Property Details</h2> |
163 | 163 | </tr> |
164 | 164 | <tr> |
165 | 165 | <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 | |
168 | 171 | of file, or -1 upon error</td> |
169 | 172 | </tr> |
170 | 173 | </tbody> |
196 | 199 | </tr> |
197 | 200 | <tr> |
198 | 201 | <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 | |
201 | 207 | of file, or -1 upon error</td> |
202 | 208 | </tr> |
203 | 209 | </tbody> |
210 | 216 | <em class="parameter"><code><a class="link" href="GVirStream.html#GVirStreamIOCondition" title="enum GVirStreamIOCondition"><span class="type">GVirStreamIOCondition</span></a> cond</code></em>, |
211 | 217 | <em class="parameter"><code><a class="link" href="GVirStream.html#GVirStreamIOFunc" title="GVirStreamIOFunc ()"><span class="type">GVirStreamIOFunc</span></a> func</code></em>, |
212 | 218 | <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> | |
213 | 249 | </div> |
214 | 250 | <hr> |
215 | 251 | <div class="refsect2"> |
346 | 382 | </tr> |
347 | 383 | <tr> |
348 | 384 | <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> | |
352 | 396 | </tr> |
353 | 397 | </tbody> |
354 | 398 | </table></div> |
439 | 483 | </tr> |
440 | 484 | <tr> |
441 | 485 | <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> | |
445 | 497 | </tr> |
446 | 498 | </tbody> |
447 | 499 | </table></div> |
38 | 38 | <keyword type="function" name="gvir_connection_find_network_by_name ()" link="GVirConnection.html#gvir-connection-find-network-by-name"/> |
39 | 39 | <keyword type="function" name="gvir_connection_find_network_filter_by_name ()" link="GVirConnection.html#gvir-connection-find-network-filter-by-name"/> |
40 | 40 | <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"/> | |
41 | 44 | <keyword type="function" name="gvir_connection_get_domain ()" link="GVirConnection.html#gvir-connection-get-domain"/> |
42 | 45 | <keyword type="function" name="gvir_connection_get_domains ()" link="GVirConnection.html#gvir-connection-get-domains"/> |
43 | 46 | <keyword type="function" name="gvir_connection_get_interface ()" link="GVirConnection.html#gvir-connection-get-interface"/> |
60 | 63 | <keyword type="function" name="gvir_connection_open ()" link="GVirConnection.html#gvir-connection-open"/> |
61 | 64 | <keyword type="function" name="gvir_connection_open_async ()" link="GVirConnection.html#gvir-connection-open-async"/> |
62 | 65 | <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"/> | |
63 | 69 | <keyword type="function" name="gvir_connection_start_domain ()" link="GVirConnection.html#gvir-connection-start-domain"/> |
64 | 70 | <keyword type="property" name="The "handle" property" link="GVirConnection.html#GVirConnection--handle"/> |
65 | 71 | <keyword type="property" name="The "uri" property" link="GVirConnection.html#GVirConnection--uri"/> |
71 | 77 | <keyword type="struct" name="struct GVirDomainClass" link="GVirDomain.html#GVirDomainClass"/> |
72 | 78 | <keyword type="enum" name="enum GVirDomainDeleteFlags" link="GVirDomain.html#GVirDomainDeleteFlags"/> |
73 | 79 | <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"/> | |
74 | 82 | <keyword type="enum" name="enum GVirDomainStartFlags" link="GVirDomain.html#GVirDomainStartFlags"/> |
75 | 83 | <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"/> | |
76 | 86 | <keyword type="function" name="gvir_domain_delete ()" link="GVirDomain.html#gvir-domain-delete"/> |
77 | 87 | <keyword type="function" name="gvir_domain_get_config ()" link="GVirDomain.html#gvir-domain-get-config"/> |
78 | 88 | <keyword type="function" name="gvir_domain_get_devices ()" link="GVirDomain.html#gvir-domain-get-devices"/> |
88 | 98 | <keyword type="function" name="gvir_domain_open_graphics ()" link="GVirDomain.html#gvir-domain-open-graphics"/> |
89 | 99 | <keyword type="function" name="gvir_domain_reboot ()" link="GVirDomain.html#gvir-domain-reboot"/> |
90 | 100 | <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"/> | |
91 | 103 | <keyword type="function" name="gvir_domain_save ()" link="GVirDomain.html#gvir-domain-save"/> |
92 | 104 | <keyword type="function" name="gvir_domain_save_async ()" link="GVirDomain.html#gvir-domain-save-async"/> |
93 | 105 | <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"/> | |
94 | 109 | <keyword type="function" name="gvir_domain_screenshot ()" link="GVirDomain.html#gvir-domain-screenshot"/> |
95 | 110 | <keyword type="function" name="gvir_domain_set_config ()" link="GVirDomain.html#gvir-domain-set-config"/> |
96 | 111 | <keyword type="function" name="gvir_domain_shutdown ()" link="GVirDomain.html#gvir-domain-shutdown"/> |
97 | 112 | <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"/> | |
98 | 115 | <keyword type="function" name="gvir_domain_stop ()" link="GVirDomain.html#gvir-domain-stop"/> |
99 | 116 | <keyword type="function" name="gvir_domain_suspend ()" link="GVirDomain.html#gvir-domain-suspend"/> |
100 | 117 | <keyword type="property" name="The "handle" property" link="GVirDomain.html#GVirDomain--handle"/> |
173 | 190 | <keyword type="enum" name="enum GVirStorageVolResizeFlags" link="GVirStorageVol.html#GVirStorageVolResizeFlags"/> |
174 | 191 | <keyword type="enum" name="enum GVirStorageVolType" link="GVirStorageVol.html#GVirStorageVolType"/> |
175 | 192 | <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"/> | |
176 | 194 | <keyword type="function" name="gvir_storage_vol_get_config ()" link="GVirStorageVol.html#gvir-storage-vol-get-config"/> |
177 | 195 | <keyword type="function" name="gvir_storage_vol_get_info ()" link="GVirStorageVol.html#gvir-storage-vol-get-info"/> |
178 | 196 | <keyword type="function" name="gvir_storage_vol_get_name ()" link="GVirStorageVol.html#gvir-storage-vol-get-name"/> |
179 | 197 | <keyword type="function" name="gvir_storage_vol_get_path ()" link="GVirStorageVol.html#gvir-storage-vol-get-path"/> |
180 | 198 | <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"/> | |
181 | 200 | <keyword type="property" name="The "handle" property" link="GVirStorageVol.html#GVirStorageVol--handle"/> |
182 | 201 | <keyword type="property" name="The "pool" property" link="GVirStorageVol.html#GVirStorageVol--pool"/> |
183 | 202 | <keyword type="struct" name="struct GVirStream" link="GVirStream.html#GVirStream-struct"/> |
196 | 215 | <keyword type="constant" name="GVIR_DOMAIN_DELETE_NONE" link="GVirDomain.html#GVIR-DOMAIN-DELETE-NONE:CAPS"/> |
197 | 216 | <keyword type="constant" name="GVIR_DOMAIN_DELETE_SAVED_STATE" link="GVirDomain.html#GVIR-DOMAIN-DELETE-SAVED-STATE:CAPS"/> |
198 | 217 | <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"/> | |
199 | 234 | <keyword type="constant" name="GVIR_STORAGE_VOL_RESIZE_NONE" link="GVirStorageVol.html#GVIR-STORAGE-VOL-RESIZE-NONE:CAPS"/> |
200 | 235 | <keyword type="constant" name="GVIR_STORAGE_VOL_RESIZE_ALLOCATE" link="GVirStorageVol.html#GVIR-STORAGE-VOL-RESIZE-ALLOCATE:CAPS"/> |
201 | 236 | <keyword type="constant" name="GVIR_STORAGE_VOL_RESIZE_DELTA" link="GVirStorageVol.html#GVIR-STORAGE-VOL-RESIZE-DELTA:CAPS"/> |
188 | 188 | </dt> |
189 | 189 | <dd></dd> |
190 | 190 | <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> | |
191 | 195 | <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> |
192 | 196 | </dt> |
193 | 197 | <dd></dd> |
200 | 204 | </dt> |
201 | 205 | <dd></dd> |
202 | 206 | <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> | |
203 | 211 | <a class="link" href="GVirDomain.html#GVirDomainStartFlags" title="enum GVirDomainStartFlags">GVirDomainStartFlags</a>, enum in <a class="link" href="GVirDomain.html" title="GVirDomain">GVirDomain</a> |
204 | 212 | </dt> |
205 | 213 | <dd></dd> |
208 | 216 | </dt> |
209 | 217 | <dd></dd> |
210 | 218 | <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> | |
211 | 223 | GVirInputStreamClass, struct in GVirInputStream |
212 | 224 | </dt> |
213 | 225 | <dd></dd> |
432 | 444 | </dt> |
433 | 445 | <dd></dd> |
434 | 446 | <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> | |
435 | 459 | <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> |
436 | 460 | </dt> |
437 | 461 | <dd></dd> |
520 | 544 | </dt> |
521 | 545 | <dd></dd> |
522 | 546 | <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> | |
523 | 559 | <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> |
524 | 560 | </dt> |
525 | 561 | <dd></dd> |
526 | 562 | <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> | |
527 | 567 | <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> |
528 | 568 | </dt> |
529 | 569 | <dd></dd> |
608 | 648 | </dt> |
609 | 649 | <dd></dd> |
610 | 650 | <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> | |
611 | 659 | <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> |
612 | 660 | </dt> |
613 | 661 | <dd></dd> |
620 | 668 | </dt> |
621 | 669 | <dd></dd> |
622 | 670 | <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> | |
623 | 683 | <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> |
624 | 684 | </dt> |
625 | 685 | <dd></dd> |
644 | 704 | </dt> |
645 | 705 | <dd></dd> |
646 | 706 | <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> | |
647 | 715 | <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> |
648 | 716 | </dt> |
649 | 717 | <dd></dd> |
800 | 868 | </dt> |
801 | 869 | <dd></dd> |
802 | 870 | <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> | |
803 | 875 | <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> |
804 | 876 | </dt> |
805 | 877 | <dd></dd> |
817 | 889 | <dd></dd> |
818 | 890 | <dt> |
819 | 891 | <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> | |
820 | 896 | </dt> |
821 | 897 | <dd></dd> |
822 | 898 | <dt> |
20 | 20 | </tr></table> |
21 | 21 | <div class="chapter"> |
22 | 22 | <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> | |
24 | 24 | <div class="toc"><dl> |
25 | 25 | <dt> |
26 | 26 | <span class="refentrytitle"><a href="GVirConnection.html">GVirConnection</a></span><span class="refpurpose"></span> |
23 | 23 | <ANCHOR id="gvir-connection-find-network-by-name" href="Libvirt-gobject/GVirConnection.html#gvir-connection-find-network-by-name"> |
24 | 24 | <ANCHOR id="gvir-connection-find-network-filter-by-name" href="Libvirt-gobject/GVirConnection.html#gvir-connection-find-network-filter-by-name"> |
25 | 25 | <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"> | |
26 | 29 | <ANCHOR id="gvir-connection-get-domain" href="Libvirt-gobject/GVirConnection.html#gvir-connection-get-domain"> |
27 | 30 | <ANCHOR id="gvir-connection-get-domains" href="Libvirt-gobject/GVirConnection.html#gvir-connection-get-domains"> |
28 | 31 | <ANCHOR id="gvir-connection-get-interface" href="Libvirt-gobject/GVirConnection.html#gvir-connection-get-interface"> |
45 | 48 | <ANCHOR id="gvir-connection-open" href="Libvirt-gobject/GVirConnection.html#gvir-connection-open"> |
46 | 49 | <ANCHOR id="gvir-connection-open-async" href="Libvirt-gobject/GVirConnection.html#gvir-connection-open-async"> |
47 | 50 | <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"> | |
48 | 54 | <ANCHOR id="gvir-connection-start-domain" href="Libvirt-gobject/GVirConnection.html#gvir-connection-start-domain"> |
49 | 55 | <ANCHOR id="GVirConnection.property-details" href="Libvirt-gobject/GVirConnection.html#GVirConnection.property-details"> |
50 | 56 | <ANCHOR id="GVirConnection--handle" href="Libvirt-gobject/GVirConnection.html#GVirConnection--handle"> |
69 | 75 | <ANCHOR id="GVIR-DOMAIN-DELETE-SAVED-STATE:CAPS" href="Libvirt-gobject/GVirDomain.html#GVIR-DOMAIN-DELETE-SAVED-STATE:CAPS"> |
70 | 76 | <ANCHOR id="GVIR-DOMAIN-DELETE-SNAPSHOTS-METADATA:CAPS" href="Libvirt-gobject/GVirDomain.html#GVIR-DOMAIN-DELETE-SNAPSHOTS-METADATA:CAPS"> |
71 | 77 | <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"> | |
72 | 92 | <ANCHOR id="GVirDomainStartFlags" href="Libvirt-gobject/GVirDomain.html#GVirDomainStartFlags"> |
73 | 93 | <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"> | |
74 | 100 | <ANCHOR id="gvir-domain-delete" href="Libvirt-gobject/GVirDomain.html#gvir-domain-delete"> |
75 | 101 | <ANCHOR id="gvir-domain-get-config" href="Libvirt-gobject/GVirDomain.html#gvir-domain-get-config"> |
76 | 102 | <ANCHOR id="gvir-domain-get-devices" href="Libvirt-gobject/GVirDomain.html#gvir-domain-get-devices"> |
86 | 112 | <ANCHOR id="gvir-domain-open-graphics" href="Libvirt-gobject/GVirDomain.html#gvir-domain-open-graphics"> |
87 | 113 | <ANCHOR id="gvir-domain-reboot" href="Libvirt-gobject/GVirDomain.html#gvir-domain-reboot"> |
88 | 114 | <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"> | |
89 | 117 | <ANCHOR id="gvir-domain-save" href="Libvirt-gobject/GVirDomain.html#gvir-domain-save"> |
90 | 118 | <ANCHOR id="gvir-domain-save-async" href="Libvirt-gobject/GVirDomain.html#gvir-domain-save-async"> |
91 | 119 | <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"> | |
92 | 123 | <ANCHOR id="gvir-domain-screenshot" href="Libvirt-gobject/GVirDomain.html#gvir-domain-screenshot"> |
93 | 124 | <ANCHOR id="gvir-domain-set-config" href="Libvirt-gobject/GVirDomain.html#gvir-domain-set-config"> |
94 | 125 | <ANCHOR id="gvir-domain-shutdown" href="Libvirt-gobject/GVirDomain.html#gvir-domain-shutdown"> |
95 | 126 | <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"> | |
96 | 129 | <ANCHOR id="gvir-domain-stop" href="Libvirt-gobject/GVirDomain.html#gvir-domain-stop"> |
97 | 130 | <ANCHOR id="gvir-domain-suspend" href="Libvirt-gobject/GVirDomain.html#gvir-domain-suspend"> |
98 | 131 | <ANCHOR id="GVirDomain.property-details" href="Libvirt-gobject/GVirDomain.html#GVirDomain.property-details"> |
241 | 274 | <ANCHOR id="GVIR-STORAGE-VOL-RESIZE-SHRINK:CAPS" href="Libvirt-gobject/GVirStorageVol.html#GVIR-STORAGE-VOL-RESIZE-SHRINK:CAPS"> |
242 | 275 | <ANCHOR id="GVirStorageVolType" href="Libvirt-gobject/GVirStorageVol.html#GVirStorageVolType"> |
243 | 276 | <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"> | |
244 | 278 | <ANCHOR id="gvir-storage-vol-get-config" href="Libvirt-gobject/GVirStorageVol.html#gvir-storage-vol-get-config"> |
245 | 279 | <ANCHOR id="gvir-storage-vol-get-info" href="Libvirt-gobject/GVirStorageVol.html#gvir-storage-vol-get-info"> |
246 | 280 | <ANCHOR id="gvir-storage-vol-get-name" href="Libvirt-gobject/GVirStorageVol.html#gvir-storage-vol-get-name"> |
247 | 281 | <ANCHOR id="gvir-storage-vol-get-path" href="Libvirt-gobject/GVirStorageVol.html#gvir-storage-vol-get-path"> |
248 | 282 | <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"> | |
249 | 284 | <ANCHOR id="GVirStorageVol.property-details" href="Libvirt-gobject/GVirStorageVol.html#GVirStorageVol.property-details"> |
250 | 285 | <ANCHOR id="GVirStorageVol--handle" href="Libvirt-gobject/GVirStorageVol.html#GVirStorageVol--handle"> |
251 | 286 | <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. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
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 | ||
6 | 5 | # This Makefile.in is free software; the Free Software Foundation |
7 | 6 | # gives unlimited permission to copy and/or distribute it, |
8 | 7 | # with or without modifications, as long as this notice is preserved. |
15 | 14 | @SET_MAKE@ |
16 | 15 | |
17 | 16 | 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 | } | |
18 | 34 | pkgdatadir = $(datadir)/@PACKAGE@ |
19 | 35 | pkgincludedir = $(includedir)/@PACKAGE@ |
20 | 36 | pkglibdir = $(libdir)/@PACKAGE@ |
35 | 51 | host_triplet = @host@ |
36 | 52 | noinst_PROGRAMS = event-test$(EXEEXT) conn-test$(EXEEXT) |
37 | 53 | 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 | |
39 | 56 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
40 | 57 | am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ |
41 | 58 | $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ |
60 | 77 | AM_V_lt = $(am__v_lt_@AM_V@) |
61 | 78 | am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) |
62 | 79 | am__v_lt_0 = --silent |
80 | am__v_lt_1 = | |
63 | 81 | conn_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ |
64 | 82 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(conn_test_CFLAGS) \ |
65 | 83 | $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ |
70 | 88 | event_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ |
71 | 89 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(event_test_CFLAGS) \ |
72 | 90 | $(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 = | |
73 | 103 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) |
74 | 104 | depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp |
75 | 105 | am__depfiles_maybe = depfiles |
82 | 112 | $(AM_CFLAGS) $(CFLAGS) |
83 | 113 | AM_V_CC = $(am__v_CC_@AM_V@) |
84 | 114 | 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 = | |
89 | 117 | CCLD = $(CC) |
90 | 118 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ |
91 | 119 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ |
92 | 120 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ |
93 | 121 | AM_V_CCLD = $(am__v_CCLD_@AM_V@) |
94 | 122 | 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 = | |
99 | 125 | SOURCES = $(conn_test_SOURCES) $(event_test_SOURCES) |
100 | 126 | 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 | |
101 | 132 | ETAGS = etags |
102 | 133 | CTAGS = ctags |
103 | 134 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
459 | 490 | && $(am__cd) $(top_srcdir) \ |
460 | 491 | && gtags -i $(GTAGS_ARGS) "$$here" |
461 | 492 | |
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 | ||
462 | 507 | distclean-tags: |
463 | 508 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
464 | 509 | |
600 | 645 | .MAKE: install-am install-strip |
601 | 646 | |
602 | 647 | .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 \ | |
604 | 649 | distclean-compile distclean-generic distclean-libtool \ |
605 | 650 | distclean-tags distdir dvi dvi-am html html-am info info-am \ |
606 | 651 | install install-am install-data install-data-am install-dvi \ |
11 | 11 | libvirt-gconfig-main.h \ |
12 | 12 | libvirt-gconfig-object.h \ |
13 | 13 | 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 \ | |
14 | 22 | libvirt-gconfig-domain.h \ |
15 | 23 | libvirt-gconfig-domain-address.h \ |
16 | 24 | libvirt-gconfig-domain-address-pci.h \ |
24 | 32 | libvirt-gconfig-domain-console.h \ |
25 | 33 | libvirt-gconfig-domain-controller.h \ |
26 | 34 | libvirt-gconfig-domain-controller-usb.h \ |
35 | libvirt-gconfig-domain-cpu.h \ | |
36 | libvirt-gconfig-domain-cpu-feature.h \ | |
27 | 37 | libvirt-gconfig-domain-device.h \ |
28 | 38 | libvirt-gconfig-domain-disk.h \ |
29 | 39 | libvirt-gconfig-domain-filesys.h \ |
63 | 73 | libvirt-gconfig-storage-vol-target.h |
64 | 74 | noinst_HEADERS = \ |
65 | 75 | libvirt-gconfig-private.h \ |
76 | libvirt-gconfig-capabilities-cpu-private.h \ | |
66 | 77 | libvirt-gconfig-domain-device-private.h \ |
67 | 78 | libvirt-gconfig-helpers-private.h \ |
68 | 79 | libvirt-gconfig-object-private.h \ |
71 | 82 | libvirt-gconfig-object.c \ |
72 | 83 | libvirt-gconfig-main.c \ |
73 | 84 | 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 \ | |
74 | 93 | libvirt-gconfig-domain.c \ |
75 | 94 | libvirt-gconfig-domain-address.c \ |
76 | 95 | libvirt-gconfig-domain-address-pci.c \ |
84 | 103 | libvirt-gconfig-domain-console.c \ |
85 | 104 | libvirt-gconfig-domain-controller.c \ |
86 | 105 | libvirt-gconfig-domain-controller-usb.c \ |
106 | libvirt-gconfig-domain-cpu.c \ | |
107 | libvirt-gconfig-domain-cpu-feature.c \ | |
87 | 108 | libvirt-gconfig-domain-device.c \ |
88 | 109 | libvirt-gconfig-domain-disk.c \ |
89 | 110 | 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. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
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 | ||
6 | 5 | # This Makefile.in is free software; the Free Software Foundation |
7 | 6 | # gives unlimited permission to copy and/or distribute it, |
8 | 7 | # with or without modifications, as long as this notice is preserved. |
17 | 16 | |
18 | 17 | |
19 | 18 | 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 | } | |
20 | 36 | pkgdatadir = $(datadir)/@PACKAGE@ |
21 | 37 | pkgincludedir = $(includedir)/@PACKAGE@ |
22 | 38 | pkglibdir = $(libdir)/@PACKAGE@ |
38 | 54 | @WITH_GOBJECT_INTROSPECTION_TRUE@am__append_1 = $(gir_DATA) $(typelibs_DATA) |
39 | 55 | subdir = libvirt-gconfig |
40 | 56 | 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 | |
42 | 59 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
43 | 60 | am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ |
44 | 61 | $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ |
90 | 107 | am__objects_3 = libvirt_gconfig_1_0_la-libvirt-gconfig-object.lo \ |
91 | 108 | libvirt_gconfig_1_0_la-libvirt-gconfig-main.lo \ |
92 | 109 | 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 \ | |
93 | 118 | libvirt_gconfig_1_0_la-libvirt-gconfig-domain.lo \ |
94 | 119 | libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address.lo \ |
95 | 120 | libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address-pci.lo \ |
103 | 128 | libvirt_gconfig_1_0_la-libvirt-gconfig-domain-console.lo \ |
104 | 129 | libvirt_gconfig_1_0_la-libvirt-gconfig-domain-controller.lo \ |
105 | 130 | 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 \ | |
106 | 133 | libvirt_gconfig_1_0_la-libvirt-gconfig-domain-device.lo \ |
107 | 134 | libvirt_gconfig_1_0_la-libvirt-gconfig-domain-disk.lo \ |
108 | 135 | libvirt_gconfig_1_0_la-libvirt-gconfig-domain-filesys.lo \ |
149 | 176 | AM_V_lt = $(am__v_lt_@AM_V@) |
150 | 177 | am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) |
151 | 178 | am__v_lt_0 = --silent |
179 | am__v_lt_1 = | |
152 | 180 | libvirt_gconfig_1_0_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ |
153 | 181 | $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ |
154 | 182 | $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) \ |
155 | 183 | $(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 = | |
156 | 196 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) |
157 | 197 | depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp |
158 | 198 | am__depfiles_maybe = depfiles |
165 | 205 | $(AM_CFLAGS) $(CFLAGS) |
166 | 206 | AM_V_CC = $(am__v_CC_@AM_V@) |
167 | 207 | 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 = | |
172 | 210 | CCLD = $(CC) |
173 | 211 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ |
174 | 212 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ |
175 | 213 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ |
176 | 214 | AM_V_CCLD = $(am__v_CCLD_@AM_V@) |
177 | 215 | 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 = | |
182 | 218 | SOURCES = $(libvirt_gconfig_1_0_la_SOURCES) \ |
183 | 219 | $(nodist_libvirt_gconfig_1_0_la_SOURCES) |
184 | 220 | DIST_SOURCES = $(libvirt_gconfig_1_0_la_SOURCES) |
189 | 225 | install-pdf-recursive install-ps-recursive install-recursive \ |
190 | 226 | installcheck-recursive installdirs-recursive pdf-recursive \ |
191 | 227 | 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 | |
192 | 233 | DATA = $(gir_DATA) $(typelibs_DATA) |
193 | 234 | HEADERS = $(libvirt_gconfig_1_0_la_HEADERS) \ |
194 | 235 | $(nodist_libvirt_gconfig_1_0_la_HEADERS) $(noinst_HEADERS) |
400 | 441 | libvirt-gconfig-main.h \ |
401 | 442 | libvirt-gconfig-object.h \ |
402 | 443 | 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 \ | |
403 | 452 | libvirt-gconfig-domain.h \ |
404 | 453 | libvirt-gconfig-domain-address.h \ |
405 | 454 | libvirt-gconfig-domain-address-pci.h \ |
413 | 462 | libvirt-gconfig-domain-console.h \ |
414 | 463 | libvirt-gconfig-domain-controller.h \ |
415 | 464 | libvirt-gconfig-domain-controller-usb.h \ |
465 | libvirt-gconfig-domain-cpu.h \ | |
466 | libvirt-gconfig-domain-cpu-feature.h \ | |
416 | 467 | libvirt-gconfig-domain-device.h \ |
417 | 468 | libvirt-gconfig-domain-disk.h \ |
418 | 469 | libvirt-gconfig-domain-filesys.h \ |
453 | 504 | |
454 | 505 | noinst_HEADERS = \ |
455 | 506 | libvirt-gconfig-private.h \ |
507 | libvirt-gconfig-capabilities-cpu-private.h \ | |
456 | 508 | libvirt-gconfig-domain-device-private.h \ |
457 | 509 | libvirt-gconfig-helpers-private.h \ |
458 | 510 | libvirt-gconfig-object-private.h \ |
462 | 514 | libvirt-gconfig-object.c \ |
463 | 515 | libvirt-gconfig-main.c \ |
464 | 516 | 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 \ | |
465 | 525 | libvirt-gconfig-domain.c \ |
466 | 526 | libvirt-gconfig-domain-address.c \ |
467 | 527 | libvirt-gconfig-domain-address-pci.c \ |
475 | 535 | libvirt-gconfig-domain-console.c \ |
476 | 536 | libvirt-gconfig-domain-controller.c \ |
477 | 537 | libvirt-gconfig-domain-controller-usb.c \ |
538 | libvirt-gconfig-domain-cpu.c \ | |
539 | libvirt-gconfig-domain-cpu-feature.c \ | |
478 | 540 | libvirt-gconfig-domain-device.c \ |
479 | 541 | libvirt-gconfig-domain-disk.c \ |
480 | 542 | libvirt-gconfig-domain-filesys.c \ |
598 | 660 | $(am__aclocal_m4_deps): |
599 | 661 | install-libLTLIBRARIES: $(lib_LTLIBRARIES) |
600 | 662 | @$(NORMAL_INSTALL) |
601 | test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)" | |
602 | 663 | @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ |
603 | 664 | list2=; for p in $$list; do \ |
604 | 665 | if test -f $$p; then \ |
606 | 667 | else :; fi; \ |
607 | 668 | done; \ |
608 | 669 | test -z "$$list2" || { \ |
670 | echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ | |
671 | $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ | |
609 | 672 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ |
610 | 673 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ |
611 | 674 | } |
621 | 684 | |
622 | 685 | clean-libLTLIBRARIES: |
623 | 686 | -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 | } | |
630 | 695 | libvirt-gconfig-1.0.la: $(libvirt_gconfig_1_0_la_OBJECTS) $(libvirt_gconfig_1_0_la_DEPENDENCIES) $(EXTRA_libvirt_gconfig_1_0_la_DEPENDENCIES) |
631 | 696 | $(AM_V_CCLD)$(libvirt_gconfig_1_0_la_LINK) -rpath $(libdir) $(libvirt_gconfig_1_0_la_OBJECTS) $(libvirt_gconfig_1_0_la_LIBADD) $(LIBS) |
632 | 697 | |
636 | 701 | distclean-compile: |
637 | 702 | -rm -f *.tab.c |
638 | 703 | |
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@ | |
639 | 712 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities.Plo@am__quote@ |
640 | 713 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address-pci.Plo@am__quote@ |
641 | 714 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-address-usb.Plo@am__quote@ |
649 | 722 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-console.Plo@am__quote@ |
650 | 723 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-controller-usb.Plo@am__quote@ |
651 | 724 | @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@ | |
652 | 727 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-device.Plo@am__quote@ |
653 | 728 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-disk.Plo@am__quote@ |
654 | 729 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-filesys.Plo@am__quote@ |
734 | 809 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
735 | 810 | @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 |
736 | 811 | |
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 | ||
737 | 868 | libvirt_gconfig_1_0_la-libvirt-gconfig-domain.lo: libvirt-gconfig-domain.c |
738 | 869 | @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 |
739 | 870 | @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 |
825 | 956 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
826 | 957 | @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 |
827 | 958 | |
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 | ||
828 | 973 | libvirt_gconfig_1_0_la-libvirt-gconfig-domain-device.lo: libvirt-gconfig-domain-device.c |
829 | 974 | @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 |
830 | 975 | @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 |
1105 | 1250 | -rm -rf .libs _libs |
1106 | 1251 | install-girDATA: $(gir_DATA) |
1107 | 1252 | @$(NORMAL_INSTALL) |
1108 | test -z "$(girdir)" || $(MKDIR_P) "$(DESTDIR)$(girdir)" | |
1109 | 1253 | @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; \ | |
1110 | 1258 | for p in $$list; do \ |
1111 | 1259 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ |
1112 | 1260 | echo "$$d$$p"; \ |
1123 | 1271 | dir='$(DESTDIR)$(girdir)'; $(am__uninstall_files_from_dir) |
1124 | 1272 | install-typelibsDATA: $(typelibs_DATA) |
1125 | 1273 | @$(NORMAL_INSTALL) |
1126 | test -z "$(typelibsdir)" || $(MKDIR_P) "$(DESTDIR)$(typelibsdir)" | |
1127 | 1274 | @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; \ | |
1128 | 1279 | for p in $$list; do \ |
1129 | 1280 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ |
1130 | 1281 | echo "$$d$$p"; \ |
1141 | 1292 | dir='$(DESTDIR)$(typelibsdir)'; $(am__uninstall_files_from_dir) |
1142 | 1293 | install-libvirt_gconfig_1_0_laHEADERS: $(libvirt_gconfig_1_0_la_HEADERS) |
1143 | 1294 | @$(NORMAL_INSTALL) |
1144 | test -z "$(libvirt_gconfig_1_0_ladir)" || $(MKDIR_P) "$(DESTDIR)$(libvirt_gconfig_1_0_ladir)" | |
1145 | 1295 | @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; \ | |
1146 | 1300 | for p in $$list; do \ |
1147 | 1301 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ |
1148 | 1302 | echo "$$d$$p"; \ |
1159 | 1313 | dir='$(DESTDIR)$(libvirt_gconfig_1_0_ladir)'; $(am__uninstall_files_from_dir) |
1160 | 1314 | install-nodist_libvirt_gconfig_1_0_laHEADERS: $(nodist_libvirt_gconfig_1_0_la_HEADERS) |
1161 | 1315 | @$(NORMAL_INSTALL) |
1162 | test -z "$(libvirt_gconfig_1_0_ladir)" || $(MKDIR_P) "$(DESTDIR)$(libvirt_gconfig_1_0_ladir)" | |
1163 | 1316 | @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; \ | |
1164 | 1321 | for p in $$list; do \ |
1165 | 1322 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ |
1166 | 1323 | echo "$$d$$p"; \ |
1177 | 1334 | dir='$(DESTDIR)$(libvirt_gconfig_1_0_ladir)'; $(am__uninstall_files_from_dir) |
1178 | 1335 | |
1179 | 1336 | # 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): | |
1186 | 1343 | @fail= failcom='exit 1'; \ |
1187 | 1344 | for f in x $$MAKEFLAGS; do \ |
1188 | 1345 | case $$f in \ |
1192 | 1349 | done; \ |
1193 | 1350 | dot_seen=no; \ |
1194 | 1351 | 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 \ | |
1196 | 1357 | echo "Making $$target in $$subdir"; \ |
1197 | 1358 | if test "$$subdir" = "."; then \ |
1198 | 1359 | dot_seen=yes; \ |
1206 | 1367 | if test "$$dot_seen" = "no"; then \ |
1207 | 1368 | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ |
1208 | 1369 | 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" | |
1240 | 1370 | tags-recursive: |
1241 | 1371 | list='$(SUBDIRS)'; for subdir in $$list; do \ |
1242 | 1372 | test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ |
1244 | 1374 | ctags-recursive: |
1245 | 1375 | list='$(SUBDIRS)'; for subdir in $$list; do \ |
1246 | 1376 | 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); \ | |
1247 | 1381 | done |
1248 | 1382 | |
1249 | 1383 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) |
1308 | 1442 | && $(am__cd) $(top_srcdir) \ |
1309 | 1443 | && gtags -i $(GTAGS_ARGS) "$$here" |
1310 | 1444 | |
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 | ||
1311 | 1459 | distclean-tags: |
1312 | 1460 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
1313 | 1461 | |
1343 | 1491 | done |
1344 | 1492 | @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ |
1345 | 1493 | 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; \ | |
1353 | 1498 | dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ |
1354 | 1499 | $(am__relativize); \ |
1355 | 1500 | new_distdir=$$reldir; \ |
1488 | 1633 | uninstall-typelibsDATA |
1489 | 1634 | |
1490 | 1635 | .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 | |
1493 | 1638 | |
1494 | 1639 | .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ |
1495 | 1640 | 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 \ | |
1511 | 1656 | uninstall-libLTLIBRARIES \ |
1512 | 1657 | uninstall-libvirt_gconfig_1_0_laHEADERS \ |
1513 | 1658 | 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__ */ |
23 | 23 | #include <config.h> |
24 | 24 | |
25 | 25 | #include "libvirt-gconfig/libvirt-gconfig.h" |
26 | #include "libvirt-gconfig/libvirt-gconfig-private.h" | |
26 | 27 | |
27 | 28 | #define GVIR_CONFIG_CAPABILITIES_GET_PRIVATE(obj) \ |
28 | 29 | (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_CAPABILITIES, GVirConfigCapabilitiesPrivate)) |
41 | 42 | } |
42 | 43 | |
43 | 44 | |
44 | static void gvir_config_capabilities_init(GVirConfigCapabilities *conn) | |
45 | static void gvir_config_capabilities_init(GVirConfigCapabilities *caps) | |
45 | 46 | { |
46 | g_debug("Init GVirConfigCapabilities=%p", conn); | |
47 | g_debug("Init GVirConfigCapabilities=%p", caps); | |
47 | 48 | |
48 | conn->priv = GVIR_CONFIG_CAPABILITIES_GET_PRIVATE(conn); | |
49 | caps->priv = GVIR_CONFIG_CAPABILITIES_GET_PRIVATE(caps); | |
49 | 50 | } |
50 | 51 | |
51 | 52 | |
53 | 54 | { |
54 | 55 | GVirConfigObject *object; |
55 | 56 | |
56 | /* FIXME: what is the XML root of the capability node? I suspect it is | |
57 | * either 'guest' or 'host' */ | |
58 | 57 | object = gvir_config_object_new(GVIR_CONFIG_TYPE_CAPABILITIES, |
59 | 58 | "capabilities", |
60 | 59 | DATADIR "/libvirt/schemas/capability.rng"); |
66 | 65 | { |
67 | 66 | GVirConfigObject *object; |
68 | 67 | |
69 | /* FIXME: what is the XML root of the capability node? I suspect it is | |
70 | * either 'guest' or 'host' */ | |
71 | 68 | object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_CAPABILITIES, |
72 | 69 | "capabilities", |
73 | 70 | DATADIR "/libvirt/schemas/capability.rng", |
74 | 71 | xml, error); |
75 | 72 | return GVIR_CONFIG_CAPABILITIES(object); |
76 | 73 | } |
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 | } |
25 | 25 | |
26 | 26 | #ifndef __LIBVIRT_GCONFIG_CAPABILITIES_H__ |
27 | 27 | #define __LIBVIRT_GCONFIG_CAPABILITIES_H__ |
28 | ||
29 | #include "libvirt-gconfig/libvirt-gconfig-capabilities-host.h" | |
28 | 30 | |
29 | 31 | G_BEGIN_DECLS |
30 | 32 | |
55 | 57 | gpointer padding[20]; |
56 | 58 | }; |
57 | 59 | |
58 | ||
59 | 60 | GType gvir_config_capabilities_get_type(void); |
60 | 61 | |
61 | 62 | GVirConfigCapabilities *gvir_config_capabilities_new(void); |
62 | 63 | GVirConfigCapabilities *gvir_config_capabilities_new_from_xml(const gchar *xml, |
63 | 64 | GError **error); |
65 | GVirConfigCapabilitiesHost * | |
66 | gvir_config_capabilities_get_host(GVirConfigCapabilities *caps); | |
67 | GList *gvir_config_capabilities_get_guests(GVirConfigCapabilities *caps); | |
64 | 68 | |
65 | 69 | G_END_DECLS |
66 | 70 |
81 | 81 | void gvir_config_domain_source_pty_set_path(GVirConfigDomainChardevSourcePty *pty, |
82 | 82 | const char *path) |
83 | 83 | { |
84 | GVirConfigObject *source; | |
85 | 84 | g_return_if_fail(GVIR_CONFIG_IS_DOMAIN_CHARDEV_SOURCE_PTY(pty)); |
86 | 85 | |
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); | |
93 | 90 | } |
24 | 24 | #include "libvirt-gconfig/libvirt-gconfig.h" |
25 | 25 | #include "libvirt-gconfig/libvirt-gconfig-private.h" |
26 | 26 | |
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 | ||
27 | 105 | #define GVIR_CONFIG_DOMAIN_CONTROLLER_USB_GET_PRIVATE(obj) \ |
28 | 106 | (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_CONFIG_TYPE_DOMAIN_CONTROLLER_USB, GVirConfigDomainControllerUsbPrivate)) |
29 | 107 | |
49 | 127 | } |
50 | 128 | |
51 | 129 | |
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 | */ | |
52 | 139 | GVirConfigDomainControllerUsb *gvir_config_domain_controller_usb_new(void) |
53 | 140 | { |
54 | 141 | GVirConfigObject *object; |
59 | 146 | return GVIR_CONFIG_DOMAIN_CONTROLLER_USB(object); |
60 | 147 | } |
61 | 148 | |
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 | * <controller>. | |
158 | * | |
159 | * Returns: a new #GVirConfigDomainControllerUsb, or NULL if @xml failed to | |
160 | * be parsed. | |
161 | */ | |
62 | 162 | GVirConfigDomainControllerUsb *gvir_config_domain_controller_usb_new_from_xml(const gchar *xml, |
63 | GError **error) | |
163 | GError **error) | |
64 | 164 | { |
65 | 165 | GVirConfigObject *object; |
66 | 166 | |
70 | 170 | return GVIR_CONFIG_DOMAIN_CONTROLLER_USB(object); |
71 | 171 | } |
72 | 172 | |
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 | */ | |
73 | 180 | void gvir_config_domain_controller_usb_set_model(GVirConfigDomainControllerUsb *controller, |
74 | 181 | GVirConfigDomainControllerUsbModel model) |
75 | 182 | { |
83 | 190 | |
84 | 191 | } |
85 | 192 | |
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 | */ | |
86 | 203 | void gvir_config_domain_controller_usb_set_master(GVirConfigDomainControllerUsb *controller, |
87 | 204 | GVirConfigDomainControllerUsb *master, |
88 | 205 | guint startport) |
114 | 114 | return index; |
115 | 115 | } |
116 | 116 | |
117 | /** | |
118 | * gvir_config_domain_controller_set_address: | |
119 | * @address: (allow-none): | |
120 | */ | |
117 | 121 | void gvir_config_domain_controller_set_address(GVirConfigDomainController *controller, |
118 | 122 | GVirConfigDomainAddress *address) |
119 | 123 | { |
120 | 124 | 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)); | |
122 | 126 | |
123 | 127 | gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(controller), |
128 | "address", | |
124 | 129 | GVIR_CONFIG_OBJECT(address)); |
125 | 130 | } |
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__ */ |
36 | 36 | gvir_config_domain_disk_new_from_tree(GVirConfigXmlDoc *doc, |
37 | 37 | xmlNodePtr tree); |
38 | 38 | GVirConfigDomainDevice * |
39 | gvir_config_domain_filesys_new_from_tree(GVirConfigXmlDoc *doc, | |
40 | xmlNodePtr tree); | |
41 | GVirConfigDomainDevice * | |
39 | 42 | gvir_config_domain_graphics_new_from_tree(GVirConfigXmlDoc *doc, |
40 | 43 | xmlNodePtr tree); |
41 | 44 | GVirConfigDomainDevice * |
61 | 61 | if (xmlStrEqual(tree->name, (xmlChar*)"disk")) { |
62 | 62 | return gvir_config_domain_disk_new_from_tree(doc, tree); |
63 | 63 | } 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); | |
65 | 65 | } else if (xmlStrEqual(tree->name, (xmlChar*)"controller")) { |
66 | 66 | return gvir_config_domain_controller_new_from_tree(doc, tree); |
67 | 67 | } else if (xmlStrEqual(tree->name, (xmlChar*)"lease")) { |
84 | 84 | type = gvir_config_genum_get_value(GVIR_CONFIG_TYPE_DOMAIN_DISK_TYPE, |
85 | 85 | type_str, |
86 | 86 | GVIR_CONFIG_DOMAIN_DISK_FILE); |
87 | if (type == -1) | |
88 | return NULL; | |
89 | 87 | |
90 | 88 | object = gvir_config_object_new_from_tree(GVIR_CONFIG_TYPE_DOMAIN_DISK, |
91 | 89 | doc, NULL, tree); |
66 | 66 | object = gvir_config_object_new_from_xml(GVIR_CONFIG_TYPE_DOMAIN_FILESYS, |
67 | 67 | "filesystem", NULL, xml, error); |
68 | 68 | 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); | |
69 | 94 | } |
70 | 95 | |
71 | 96 | void gvir_config_domain_filesys_set_type(GVirConfigDomainFilesys *filesys, |
78 | 103 | GVIR_CONFIG_TYPE_DOMAIN_FILESYS_TYPE, |
79 | 104 | type, |
80 | 105 | NULL); |
106 | filesys->priv->type = type; | |
81 | 107 | } |
82 | 108 | |
83 | 109 | void gvir_config_domain_filesys_set_access_type(GVirConfigDomainFilesys *filesys, |
119 | 145 | |
120 | 146 | switch (filesys->priv->type) { |
121 | 147 | case GVIR_CONFIG_DOMAIN_FILESYS_MOUNT: |
148 | case GVIR_CONFIG_DOMAIN_FILESYS_BIND: | |
122 | 149 | attribute_name = "dir"; |
123 | 150 | break; |
124 | 151 | case GVIR_CONFIG_DOMAIN_FILESYS_FILE: |
130 | 157 | case GVIR_CONFIG_DOMAIN_FILESYS_TEMPLATE: |
131 | 158 | attribute_name = "name"; |
132 | 159 | break; |
160 | case GVIR_CONFIG_DOMAIN_FILESYS_RAM: | |
161 | g_return_if_reached(); | |
162 | ||
133 | 163 | default: |
134 | 164 | g_return_if_reached(); |
135 | 165 | } |
139 | 169 | attribute_name, source); |
140 | 170 | } |
141 | 171 | |
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 | } | |
142 | 189 | |
143 | 190 | void gvir_config_domain_filesys_set_target(GVirConfigDomainFilesys *filesys, |
144 | 191 | const char *path) |
60 | 60 | GVIR_CONFIG_DOMAIN_FILESYS_BLOCK, |
61 | 61 | GVIR_CONFIG_DOMAIN_FILESYS_FILE, |
62 | 62 | GVIR_CONFIG_DOMAIN_FILESYS_TEMPLATE, |
63 | GVIR_CONFIG_DOMAIN_FILESYS_RAM, | |
64 | GVIR_CONFIG_DOMAIN_FILESYS_BIND, | |
63 | 65 | } GVirConfigDomainFilesysType; |
64 | 66 | |
65 | 67 | typedef enum { |
88 | 90 | GVirConfigDomainFilesysDriverType type); |
89 | 91 | void gvir_config_domain_filesys_set_source(GVirConfigDomainFilesys *filesys, |
90 | 92 | const char *source); |
93 | void gvir_config_domain_filesys_set_ram_usage(GVirConfigDomainFilesys *filesys, | |
94 | guint64 bytes); | |
91 | 95 | void gvir_config_domain_filesys_set_target(GVirConfigDomainFilesys *filesys, |
92 | 96 | const char *target); |
93 | 97 | void gvir_config_domain_filesys_set_readonly(GVirConfigDomainFilesys *filesys, |
80 | 80 | "type", type_str); |
81 | 81 | } |
82 | 82 | |
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 | */ | |
83 | 100 | void gvir_config_domain_os_set_kernel(GVirConfigDomainOs *os, |
84 | 101 | const char * kernel) |
85 | 102 | { |
87 | 104 | "kernel", kernel); |
88 | 105 | } |
89 | 106 | |
107 | /** | |
108 | * gvir_config_domain_os_set_ramdisk: | |
109 | * @os: a #GVirConfigDomainOs | |
110 | * @ramdisk: (allow-none): The ramdisk path | |
111 | */ | |
90 | 112 | void gvir_config_domain_os_set_ramdisk(GVirConfigDomainOs *os, |
91 | 113 | const char * ramdisk) |
92 | 114 | { |
94 | 116 | "initrd", ramdisk); |
95 | 117 | } |
96 | 118 | |
119 | /** | |
120 | * gvir_config_domain_os_set_cmdline: | |
121 | * @os: a #GVirConfigDomainOs | |
122 | * @cmdline: (allow-none): The direct boot commandline | |
123 | */ | |
97 | 124 | void gvir_config_domain_os_set_cmdline(GVirConfigDomainOs *os, |
98 | 125 | const char * cmdline) |
99 | 126 | { |
101 | 128 | "cmdline", cmdline); |
102 | 129 | } |
103 | 130 | |
131 | /** | |
132 | * gvir_config_domain_os_set_init: | |
133 | * @os: a #GVirConfigDomainOs | |
134 | * @init: (allow-none): | |
135 | */ | |
104 | 136 | void gvir_config_domain_os_set_init(GVirConfigDomainOs *os, |
105 | 137 | const char * init) |
106 | 138 | { |
108 | 140 | "init", init); |
109 | 141 | } |
110 | 142 | |
143 | /** | |
144 | * gvir_config_domain_os_set_loader: | |
145 | * @os: a #GVirConfigDomainOs | |
146 | * @loader: (allow-none): | |
147 | */ | |
111 | 148 | void gvir_config_domain_os_set_loader(GVirConfigDomainOs *os, |
112 | 149 | const char * loader) |
113 | 150 | { |
162 | 199 | |
163 | 200 | /** |
164 | 201 | * gvir_config_domain_os_set_boot_devices: |
202 | * @os: a #GVirConfigDomainOs | |
165 | 203 | * @boot_devices: (in) (element-type LibvirtGConfig.DomainOsBootDevice): |
166 | 204 | */ |
167 | 205 | void gvir_config_domain_os_set_boot_devices(GVirConfigDomainOs *os, GList *boot_devices) |
200 | 238 | } |
201 | 239 | } |
202 | 240 | |
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 | ||
203 | 296 | void gvir_config_domain_os_set_arch(GVirConfigDomainOs *os, const char *arch) |
204 | 297 | { |
205 | 298 | xmlNodePtr os_node; |
58 | 58 | typedef enum { |
59 | 59 | GVIR_CONFIG_DOMAIN_OS_TYPE_HVM, |
60 | 60 | 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 | |
62 | 64 | } GVirConfigDomainOsType; |
63 | 65 | |
64 | 66 | typedef enum { |
80 | 82 | GVirConfigDomainOs *gvir_config_domain_os_new_from_xml(const gchar *xml, GError **error); |
81 | 83 | |
82 | 84 | 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); | |
83 | 87 | void gvir_config_domain_os_set_arch(GVirConfigDomainOs *os, const char *arch); |
88 | GList *gvir_config_domain_os_get_boot_devices(GVirConfigDomainOs *os); | |
84 | 89 | void gvir_config_domain_os_set_boot_devices(GVirConfigDomainOs *os, GList *boot_devices); |
85 | 90 | void gvir_config_domain_os_set_kernel(GVirConfigDomainOs *os, const char *kernel); |
86 | 91 | void gvir_config_domain_os_set_ramdisk(GVirConfigDomainOs *os, const char *ramdisk); |
80 | 80 | NULL); |
81 | 81 | } |
82 | 82 | |
83 | /** | |
84 | * gvir_config_domain_redirdev_set_address: | |
85 | * @address: (allow-none): | |
86 | */ | |
83 | 87 | void gvir_config_domain_redirdev_set_address(GVirConfigDomainRedirdev *redirdev, |
84 | 88 | GVirConfigDomainAddress *address) |
85 | 89 | { |
86 | 90 | 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)); | |
88 | 92 | |
89 | 93 | gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(redirdev), |
94 | "address", | |
90 | 95 | GVIR_CONFIG_OBJECT(address)); |
91 | 96 | } |
88 | 88 | |
89 | 89 | } |
90 | 90 | |
91 | /** | |
92 | * gvir_config_domain_seclabel_set_baselabel: | |
93 | * @label: (allow-none): | |
94 | */ | |
91 | 95 | void gvir_config_domain_seclabel_set_baselabel(GVirConfigDomainSeclabel *seclabel, |
92 | 96 | const char *label) |
93 | 97 | { |
97 | 101 | "baselabel", label); |
98 | 102 | } |
99 | 103 | |
104 | /** | |
105 | * gvir_config_domain_seclabel_set_label: | |
106 | * @label: (allow-none): | |
107 | */ | |
100 | 108 | void gvir_config_domain_seclabel_set_label(GVirConfigDomainSeclabel *seclabel, |
101 | 109 | const char *label) |
102 | 110 | { |
38 | 38 | enum { |
39 | 39 | PROP_0, |
40 | 40 | PROP_NAME, |
41 | PROP_TITLE, | |
41 | 42 | PROP_DESCRIPTION, |
42 | 43 | PROP_MEMORY, |
43 | 44 | PROP_VCPU, |
55 | 56 | case PROP_NAME: |
56 | 57 | g_value_set_string(value, gvir_config_domain_get_name(domain)); |
57 | 58 | break; |
59 | case PROP_TITLE: | |
60 | g_value_set_string(value, gvir_config_domain_get_title(domain)); | |
61 | break; | |
58 | 62 | case PROP_DESCRIPTION: |
59 | 63 | g_value_set_string(value, gvir_config_domain_get_description(domain)); |
60 | 64 | break; |
83 | 87 | switch (prop_id) { |
84 | 88 | case PROP_NAME: |
85 | 89 | 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)); | |
86 | 93 | break; |
87 | 94 | case PROP_DESCRIPTION: |
88 | 95 | gvir_config_domain_set_description(domain, g_value_get_string(value)); |
116 | 123 | g_param_spec_string("name", |
117 | 124 | "Name", |
118 | 125 | "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", | |
119 | 134 | NULL, |
120 | 135 | G_PARAM_READWRITE | |
121 | 136 | G_PARAM_STATIC_STRINGS)); |
186 | 201 | return GVIR_CONFIG_DOMAIN(object); |
187 | 202 | } |
188 | 203 | |
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 | } | |
189 | 216 | |
190 | 217 | void gvir_config_domain_set_virt_type(GVirConfigDomain *domain, GVirConfigDomainVirtType type) |
191 | 218 | { |
203 | 230 | "name"); |
204 | 231 | } |
205 | 232 | |
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 | */ | |
206 | 244 | void gvir_config_domain_set_name(GVirConfigDomain *domain, const char *name) |
207 | 245 | { |
208 | 246 | gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(domain), |
210 | 248 | g_object_notify(G_OBJECT(domain), "name"); |
211 | 249 | } |
212 | 250 | |
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 | ||
213 | 266 | const char *gvir_config_domain_get_description(GVirConfigDomain *domain) |
214 | 267 | { |
215 | 268 | return gvir_config_object_get_node_content(GVIR_CONFIG_OBJECT(domain), |
216 | 269 | "description"); |
217 | 270 | } |
218 | 271 | |
272 | /** | |
273 | * gvir_config_domain_set_description: | |
274 | * @domain: a #GVirConfigDomain | |
275 | * @description: (allow-none): | |
276 | */ | |
219 | 277 | void gvir_config_domain_set_description(GVirConfigDomain *domain, const char *description) |
220 | 278 | { |
221 | 279 | gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(domain), |
225 | 283 | |
226 | 284 | /** |
227 | 285 | * gvir_config_domain_get_memory: |
228 | * @domain: A domain configuration object. | |
286 | * @domain: a #GVirConfigDomain | |
229 | 287 | * |
230 | 288 | * Returns: amount of RAM in kilobytes (i.e. blocks of 1024 bytes). |
231 | 289 | */ |
237 | 295 | |
238 | 296 | /** |
239 | 297 | * gvir_config_domain_set_memory: |
240 | * @domain: A domain configuration object. | |
298 | * @domain: a #GVirConfigDomain | |
241 | 299 | * @memory: The amount of RAM in kilobytes. |
242 | 300 | * |
243 | 301 | * Sets the amount of RAM allocated to @domain in kilobytes (i.e. blocks of 1024 bytes). |
276 | 334 | |
277 | 335 | /** |
278 | 336 | * 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 | ||
280 | 342 | */ |
281 | 343 | GStrv gvir_config_domain_get_features(GVirConfigDomain *domain) |
282 | 344 | { |
311 | 373 | g_object_notify(G_OBJECT(domain), "features"); |
312 | 374 | } |
313 | 375 | |
376 | /** | |
377 | * gvir_config_domain_set_clock: | |
378 | * @domain: a #GVirConfigDomain | |
379 | * @klock: (allow-none): | |
380 | */ | |
314 | 381 | void gvir_config_domain_set_clock(GVirConfigDomain *domain, |
315 | 382 | GVirConfigDomainClock *klock) |
316 | 383 | { |
317 | 384 | 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)); | |
319 | 386 | |
320 | 387 | gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(domain), |
388 | "clock", | |
321 | 389 | GVIR_CONFIG_OBJECT(klock)); |
322 | 390 | } |
323 | 391 | |
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 | */ | |
324 | 419 | void gvir_config_domain_set_os(GVirConfigDomain *domain, |
325 | 420 | GVirConfigDomainOs *os) |
326 | 421 | { |
327 | 422 | 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)); | |
329 | 424 | |
330 | 425 | gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(domain), |
426 | "os", | |
331 | 427 | GVIR_CONFIG_OBJECT(os)); |
332 | 428 | } |
333 | 429 | |
430 | /** | |
431 | * gvir_config_domain_set_seclabel: | |
432 | * @domain: a #GVirConfigDomain | |
433 | * @seclabel: (allow-none): the security label configuration to set | |
434 | */ | |
334 | 435 | void gvir_config_domain_set_seclabel(GVirConfigDomain *domain, |
335 | 436 | GVirConfigDomainSeclabel *seclabel) |
336 | 437 | { |
337 | 438 | 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)); | |
339 | 441 | |
340 | 442 | gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(domain), |
443 | "seclabel", | |
341 | 444 | GVIR_CONFIG_OBJECT(seclabel)); |
342 | 445 | } |
343 | 446 | |
364 | 467 | |
365 | 468 | /** |
366 | 469 | * gvir_config_domain_set_devices: |
470 | * @domain: a #GVirConfigDomain | |
367 | 471 | * @devices: (in) (element-type LibvirtGConfig.DomainDevice): |
368 | 472 | */ |
369 | 473 | void gvir_config_domain_set_devices(GVirConfigDomain *domain, |
374 | 478 | |
375 | 479 | g_return_if_fail(GVIR_CONFIG_IS_DOMAIN(domain)); |
376 | 480 | |
481 | if (devices == NULL) { | |
482 | gvir_config_object_delete_children(GVIR_CONFIG_OBJECT(domain), | |
483 | "devices", | |
484 | NULL); | |
485 | return; | |
486 | } | |
377 | 487 | devices_node = gvir_config_object_new(GVIR_CONFIG_TYPE_OBJECT, |
378 | 488 | "devices", NULL); |
489 | ||
379 | 490 | for (it = devices; it != NULL; it = it->next) { |
380 | 491 | if (!GVIR_CONFIG_IS_DOMAIN_DEVICE(it->data)) { |
381 | 492 | g_warn_if_reached(); |
386 | 497 | } |
387 | 498 | |
388 | 499 | gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(domain), |
500 | "devices", | |
389 | 501 | devices_node); |
390 | 502 | g_object_unref(G_OBJECT(devices_node)); |
391 | 503 | } |
426 | 538 | |
427 | 539 | /** |
428 | 540 | * 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(). | |
431 | 546 | * |
432 | 547 | * Returns: (element-type LibvirtGConfig.DomainDevice) (transfer full): |
433 | 548 | * a newly allocated #GList of #GVirConfigDomainDevice. |
516 | 631 | lookup_namespaced_node, &data); |
517 | 632 | return gvir_config_xml_node_to_string(data.node); |
518 | 633 | } |
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 | } |
30 | 30 | #include <libvirt-gconfig/libvirt-gconfig-domain-os.h> |
31 | 31 | #include <libvirt-gconfig/libvirt-gconfig-domain-device.h> |
32 | 32 | #include <libvirt-gconfig/libvirt-gconfig-domain-seclabel.h> |
33 | #include <libvirt-gconfig/libvirt-gconfig-domain-cpu.h> | |
33 | 34 | |
34 | 35 | G_BEGIN_DECLS |
35 | 36 | |
98 | 99 | GVirConfigDomain *gvir_config_domain_new_from_xml(const gchar *xml, GError **error); |
99 | 100 | GVirConfigDomain *gvir_config_domain_new(void); |
100 | 101 | |
102 | GVirConfigDomainVirtType gvir_config_domain_get_virt_type(GVirConfigDomain *domain); | |
101 | 103 | void gvir_config_domain_set_virt_type(GVirConfigDomain *domain, GVirConfigDomainVirtType type); |
102 | 104 | const char *gvir_config_domain_get_name(GVirConfigDomain *domain); |
103 | 105 | void gvir_config_domain_set_name(GVirConfigDomain *domain, const char *name); |
113 | 115 | const GStrv features); |
114 | 116 | void gvir_config_domain_set_clock(GVirConfigDomain *domain, |
115 | 117 | GVirConfigDomainClock *klock); |
118 | GVirConfigDomainOs *gvir_config_domain_get_os(GVirConfigDomain *domain); | |
116 | 119 | void gvir_config_domain_set_os(GVirConfigDomain *domain, |
117 | 120 | GVirConfigDomainOs *os); |
118 | 121 | void gvir_config_domain_set_seclabel(GVirConfigDomain *domain, |
119 | 122 | GVirConfigDomainSeclabel *seclabel); |
123 | const char *gvir_config_domain_get_title(GVirConfigDomain *domain); | |
124 | void gvir_config_domain_set_title(GVirConfigDomain *domain, const char *title); | |
120 | 125 | void gvir_config_domain_set_devices(GVirConfigDomain *domain, |
121 | 126 | GList *devices); |
122 | 127 | void gvir_config_domain_add_device(GVirConfigDomain *domain, |
132 | 137 | GError **error); |
133 | 138 | gchar *gvir_config_domain_get_custom_xml(GVirConfigDomain *domain, |
134 | 139 | 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); | |
135 | 143 | |
136 | 144 | G_END_DECLS |
137 | 145 |
41 | 41 | const char *gvir_config_object_get_attribute(GVirConfigObject *object, |
42 | 42 | const char *node_name, |
43 | 43 | 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); | |
44 | 48 | gint gvir_config_object_get_attribute_genum(GVirConfigObject *object, |
45 | 49 | const char *node_name, |
46 | 50 | const char *attr_name, |
81 | 85 | void gvir_config_object_attach_add(GVirConfigObject *parent, |
82 | 86 | GVirConfigObject *child); |
83 | 87 | void gvir_config_object_attach_replace(GVirConfigObject *parent, |
88 | const char *child_name, | |
84 | 89 | GVirConfigObject *child); |
85 | 90 | void gvir_config_object_set_attribute(GVirConfigObject *object, |
86 | 91 | ...) G_GNUC_NULL_TERMINATED; |
95 | 100 | gboolean gvir_config_object_set_namespace(GVirConfigObject *object, |
96 | 101 | const char *ns, |
97 | 102 | 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); | |
98 | 108 | |
99 | 109 | G_END_DECLS |
100 | 110 |
190 | 190 | void gvir_config_object_validate(GVirConfigObject *config, |
191 | 191 | GError **err) |
192 | 192 | { |
193 | GVirConfigObjectPrivate *priv = config->priv; | |
193 | GVirConfigObjectPrivate *priv; | |
194 | 194 | xmlRelaxNGParserCtxtPtr rngParser = NULL; |
195 | 195 | xmlRelaxNGPtr rng = NULL; |
196 | 196 | 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; | |
197 | 202 | |
198 | 203 | xmlSetGenericErrorFunc(NULL, gvir_xml_generic_error_nop); |
199 | 204 | xmlSetStructuredErrorFunc(NULL, gvir_xml_structured_error_nop); |
255 | 260 | |
256 | 261 | gchar *gvir_config_object_to_xml(GVirConfigObject *config) |
257 | 262 | { |
263 | g_return_val_if_fail(GVIR_CONFIG_IS_OBJECT(config), NULL); | |
264 | ||
258 | 265 | return gvir_config_xml_node_to_string(config->priv->node); |
259 | 266 | } |
260 | 267 | |
261 | 268 | const gchar *gvir_config_object_get_schema(GVirConfigObject *config) |
262 | 269 | { |
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; | |
265 | 273 | } |
266 | 274 | |
267 | 275 | /* FIXME: will we always have one xmlNode per GConfig object? */ |
526 | 534 | |
527 | 535 | g_return_if_fail(GVIR_CONFIG_IS_OBJECT(object)); |
528 | 536 | 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 | } | |
530 | 543 | |
531 | 544 | node = gvir_config_object_replace_child(object, node_name); |
532 | 545 | g_return_if_fail(node != NULL); |
628 | 641 | default_value); |
629 | 642 | |
630 | 643 | 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); | |
631 | 659 | } |
632 | 660 | |
633 | 661 | GVirConfigObject *gvir_config_object_new_from_xml(GType type, |
823 | 851 | } |
824 | 852 | |
825 | 853 | 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); | |
829 | 864 | } |
830 | 865 | |
831 | 866 | G_GNUC_INTERNAL void |
864 | 899 | |
865 | 900 | return TRUE; |
866 | 901 | } |
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 | } |
22 | 22 | #ifndef __LIBVIRT_GCONFIG_PRIVATE_H__ |
23 | 23 | #define __LIBVIRT_GCONFIG_PRIVATE_H__ |
24 | 24 | |
25 | #include <libvirt-gconfig/libvirt-gconfig-capabilities-cpu-private.h> | |
25 | 26 | #include <libvirt-gconfig/libvirt-gconfig-domain-device-private.h> |
26 | 27 | #include <libvirt-gconfig/libvirt-gconfig-helpers-private.h> |
27 | 28 | #include <libvirt-gconfig/libvirt-gconfig-object-private.h> |
78 | 78 | "group", group); |
79 | 79 | } |
80 | 80 | |
81 | /** | |
82 | * gvir_config_storage_permissions_set_label: | |
83 | * @label: (allow-none): | |
84 | */ | |
81 | 85 | void gvir_config_storage_permissions_set_label(GVirConfigStoragePermissions *perms, |
82 | 86 | const char *label) |
83 | 87 | { |
135 | 135 | g_object_unref(G_OBJECT(node)); |
136 | 136 | } |
137 | 137 | |
138 | /** | |
139 | * gvir_config_storage_pool_source_set_name: | |
140 | * @name: (allow-none): | |
141 | */ | |
138 | 142 | void gvir_config_storage_pool_source_set_name(GVirConfigStoragePoolSource *source, |
139 | 143 | const char *name) |
140 | 144 | { |
70 | 70 | return GVIR_CONFIG_STORAGE_POOL_TARGET(object); |
71 | 71 | } |
72 | 72 | |
73 | /** | |
74 | * gvir_config_storage_pool_target_set_path: | |
75 | * @path: (allow-none): | |
76 | */ | |
73 | 77 | void gvir_config_storage_pool_target_set_path(GVirConfigStoragePoolTarget *target, |
74 | 78 | const char *path) |
75 | 79 | { |
79 | 83 | "path", path); |
80 | 84 | } |
81 | 85 | |
86 | /** | |
87 | * gvir_config_storage_pool_perms_set_permissions: | |
88 | * @perms: (allow-none): | |
89 | */ | |
82 | 90 | void gvir_config_storage_pool_target_set_permissions(GVirConfigStoragePoolTarget *target, |
83 | 91 | GVirConfigStoragePermissions *perms) |
84 | 92 | { |
85 | 93 | 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)); | |
87 | 96 | |
88 | 97 | gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(target), |
98 | "permissions", | |
89 | 99 | GVIR_CONFIG_OBJECT(perms)); |
90 | 100 | } |
85 | 85 | NULL); |
86 | 86 | } |
87 | 87 | |
88 | /** | |
89 | * gvir_config_storage_pool_set_name: | |
90 | * @name: (allow-none): | |
91 | */ | |
88 | 92 | void gvir_config_storage_pool_set_name(GVirConfigStoragePool *pool, |
89 | 93 | const char *name) |
90 | 94 | { |
94 | 98 | "name", name); |
95 | 99 | } |
96 | 100 | |
101 | /** | |
102 | * gvir_config_storage_pool_set_uuid: | |
103 | * @uuid: (allow-none): | |
104 | */ | |
97 | 105 | void gvir_config_storage_pool_set_uuid(GVirConfigStoragePool *pool, |
98 | 106 | const char *uuid) |
99 | 107 | { |
130 | 138 | "available", available); |
131 | 139 | } |
132 | 140 | |
141 | /** | |
142 | * gvir_config_storage_pool_set_source: | |
143 | * @source: (allow-none): | |
144 | */ | |
133 | 145 | void gvir_config_storage_pool_set_source(GVirConfigStoragePool *pool, |
134 | 146 | GVirConfigStoragePoolSource *source) |
135 | 147 | { |
136 | 148 | 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)); | |
138 | 151 | |
139 | 152 | gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(pool), |
153 | "source", | |
140 | 154 | GVIR_CONFIG_OBJECT(source)); |
141 | 155 | } |
142 | 156 | |
157 | /** | |
158 | * gvir_config_storage_pool_set_target: | |
159 | * @target: (allow-none): | |
160 | */ | |
143 | 161 | void gvir_config_storage_pool_set_target(GVirConfigStoragePool *pool, |
144 | 162 | GVirConfigStoragePoolTarget *target) |
145 | 163 | { |
146 | 164 | 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)); | |
148 | 167 | |
149 | 168 | gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(pool), |
169 | "target", | |
150 | 170 | GVIR_CONFIG_OBJECT(target)); |
151 | 171 | } |
83 | 83 | g_object_unref(G_OBJECT(node)); |
84 | 84 | } |
85 | 85 | |
86 | /** | |
87 | * gvir_config_storage_vol_backing_store_set_path: | |
88 | * @path: (allow-none): | |
89 | */ | |
86 | 90 | void gvir_config_storage_vol_backing_store_set_path(GVirConfigStorageVolBackingStore *backing_store, |
87 | 91 | const char *path) |
88 | 92 | { |
83 | 83 | g_object_unref(G_OBJECT(node)); |
84 | 84 | } |
85 | 85 | |
86 | /** | |
87 | * gvir_config_storage_vol_target_set_permissions: | |
88 | * @perms: (allow-none): | |
89 | */ | |
86 | 90 | void gvir_config_storage_vol_target_set_permissions(GVirConfigStorageVolTarget *target, |
87 | 91 | GVirConfigStoragePermissions *perms) |
88 | 92 | { |
89 | 93 | 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)); | |
91 | 96 | |
92 | 97 | gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(target), |
98 | "permissions", | |
93 | 99 | GVIR_CONFIG_OBJECT(perms)); |
94 | 100 | } |
73 | 73 | return GVIR_CONFIG_STORAGE_VOL(object); |
74 | 74 | } |
75 | 75 | |
76 | /** | |
77 | * gvir_config_storage_vol_set_name: | |
78 | * @name: (allow-none): | |
79 | */ | |
76 | 80 | void gvir_config_storage_vol_set_name(GVirConfigStorageVol *vol, |
77 | 81 | const char *name) |
78 | 82 | { |
100 | 104 | "allocation", allocation); |
101 | 105 | } |
102 | 106 | |
107 | /** | |
108 | * gvir_config_storage_vol_set_target: | |
109 | * @target: (allow-none): | |
110 | */ | |
103 | 111 | void gvir_config_storage_vol_set_target(GVirConfigStorageVol *vol, |
104 | 112 | GVirConfigStorageVolTarget *target) |
105 | 113 | { |
106 | 114 | 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)); | |
108 | 117 | |
109 | 118 | gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(vol), |
119 | "target", | |
110 | 120 | GVIR_CONFIG_OBJECT(target)); |
111 | 121 | } |
112 | 122 | |
123 | /** | |
124 | * gvir_config_storage_vol_set_backing_store: | |
125 | * @backing_store: (allow-none): | |
126 | */ | |
113 | 127 | void gvir_config_storage_vol_set_backing_store(GVirConfigStorageVol *vol, |
114 | 128 | GVirConfigStorageVolBackingStore *backing_store) |
115 | 129 | { |
116 | 130 | 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)); | |
118 | 133 | |
119 | 134 | gvir_config_object_attach_replace(GVIR_CONFIG_OBJECT(vol), |
135 | "backingStore", | |
120 | 136 | GVIR_CONFIG_OBJECT(backing_store)); |
121 | 137 | } |
28 | 28 | #include <libvirt-gconfig/libvirt-gconfig-main.h> |
29 | 29 | #include <libvirt-gconfig/libvirt-gconfig-object.h> |
30 | 30 | #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> | |
31 | 39 | #include <libvirt-gconfig/libvirt-gconfig-domain.h> |
32 | 40 | #include <libvirt-gconfig/libvirt-gconfig-domain-address.h> |
33 | 41 | #include <libvirt-gconfig/libvirt-gconfig-domain-address-pci.h> |
41 | 49 | #include <libvirt-gconfig/libvirt-gconfig-domain-console.h> |
42 | 50 | #include <libvirt-gconfig/libvirt-gconfig-domain-controller.h> |
43 | 51 | #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> | |
44 | 54 | #include <libvirt-gconfig/libvirt-gconfig-domain-device.h> |
45 | 55 | #include <libvirt-gconfig/libvirt-gconfig-domain-disk.h> |
46 | 56 | #include <libvirt-gconfig/libvirt-gconfig-domain-filesys.h> |
373 | 373 | *; |
374 | 374 | }; |
375 | 375 | |
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 | ||
376 | 462 | # .... 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 | |
1 | 1 | |
2 | 2 | AM_CFLAGS = \ |
3 | 3 | $(GOBJECT2_CFLAGS) \ |
13 | 13 | test_domain_create_SOURCES = test-domain-create.c |
14 | 14 | |
15 | 15 | 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. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
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 | ||
6 | 5 | # This Makefile.in is free software; the Free Software Foundation |
7 | 6 | # gives unlimited permission to copy and/or distribute it, |
8 | 7 | # with or without modifications, as long as this notice is preserved. |
15 | 14 | @SET_MAKE@ |
16 | 15 | |
17 | 16 | 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 | } | |
18 | 34 | pkgdatadir = $(datadir)/@PACKAGE@ |
19 | 35 | pkgincludedir = $(includedir)/@PACKAGE@ |
20 | 36 | pkglibdir = $(libdir)/@PACKAGE@ |
34 | 50 | build_triplet = @build@ |
35 | 51 | host_triplet = @host@ |
36 | 52 | noinst_PROGRAMS = test-domain-create$(EXEEXT) \ |
37 | test-domain-parse$(EXEEXT) | |
53 | test-domain-parse$(EXEEXT) test-capabilities-parse$(EXEEXT) | |
38 | 54 | 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 | |
40 | 57 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
41 | 58 | am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ |
42 | 59 | $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ |
51 | 68 | CONFIG_CLEAN_FILES = |
52 | 69 | CONFIG_CLEAN_VPATH_FILES = |
53 | 70 | 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) | |
57 | 76 | am__DEPENDENCIES_1 = |
58 | test_domain_create_DEPENDENCIES = \ | |
77 | test_capabilities_parse_DEPENDENCIES = \ | |
59 | 78 | $(top_builddir)/libvirt-gconfig/libvirt-gconfig-1.0.la \ |
60 | 79 | $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ |
61 | 80 | $(am__DEPENDENCIES_1) |
62 | 81 | AM_V_lt = $(am__v_lt_@AM_V@) |
63 | 82 | am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) |
64 | 83 | 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) | |
65 | 92 | am_test_domain_parse_OBJECTS = test-domain-parse.$(OBJEXT) |
66 | 93 | test_domain_parse_OBJECTS = $(am_test_domain_parse_OBJECTS) |
67 | 94 | test_domain_parse_LDADD = $(LDADD) |
69 | 96 | $(top_builddir)/libvirt-gconfig/libvirt-gconfig-1.0.la \ |
70 | 97 | $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ |
71 | 98 | $(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 = | |
72 | 111 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) |
73 | 112 | depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp |
74 | 113 | am__depfiles_maybe = depfiles |
81 | 120 | $(AM_CFLAGS) $(CFLAGS) |
82 | 121 | AM_V_CC = $(am__v_CC_@AM_V@) |
83 | 122 | 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 = | |
88 | 125 | CCLD = $(CC) |
89 | 126 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ |
90 | 127 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ |
91 | 128 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ |
92 | 129 | AM_V_CCLD = $(am__v_CCLD_@AM_V@) |
93 | 130 | 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 | |
101 | 142 | ETAGS = etags |
102 | 143 | CTAGS = ctags |
103 | 144 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
277 | 318 | |
278 | 319 | test_domain_create_SOURCES = test-domain-create.c |
279 | 320 | test_domain_parse_SOURCES = test-domain-parse.c |
321 | test_capabilities_parse_SOURCES = test-capabilities-parse.c | |
280 | 322 | all: all-am |
281 | 323 | |
282 | 324 | .SUFFIXES: |
320 | 362 | list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ |
321 | 363 | echo " rm -f" $$list; \ |
322 | 364 | 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) | |
323 | 368 | test-domain-create$(EXEEXT): $(test_domain_create_OBJECTS) $(test_domain_create_DEPENDENCIES) $(EXTRA_test_domain_create_DEPENDENCIES) |
324 | 369 | @rm -f test-domain-create$(EXEEXT) |
325 | 370 | $(AM_V_CCLD)$(LINK) $(test_domain_create_OBJECTS) $(test_domain_create_LDADD) $(LIBS) |
333 | 378 | distclean-compile: |
334 | 379 | -rm -f *.tab.c |
335 | 380 | |
381 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-capabilities-parse.Po@am__quote@ | |
336 | 382 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-domain-create.Po@am__quote@ |
337 | 383 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-domain-parse.Po@am__quote@ |
338 | 384 | |
411 | 457 | here=`$(am__cd) $(top_builddir) && pwd` \ |
412 | 458 | && $(am__cd) $(top_srcdir) \ |
413 | 459 | && 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 | |
414 | 474 | |
415 | 475 | distclean-tags: |
416 | 476 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
553 | 613 | .MAKE: install-am install-strip |
554 | 614 | |
555 | 615 | .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 \ | |
557 | 617 | distclean-compile distclean-generic distclean-libtool \ |
558 | 618 | distclean-tags distdir dvi dvi-am html html-am info info-am \ |
559 | 619 | 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 | } |
172 | 172 | gvir_config_domain_set_os(domain, os); |
173 | 173 | g_object_unref(G_OBJECT(os)); |
174 | 174 | |
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 | ||
175 | 230 | /* disk node */ |
176 | 231 | GVirConfigDomainDisk *disk; |
177 | 232 |
0 | # Makefile.in generated by automake 1.11.3 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.12.2 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
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 | ||
6 | 5 | # This Makefile.in is free software; the Free Software Foundation |
7 | 6 | # gives unlimited permission to copy and/or distribute it, |
8 | 7 | # with or without modifications, as long as this notice is preserved. |
17 | 16 | |
18 | 17 | |
19 | 18 | 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 | } | |
20 | 36 | pkgdatadir = $(datadir)/@PACKAGE@ |
21 | 37 | pkgincludedir = $(includedir)/@PACKAGE@ |
22 | 38 | pkglibdir = $(libdir)/@PACKAGE@ |
37 | 53 | host_triplet = @host@ |
38 | 54 | subdir = libvirt-glib |
39 | 55 | DIST_COMMON = $(libvirt_glib_1_0_la_HEADERS) $(srcdir)/Makefile.am \ |
40 | $(srcdir)/Makefile.in | |
56 | $(srcdir)/Makefile.in $(top_srcdir)/build-aux/depcomp | |
41 | 57 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
42 | 58 | am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ |
43 | 59 | $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ |
92 | 108 | AM_V_lt = $(am__v_lt_@AM_V@) |
93 | 109 | am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) |
94 | 110 | am__v_lt_0 = --silent |
111 | am__v_lt_1 = | |
95 | 112 | libvirt_glib_1_0_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ |
96 | 113 | $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ |
97 | 114 | $(libvirt_glib_1_0_la_CFLAGS) $(CFLAGS) \ |
98 | 115 | $(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 = | |
99 | 128 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) |
100 | 129 | depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp |
101 | 130 | am__depfiles_maybe = depfiles |
108 | 137 | $(AM_CFLAGS) $(CFLAGS) |
109 | 138 | AM_V_CC = $(am__v_CC_@AM_V@) |
110 | 139 | 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 = | |
115 | 142 | CCLD = $(CC) |
116 | 143 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ |
117 | 144 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ |
118 | 145 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ |
119 | 146 | AM_V_CCLD = $(am__v_CCLD_@AM_V@) |
120 | 147 | 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 = | |
125 | 150 | SOURCES = $(libvirt_glib_1_0_la_SOURCES) |
126 | 151 | 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 | |
127 | 157 | DATA = $(gir_DATA) $(typelibs_DATA) |
128 | 158 | HEADERS = $(libvirt_glib_1_0_la_HEADERS) |
129 | 159 | ETAGS = etags |
372 | 402 | $(am__aclocal_m4_deps): |
373 | 403 | install-libLTLIBRARIES: $(lib_LTLIBRARIES) |
374 | 404 | @$(NORMAL_INSTALL) |
375 | test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)" | |
376 | 405 | @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ |
377 | 406 | list2=; for p in $$list; do \ |
378 | 407 | if test -f $$p; then \ |
380 | 409 | else :; fi; \ |
381 | 410 | done; \ |
382 | 411 | test -z "$$list2" || { \ |
412 | echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ | |
413 | $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ | |
383 | 414 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ |
384 | 415 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ |
385 | 416 | } |
395 | 426 | |
396 | 427 | clean-libLTLIBRARIES: |
397 | 428 | -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 | } | |
404 | 437 | libvirt-glib-1.0.la: $(libvirt_glib_1_0_la_OBJECTS) $(libvirt_glib_1_0_la_DEPENDENCIES) $(EXTRA_libvirt_glib_1_0_la_DEPENDENCIES) |
405 | 438 | $(AM_V_CCLD)$(libvirt_glib_1_0_la_LINK) -rpath $(libdir) $(libvirt_glib_1_0_la_OBJECTS) $(libvirt_glib_1_0_la_LIBADD) $(LIBS) |
406 | 439 | |
463 | 496 | -rm -rf .libs _libs |
464 | 497 | install-girDATA: $(gir_DATA) |
465 | 498 | @$(NORMAL_INSTALL) |
466 | test -z "$(girdir)" || $(MKDIR_P) "$(DESTDIR)$(girdir)" | |
467 | 499 | @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; \ | |
468 | 504 | for p in $$list; do \ |
469 | 505 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ |
470 | 506 | echo "$$d$$p"; \ |
481 | 517 | dir='$(DESTDIR)$(girdir)'; $(am__uninstall_files_from_dir) |
482 | 518 | install-typelibsDATA: $(typelibs_DATA) |
483 | 519 | @$(NORMAL_INSTALL) |
484 | test -z "$(typelibsdir)" || $(MKDIR_P) "$(DESTDIR)$(typelibsdir)" | |
485 | 520 | @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; \ | |
486 | 525 | for p in $$list; do \ |
487 | 526 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ |
488 | 527 | echo "$$d$$p"; \ |
499 | 538 | dir='$(DESTDIR)$(typelibsdir)'; $(am__uninstall_files_from_dir) |
500 | 539 | install-libvirt_glib_1_0_laHEADERS: $(libvirt_glib_1_0_la_HEADERS) |
501 | 540 | @$(NORMAL_INSTALL) |
502 | test -z "$(libvirt_glib_1_0_ladir)" || $(MKDIR_P) "$(DESTDIR)$(libvirt_glib_1_0_ladir)" | |
503 | 541 | @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; \ | |
504 | 546 | for p in $$list; do \ |
505 | 547 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ |
506 | 548 | echo "$$d$$p"; \ |
564 | 606 | here=`$(am__cd) $(top_builddir) && pwd` \ |
565 | 607 | && $(am__cd) $(top_srcdir) \ |
566 | 608 | && 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 | |
567 | 623 | |
568 | 624 | distclean-tags: |
569 | 625 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
712 | 768 | .MAKE: install-am install-strip |
713 | 769 | |
714 | 770 | .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 \ | |
716 | 772 | distclean-compile distclean-generic distclean-libtool \ |
717 | 773 | distclean-tags distdir dvi dvi-am html html-am info info-am \ |
718 | 774 | install install-am install-data install-data-am install-dvi \ |
28 | 28 | #include "libvirt-glib/libvirt-glib.h" |
29 | 29 | |
30 | 30 | /** |
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) < 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 | |
36 | 76 | * |
37 | 77 | * Creates a new #GError with the given @domain and @code, |
38 | 78 | * and a message formatted with @format. |
60 | 100 | } |
61 | 101 | |
62 | 102 | /** |
63 | * gvir_error_new_literal: (skip) | |
103 | * gvir_error_new_literal: | |
64 | 104 | * @domain: error domain |
65 | 105 | * @code: error code |
66 | 106 | * @message: error message |
98 | 138 | } |
99 | 139 | |
100 | 140 | /** |
101 | * gvir_error_new_valist: (skip) | |
141 | * gvir_error_new_valist: | |
102 | 142 | * @domain: error domain |
103 | 143 | * @code: error code |
104 | 144 | * @format: printf()-style format for error message |
128 | 168 | |
129 | 169 | |
130 | 170 | /** |
131 | * gvir_set_error: (skip) | |
171 | * gvir_set_error: | |
132 | 172 | * @error: pointer to error location |
133 | 173 | * @domain: error domain |
134 | 174 | * @code: error code |
135 | 175 | * @format: printf()-style format for error message |
136 | * @Varargs: parameters for message format | |
176 | * @...: parameters for message format | |
137 | 177 | * |
138 | 178 | * If @error is NULL this does nothing. Otherwise it |
139 | 179 | * creates a new #GError with the given @domain and @code, |
163 | 203 | |
164 | 204 | |
165 | 205 | /** |
166 | * gvir_set_error_literal: (skip) | |
206 | * gvir_set_error_literal: | |
167 | 207 | * @error: pointer to error location |
168 | 208 | * @domain: error domain |
169 | 209 | * @code: error code |
189 | 229 | |
190 | 230 | |
191 | 231 | /** |
192 | * gvir_set_error_valist: (skip) | |
232 | * gvir_set_error_valist: | |
193 | 233 | * @error: pointer to error location |
194 | 234 | * @domain: error domain |
195 | 235 | * @code: error code |
30 | 30 | |
31 | 31 | #include "libvirt-glib/libvirt-glib.h" |
32 | 32 | |
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 | ||
33 | 80 | #if GLIB_CHECK_VERSION(2, 31, 0) |
34 | 81 | #define g_mutex_new() g_new0(GMutex, 1) |
35 | 82 | #endif |
39 | 86 | int watch; |
40 | 87 | int fd; |
41 | 88 | int events; |
42 | int enabled; | |
89 | int removed; | |
43 | 90 | GIOChannel *channel; |
44 | 91 | guint source; |
45 | 92 | virEventHandleCallback cb; |
51 | 98 | { |
52 | 99 | int timer; |
53 | 100 | int interval; |
101 | int removed; | |
54 | 102 | guint source; |
55 | 103 | virEventTimeoutCallback cb; |
56 | 104 | void *opaque; |
82 | 130 | if (condition & G_IO_ERR) |
83 | 131 | events |= VIR_EVENT_HANDLE_ERROR; |
84 | 132 | |
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); | |
86 | 134 | |
87 | 135 | (data->cb)(data->watch, data->fd, events, data->opaque); |
88 | 136 | |
118 | 166 | data->channel = g_io_channel_unix_new(fd); |
119 | 167 | data->ff = ff; |
120 | 168 | |
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); | |
122 | 170 | |
123 | 171 | data->source = g_io_add_watch(data->channel, |
124 | 172 | cond, |
135 | 183 | } |
136 | 184 | |
137 | 185 | static struct gvir_event_handle * |
138 | gvir_event_handle_find(int watch, guint *idx) | |
186 | gvir_event_handle_find(int watch) | |
139 | 187 | { |
140 | 188 | guint i; |
141 | 189 | |
147 | 195 | continue; |
148 | 196 | } |
149 | 197 | |
150 | if (h->watch == watch) { | |
151 | if (idx != NULL) | |
152 | *idx = i; | |
198 | if ((h->watch == watch) && !h->removed) { | |
153 | 199 | return h; |
154 | 200 | } |
155 | 201 | } |
165 | 211 | |
166 | 212 | g_mutex_lock(eventlock); |
167 | 213 | |
168 | data = gvir_event_handle_find(watch, NULL); | |
214 | data = gvir_event_handle_find(watch); | |
169 | 215 | if (!data) { |
170 | 216 | g_debug("Update for missing handle watch %d", watch); |
171 | 217 | goto cleanup; |
172 | 218 | } |
219 | ||
220 | g_debug("Update handle %p %d %d %d\n", data, watch, data->fd, events); | |
173 | 221 | |
174 | 222 | if (events) { |
175 | 223 | GIOCondition cond = 0; |
210 | 258 | if (h->ff) |
211 | 259 | (h->ff)(h->opaque); |
212 | 260 | |
261 | g_mutex_lock(eventlock); | |
213 | 262 | g_ptr_array_remove_fast(handles, h); |
263 | g_mutex_unlock(eventlock); | |
214 | 264 | |
215 | 265 | return FALSE; |
216 | 266 | } |
220 | 270 | { |
221 | 271 | struct gvir_event_handle *data; |
222 | 272 | 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); | |
228 | 277 | if (!data) { |
229 | 278 | g_debug("Remove of missing watch %d", watch); |
230 | 279 | goto cleanup; |
231 | 280 | } |
232 | 281 | |
233 | g_debug("Remove handle %d %d\n", watch, data->fd); | |
282 | g_debug("Remove handle %p %d %d\n", data, watch, data->fd); | |
234 | 283 | |
235 | 284 | if (!data->source) |
236 | 285 | goto cleanup; |
238 | 287 | g_source_remove(data->source); |
239 | 288 | data->source = 0; |
240 | 289 | 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; | |
241 | 295 | g_idle_add(_event_handle_remove, data); |
242 | 296 | |
243 | 297 | ret = 0; |
293 | 347 | |
294 | 348 | |
295 | 349 | static struct gvir_event_timeout * |
296 | gvir_event_timeout_find(int timer, guint *idx) | |
350 | gvir_event_timeout_find(int timer) | |
297 | 351 | { |
298 | 352 | guint i; |
299 | 353 | |
307 | 361 | continue; |
308 | 362 | } |
309 | 363 | |
310 | if (t->timer == timer) { | |
311 | if (idx != NULL) | |
312 | *idx = i; | |
364 | if ((t->timer == timer) && !t->removed) { | |
313 | 365 | return t; |
314 | 366 | } |
315 | 367 | } |
326 | 378 | |
327 | 379 | g_mutex_lock(eventlock); |
328 | 380 | |
329 | data = gvir_event_timeout_find(timer, NULL); | |
381 | data = gvir_event_timeout_find(timer); | |
330 | 382 | if (!data) { |
331 | 383 | g_debug("Update of missing timer %d", timer); |
332 | 384 | goto cleanup; |
336 | 388 | |
337 | 389 | if (interval >= 0) { |
338 | 390 | if (data->source) |
339 | goto cleanup; | |
391 | g_source_remove(data->source); | |
340 | 392 | |
341 | 393 | data->interval = interval; |
342 | 394 | data->source = g_timeout_add(data->interval, |
362 | 414 | if (t->ff) |
363 | 415 | (t->ff)(t->opaque); |
364 | 416 | |
417 | g_mutex_lock(eventlock); | |
365 | 418 | g_ptr_array_remove_fast(timeouts, t); |
419 | g_mutex_unlock(eventlock); | |
366 | 420 | |
367 | 421 | return FALSE; |
368 | 422 | } |
371 | 425 | gvir_event_timeout_remove(int timer) |
372 | 426 | { |
373 | 427 | struct gvir_event_timeout *data; |
374 | guint idx; | |
375 | 428 | int ret = -1; |
376 | 429 | |
377 | 430 | g_mutex_lock(eventlock); |
378 | 431 | |
379 | data = gvir_event_timeout_find(timer, &idx); | |
432 | data = gvir_event_timeout_find(timer); | |
380 | 433 | if (!data) { |
381 | 434 | g_debug("Remove of missing timer %d", timer); |
382 | 435 | goto cleanup; |
389 | 442 | |
390 | 443 | g_source_remove(data->source); |
391 | 444 | 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; | |
392 | 450 | g_idle_add(_event_timeout_remove, data); |
393 | 451 | |
394 | 452 | ret = 0; |
413 | 471 | return NULL; |
414 | 472 | } |
415 | 473 | |
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 | */ | |
416 | 492 | void gvir_event_register(void) |
417 | 493 | { |
418 | 494 | static GOnce once = G_ONCE_INIT; |
28 | 28 | |
29 | 29 | #include "libvirt-glib-main.h" |
30 | 30 | |
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 | ||
31 | 61 | static void |
32 | 62 | gvir_error_func(gpointer opaque G_GNUC_UNUSED, |
33 | 63 | virErrorPtr err) |
36 | 66 | } |
37 | 67 | |
38 | 68 | |
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 | */ | |
39 | 96 | void gvir_init(int *argc, |
40 | 97 | char ***argv) |
41 | 98 | { |
57 | 114 | } |
58 | 115 | |
59 | 116 | |
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 | */ | |
60 | 136 | gboolean gvir_init_check(int *argc G_GNUC_UNUSED, |
61 | 137 | char ***argv G_GNUC_UNUSED, |
62 | 138 | GError **err G_GNUC_UNUSED) |
15 | 15 | %if 0%{?rhel} && 0%{?rhel} < 7 |
16 | 16 | %define with_python 1 |
17 | 17 | %endif |
18 | %if 0%{with_introspection} && 0%{?fedora} > 15 | |
19 | %define with_vala 1 | |
20 | %endif | |
18 | %define with_vala %{with_introspection} | |
21 | 19 | |
22 | 20 | %define libvirt_version 0.9.10 |
23 | 21 | |
24 | 22 | Name: libvirt-glib |
25 | Version: 0.0.8 | |
23 | Version: 0.1.2 | |
26 | 24 | Release: 1%{?dist}%{?extra_release} |
27 | 25 | Summary: libvirt glib integration for events |
28 | 26 | Group: Development/Libraries |
15 | 15 | %if 0%{?rhel} && 0%{?rhel} < 7 |
16 | 16 | %define with_python 1 |
17 | 17 | %endif |
18 | %if 0%{with_introspection} && 0%{?fedora} > 15 | |
19 | %define with_vala 1 | |
20 | %endif | |
18 | %define with_vala %{with_introspection} | |
21 | 19 | |
22 | 20 | %define libvirt_version 0.9.10 |
23 | 21 |
0 | # Makefile.in generated by automake 1.11.3 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.12.2 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
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 | ||
6 | 5 | # This Makefile.in is free software; the Free Software Foundation |
7 | 6 | # gives unlimited permission to copy and/or distribute it, |
8 | 7 | # with or without modifications, as long as this notice is preserved. |
17 | 16 | |
18 | 17 | |
19 | 18 | 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 | } | |
20 | 36 | pkgdatadir = $(datadir)/@PACKAGE@ |
21 | 37 | pkgincludedir = $(includedir)/@PACKAGE@ |
22 | 38 | pkglibdir = $(libdir)/@PACKAGE@ |
38 | 54 | @WITH_GOBJECT_INTROSPECTION_TRUE@am__append_1 = $(gir_DATA) $(typelibs_DATA) |
39 | 55 | subdir = libvirt-gobject |
40 | 56 | DIST_COMMON = $(libvirt_gobject_1_0_la_HEADERS) $(srcdir)/Makefile.am \ |
41 | $(srcdir)/Makefile.in | |
57 | $(srcdir)/Makefile.in $(top_srcdir)/build-aux/depcomp | |
42 | 58 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
43 | 59 | am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ |
44 | 60 | $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ |
114 | 130 | AM_V_lt = $(am__v_lt_@AM_V@) |
115 | 131 | am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) |
116 | 132 | am__v_lt_0 = --silent |
133 | am__v_lt_1 = | |
117 | 134 | libvirt_gobject_1_0_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ |
118 | 135 | $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ |
119 | 136 | $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) \ |
120 | 137 | $(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 = | |
121 | 150 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) |
122 | 151 | depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp |
123 | 152 | am__depfiles_maybe = depfiles |
130 | 159 | $(AM_CFLAGS) $(CFLAGS) |
131 | 160 | AM_V_CC = $(am__v_CC_@AM_V@) |
132 | 161 | 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 = | |
137 | 164 | CCLD = $(CC) |
138 | 165 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ |
139 | 166 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ |
140 | 167 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ |
141 | 168 | AM_V_CCLD = $(am__v_CCLD_@AM_V@) |
142 | 169 | 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 = | |
147 | 172 | SOURCES = $(libvirt_gobject_1_0_la_SOURCES) \ |
148 | 173 | $(nodist_libvirt_gobject_1_0_la_SOURCES) |
149 | 174 | 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 | |
150 | 180 | DATA = $(gir_DATA) $(typelibs_DATA) |
151 | 181 | HEADERS = $(libvirt_gobject_1_0_la_HEADERS) \ |
152 | 182 | $(nodist_libvirt_gobject_1_0_la_HEADERS) |
455 | 485 | $(am__aclocal_m4_deps): |
456 | 486 | install-libLTLIBRARIES: $(lib_LTLIBRARIES) |
457 | 487 | @$(NORMAL_INSTALL) |
458 | test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)" | |
459 | 488 | @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ |
460 | 489 | list2=; for p in $$list; do \ |
461 | 490 | if test -f $$p; then \ |
463 | 492 | else :; fi; \ |
464 | 493 | done; \ |
465 | 494 | test -z "$$list2" || { \ |
495 | echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ | |
496 | $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ | |
466 | 497 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ |
467 | 498 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ |
468 | 499 | } |
478 | 509 | |
479 | 510 | clean-libLTLIBRARIES: |
480 | 511 | -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 | } | |
487 | 520 | libvirt-gobject-1.0.la: $(libvirt_gobject_1_0_la_OBJECTS) $(libvirt_gobject_1_0_la_DEPENDENCIES) $(EXTRA_libvirt_gobject_1_0_la_DEPENDENCIES) |
488 | 521 | $(AM_V_CCLD)$(libvirt_gobject_1_0_la_LINK) -rpath $(libdir) $(libvirt_gobject_1_0_la_OBJECTS) $(libvirt_gobject_1_0_la_LIBADD) $(LIBS) |
489 | 522 | |
682 | 715 | -rm -rf .libs _libs |
683 | 716 | install-girDATA: $(gir_DATA) |
684 | 717 | @$(NORMAL_INSTALL) |
685 | test -z "$(girdir)" || $(MKDIR_P) "$(DESTDIR)$(girdir)" | |
686 | 718 | @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; \ | |
687 | 723 | for p in $$list; do \ |
688 | 724 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ |
689 | 725 | echo "$$d$$p"; \ |
700 | 736 | dir='$(DESTDIR)$(girdir)'; $(am__uninstall_files_from_dir) |
701 | 737 | install-typelibsDATA: $(typelibs_DATA) |
702 | 738 | @$(NORMAL_INSTALL) |
703 | test -z "$(typelibsdir)" || $(MKDIR_P) "$(DESTDIR)$(typelibsdir)" | |
704 | 739 | @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; \ | |
705 | 744 | for p in $$list; do \ |
706 | 745 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ |
707 | 746 | echo "$$d$$p"; \ |
718 | 757 | dir='$(DESTDIR)$(typelibsdir)'; $(am__uninstall_files_from_dir) |
719 | 758 | install-libvirt_gobject_1_0_laHEADERS: $(libvirt_gobject_1_0_la_HEADERS) |
720 | 759 | @$(NORMAL_INSTALL) |
721 | test -z "$(libvirt_gobject_1_0_ladir)" || $(MKDIR_P) "$(DESTDIR)$(libvirt_gobject_1_0_ladir)" | |
722 | 760 | @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; \ | |
723 | 765 | for p in $$list; do \ |
724 | 766 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ |
725 | 767 | echo "$$d$$p"; \ |
736 | 778 | dir='$(DESTDIR)$(libvirt_gobject_1_0_ladir)'; $(am__uninstall_files_from_dir) |
737 | 779 | install-nodist_libvirt_gobject_1_0_laHEADERS: $(nodist_libvirt_gobject_1_0_la_HEADERS) |
738 | 780 | @$(NORMAL_INSTALL) |
739 | test -z "$(libvirt_gobject_1_0_ladir)" || $(MKDIR_P) "$(DESTDIR)$(libvirt_gobject_1_0_ladir)" | |
740 | 781 | @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; \ | |
741 | 786 | for p in $$list; do \ |
742 | 787 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ |
743 | 788 | echo "$$d$$p"; \ |
801 | 846 | here=`$(am__cd) $(top_builddir) && pwd` \ |
802 | 847 | && $(am__cd) $(top_srcdir) \ |
803 | 848 | && 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 | |
804 | 863 | |
805 | 864 | distclean-tags: |
806 | 865 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
955 | 1014 | .MAKE: all check install install-am install-strip |
956 | 1015 | |
957 | 1016 | .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 \ | |
959 | 1018 | distclean-compile distclean-generic distclean-libtool \ |
960 | 1019 | distclean-tags distdir dvi dvi-am html html-am info info-am \ |
961 | 1020 | install install-am install-data install-data-am install-dvi \ |
40 | 40 | |
41 | 41 | GHashTable *domains; |
42 | 42 | GHashTable *pools; |
43 | gboolean domain_event; | |
44 | 43 | }; |
45 | 44 | |
46 | 45 | G_DEFINE_TYPE(GVirConnection, gvir_connection, G_TYPE_OBJECT); |
400 | 399 | |
401 | 400 | /** |
402 | 401 | * gvir_connection_open: |
403 | * @conn: the connection | |
402 | * @conn: a #GVirConnection | |
404 | 403 | * @cancellable: (allow-none)(transfer none): cancellation object |
405 | 404 | */ |
406 | 405 | gboolean gvir_connection_open(GVirConnection *conn, |
407 | 406 | GCancellable *cancellable, |
408 | 407 | GError **err) |
409 | 408 | { |
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; | |
411 | 417 | |
412 | 418 | if (g_cancellable_set_error_if_cancelled(cancellable, err)) |
413 | 419 | return FALSE; |
446 | 452 | free(uri); |
447 | 453 | } |
448 | 454 | |
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) | |
452 | 456 | g_warning("Failed to register domain events, ignoring"); |
453 | 457 | |
454 | 458 | g_mutex_unlock(priv->lock); |
476 | 480 | |
477 | 481 | /** |
478 | 482 | * gvir_connection_open_async: |
479 | * @conn: the connection | |
483 | * @conn: a #GVirConnection | |
480 | 484 | * @cancellable: (allow-none)(transfer none): cancellation object |
481 | 485 | * @callback: (scope async): completion callback |
482 | 486 | * @user_data: (closure): opaque data for callback |
487 | 491 | gpointer user_data) |
488 | 492 | { |
489 | 493 | GSimpleAsyncResult *res; |
494 | ||
495 | g_return_if_fail(GVIR_IS_CONNECTION(conn)); | |
496 | g_return_if_fail((cancellable == NULL) || G_IS_CANCELLABLE(cancellable)); | |
490 | 497 | |
491 | 498 | res = g_simple_async_result_new(G_OBJECT(conn), |
492 | 499 | callback, |
502 | 509 | |
503 | 510 | /** |
504 | 511 | * gvir_connection_open_finish: |
505 | * @conn: the connection | |
512 | * @conn: a #GVirConnection | |
506 | 513 | * @result: (transfer none): async method result |
507 | 514 | */ |
508 | 515 | gboolean gvir_connection_open_finish(GVirConnection *conn, |
523 | 530 | |
524 | 531 | gboolean gvir_connection_is_open(GVirConnection *conn) |
525 | 532 | { |
526 | GVirConnectionPrivate *priv = conn->priv; | |
533 | GVirConnectionPrivate *priv; | |
527 | 534 | gboolean open = TRUE; |
535 | ||
536 | g_return_val_if_fail(GVIR_IS_CONNECTION(conn), FALSE); | |
537 | ||
538 | priv = conn->priv; | |
528 | 539 | g_mutex_lock(priv->lock); |
529 | 540 | if (!priv->conn) |
530 | 541 | open = FALSE; |
534 | 545 | |
535 | 546 | void gvir_connection_close(GVirConnection *conn) |
536 | 547 | { |
537 | GVirConnectionPrivate *priv = conn->priv; | |
548 | GVirConnectionPrivate *priv; | |
549 | ||
550 | g_return_if_fail(GVIR_IS_CONNECTION(conn)); | |
551 | ||
552 | priv = conn->priv; | |
553 | ||
538 | 554 | g_debug("Close GVirConnection=%p", conn); |
539 | 555 | |
540 | 556 | g_mutex_lock(priv->lock); |
551 | 567 | |
552 | 568 | if (priv->conn) { |
553 | 569 | virConnectDomainEventDeregister(priv->conn, domain_event_cb); |
554 | priv->domain_event = FALSE; | |
555 | 570 | virConnectClose(priv->conn); |
556 | 571 | priv->conn = NULL; |
557 | 572 | } |
609 | 624 | |
610 | 625 | /** |
611 | 626 | * gvir_connection_fetch_domains: |
612 | * @conn: the connection | |
627 | * @conn: a #GVirConnection | |
613 | 628 | * @cancellable: (allow-none)(transfer none): cancellation object |
614 | 629 | */ |
615 | 630 | gboolean gvir_connection_fetch_domains(GVirConnection *conn, |
616 | 631 | GCancellable *cancellable, |
617 | 632 | GError **err) |
618 | 633 | { |
619 | GVirConnectionPrivate *priv = conn->priv; | |
634 | GVirConnectionPrivate *priv; | |
620 | 635 | GHashTable *doms; |
621 | 636 | gchar **inactive = NULL; |
622 | 637 | gint ninactive = 0; |
627 | 642 | virConnectPtr vconn = NULL; |
628 | 643 | GError *lerr = NULL; |
629 | 644 | |
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; | |
630 | 651 | g_mutex_lock(priv->lock); |
631 | 652 | if (!priv->conn) { |
632 | 653 | g_set_error_literal(err, GVIR_CONNECTION_ERROR, |
738 | 759 | |
739 | 760 | /** |
740 | 761 | * gvir_connection_fetch_storage_pools: |
741 | * @conn: the connection | |
762 | * @conn: a #GVirConnection | |
742 | 763 | * @cancellable: (allow-none)(transfer none): cancellation object |
743 | 764 | */ |
744 | 765 | gboolean gvir_connection_fetch_storage_pools(GVirConnection *conn, |
745 | 766 | GCancellable *cancellable, |
746 | 767 | GError **err) |
747 | 768 | { |
748 | GVirConnectionPrivate *priv = conn->priv; | |
769 | GVirConnectionPrivate *priv; | |
749 | 770 | GHashTable *pools; |
750 | 771 | gchar **inactive = NULL; |
751 | 772 | gint ninactive = 0; |
756 | 777 | virConnectPtr vconn = NULL; |
757 | 778 | GError *lerr = NULL; |
758 | 779 | |
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; | |
759 | 786 | g_mutex_lock(priv->lock); |
760 | 787 | if (!priv->conn) { |
761 | 788 | g_set_error_literal(err, GVIR_CONNECTION_ERROR, |
882 | 909 | |
883 | 910 | /** |
884 | 911 | * gvir_connection_fetch_domains_async: |
885 | * @conn: the connection | |
912 | * @conn: a #GVirConnection | |
886 | 913 | * @cancellable: (allow-none)(transfer none): cancellation object |
887 | 914 | * @callback: (scope async): completion callback |
888 | 915 | * @user_data: (closure): opaque data for callback |
893 | 920 | gpointer user_data) |
894 | 921 | { |
895 | 922 | GSimpleAsyncResult *res; |
923 | ||
924 | g_return_if_fail(GVIR_IS_CONNECTION(conn)); | |
925 | g_return_if_fail((cancellable == NULL) || G_IS_CANCELLABLE(cancellable)); | |
896 | 926 | |
897 | 927 | res = g_simple_async_result_new(G_OBJECT(conn), |
898 | 928 | callback, |
907 | 937 | |
908 | 938 | /** |
909 | 939 | * gvir_connection_fetch_domains_finish: |
910 | * @conn: the connection | |
940 | * @conn: a #GVirConnection | |
911 | 941 | * @result: (transfer none): async method result |
912 | 942 | */ |
913 | 943 | gboolean gvir_connection_fetch_domains_finish(GVirConnection *conn, |
941 | 971 | |
942 | 972 | /** |
943 | 973 | * gvir_connection_fetch_storage_pools_async: |
944 | * @conn: the connection | |
974 | * @conn: a #GVirConnection | |
945 | 975 | * @cancellable: (allow-none)(transfer none): cancellation object |
946 | 976 | * @callback: (scope async): completion callback |
947 | 977 | * @user_data: (closure): opaque data for callback |
952 | 982 | gpointer user_data) |
953 | 983 | { |
954 | 984 | GSimpleAsyncResult *res; |
985 | ||
986 | g_return_if_fail(GVIR_IS_CONNECTION(conn)); | |
987 | g_return_if_fail((cancellable == NULL) || G_IS_CANCELLABLE(cancellable)); | |
955 | 988 | |
956 | 989 | res = g_simple_async_result_new(G_OBJECT(conn), |
957 | 990 | callback, |
966 | 999 | |
967 | 1000 | /** |
968 | 1001 | * gvir_connection_fetch_storage_pools_finish: |
969 | * @conn: the connection | |
1002 | * @conn: a #GVirConnection | |
970 | 1003 | * @result: (transfer none): async method result |
971 | 1004 | */ |
972 | 1005 | gboolean gvir_connection_fetch_storage_pools_finish(GVirConnection *conn, |
986 | 1019 | |
987 | 1020 | const gchar *gvir_connection_get_uri(GVirConnection *conn) |
988 | 1021 | { |
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; | |
991 | 1025 | } |
992 | 1026 | |
993 | 1027 | static void gvir_domain_ref(gpointer obj, gpointer ignore G_GNUC_UNUSED) |
997 | 1031 | |
998 | 1032 | /** |
999 | 1033 | * 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(). | |
1002 | 1041 | */ |
1003 | 1042 | GList *gvir_connection_get_domains(GVirConnection *conn) |
1004 | 1043 | { |
1005 | GVirConnectionPrivate *priv = conn->priv; | |
1044 | GVirConnectionPrivate *priv; | |
1006 | 1045 | GList *domains = NULL; |
1007 | 1046 | |
1047 | g_return_val_if_fail(GVIR_IS_CONNECTION(conn), NULL); | |
1048 | ||
1049 | priv = conn->priv; | |
1008 | 1050 | g_mutex_lock(priv->lock); |
1009 | 1051 | if (priv->domains != NULL) { |
1010 | 1052 | domains = g_hash_table_get_values(priv->domains); |
1017 | 1059 | |
1018 | 1060 | /** |
1019 | 1061 | * gvir_connection_get_storage_pools: |
1062 | * @conn: a #GVirConnection | |
1063 | * | |
1064 | * Gets a list of the storage pools available through @conn. | |
1020 | 1065 | * |
1021 | 1066 | * 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(). | |
1023 | 1070 | */ |
1024 | 1071 | GList *gvir_connection_get_storage_pools(GVirConnection *conn) |
1025 | 1072 | { |
1026 | GVirConnectionPrivate *priv = conn->priv; | |
1073 | GVirConnectionPrivate *priv; | |
1027 | 1074 | GList *pools = NULL; |
1028 | 1075 | |
1076 | g_return_val_if_fail(GVIR_IS_CONNECTION(conn), NULL); | |
1077 | ||
1078 | priv = conn->priv; | |
1029 | 1079 | g_mutex_lock(priv->lock); |
1030 | 1080 | if (priv->pools != NULL) { |
1031 | 1081 | pools = g_hash_table_get_values(priv->pools); |
1038 | 1088 | |
1039 | 1089 | /** |
1040 | 1090 | * gvir_connection_get_domain: |
1091 | * @conn: a #GVirConnection | |
1041 | 1092 | * @uuid: uuid string of the requested domain |
1042 | 1093 | * |
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. | |
1044 | 1096 | */ |
1045 | 1097 | GVirDomain *gvir_connection_get_domain(GVirConnection *conn, |
1046 | 1098 | const gchar *uuid) |
1047 | 1099 | { |
1048 | GVirConnectionPrivate *priv = conn->priv; | |
1100 | GVirConnectionPrivate *priv; | |
1049 | 1101 | 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; | |
1050 | 1107 | g_mutex_lock(priv->lock); |
1051 | 1108 | dom = g_hash_table_lookup(priv->domains, uuid); |
1052 | 1109 | if (dom) |
1057 | 1114 | |
1058 | 1115 | /** |
1059 | 1116 | * gvir_connection_get_storage_pool: |
1117 | * @conn: a #GVirConnection | |
1060 | 1118 | * @uuid: uuid string of the requested storage pool |
1061 | 1119 | * |
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. | |
1063 | 1122 | */ |
1064 | 1123 | GVirStoragePool *gvir_connection_get_storage_pool(GVirConnection *conn, |
1065 | 1124 | const gchar *uuid) |
1066 | 1125 | { |
1067 | GVirConnectionPrivate *priv = conn->priv; | |
1126 | GVirConnectionPrivate *priv; | |
1068 | 1127 | GVirStoragePool *pool; |
1069 | 1128 | |
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; | |
1070 | 1133 | g_mutex_lock(priv->lock); |
1071 | 1134 | pool = g_hash_table_lookup(priv->pools, uuid); |
1072 | 1135 | if (pool) |
1078 | 1141 | |
1079 | 1142 | /** |
1080 | 1143 | * gvir_connection_find_domain_by_id: |
1144 | * @conn: a #GVirConnection | |
1081 | 1145 | * @id: id of the requested domain |
1082 | 1146 | * |
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. | |
1084 | 1149 | */ |
1085 | 1150 | GVirDomain *gvir_connection_find_domain_by_id(GVirConnection *conn, |
1086 | 1151 | gint id) |
1087 | 1152 | { |
1088 | GVirConnectionPrivate *priv = conn->priv; | |
1153 | GVirConnectionPrivate *priv; | |
1089 | 1154 | GHashTableIter iter; |
1090 | 1155 | gpointer key, value; |
1091 | 1156 | |
1157 | g_return_val_if_fail(GVIR_IS_CONNECTION(conn), NULL); | |
1158 | ||
1159 | priv = conn->priv; | |
1092 | 1160 | g_mutex_lock(priv->lock); |
1093 | 1161 | g_hash_table_iter_init(&iter, priv->domains); |
1094 | 1162 | |
1110 | 1178 | |
1111 | 1179 | /** |
1112 | 1180 | * gvir_connection_find_domain_by_name: |
1181 | * @conn: a #GVirConnection | |
1113 | 1182 | * @name: name of the requested domain |
1114 | 1183 | * |
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. | |
1116 | 1186 | */ |
1117 | 1187 | GVirDomain *gvir_connection_find_domain_by_name(GVirConnection *conn, |
1118 | 1188 | const gchar *name) |
1119 | 1189 | { |
1120 | GVirConnectionPrivate *priv = conn->priv; | |
1190 | GVirConnectionPrivate *priv; | |
1121 | 1191 | GHashTableIter iter; |
1122 | 1192 | gpointer key, value; |
1123 | 1193 | |
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; | |
1124 | 1198 | g_mutex_lock(priv->lock); |
1125 | 1199 | g_hash_table_iter_init(&iter, priv->domains); |
1126 | 1200 | |
1144 | 1218 | |
1145 | 1219 | /** |
1146 | 1220 | * gvir_connection_find_storage_pool_by_name: |
1221 | * @conn: a #GVirConnection | |
1147 | 1222 | * @name: name of the requested storage pool |
1148 | 1223 | * |
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. | |
1150 | 1226 | */ |
1151 | 1227 | GVirStoragePool *gvir_connection_find_storage_pool_by_name(GVirConnection *conn, |
1152 | 1228 | const gchar *name) |
1153 | 1229 | { |
1154 | GVirConnectionPrivate *priv = conn->priv; | |
1230 | GVirConnectionPrivate *priv; | |
1155 | 1231 | GHashTableIter iter; |
1156 | 1232 | gpointer key, value; |
1157 | 1233 | |
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; | |
1158 | 1238 | g_mutex_lock(priv->lock); |
1159 | 1239 | g_hash_table_iter_init(&iter, priv->pools); |
1160 | 1240 | |
1196 | 1276 | |
1197 | 1277 | /** |
1198 | 1278 | * gvir_connection_get_stream: |
1279 | * @conn: a #GVirConnection | |
1199 | 1280 | * @flags: flags to use for the stream |
1200 | 1281 | * |
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. | |
1202 | 1284 | */ |
1203 | 1285 | GVirStream *gvir_connection_get_stream(GVirConnection *self, |
1204 | 1286 | guint flags) |
1218 | 1300 | |
1219 | 1301 | /** |
1220 | 1302 | * gvir_connection_create_domain: |
1221 | * @conn: the connection on which to create the domain | |
1303 | * @conn: a #GVirConnection on which to create the domain | |
1222 | 1304 | * @conf: the configuration for the new domain |
1223 | 1305 | * |
1224 | 1306 | * Create the configuration file for a new persistent domain. |
1225 | 1307 | * The returned domain will initially be in the shutoff state. |
1226 | 1308 | * |
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. | |
1228 | 1312 | */ |
1229 | 1313 | GVirDomain *gvir_connection_create_domain(GVirConnection *conn, |
1230 | 1314 | GVirConfigDomain *conf, |
1232 | 1316 | { |
1233 | 1317 | gchar *xml; |
1234 | 1318 | 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); | |
1236 | 1324 | |
1237 | 1325 | xml = gvir_config_object_to_xml(GVIR_CONFIG_OBJECT(conf)); |
1238 | 1326 | |
1239 | 1327 | g_return_val_if_fail(xml != NULL, NULL); |
1240 | 1328 | |
1329 | priv = conn->priv; | |
1241 | 1330 | handle = virDomainDefineXML(priv->conn, xml); |
1242 | 1331 | g_free(xml); |
1243 | 1332 | if (!handle) { |
1264 | 1353 | |
1265 | 1354 | /** |
1266 | 1355 | * gvir_connection_start_domain: |
1267 | * @conn: the connection on which to create the domain | |
1356 | * @conn: a #GVirConnection on which to create the domain | |
1268 | 1357 | * @conf: the configuration for the new domain |
1269 | 1358 | * |
1270 | 1359 | * Start a new transient domain without persistent configuration. |
1271 | 1360 | * The returned domain will initially be running. |
1272 | 1361 | * |
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. | |
1274 | 1365 | */ |
1275 | 1366 | GVirDomain *gvir_connection_start_domain(GVirConnection *conn, |
1276 | 1367 | GVirConfigDomain *conf, |
1279 | 1370 | { |
1280 | 1371 | gchar *xml; |
1281 | 1372 | 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); | |
1283 | 1378 | |
1284 | 1379 | xml = gvir_config_object_to_xml(GVIR_CONFIG_OBJECT(conf)); |
1285 | 1380 | |
1286 | 1381 | g_return_val_if_fail(xml != NULL, NULL); |
1287 | 1382 | |
1383 | priv = conn->priv; | |
1288 | 1384 | handle = virDomainCreateXML(priv->conn, xml, flags); |
1289 | 1385 | g_free(xml); |
1290 | 1386 | if (!handle) { |
1311 | 1407 | |
1312 | 1408 | /** |
1313 | 1409 | * 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 | |
1315 | 1411 | * @conf: the configuration for the new storage pool |
1316 | 1412 | * @flags: the flags |
1317 | 1413 | * @err: return location for any #GError |
1318 | 1414 | * |
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(). | |
1320 | 1418 | */ |
1321 | 1419 | GVirStoragePool *gvir_connection_create_storage_pool |
1322 | 1420 | (GVirConnection *conn, |
1325 | 1423 | GError **err) { |
1326 | 1424 | const gchar *xml; |
1327 | 1425 | 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); | |
1329 | 1431 | |
1330 | 1432 | xml = gvir_config_object_to_xml(GVIR_CONFIG_OBJECT(conf)); |
1331 | 1433 | |
1332 | 1434 | g_return_val_if_fail(xml != NULL, NULL); |
1333 | 1435 | |
1436 | priv = conn->priv; | |
1334 | 1437 | if (!(handle = virStoragePoolDefineXML(priv->conn, xml, flags))) { |
1335 | 1438 | gvir_set_error_literal(err, GVIR_CONNECTION_ERROR, |
1336 | 1439 | flags, |
1355 | 1458 | |
1356 | 1459 | /** |
1357 | 1460 | * gvir_connection_get_node_info: |
1358 | * @conn: the connection | |
1461 | * @conn: a #GVirConnection | |
1359 | 1462 | * @err: return location for any #GError |
1360 | 1463 | * |
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. | |
1362 | 1467 | */ |
1363 | 1468 | GVirNodeInfo *gvir_connection_get_node_info(GVirConnection *conn, |
1364 | 1469 | GError **err) |
1365 | 1470 | { |
1366 | GVirConnectionPrivate *priv = conn->priv; | |
1471 | GVirConnectionPrivate *priv; | |
1367 | 1472 | virNodeInfo info; |
1368 | 1473 | GVirNodeInfo *ret; |
1369 | 1474 | |
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; | |
1370 | 1479 | if (virNodeGetInfo(priv->conn, &info) < 0) { |
1371 | 1480 | gvir_set_error_literal(err, GVIR_CONNECTION_ERROR, |
1372 | 1481 | 0, |
1386 | 1495 | |
1387 | 1496 | return ret; |
1388 | 1497 | } |
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 | } |
190 | 190 | GVirNodeInfo *gvir_connection_get_node_info(GVirConnection *conn, |
191 | 191 | GError **err); |
192 | 192 | |
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); | |
193 | 224 | G_END_DECLS |
194 | 225 | |
195 | 226 | #endif /* __LIBVIRT_GOBJECT_CONNECTION_H__ */ |
160 | 160 | * gvir_domain_device_get_domain: |
161 | 161 | * @device: the domain device |
162 | 162 | * |
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 | ||
164 | 166 | */ |
165 | 167 | GVirDomain *gvir_domain_device_get_domain(GVirDomainDevice *device) |
166 | 168 | { |
169 | g_return_val_if_fail(GVIR_IS_DOMAIN_DEVICE(device), NULL); | |
170 | ||
167 | 171 | return g_object_ref (device->priv->domain); |
168 | 172 | } |
169 | 173 | |
171 | 175 | * gvir_domain_device_get_config: |
172 | 176 | * @device: the domain device |
173 | 177 | * |
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 | ||
175 | 181 | */ |
176 | 182 | GVirConfigDomainDevice *gvir_domain_device_get_config(GVirDomainDevice *device) |
177 | 183 | { |
184 | g_return_val_if_fail(GVIR_IS_DOMAIN_DEVICE(device), NULL); | |
185 | ||
178 | 186 | return g_object_ref (device->priv->config); |
179 | 187 | } |
180 | 188 |
111 | 111 | * within the stats structure may be returned as -1, which indicates |
112 | 112 | * that the hypervisor does not support that particular statistic. |
113 | 113 | * |
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. | |
115 | 117 | **/ |
116 | 118 | GVirDomainDiskStats *gvir_domain_disk_get_stats(GVirDomainDisk *self, GError **err) |
117 | 119 | { |
121 | 123 | const gchar *path; |
122 | 124 | |
123 | 125 | g_return_val_if_fail(GVIR_IS_DOMAIN_DISK(self), NULL); |
126 | g_return_val_if_fail((err == NULL) || (*err == NULL), NULL); | |
124 | 127 | |
125 | 128 | handle = gvir_domain_device_get_domain_handle(GVIR_DOMAIN_DEVICE(self)); |
126 | 129 | path = gvir_domain_disk_get_path (self); |
113 | 113 | * within the stats structure may be returned as -1, which indicates |
114 | 114 | * that the hypervisor does not support that particular statistic. |
115 | 115 | * |
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. | |
117 | 119 | **/ |
118 | 120 | GVirDomainInterfaceStats *gvir_domain_interface_get_stats(GVirDomainInterface *self, GError **err) |
119 | 121 | { |
123 | 125 | const gchar *path; |
124 | 126 | |
125 | 127 | g_return_val_if_fail(GVIR_IS_DOMAIN_INTERFACE(self), NULL); |
128 | g_return_val_if_fail(err == NULL || *err == NULL, NULL); | |
126 | 129 | |
127 | 130 | handle = gvir_domain_device_get_domain_handle(GVIR_DOMAIN_DEVICE(self)); |
128 | 131 | path = gvir_domain_interface_get_path (self); |
160 | 160 | |
161 | 161 | const gchar *gvir_domain_snapshot_get_name(GVirDomainSnapshot *snapshot) |
162 | 162 | { |
163 | g_return_val_if_fail(GVIR_IS_DOMAIN_SNAPSHOT(snapshot), NULL); | |
163 | 164 | #if 0 |
164 | 165 | GVirDomainSnapshotPrivate *priv = snapshot->priv; |
165 | 166 | const char *name; |
183 | 184 | * gvir_domain_snapshot_get_config: |
184 | 185 | * @snapshot: the domain_snapshot |
185 | 186 | * @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 | ||
187 | 191 | */ |
188 | 192 | GVirConfigDomainSnapshot *gvir_domain_snapshot_get_config |
189 | 193 | (GVirDomainSnapshot *snapshot, |
190 | 194 | guint flags, |
191 | 195 | GError **err) |
192 | 196 | { |
193 | GVirDomainSnapshotPrivate *priv = snapshot->priv; | |
197 | GVirDomainSnapshotPrivate *priv; | |
194 | 198 | gchar *xml; |
195 | 199 | |
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; | |
196 | 204 | if (!(xml = virDomainSnapshotGetXMLDesc(priv->handle, flags))) { |
197 | 205 | gvir_set_error_literal(err, GVIR_DOMAIN_SNAPSHOT_ERROR, |
198 | 206 | 0, |
273 | 273 | |
274 | 274 | const gchar *gvir_domain_get_name(GVirDomain *dom) |
275 | 275 | { |
276 | GVirDomainPrivate *priv = dom->priv; | |
276 | GVirDomainPrivate *priv; | |
277 | 277 | const char *name; |
278 | 278 | |
279 | g_return_val_if_fail(GVIR_IS_DOMAIN(dom), NULL); | |
280 | ||
281 | priv = dom->priv; | |
279 | 282 | if (!(name = virDomainGetName(priv->handle))) { |
280 | 283 | g_warning("Failed to get domain name on %p", priv->handle); |
281 | 284 | return NULL; |
295 | 298 | gint gvir_domain_get_id(GVirDomain *dom, |
296 | 299 | GError **err) |
297 | 300 | { |
298 | GVirDomainPrivate *priv = dom->priv; | |
301 | GVirDomainPrivate *priv; | |
299 | 302 | gint ret; |
300 | 303 | |
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; | |
301 | 308 | if ((ret = virDomainGetID(priv->handle)) < 0) { |
302 | 309 | gvir_set_error_literal(err, GVIR_DOMAIN_ERROR, |
303 | 310 | 0, |
316 | 323 | guint flags, |
317 | 324 | GError **err) |
318 | 325 | { |
319 | GVirDomainPrivate *priv = dom->priv; | |
326 | GVirDomainPrivate *priv; | |
320 | 327 | int ret; |
321 | 328 | |
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; | |
322 | 333 | if (flags) |
323 | 334 | ret = virDomainCreateWithFlags(priv->handle, flags); |
324 | 335 | else |
333 | 344 | return TRUE; |
334 | 345 | } |
335 | 346 | |
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 | ||
336 | 422 | /** |
337 | 423 | * gvir_domain_resume: |
338 | 424 | * @dom: the domain |
425 | * @err: Place-holder for possible errors | |
339 | 426 | * |
340 | 427 | * Returns: TRUE on success |
341 | 428 | */ |
342 | 429 | gboolean gvir_domain_resume(GVirDomain *dom, |
343 | 430 | GError **err) |
344 | 431 | { |
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; | |
347 | 438 | if (virDomainResume(priv->handle) < 0) { |
348 | 439 | gvir_set_error_literal(err, GVIR_DOMAIN_ERROR, |
349 | 440 | 0, |
350 | 441 | "Unable to resume domain"); |
351 | 442 | return FALSE; |
352 | 443 | } |
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; | |
353 | 500 | |
354 | 501 | return TRUE; |
355 | 502 | } |
363 | 510 | guint flags, |
364 | 511 | GError **err) |
365 | 512 | { |
366 | GVirDomainPrivate *priv = dom->priv; | |
513 | GVirDomainPrivate *priv; | |
367 | 514 | int ret; |
368 | 515 | |
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; | |
369 | 520 | if (flags) |
370 | 521 | ret = virDomainDestroyFlags(priv->handle, flags); |
371 | 522 | else |
389 | 540 | guint flags, |
390 | 541 | GError **err) |
391 | 542 | { |
392 | GVirDomainPrivate *priv = dom->priv; | |
543 | GVirDomainPrivate *priv; | |
393 | 544 | int ret; |
394 | 545 | |
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; | |
395 | 550 | if (flags) |
396 | 551 | ret = virDomainUndefineFlags(priv->handle, flags); |
397 | 552 | else |
409 | 564 | /** |
410 | 565 | * gvir_domain_shutdown: |
411 | 566 | * @dom: the domain |
412 | * @flags: the flags | |
567 | * @flags: the %GVirDomainShutdownFlags flags | |
413 | 568 | */ |
414 | 569 | gboolean gvir_domain_shutdown(GVirDomain *dom, |
415 | guint flags G_GNUC_UNUSED, | |
570 | guint flags, | |
416 | 571 | GError **err) |
417 | 572 | { |
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) { | |
421 | 580 | gvir_set_error_literal(err, GVIR_DOMAIN_ERROR, |
422 | 581 | 0, |
423 | 582 | "Unable to shutdown domain"); |
436 | 595 | guint flags, |
437 | 596 | GError **err) |
438 | 597 | { |
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; | |
441 | 604 | if (virDomainReboot(priv->handle, flags) < 0) { |
442 | 605 | gvir_set_error_literal(err, GVIR_DOMAIN_ERROR, |
443 | 606 | 0, |
449 | 612 | } |
450 | 613 | |
451 | 614 | /** |
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 | /** | |
452 | 765 | * gvir_domain_get_config: |
453 | 766 | * @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. | |
456 | 771 | */ |
457 | 772 | GVirConfigDomain *gvir_domain_get_config(GVirDomain *dom, |
458 | 773 | guint flags, |
459 | 774 | GError **err) |
460 | 775 | { |
461 | GVirDomainPrivate *priv = dom->priv; | |
776 | GVirDomainPrivate *priv; | |
462 | 777 | gchar *xml; |
463 | 778 | |
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; | |
464 | 783 | if (!(xml = virDomainGetXMLDesc(priv->handle, flags))) { |
465 | 784 | gvir_set_error_literal(err, GVIR_DOMAIN_ERROR, |
466 | 785 | 0, |
497 | 816 | virConnectPtr conn; |
498 | 817 | virDomainPtr handle; |
499 | 818 | gchar uuid[VIR_UUID_STRING_BUFLEN]; |
500 | GVirDomainPrivate *priv = domain->priv; | |
819 | GVirDomainPrivate *priv; | |
501 | 820 | |
502 | 821 | g_return_val_if_fail(GVIR_IS_DOMAIN (domain), FALSE); |
503 | 822 | g_return_val_if_fail(GVIR_CONFIG_IS_DOMAIN (conf), FALSE); |
504 | 823 | g_return_val_if_fail(err == NULL || *err == NULL, FALSE); |
505 | 824 | |
825 | priv = domain->priv; | |
506 | 826 | xml = gvir_config_object_to_xml(GVIR_CONFIG_OBJECT(conf)); |
507 | 827 | |
508 | 828 | g_return_val_if_fail(xml != NULL, FALSE); |
545 | 865 | /** |
546 | 866 | * gvir_domain_get_info: |
547 | 867 | * @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. | |
549 | 871 | */ |
550 | 872 | GVirDomainInfo *gvir_domain_get_info(GVirDomain *dom, |
551 | 873 | GError **err) |
552 | 874 | { |
553 | GVirDomainPrivate *priv = dom->priv; | |
875 | GVirDomainPrivate *priv; | |
554 | 876 | virDomainInfo info; |
555 | 877 | GVirDomainInfo *ret; |
556 | 878 | |
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; | |
557 | 883 | if (virDomainGetInfo(priv->handle, &info) < 0) { |
558 | 884 | gvir_set_error_literal(err, GVIR_DOMAIN_ERROR, |
559 | 885 | 0, |
607 | 933 | GSimpleAsyncResult *res; |
608 | 934 | |
609 | 935 | g_return_if_fail(GVIR_IS_DOMAIN(dom)); |
936 | g_return_if_fail((cancellable == NULL) || G_IS_CANCELLABLE(cancellable)); | |
610 | 937 | |
611 | 938 | res = g_simple_async_result_new(G_OBJECT(dom), |
612 | 939 | callback, |
627 | 954 | * |
628 | 955 | * Finishes the operation started by #gvir_domain_get_info_async. |
629 | 956 | * |
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. | |
631 | 959 | */ |
632 | 960 | GVirDomainInfo *gvir_domain_get_info_finish(GVirDomain *dom, |
633 | 961 | GAsyncResult *result, |
657 | 985 | * @monitor_id: monitor ID to take screenshot from |
658 | 986 | * @flags: extra flags, currently unused |
659 | 987 | * |
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. | |
661 | 990 | */ |
662 | 991 | gchar *gvir_domain_screenshot(GVirDomain *dom, |
663 | 992 | GVirStream *stream, |
671 | 1000 | |
672 | 1001 | g_return_val_if_fail(GVIR_IS_DOMAIN(dom), NULL); |
673 | 1002 | g_return_val_if_fail(GVIR_IS_STREAM(stream), NULL); |
1003 | g_return_val_if_fail(err == NULL || *err == NULL, NULL); | |
674 | 1004 | |
675 | 1005 | priv = dom->priv; |
676 | 1006 | g_object_get(stream, "handle", &st, NULL); |
717 | 1047 | |
718 | 1048 | g_return_val_if_fail(GVIR_IS_DOMAIN(dom), FALSE); |
719 | 1049 | g_return_val_if_fail(GVIR_IS_STREAM(stream), FALSE); |
1050 | g_return_val_if_fail(err == NULL || *err == NULL, FALSE); | |
720 | 1051 | |
721 | 1052 | priv = dom->priv; |
722 | 1053 | g_object_get(stream, "handle", &st, NULL); |
761 | 1092 | gboolean ret = FALSE; |
762 | 1093 | |
763 | 1094 | g_return_val_if_fail(GVIR_IS_DOMAIN(dom), FALSE); |
1095 | g_return_val_if_fail(err == NULL || *err == NULL, FALSE); | |
764 | 1096 | |
765 | 1097 | priv = dom->priv; |
766 | 1098 | |
796 | 1128 | gboolean ret = FALSE; |
797 | 1129 | |
798 | 1130 | g_return_val_if_fail(GVIR_IS_DOMAIN(dom), FALSE); |
1131 | g_return_val_if_fail(err == NULL || *err == NULL, FALSE); | |
799 | 1132 | |
800 | 1133 | if (virDomainSuspend(dom->priv->handle) < 0) { |
801 | 1134 | gvir_set_error_literal(err, GVIR_DOMAIN_ERROR, |
826 | 1159 | GError **err) |
827 | 1160 | { |
828 | 1161 | g_return_val_if_fail(GVIR_IS_DOMAIN(dom), FALSE); |
1162 | g_return_val_if_fail(err == NULL || *err == NULL, FALSE); | |
829 | 1163 | |
830 | 1164 | if (virDomainManagedSave(dom->priv->handle, flags) < 0) { |
831 | 1165 | gvir_set_error_literal(err, GVIR_DOMAIN_ERROR, |
881 | 1215 | DomainSaveData *data; |
882 | 1216 | |
883 | 1217 | g_return_if_fail(GVIR_IS_DOMAIN(dom)); |
1218 | g_return_if_fail((cancellable == NULL) || G_IS_CANCELLABLE(cancellable)); | |
884 | 1219 | |
885 | 1220 | data = g_slice_new0(DomainSaveData); |
886 | 1221 | data->flags = flags; |
915 | 1250 | g_return_val_if_fail(g_simple_async_result_is_valid(result, G_OBJECT(dom), |
916 | 1251 | gvir_domain_save_async), |
917 | 1252 | FALSE); |
1253 | g_return_val_if_fail(err == NULL || *err == NULL, FALSE); | |
918 | 1254 | |
919 | 1255 | if (g_simple_async_result_propagate_error(G_SIMPLE_ASYNC_RESULT(result), err)) |
920 | 1256 | return FALSE; |
954 | 1290 | * @domain: the domain |
955 | 1291 | * @err: place-holder for possible errors, or NULL |
956 | 1292 | * |
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(). | |
958 | 1296 | * |
959 | 1297 | * Returns: (element-type LibvirtGObject.DomainDevice) (transfer full): a newly |
960 | 1298 | * allocated #GList of #GVirDomainDevice. |
990 | 1328 | |
991 | 1329 | return g_list_reverse (ret); |
992 | 1330 | } |
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 | } |
30 | 30 | |
31 | 31 | #include <libvirt-gobject/libvirt-gobject-stream.h> |
32 | 32 | #include <libvirt/libvirt.h> |
33 | #include <libvirt-gobject/libvirt-gobject-domain-snapshot.h> | |
33 | 34 | |
34 | 35 | #define GVIR_TYPE_DOMAIN (gvir_domain_get_type ()) |
35 | 36 | #define GVIR_DOMAIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_TYPE_DOMAIN, GVirDomain)) |
100 | 101 | GVIR_DOMAIN_DELETE_SAVED_STATE = VIR_DOMAIN_UNDEFINE_MANAGED_SAVE, |
101 | 102 | GVIR_DOMAIN_DELETE_SNAPSHOTS_METADATA = VIR_DOMAIN_UNDEFINE_SNAPSHOTS_METADATA, |
102 | 103 | } 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; | |
103 | 156 | |
104 | 157 | typedef struct _GVirDomainInfo GVirDomainInfo; |
105 | 158 | struct _GVirDomainInfo |
123 | 176 | gboolean gvir_domain_start(GVirDomain *dom, |
124 | 177 | guint flags, |
125 | 178 | 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 | ||
126 | 188 | gboolean gvir_domain_resume(GVirDomain *dom, |
127 | 189 | 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); | |
128 | 197 | gboolean gvir_domain_stop(GVirDomain *dom, |
129 | 198 | guint flags, |
130 | 199 | GError **err); |
137 | 206 | gboolean gvir_domain_reboot(GVirDomain *dom, |
138 | 207 | guint flags, |
139 | 208 | 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); | |
140 | 227 | |
141 | 228 | GVirDomainInfo *gvir_domain_get_info(GVirDomain *dom, |
142 | 229 | GError **err); |
192 | 279 | GList *gvir_domain_get_devices(GVirDomain *domain, |
193 | 280 | GError **err); |
194 | 281 | |
282 | GVirDomainSnapshot * | |
283 | gvir_domain_create_snapshot(GVirDomain *dom, | |
284 | GVirConfigDomainSnapshot *custom_conf, | |
285 | guint flags, | |
286 | GError **err); | |
287 | ||
195 | 288 | G_END_DECLS |
196 | 289 | |
197 | 290 | #endif /* __LIBVIRT_GOBJECT_DOMAIN_H__ */ |
158 | 158 | |
159 | 159 | const gchar *gvir_interface_get_name(GVirInterface *iface) |
160 | 160 | { |
161 | GVirInterfacePrivate *priv = iface->priv; | |
162 | 161 | const char *name; |
163 | 162 | |
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); | |
166 | 167 | return NULL; |
167 | 168 | } |
168 | 169 | |
174 | 175 | * gvir_interface_get_config: |
175 | 176 | * @iface: the interface |
176 | 177 | * @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. | |
178 | 182 | */ |
179 | 183 | GVirConfigInterface *gvir_interface_get_config(GVirInterface *iface, |
180 | 184 | guint flags, |
181 | 185 | GError **err) |
182 | 186 | { |
183 | GVirInterfacePrivate *priv = iface->priv; | |
187 | GVirInterfacePrivate *priv; | |
184 | 188 | gchar *xml; |
185 | 189 | |
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; | |
186 | 194 | if (!(xml = virInterfaceGetXMLDesc(priv->handle, flags))) { |
187 | 195 | gvir_set_error_literal(err, GVIR_INTERFACE_ERROR, |
188 | 196 | 0, |
130 | 130 | void gvir_manager_add_connection(GVirManager *man, |
131 | 131 | GVirConnection *conn) |
132 | 132 | { |
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; | |
135 | 139 | g_mutex_lock(priv->lock); |
136 | 140 | g_object_ref(conn); |
137 | 141 | priv->connections = g_list_append(priv->connections, conn); |
146 | 150 | void gvir_manager_remove_connection(GVirManager *man, |
147 | 151 | GVirConnection *conn) |
148 | 152 | { |
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; | |
151 | 159 | g_mutex_lock(priv->lock); |
152 | 160 | priv->connections = g_list_remove(priv->connections, conn); |
153 | 161 | g_mutex_unlock(priv->lock); |
159 | 167 | |
160 | 168 | /** |
161 | 169 | * 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(). | |
163 | 174 | */ |
164 | 175 | GList *gvir_manager_get_connections(GVirManager *man) |
165 | 176 | { |
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; | |
169 | 182 | while (tmp) { |
170 | 183 | GVirConnection *conn = tmp->data; |
171 | 184 | g_object_ref(conn); |
172 | 185 | tmp = tmp->next; |
173 | 186 | } |
174 | 187 | |
175 | return g_list_copy(priv->connections); | |
188 | return g_list_copy(man->priv->connections); | |
176 | 189 | } |
177 | 190 | |
178 | 191 | |
179 | 192 | /** |
180 | 193 | * 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. | |
182 | 198 | */ |
183 | 199 | GVirConnection *gvir_manager_find_connection_by_uri(GVirManager *man, |
184 | 200 | const gchar *uri) |
185 | 201 | { |
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; | |
189 | 208 | while (tmp) { |
190 | 209 | GVirConnection *conn = tmp->data; |
191 | 210 | if (g_strcmp0(gvir_connection_get_uri(conn), uri) == 0) |
181 | 181 | |
182 | 182 | const gchar *gvir_network_filter_get_name(GVirNetworkFilter *filter) |
183 | 183 | { |
184 | GVirNetworkFilterPrivate *priv = filter->priv; | |
185 | 184 | const char *name; |
186 | 185 | |
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); | |
189 | 191 | return NULL; |
190 | 192 | } |
191 | 193 | |
205 | 207 | * gvir_network_filter_get_config: |
206 | 208 | * @filter: the network_filter |
207 | 209 | * @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 | ||
209 | 215 | */ |
210 | 216 | GVirConfigNetworkFilter *gvir_network_filter_get_config |
211 | 217 | (GVirNetworkFilter *filter, |
212 | 218 | guint flags, |
213 | 219 | GError **err) |
214 | 220 | { |
215 | GVirNetworkFilterPrivate *priv = filter->priv; | |
221 | GVirNetworkFilterPrivate *priv; | |
216 | 222 | gchar *xml; |
217 | 223 | |
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; | |
218 | 228 | if (!(xml = virNWFilterGetXMLDesc(priv->handle, flags))) { |
219 | 229 | gvir_set_error_literal(err, GVIR_NETWORK_FILTER_ERROR, |
220 | 230 | 0, |
179 | 179 | |
180 | 180 | const gchar *gvir_network_get_name(GVirNetwork *network) |
181 | 181 | { |
182 | GVirNetworkPrivate *priv = network->priv; | |
183 | 182 | const char *name; |
184 | 183 | |
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); | |
187 | 188 | return NULL; |
188 | 189 | } |
189 | 190 | |
202 | 203 | * gvir_network_get_config: |
203 | 204 | * @network: the network |
204 | 205 | * @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. | |
206 | 210 | */ |
207 | 211 | GVirConfigNetwork *gvir_network_get_config(GVirNetwork *network, |
208 | 212 | guint flags, |
209 | 213 | GError **err) |
210 | 214 | { |
211 | GVirNetworkPrivate *priv = network->priv; | |
215 | GVirNetworkPrivate *priv; | |
212 | 216 | gchar *xml; |
213 | 217 | |
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; | |
214 | 222 | if (!(xml = virNetworkGetXMLDesc(priv->handle, flags))) { |
215 | 223 | gvir_set_error_literal(err, GVIR_NETWORK_ERROR, |
216 | 224 | 0, |
158 | 158 | |
159 | 159 | const gchar *gvir_node_device_get_name(GVirNodeDevice *device) |
160 | 160 | { |
161 | GVirNodeDevicePrivate *priv = device->priv; | |
162 | 161 | const char *name; |
163 | 162 | |
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); | |
166 | 168 | return NULL; |
167 | 169 | } |
168 | 170 | |
174 | 176 | * gvir_node_device_get_config: |
175 | 177 | * @device: the node_device |
176 | 178 | * @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 | ||
178 | 184 | */ |
179 | 185 | GVirConfigNodeDevice *gvir_node_device_get_config(GVirNodeDevice *device, |
180 | 186 | guint flags, |
181 | 187 | GError **err) |
182 | 188 | { |
183 | GVirNodeDevicePrivate *priv = device->priv; | |
189 | GVirNodeDevicePrivate *priv; | |
184 | 190 | gchar *xml; |
185 | 191 | |
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; | |
186 | 196 | if (!(xml = virNodeDeviceGetXMLDesc(priv->handle, flags))) { |
187 | 197 | gvir_set_error_literal(err, GVIR_NODE_DEVICE_ERROR, |
188 | 198 | 0, |
190 | 190 | * gvir_secret_get_config: |
191 | 191 | * @secret: the secret |
192 | 192 | * @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 | ||
194 | 198 | */ |
195 | 199 | GVirConfigSecret *gvir_secret_get_config(GVirSecret *secret, |
196 | 200 | guint flags, |
197 | 201 | GError **err) |
198 | 202 | { |
199 | GVirSecretPrivate *priv = secret->priv; | |
203 | GVirSecretPrivate *priv; | |
200 | 204 | gchar *xml; |
201 | 205 | |
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; | |
202 | 210 | if (!(xml = virSecretGetXMLDesc(priv->handle, flags))) { |
203 | 211 | gvir_set_error_literal(err, GVIR_SECRET_ERROR, |
204 | 212 | 0, |
210 | 210 | |
211 | 211 | const gchar *gvir_storage_pool_get_name(GVirStoragePool *pool) |
212 | 212 | { |
213 | GVirStoragePoolPrivate *priv = pool->priv; | |
214 | 213 | const char *name; |
215 | 214 | |
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); | |
218 | 219 | return NULL; |
219 | 220 | } |
220 | 221 | |
234 | 235 | * gvir_storage_pool_get_config: |
235 | 236 | * @pool: the storage_pool |
236 | 237 | * @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. | |
238 | 242 | */ |
239 | 243 | GVirConfigStoragePool *gvir_storage_pool_get_config(GVirStoragePool *pool, |
240 | 244 | guint flags, |
241 | 245 | GError **err) |
242 | 246 | { |
243 | GVirStoragePoolPrivate *priv = pool->priv; | |
247 | GVirStoragePoolPrivate *priv; | |
244 | 248 | gchar *xml; |
245 | 249 | |
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; | |
246 | 254 | if (!(xml = virStoragePoolGetXMLDesc(priv->handle, flags))) { |
247 | 255 | gvir_set_error_literal(err, GVIR_STORAGE_POOL_ERROR, |
248 | 256 | 0, |
259 | 267 | /** |
260 | 268 | * gvir_storage_pool_get_info: |
261 | 269 | * @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. | |
263 | 274 | */ |
264 | 275 | GVirStoragePoolInfo *gvir_storage_pool_get_info(GVirStoragePool *pool, |
265 | 276 | GError **err) |
266 | 277 | { |
267 | GVirStoragePoolPrivate *priv = pool->priv; | |
278 | GVirStoragePoolPrivate *priv; | |
268 | 279 | virStoragePoolInfo info; |
269 | 280 | GVirStoragePoolInfo *ret; |
270 | 281 | |
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; | |
271 | 286 | if (virStoragePoolGetInfo(priv->handle, &info) < 0) { |
272 | 287 | if (err) |
273 | 288 | *err = gvir_error_new_literal(GVIR_STORAGE_POOL_ERROR, |
339 | 354 | GCancellable *cancellable, |
340 | 355 | GError **err) |
341 | 356 | { |
342 | GVirStoragePoolPrivate *priv = pool->priv; | |
357 | GVirStoragePoolPrivate *priv; | |
343 | 358 | GHashTable *vol_hash; |
344 | 359 | gchar **volumes = NULL; |
345 | 360 | gint nvolumes = 0; |
348 | 363 | virStoragePoolPtr vpool = NULL; |
349 | 364 | GError *lerr = NULL; |
350 | 365 | |
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; | |
351 | 372 | vpool = priv->handle; |
352 | 373 | |
353 | 374 | if (virStoragePoolRefresh(vpool, 0) < 0) { |
440 | 461 | { |
441 | 462 | GSimpleAsyncResult *res; |
442 | 463 | |
464 | g_return_if_fail(GVIR_IS_STORAGE_POOL(pool)); | |
465 | g_return_if_fail((cancellable == NULL) || G_IS_CANCELLABLE(cancellable)); | |
466 | ||
443 | 467 | res = g_simple_async_result_new(G_OBJECT(pool), |
444 | 468 | callback, |
445 | 469 | user_data, |
481 | 505 | * gvir_storage_pool_get_volumes: |
482 | 506 | * @pool: the storage pool |
483 | 507 | * |
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(). | |
486 | 512 | */ |
487 | 513 | GList *gvir_storage_pool_get_volumes(GVirStoragePool *pool) |
488 | 514 | { |
489 | GVirStoragePoolPrivate *priv = pool->priv; | |
515 | GVirStoragePoolPrivate *priv; | |
490 | 516 | GList *volumes = NULL; |
491 | 517 | |
518 | g_return_val_if_fail(GVIR_IS_STORAGE_POOL(pool), NULL); | |
519 | ||
520 | priv = pool->priv; | |
492 | 521 | g_mutex_lock(priv->lock); |
493 | 522 | if (priv->volumes != NULL) { |
494 | 523 | volumes = g_hash_table_get_values(priv->volumes); |
504 | 533 | * @pool: the storage pool |
505 | 534 | * @name: Name of the requested storage volume |
506 | 535 | * |
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. | |
508 | 539 | */ |
509 | 540 | GVirStorageVol *gvir_storage_pool_get_volume(GVirStoragePool *pool, |
510 | 541 | const gchar *name) |
511 | 542 | { |
512 | GVirStoragePoolPrivate *priv = pool->priv; | |
543 | GVirStoragePoolPrivate *priv; | |
513 | 544 | GVirStorageVol *volume; |
514 | 545 | |
546 | g_return_val_if_fail(GVIR_IS_STORAGE_POOL(pool), NULL); | |
547 | ||
548 | priv = pool->priv; | |
515 | 549 | g_mutex_lock(priv->lock); |
516 | 550 | volume = g_hash_table_lookup(priv->volumes, name); |
517 | 551 | if (volume) |
525 | 559 | * gvir_storage_pool_create_volume: |
526 | 560 | * @pool: the storage pool in which to create the volume |
527 | 561 | * @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. | |
529 | 566 | */ |
530 | 567 | GVirStorageVol *gvir_storage_pool_create_volume |
531 | 568 | (GVirStoragePool *pool, |
534 | 571 | { |
535 | 572 | const gchar *xml; |
536 | 573 | 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); | |
538 | 579 | |
539 | 580 | xml = gvir_config_object_to_xml(GVIR_CONFIG_OBJECT(conf)); |
540 | 581 | |
541 | 582 | g_return_val_if_fail(xml != NULL, NULL); |
542 | 583 | |
584 | priv = pool->priv; | |
543 | 585 | if (!(handle = virStorageVolCreateXML(priv->handle, xml, 0))) { |
544 | 586 | gvir_set_error_literal(err, GVIR_STORAGE_POOL_ERROR, |
545 | 587 | 0, |
579 | 621 | guint flags, |
580 | 622 | GError **err) |
581 | 623 | { |
624 | g_return_val_if_fail(GVIR_IS_STORAGE_POOL(pool), FALSE); | |
625 | g_return_val_if_fail(err == NULL || *err == NULL, FALSE); | |
626 | ||
582 | 627 | if (virStoragePoolBuild(pool->priv->handle, flags)) { |
583 | 628 | gvir_set_error_literal(err, GVIR_STORAGE_POOL_ERROR, |
584 | 629 | 0, |
629 | 674 | { |
630 | 675 | GSimpleAsyncResult *res; |
631 | 676 | StoragePoolBuildData *data; |
677 | ||
678 | g_return_if_fail(GVIR_IS_STORAGE_POOL(pool)); | |
679 | g_return_if_fail((cancellable == NULL) || G_IS_CANCELLABLE(cancellable)); | |
632 | 680 | |
633 | 681 | data = g_slice_new0(StoragePoolBuildData); |
634 | 682 | data->flags = flags; |
661 | 709 | g_return_val_if_fail(g_simple_async_result_is_valid(result, G_OBJECT(pool), |
662 | 710 | gvir_storage_pool_build_async), |
663 | 711 | FALSE); |
712 | g_return_val_if_fail(err == NULL || *err == NULL, FALSE); | |
664 | 713 | |
665 | 714 | if (g_simple_async_result_propagate_error(G_SIMPLE_ASYNC_RESULT(result), |
666 | 715 | err)) |
681 | 730 | guint flags, |
682 | 731 | GError **err) |
683 | 732 | { |
733 | g_return_val_if_fail(GVIR_IS_STORAGE_POOL(pool), FALSE); | |
734 | g_return_val_if_fail(err == NULL || *err == NULL, FALSE); | |
735 | ||
684 | 736 | if (virStoragePoolCreate(pool->priv->handle, flags)) { |
685 | 737 | gvir_set_error_literal(err, GVIR_STORAGE_POOL_ERROR, |
686 | 738 | 0, |
727 | 779 | { |
728 | 780 | GSimpleAsyncResult *res; |
729 | 781 | StoragePoolBuildData *data; |
782 | ||
783 | g_return_if_fail(GVIR_IS_STORAGE_POOL(pool)); | |
784 | g_return_if_fail((cancellable == NULL) || G_IS_CANCELLABLE(cancellable)); | |
730 | 785 | |
731 | 786 | data = g_slice_new0(StoragePoolBuildData); |
732 | 787 | data->flags = flags; |
759 | 814 | g_return_val_if_fail(g_simple_async_result_is_valid(result, G_OBJECT(pool), |
760 | 815 | gvir_storage_pool_start_async), |
761 | 816 | FALSE); |
817 | g_return_val_if_fail(err == NULL || *err == NULL, FALSE); | |
762 | 818 | |
763 | 819 | if (g_simple_async_result_propagate_error(G_SIMPLE_ASYNC_RESULT(result), |
764 | 820 | err)) |
194 | 194 | |
195 | 195 | const gchar *gvir_storage_vol_get_name(GVirStorageVol *vol) |
196 | 196 | { |
197 | GVirStorageVolPrivate *priv = vol->priv; | |
198 | 197 | const char *name; |
199 | 198 | |
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); | |
202 | 203 | return NULL; |
203 | 204 | } |
204 | 205 | |
207 | 208 | |
208 | 209 | const gchar *gvir_storage_vol_get_path(GVirStorageVol *vol, GError **error) |
209 | 210 | { |
210 | GVirStorageVolPrivate *priv = vol->priv; | |
211 | 211 | const char *path; |
212 | 212 | |
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))) { | |
214 | 217 | gvir_set_error(error, GVIR_STORAGE_VOL_ERROR, 0, |
215 | 218 | "Failed to get storage_vol path on %p", |
216 | priv->handle); | |
219 | vol->priv->handle); | |
217 | 220 | return NULL; |
218 | 221 | } |
219 | 222 | |
224 | 227 | * gvir_storage_vol_get_config: |
225 | 228 | * @vol: the storage_vol |
226 | 229 | * @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. | |
228 | 234 | */ |
229 | 235 | GVirConfigStorageVol *gvir_storage_vol_get_config(GVirStorageVol *vol, |
230 | 236 | guint flags, |
231 | 237 | GError **err) |
232 | 238 | { |
233 | GVirStorageVolPrivate *priv = vol->priv; | |
239 | GVirStorageVolPrivate *priv; | |
234 | 240 | gchar *xml; |
235 | 241 | |
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; | |
236 | 246 | if (!(xml = virStorageVolGetXMLDesc(priv->handle, flags))) { |
237 | 247 | gvir_set_error_literal(err, GVIR_STORAGE_VOL_ERROR, |
238 | 248 | 0, |
249 | 259 | /** |
250 | 260 | * gvir_storage_vol_get_info: |
251 | 261 | * @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. | |
253 | 266 | */ |
254 | 267 | GVirStorageVolInfo *gvir_storage_vol_get_info(GVirStorageVol *vol, |
255 | 268 | GError **err) |
256 | 269 | { |
257 | GVirStorageVolPrivate *priv = vol->priv; | |
270 | GVirStorageVolPrivate *priv; | |
258 | 271 | virStorageVolInfo info; |
259 | 272 | GVirStorageVolInfo *ret; |
260 | 273 | |
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; | |
261 | 278 | if (virStorageVolGetInfo(priv->handle, &info) < 0) { |
262 | 279 | if (err) |
263 | 280 | *err = gvir_error_new_literal(GVIR_STORAGE_VOL_ERROR, |
288 | 305 | guint flags, |
289 | 306 | GError **err) |
290 | 307 | { |
308 | g_return_val_if_fail(GVIR_IS_STORAGE_VOL(vol), FALSE); | |
309 | g_return_val_if_fail(err == NULL || *err == NULL, FALSE); | |
310 | ||
291 | 311 | if (virStorageVolDelete(vol->priv->handle, flags) < 0) { |
292 | 312 | gvir_set_error_literal(err, |
293 | 313 | GVIR_STORAGE_VOL_ERROR, |
315 | 335 | guint flags, |
316 | 336 | GError **err) |
317 | 337 | { |
338 | g_return_val_if_fail(GVIR_IS_STORAGE_VOL(vol), FALSE); | |
339 | g_return_val_if_fail(err == NULL || *err == NULL, FALSE); | |
340 | ||
318 | 341 | if (virStorageVolResize(vol->priv->handle, capacity, flags) < 0) { |
319 | 342 | gvir_set_error_literal(err, |
320 | 343 | GVIR_STORAGE_VOL_ERROR, |
325 | 348 | |
326 | 349 | return TRUE; |
327 | 350 | } |
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 | } |
109 | 109 | guint flags, |
110 | 110 | GError **err); |
111 | 111 | |
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 | ||
112 | 126 | G_END_DECLS |
113 | 127 | |
114 | 128 | #endif /* __LIBVIRT_GOBJECT_STORAGE_VOL_H__ */ |
354 | 354 | * @cancellable: cancellation notifier |
355 | 355 | * @func: (scope notified): the callback for writing data to application |
356 | 356 | * @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. | |
358 | 358 | * |
359 | 359 | * Receive the entire data stream, sending the data to the |
360 | 360 | * requested data sink. This is simply a convenient alternative |
361 | 361 | * to virStreamRecv, for apps that do blocking-I/o. |
362 | * | |
363 | * Returns: the number of bytes consumed or -1 upon error | |
362 | 364 | */ |
363 | 365 | gssize |
364 | 366 | gvir_stream_receive_all(GVirStream *self, |
365 | 367 | GCancellable *cancellable, |
366 | 368 | GVirStreamSinkFunc func, |
367 | 369 | gpointer user_data, |
368 | GError **err) | |
370 | GError **error) | |
369 | 371 | { |
370 | 372 | struct stream_sink_helper helper = { |
371 | 373 | .self = self, |
376 | 378 | int r; |
377 | 379 | |
378 | 380 | g_return_val_if_fail(GVIR_IS_STREAM(self), -1); |
381 | g_return_val_if_fail((cancellable == NULL) || G_IS_CANCELLABLE(cancellable), -1); | |
379 | 382 | g_return_val_if_fail(func != NULL, -1); |
383 | g_return_val_if_fail(error == NULL || *error == NULL, -1); | |
380 | 384 | |
381 | 385 | r = virStreamRecvAll(self->priv->handle, stream_sink, &helper); |
382 | 386 | if (r < 0) { |
383 | gvir_set_error_literal(err, GVIR_STREAM_ERROR, | |
387 | gvir_set_error_literal(error, GVIR_STREAM_ERROR, | |
384 | 388 | 0, |
385 | 389 | "Unable to perform RecvAll"); |
386 | 390 | } |
421 | 425 | |
422 | 426 | g_return_val_if_fail(GVIR_IS_STREAM(self), -1); |
423 | 427 | 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); | |
424 | 430 | |
425 | 431 | if (g_cancellable_set_error_if_cancelled (cancellable, error)) |
426 | 432 | return -1; |
464 | 470 | * @cancellable: cancellation notifier |
465 | 471 | * @func: (scope notified): the callback for writing data to application |
466 | 472 | * @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. | |
468 | 474 | * |
469 | 475 | * Send the entire data stream, sending the data to the |
470 | 476 | * requested data source. This is simply a convenient alternative |
471 | 477 | * to virStreamRecv, for apps that do blocking-I/o. |
478 | * | |
479 | * Returns: the number of bytes consumed or -1 upon error | |
472 | 480 | */ |
473 | 481 | gssize |
474 | 482 | gvir_stream_send_all(GVirStream *self, |
475 | 483 | GCancellable *cancellable, |
476 | 484 | GVirStreamSourceFunc func, |
477 | 485 | gpointer user_data, |
478 | GError **err) | |
486 | GError **error) | |
479 | 487 | { |
480 | 488 | struct stream_source_helper helper = { |
481 | 489 | .self = self, |
486 | 494 | int r; |
487 | 495 | |
488 | 496 | g_return_val_if_fail(GVIR_IS_STREAM(self), -1); |
497 | g_return_val_if_fail((cancellable == NULL) || G_IS_CANCELLABLE(cancellable), -1); | |
489 | 498 | g_return_val_if_fail(func != NULL, -1); |
499 | g_return_val_if_fail(error == NULL || *error == NULL, -1); | |
490 | 500 | |
491 | 501 | r = virStreamSendAll(self->priv->handle, stream_source, &helper); |
492 | 502 | if (r < 0) { |
493 | gvir_set_error_literal(err, GVIR_STREAM_ERROR, | |
503 | gvir_set_error_literal(error, GVIR_STREAM_ERROR, | |
494 | 504 | 0, |
495 | 505 | "Unable to perform SendAll"); |
496 | 506 | } |
617 | 627 | |
618 | 628 | |
619 | 629 | /** |
620 | * gvir_stream_add_watch: (skip): | |
630 | * gvir_stream_add_watch: (skip) | |
621 | 631 | * @stream: the stream |
622 | 632 | * @cond: the conditions to watch for (bitfield of #GVirStreamIOCondition) |
623 | 633 | * @func: (closure opaque): the function to call when the condition is satisfied |
67 | 67 | * @buf: (out) (array length=nbytes) (transfer none): data pointer |
68 | 68 | * @nbytes: data size |
69 | 69 | * @user_data: user data passed to the function |
70 | * | |
70 | 71 | * Returns: the number of bytes filled, 0 upon end |
71 | 72 | * of file, or -1 upon error |
72 | 73 | */ |
81 | 82 | * @buf: (out) (array length=nbytes) (transfer none): data pointer |
82 | 83 | * @nbytes: data size |
83 | 84 | * @user_data: user data passed to the function |
85 | * | |
84 | 86 | * Returns: the number of bytes filled, 0 upon end |
85 | 87 | * of file, or -1 upon error |
86 | 88 | */ |
43 | 43 | #include <libvirt-gobject/libvirt-gobject-storage-pool.h> |
44 | 44 | #include <libvirt-gobject/libvirt-gobject-connection.h> |
45 | 45 | #include <libvirt-gobject/libvirt-gobject-manager.h> |
46 | #include <libvirt-gobject/libvirt-gobject-stream.h> | |
46 | 47 | |
47 | 48 | #endif /* __LIBVIRT_GOBJECT_H__ */ |
74 | 74 | gvir_domain_get_persistent; |
75 | 75 | gvir_domain_get_saved; |
76 | 76 | gvir_domain_screenshot; |
77 | gvir_domain_save_to_file; | |
78 | gvir_domain_save_to_file_async; | |
79 | gvir_domain_save_to_file_finish; | |
77 | 80 | |
78 | 81 | gvir_domain_snapshot_get_type; |
79 | 82 | gvir_domain_snapshot_handle_get_type; |
136 | 139 | gvir_storage_vol_get_info; |
137 | 140 | gvir_storage_vol_delete; |
138 | 141 | gvir_storage_vol_resize; |
142 | gvir_storage_vol_download; | |
143 | gvir_storage_vol_upload; | |
139 | 144 | |
140 | 145 | gvir_connection_handle_get_type; |
141 | 146 | |
159 | 164 | *; |
160 | 165 | }; |
161 | 166 | |
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 | ||
162 | 196 | # .... define new API here using predicted next version number .... |
83 | 83 | gl_WARN_ADD([-Wframe-larger-than=4096]) |
84 | 84 | |
85 | 85 | # 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 | ]) | |
88 | 93 | |
89 | 94 | # Extra special flags |
90 | 95 | 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 | %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. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
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 | ||
6 | 5 | # This Makefile.in is free software; the Free Software Foundation |
7 | 6 | # gives unlimited permission to copy and/or distribute it, |
8 | 7 | # with or without modifications, as long as this notice is preserved. |
17 | 16 | # Makefile for libvirt python library |
18 | 17 | |
19 | 18 | 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 | } | |
20 | 36 | pkgdatadir = $(datadir)/@PACKAGE@ |
21 | 37 | pkgincludedir = $(includedir)/@PACKAGE@ |
22 | 38 | pkglibdir = $(libdir)/@PACKAGE@ |
36 | 52 | build_triplet = @build@ |
37 | 53 | host_triplet = @host@ |
38 | 54 | 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 | |
40 | 57 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
41 | 58 | am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ |
42 | 59 | $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ |
88 | 105 | AM_V_lt = $(am__v_lt_@AM_V@) |
89 | 106 | am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) |
90 | 107 | am__v_lt_0 = --silent |
108 | am__v_lt_1 = | |
91 | 109 | libvirtglibmod_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ |
92 | 110 | $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ |
93 | 111 | $(libvirtglibmod_la_CFLAGS) $(CFLAGS) \ |
94 | 112 | $(libvirtglibmod_la_LDFLAGS) $(LDFLAGS) -o $@ |
95 | 113 | @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 = | |
96 | 126 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) |
97 | 127 | depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp |
98 | 128 | am__depfiles_maybe = depfiles |
105 | 135 | $(AM_CFLAGS) $(CFLAGS) |
106 | 136 | AM_V_CC = $(am__v_CC_@AM_V@) |
107 | 137 | 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 = | |
112 | 140 | CCLD = $(CC) |
113 | 141 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ |
114 | 142 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ |
115 | 143 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ |
116 | 144 | AM_V_CCLD = $(am__v_CCLD_@AM_V@) |
117 | 145 | 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 = | |
122 | 148 | SOURCES = $(libvirtglibmod_la_SOURCES) |
123 | 149 | 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 | |
124 | 155 | ETAGS = etags |
125 | 156 | CTAGS = ctags |
126 | 157 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
337 | 368 | $(am__aclocal_m4_deps): |
338 | 369 | install-pythonLTLIBRARIES: $(python_LTLIBRARIES) |
339 | 370 | @$(NORMAL_INSTALL) |
340 | test -z "$(pythondir)" || $(MKDIR_P) "$(DESTDIR)$(pythondir)" | |
341 | 371 | @list='$(python_LTLIBRARIES)'; test -n "$(pythondir)" || list=; \ |
342 | 372 | list2=; for p in $$list; do \ |
343 | 373 | if test -f $$p; then \ |
345 | 375 | else :; fi; \ |
346 | 376 | done; \ |
347 | 377 | test -z "$$list2" || { \ |
378 | echo " $(MKDIR_P) '$(DESTDIR)$(pythondir)'"; \ | |
379 | $(MKDIR_P) "$(DESTDIR)$(pythondir)" || exit 1; \ | |
348 | 380 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pythondir)'"; \ |
349 | 381 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pythondir)"; \ |
350 | 382 | } |
360 | 392 | |
361 | 393 | clean-pythonLTLIBRARIES: |
362 | 394 | -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 | } | |
369 | 403 | libvirtglibmod.la: $(libvirtglibmod_la_OBJECTS) $(libvirtglibmod_la_DEPENDENCIES) $(EXTRA_libvirtglibmod_la_DEPENDENCIES) |
370 | 404 | $(AM_V_CCLD)$(libvirtglibmod_la_LINK) $(am_libvirtglibmod_la_rpath) $(libvirtglibmod_la_OBJECTS) $(libvirtglibmod_la_LIBADD) $(LIBS) |
371 | 405 | |
459 | 493 | here=`$(am__cd) $(top_builddir) && pwd` \ |
460 | 494 | && $(am__cd) $(top_srcdir) \ |
461 | 495 | && 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 | |
462 | 510 | |
463 | 511 | distclean-tags: |
464 | 512 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
606 | 654 | .MAKE: install-am install-strip |
607 | 655 | |
608 | 656 | .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 | |
622 | 671 | |
623 | 672 | @WITH_PYTHON_TRUE@ $(CYGWIN_EXTRA_LIBADD) $(CYGWIN_EXTRA_PYTHON_LIBADD) |
624 | 673 |
0 | # Makefile.in generated by automake 1.11.3 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.12.2 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
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 | ||
6 | 5 | # This Makefile.in is free software; the Free Software Foundation |
7 | 6 | # gives unlimited permission to copy and/or distribute it, |
8 | 7 | # with or without modifications, as long as this notice is preserved. |
15 | 14 | @SET_MAKE@ |
16 | 15 | |
17 | 16 | 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 | } | |
18 | 34 | pkgdatadir = $(datadir)/@PACKAGE@ |
19 | 35 | pkgincludedir = $(includedir)/@PACKAGE@ |
20 | 36 | pkglibdir = $(libdir)/@PACKAGE@ |
48 | 64 | CONFIG_HEADER = $(top_builddir)/config.h |
49 | 65 | CONFIG_CLEAN_FILES = |
50 | 66 | 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 = : | |
51 | 71 | AM_V_GEN = $(am__v_GEN_@AM_V@) |
52 | 72 | 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 = | |
54 | 75 | AM_V_at = $(am__v_at_@AM_V@) |
55 | 76 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) |
56 | 77 | am__v_at_0 = @ |
78 | am__v_at_1 = | |
57 | 79 | SOURCES = |
58 | 80 | 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 | |
59 | 86 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; |
60 | 87 | am__vpath_adj = case $$p in \ |
61 | 88 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ |
305 | 332 | -rm -rf .libs _libs |
306 | 333 | install-vapiDATA: $(vapi_DATA) |
307 | 334 | @$(NORMAL_INSTALL) |
308 | test -z "$(vapidir)" || $(MKDIR_P) "$(DESTDIR)$(vapidir)" | |
309 | 335 | @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; \ | |
310 | 340 | for p in $$list; do \ |
311 | 341 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ |
312 | 342 | echo "$$d$$p"; \ |
326 | 356 | |
327 | 357 | ctags: CTAGS |
328 | 358 | CTAGS: |
359 | ||
360 | cscope cscopelist: | |
329 | 361 | |
330 | 362 | |
331 | 363 | distdir: $(DISTFILES) |