~serge-hallyn/ubuntu/raring/libvirt/libvirt-hugepages

« back to all changes in this revision

Viewing changes to src/xm_internal.h

Tags: upstream-0.2.2
ImportĀ upstreamĀ versionĀ 0.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * xm_internal.h: helper routines for dealing with inactive domains
 
3
 *
 
4
 * Copyright (C) 2006-2007 Red Hat
 
5
 * Copyright (C) 2006 Daniel P. Berrange
 
6
 *
 
7
 * This library is free software; you can redistribute it and/or
 
8
 * modify it under the terms of the GNU Lesser General Public
 
9
 * License as published by the Free Software Foundation; either
 
10
 * version 2.1 of the License, or (at your option) any later version.
 
11
 *
 
12
 * This library is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
15
 * Lesser General Public License for more details.
 
16
 *
 
17
 * You should have received a copy of the GNU Lesser General Public
 
18
 * License along with this library; if not, write to the Free Software
 
19
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
 
20
 *
 
21
 * Author: Daniel P. Berrange <berrange@redhat.com>
 
22
 *
 
23
 */
 
24
 
 
25
#ifndef _LIBVIRT_XM_INTERNAL_H_
 
26
#define _LIBVIRT_XM_INTERNAL_H_
 
27
 
 
28
#include "libvirt/libvirt.h"
 
29
#include "conf.h"
 
30
#include "internal.h"
 
31
 
 
32
#ifdef __cplusplus
 
33
extern "C" {
 
34
#endif
 
35
 
 
36
extern virDriver xenXMDriver;
 
37
int xenXMInit (void);
 
38
 
 
39
int xenXMOpen(virConnectPtr conn, const char *name, int flags);
 
40
int xenXMClose(virConnectPtr conn);
 
41
const char *xenXMGetType(virConnectPtr conn);
 
42
int xenXMDomainGetInfo(virDomainPtr domain, virDomainInfoPtr info);
 
43
char *xenXMDomainDumpXML(virDomainPtr domain, int flags);
 
44
int xenXMDomainSetMemory(virDomainPtr domain, unsigned long memory);
 
45
int xenXMDomainSetMaxMemory(virDomainPtr domain, unsigned long memory);
 
46
unsigned long xenXMDomainGetMaxMemory(virDomainPtr domain);
 
47
int xenXMDomainSetVcpus(virDomainPtr domain, unsigned int vcpus);
 
48
virDomainPtr xenXMDomainLookupByName(virConnectPtr conn, const char *domname);
 
49
virDomainPtr xenXMDomainLookupByUUID(virConnectPtr conn,
 
50
                                     const unsigned char *uuid);
 
51
 
 
52
int xenXMListDefinedDomains(virConnectPtr conn, char ** const names, int maxnames);
 
53
int xenXMNumOfDefinedDomains(virConnectPtr conn);
 
54
 
 
55
int xenXMDomainCreate(virDomainPtr domain);
 
56
virDomainPtr xenXMDomainDefineXML(virConnectPtr con, const char *xml);
 
57
int xenXMDomainUndefine(virDomainPtr domain);
 
58
 
 
59
virConfPtr xenXMParseXMLToConfig(virConnectPtr conn, const char *xml);
 
60
char *xenXMDomainFormatXML(virConnectPtr conn, virConfPtr conf);
 
61
 
 
62
#ifdef __cplusplus
 
63
}
 
64
#endif
 
65
#endif