Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Makefile.am README TODO autogen.sh configure.in libvir.pc.in
libvir.spec.in docs/Makefile.am docs/apibuild.py docs/structures.fig include/Makefile.am include/libvir.h src/Makefile.am src/hash.c src/hash.h src/internal.h src/libvir.c src/libvir_sym.version src/virsh.c: renamed to libvir Daniel
- Loading branch information
Showing
23 changed files
with
358 additions
and
350 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
## Process this file with automake to produce Makefile.in | ||
|
||
SUBDIRS = src include docs | ||
EXTRA_DIST = libxen.spec.in libxen.spec COPYING.LIB \ | ||
libxen.pc.in libxen.pc TODO AUTHORS ChangeLog \ | ||
EXTRA_DIST = libvir.spec.in libvir.spec COPYING.LIB \ | ||
libvir.pc.in libvir.pc TODO AUTHORS ChangeLog \ | ||
NEWS README | ||
|
||
pkgconfigdir = $(libdir)/pkgconfig | ||
pkgconfig_DATA = libxen.pc | ||
pkgconfig_DATA = libvir.pc | ||
|
||
rpm: clean | ||
@(unset CDPATH ; $(MAKE) dist && rpmbuild -ta $(distdir).tar.gz) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
## Process this file with automake to produce Makefile.in | ||
|
||
xenincdir = $(includedir)/libxen | ||
virincdir = $(includedir)/libvir | ||
|
||
xeninc_HEADERS = libxen.h | ||
virinc_HEADERS = libvir.h | ||
|
||
install-exec-hook: | ||
$(mkinstalldirs) $(DESTDIR)$(xenincdir) | ||
$(mkinstalldirs) $(DESTDIR)$(virincdir) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
/* | ||
* libvir.h: interface for the libvir library to handle Xen domains | ||
* from a process running in domain 0 | ||
* | ||
* Copyright (C) 2005 Red Hat, Inc. | ||
* | ||
* See COPYING.LIB for the License of this software | ||
* | ||
* Daniel Veillard <veillard@redhat.com> | ||
*/ | ||
|
||
#ifndef __VIR_VIRLIB_H__ | ||
#define __VIR_VIRLIB_H__ | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
/** | ||
* virConnect: | ||
* | ||
* a virConnect is a private structure representing a connection to | ||
* the Xen Hypervisor. | ||
*/ | ||
typedef struct _virConnect virConnect; | ||
|
||
/** | ||
* virConnectPtr: | ||
* | ||
* a virConnectPtr is pointer to a virConnect private structure, this is the | ||
* type used to reference a connection to the Xen Hypervisor in the API. | ||
*/ | ||
typedef virConnect *virConnectPtr; | ||
|
||
/** | ||
* virDomain: | ||
* | ||
* a virDomain is a private structure representing a Xen domain. | ||
*/ | ||
typedef struct _virDomain virDomain; | ||
|
||
/** | ||
* virDomainPtr: | ||
* | ||
* a virDomainPtr is pointer to a virDomain private structure, this is the | ||
* type used to reference a Xen domain in the API. | ||
*/ | ||
typedef virDomain *virDomainPtr; | ||
|
||
/** | ||
* virDomainFlags: | ||
* | ||
* Flags OR'ed together to provide specific behaviour when creating a | ||
* Domain. | ||
*/ | ||
typedef enum { | ||
VIR_DOMAIN_NONE = 0 | ||
} virDomainFlags; | ||
|
||
/* | ||
* Connection and disconnections to the Hypervisor | ||
*/ | ||
virConnectPtr virConnectOpen (const char *name); | ||
virConnectPtr virConnectOpenReadOnly (const char *name); | ||
int virConnectClose (virConnectPtr conn); | ||
unsigned long virConnectGetVersion (virConnectPtr conn); | ||
|
||
/* | ||
* Gather list of running domains | ||
*/ | ||
int virConnectListDomains (virConnectPtr conn, | ||
int *ids, | ||
int maxids); | ||
|
||
/* | ||
* Domain creation and destruction | ||
*/ | ||
virDomainPtr virDomainCreateLinux (virConnectPtr conn, | ||
const char *kernel_path, | ||
const char *initrd_path, | ||
const char *cmdline, | ||
unsigned long memory, | ||
unsigned int flags); | ||
virDomainPtr virDomainLookupByName (virConnectPtr conn, | ||
const char *name); | ||
virDomainPtr virDomainLookupByID (virConnectPtr conn, | ||
int id); | ||
int virDomainDestroy (virDomainPtr domain); | ||
|
||
/* | ||
* Domain suspend/resume | ||
*/ | ||
int virDomainSuspend (virDomainPtr domain); | ||
int virDomainResume (virDomainPtr domain); | ||
|
||
/* | ||
* Dynamic control of domains | ||
*/ | ||
const char * virDomainGetName (virDomainPtr domain); | ||
unsigned int virDomainGetID (virDomainPtr domain); | ||
unsigned long virDomainGetMaxMemory (virDomainPtr domain); | ||
int virDomainSetMaxMemory (virDomainPtr domain, | ||
unsigned long memory); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* __VIR_VIRLIB_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
## Process this file with automake to produce Makefile.in | ||
|
||
xenincdir = $(includedir)/libxen | ||
virincdir = $(includedir)/libvir | ||
|
||
xeninc_HEADERS = libxen.h | ||
virinc_HEADERS = libvir.h | ||
|
||
install-exec-hook: | ||
$(mkinstalldirs) $(DESTDIR)$(xenincdir) | ||
$(mkinstalldirs) $(DESTDIR)$(virincdir) | ||
|
Oops, something went wrong.