Move the QEMU driver & utility files from qemud/ to src/

This commit is contained in:
Daniel P. Berrange 2007-06-27 00:12:29 +00:00
parent a78a6602df
commit a07f0a00da
17 changed files with 32 additions and 1554 deletions

View File

@ -1,3 +1,16 @@
Tue Jun 26 19:56:00 EST 2007 Daniel P. Berrange <berrange@redhat.com>
* qemud/driver.c, qemud/driver.h, qemud/conf.c, qemud/conf.h,
qemud/bridge.c, qemud/bridge.h, qemud/uuid.c, qemud/uuid.h,
qemud/iptables.c, qemud/iptables.h: Removed files now in
the main library
* src/qemu_driver.c, src/qemu_driver.h, src/qemu_conf.c, src/qemu_conf.h,
src/bridge.c, src/bridge.h, src/uuid.c, src/uuid.h,
src/iptables.c, src/iptables.h: Add files previously in
the daemon
* src/qemu_internal.c, src/qemu_internal.h: Remove obsolete
QEMU driver code
Tue Jun 26 19:35:00 EST 2007 Daniel P. Berrange <berrange@redhat.com> Tue Jun 26 19:35:00 EST 2007 Daniel P. Berrange <berrange@redhat.com>
* qemud/libvirtd.sysconf, qemud/libvirtd.init.in: Added config * qemud/libvirtd.sysconf, qemud/libvirtd.init.in: Added config

View File

@ -51,12 +51,7 @@ EXTRA_DIST = libvirtd.init.in libvirtd.sysconf default-network.xml \
remote_generate_stubs.pl rpcgen_fix.pl \ remote_generate_stubs.pl rpcgen_fix.pl \
remote_dispatch_prototypes.h \ remote_dispatch_prototypes.h \
remote_dispatch_localvars.h \ remote_dispatch_localvars.h \
remote_dispatch_proc_switch.h \ remote_dispatch_proc_switch.h
driver.c driver.h \
conf.c conf.h \
iptables.c iptables.h \
bridge.c bridge.h \
uuid.c uuid.h
.x.c: .x.c:
rm -f $@ rm -f $@
@ -96,9 +91,9 @@ uninstall-init:
libvirtd.init: libvirtd.init.in libvirtd.init: libvirtd.init.in
sed \ sed \
-e s!\@localstatedir\@!@localstatedir@! \ -e s!\@localstatedir\@!@localstatedir@!g \
-e s!\@sbindir\@!@sbindir@! \ -e s!\@sbindir\@!@sbindir@!g \
-e s!\@sysconfdir\@!@sysconfdir@! \ -e s!\@sysconfdir\@!@sysconfdir@!g \
< $< > $@ < $< > $@
chmod a+x libvirtd.init chmod a+x libvirtd.init

View File

@ -30,8 +30,6 @@
#include "protocol.h" #include "protocol.h"
#include "remote_protocol.h" #include "remote_protocol.h"
#include "bridge.h"
#include "iptables.h"
#include "../config.h" #include "../config.h"
#ifdef __GNUC__ #ifdef __GNUC__

View File

@ -16,8 +16,7 @@ DEPS = libvirt.la
LDADDS = @STATIC_BINARIES@ libvirt.la LDADDS = @STATIC_BINARIES@ libvirt.la
VIRSH_LIBS = @VIRSH_LIBS@ VIRSH_LIBS = @VIRSH_LIBS@
EXTRA_DIST = libvirt_sym.version \ EXTRA_DIST = libvirt_sym.version
qemu_internal.c qemu_internal.h
lib_LTLIBRARIES = libvirt.la lib_LTLIBRARIES = libvirt.la
libvirt_la_LIBADD = @LIBXML_LIBS@ libvirt_la_LIBADD = @LIBXML_LIBS@
@ -43,14 +42,14 @@ CLIENT_SOURCES = \
proxy_internal.c proxy_internal.h \ proxy_internal.c proxy_internal.h \
conf.c conf.h \ conf.c conf.h \
xm_internal.c xm_internal.h \ xm_internal.c xm_internal.h \
remote_internal.c remote_internal.h remote_internal.c remote_internal.h \
bridge.c bridge.h \
iptables.c iptables.h \
uuid.c uuid.h \
qemu_driver.c qemu_driver.h \
qemu_conf.c qemu_conf.h
SERVER_SOURCES = \ SERVER_SOURCES = \
../qemud/bridge.c ../qemud/bridge.h \
../qemud/iptables.c ../qemud/iptables.h \
../qemud/uuid.c ../qemud/uuid.h \
../qemud/driver.c ../qemud/driver.h \
../qemud/qemu_conf.c ../qemud/conf.h \
../qemud/protocol.h ../qemud/protocol.c \ ../qemud/protocol.h ../qemud/protocol.c \
../qemud/remote_protocol.c ../qemud/remote_protocol.h ../qemud/remote_protocol.c ../qemud/remote_protocol.h
@ -64,9 +63,6 @@ virsh_DEPENDENCIES = $(DEPS)
virsh_LDADD = $(LDADDS) $(VIRSH_LIBS) virsh_LDADD = $(LDADDS) $(VIRSH_LIBS)
virsh_CFLAGS = $(COVERAGE_CFLAGS) virsh_CFLAGS = $(COVERAGE_CFLAGS)
../qemud/qemu_conf.c:
ln -s conf.c $@
# #
# target to ease building test programs # target to ease building test programs
# #

View File

@ -28,7 +28,7 @@
#include "test.h" #include "test.h"
#include "xen_unified.h" #include "xen_unified.h"
#include "remote_internal.h" #include "remote_internal.h"
#include "../qemud/driver.h" #include "qemu_driver.h"
/* /*
* TODO: * TODO:

View File

@ -42,9 +42,9 @@
#include <libvirt/virterror.h> #include <libvirt/virterror.h>
#include "conf.h" #include "qemu_conf.h"
#include "uuid.h" #include "uuid.h"
#include "../src/buf.h" #include "buf.h"
#define qemudLog(level, msg...) fprintf(stderr, msg) #define qemudLog(level, msg...) fprintf(stderr, msg)

View File

@ -24,7 +24,7 @@
#ifndef __QEMUD_CONF_H #ifndef __QEMUD_CONF_H
#define __QEMUD_CONF_H #define __QEMUD_CONF_H
#include "../src/internal.h" #include "internal.h"
#include "bridge.h" #include "bridge.h"
#include "iptables.h" #include "iptables.h"
#include <netinet/in.h> #include <netinet/in.h>

View File

@ -49,9 +49,9 @@
#include <libvirt/virterror.h> #include <libvirt/virterror.h>
#include "event.h" #include "event.h"
#include "../src/buf.h" #include "buf.h"
#include "driver.h" #include "qemu_driver.h"
#include "conf.h" #include "qemu_conf.h"
#define qemudLog(level, msg...) fprintf(stderr, msg) #define qemudLog(level, msg...) fprintf(stderr, msg)

View File

@ -25,7 +25,7 @@
#ifndef QEMUD_DRIVER_H #ifndef QEMUD_DRIVER_H
#define QEMUD_DRIVER_H #define QEMUD_DRIVER_H
#include "../src/internal.h" #include "internal.h"
int qemudStartup(void); int qemudStartup(void);
int qemudReload(void); int qemudReload(void);

File diff suppressed because it is too large Load Diff

View File

@ -1,48 +0,0 @@
/*
* qemu_internal.h: A backend for managing QEMU machines
*
* Copyright (C) 2006-2007 Red Hat, Inc.
* Copyright (C) 2006 Daniel P. Berrange
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Author: Daniel P. Berrange <berrange@redhat.com>
*/
#ifndef __VIR_QEMU_INTERNAL_H__
#define __VIR_QEMU_INTERNAL_H__
#include <libvirt/virterror.h>
#ifdef __cplusplus
extern "C" {
#endif
int qemuRegister(void);
#ifdef __cplusplus
}
#endif
#endif /* __VIR_QEMU_INTERNAL_H__ */
/*
* Local variables:
* indent-tabs-mode: nil
* c-indent-level: 4
* c-basic-offset: 4
* tab-width: 4
* End:
*/