2 * virsh-util.h: helpers for virsh
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see
16 * <http://www.gnu.org/licenses/>.
23 #include <libxml/parser.h>
24 #include <libxml/xpath.h>
27 virshLookupDomainBy(vshControl
*ctl
,
32 virshCommandOptDomainBy(vshControl
*ctl
,
38 virshCommandOptDomain(vshControl
*ctl
,
43 virshDomainFree(virDomainPtr dom
);
46 virshDomainSnapshotFree(virDomainSnapshotPtr snap
);
49 virshDomainState(vshControl
*ctl
,
54 virshStreamSink(virStreamPtr st
,
59 typedef struct _virshStreamCallbackData virshStreamCallbackData
;
60 typedef virshStreamCallbackData
*virshStreamCallbackDataPtr
;
61 struct _virshStreamCallbackData
{
67 virshStreamSource(virStreamPtr st
,
73 virshStreamSourceSkip(virStreamPtr st
,
78 virshStreamSkip(virStreamPtr st
,
83 virshStreamInData(virStreamPtr st
,
89 virshDomainGetXMLFromDom(vshControl
*ctl
,
93 xmlXPathContextPtr
*ctxt
)
94 ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(4)
95 ATTRIBUTE_NONNULL(5) ATTRIBUTE_RETURN_CHECK
;
98 virshDomainGetXML(vshControl
*ctl
,
102 xmlXPathContextPtr
*ctxt
)
103 ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(4)
104 ATTRIBUTE_NONNULL(5) ATTRIBUTE_RETURN_CHECK
;