提交 bdcb1995 编写于 作者: M Martin Kletzander

Move src/fdstream to src/util/virfdstream

There is no reason for it not to be in the utils, all global symbols
under that file already have prefix vir* and there is no reason for it
to be part of DRIVER_SOURCES because that is just a leftover from
older days (pre-driver modules era, I believe).
Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
上级 c67e04e2
...@@ -1101,7 +1101,7 @@ $(srcdir)/src/admin/admin_client.h: $(srcdir)/src/admin/admin_protocol.x ...@@ -1101,7 +1101,7 @@ $(srcdir)/src/admin/admin_client.h: $(srcdir)/src/admin/admin_protocol.x
# List all syntax-check exemptions: # List all syntax-check exemptions:
exclude_file_name_regexp--sc_avoid_strcase = ^tools/vsh\.h$$ exclude_file_name_regexp--sc_avoid_strcase = ^tools/vsh\.h$$
_src1=libvirt-stream|fdstream|qemu/qemu_monitor|util/(vircommand|virfile)|xen/xend_internal|rpc/virnetsocket|lxc/lxc_controller|locking/lock_daemon|logging/log_daemon _src1=libvirt-stream|qemu/qemu_monitor|util/vir(command|file|fdstream)|xen/xend_internal|rpc/virnetsocket|lxc/lxc_controller|locking/lock_daemon|logging/log_daemon
_test1=shunloadtest|virnettlscontexttest|virnettlssessiontest|vircgroupmock _test1=shunloadtest|virnettlscontexttest|virnettlssessiontest|vircgroupmock
exclude_file_name_regexp--sc_avoid_write = \ exclude_file_name_regexp--sc_avoid_write = \
^(src/($(_src1))|daemon/libvirtd|tools/virsh-console|tests/($(_test1)))\.c$$ ^(src/($(_src1))|daemon/libvirtd|tools/virsh-console|tests/($(_test1)))\.c$$
......
...@@ -67,7 +67,6 @@ src/esx/esx_util.c ...@@ -67,7 +67,6 @@ src/esx/esx_util.c
src/esx/esx_vi.c src/esx/esx_vi.c
src/esx/esx_vi_methods.c src/esx/esx_vi_methods.c
src/esx/esx_vi_types.c src/esx/esx_vi_types.c
src/fdstream.c
src/hyperv/hyperv_driver.c src/hyperv/hyperv_driver.c
src/hyperv/hyperv_util.c src/hyperv/hyperv_util.c
src/hyperv/hyperv_wmi.c src/hyperv/hyperv_wmi.c
...@@ -206,6 +205,7 @@ src/util/virdnsmasq.c ...@@ -206,6 +205,7 @@ src/util/virdnsmasq.c
src/util/virerror.c src/util/virerror.c
src/util/virerror.h src/util/virerror.h
src/util/vireventpoll.c src/util/vireventpoll.c
src/util/virfdstream.c
src/util/virfile.c src/util/virfile.c
src/util/virfirewall.c src/util/virfirewall.c
src/util/virfirmware.c src/util/virfirmware.c
......
...@@ -113,6 +113,7 @@ UTIL_SOURCES = \ ...@@ -113,6 +113,7 @@ UTIL_SOURCES = \
util/virerror.c util/virerror.h \ util/virerror.c util/virerror.h \
util/virevent.c util/virevent.h \ util/virevent.c util/virevent.h \
util/vireventpoll.c util/vireventpoll.h \ util/vireventpoll.c util/vireventpoll.h \
util/virfdstream.c util/virfdstream.h \
util/virfile.c util/virfile.h \ util/virfile.c util/virfile.h \
util/virfirewall.c util/virfirewall.h \ util/virfirewall.c util/virfirewall.h \
util/virfirewallpriv.h \ util/virfirewallpriv.h \
...@@ -218,7 +219,6 @@ DRIVER_SOURCES = \ ...@@ -218,7 +219,6 @@ DRIVER_SOURCES = \
driver-stream.h \ driver-stream.h \
internal.h \ internal.h \
$(DATATYPES_SOURCES) \ $(DATATYPES_SOURCES) \
fdstream.c fdstream.h \
$(NODE_INFO_SOURCES) \ $(NODE_INFO_SOURCES) \
libvirt.c libvirt_internal.h \ libvirt.c libvirt_internal.h \
libvirt-domain.c \ libvirt-domain.c \
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
#include "domain_audit.h" #include "domain_audit.h"
#include "domain_event.h" #include "domain_event.h"
#include "snapshot_conf.h" #include "snapshot_conf.h"
#include "fdstream.h" #include "virfdstream.h"
#include "storage_conf.h" #include "storage_conf.h"
#include "node_device_conf.h" #include "node_device_conf.h"
#include "virdomainobjlist.h" #include "virdomainobjlist.h"
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include "virchrdev.h" #include "virchrdev.h"
#include "virhash.h" #include "virhash.h"
#include "fdstream.h" #include "virfdstream.h"
#include "internal.h" #include "internal.h"
#include "virthread.h" #include "virthread.h"
#include "viralloc.h" #include "viralloc.h"
......
...@@ -1063,16 +1063,6 @@ virStorageVolClass; ...@@ -1063,16 +1063,6 @@ virStorageVolClass;
virStreamClass; virStreamClass;
# fdstream.h
virFDStreamConnectUNIX;
virFDStreamCreateFile;
virFDStreamOpen;
virFDStreamOpenBlockDevice;
virFDStreamOpenFile;
virFDStreamOpenPTY;
virFDStreamSetInternalCloseCb;
# libvirt_internal.h # libvirt_internal.h
virConnectSupportsFeature; virConnectSupportsFeature;
virDomainMigrateBegin3; virDomainMigrateBegin3;
...@@ -1569,6 +1559,16 @@ virEventPollUpdateHandle; ...@@ -1569,6 +1559,16 @@ virEventPollUpdateHandle;
virEventPollUpdateTimeout; virEventPollUpdateTimeout;
# util/virfdstream.h
virFDStreamConnectUNIX;
virFDStreamCreateFile;
virFDStreamOpen;
virFDStreamOpenBlockDevice;
virFDStreamOpenFile;
virFDStreamOpenPTY;
virFDStreamSetInternalCloseCb;
# util/virfile.h # util/virfile.h
saferead; saferead;
safewrite; safewrite;
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
#include "libxl_migration.h" #include "libxl_migration.h"
#include "locking/domain_lock.h" #include "locking/domain_lock.h"
#include "virtypedparam.h" #include "virtypedparam.h"
#include "fdstream.h" #include "virfdstream.h"
#define VIR_FROM_THIS VIR_FROM_LIBXL #define VIR_FROM_THIS VIR_FROM_LIBXL
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
#include "virhook.h" #include "virhook.h"
#include "virfile.h" #include "virfile.h"
#include "virpidfile.h" #include "virpidfile.h"
#include "fdstream.h" #include "virfdstream.h"
#include "domain_audit.h" #include "domain_audit.h"
#include "domain_nwfilter.h" #include "domain_nwfilter.h"
#include "nwfilter_conf.h" #include "nwfilter_conf.h"
......
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
#include "virhook.h" #include "virhook.h"
#include "virstoragefile.h" #include "virstoragefile.h"
#include "virfile.h" #include "virfile.h"
#include "fdstream.h" #include "virfdstream.h"
#include "configmake.h" #include "configmake.h"
#include "virthreadpool.h" #include "virthreadpool.h"
#include "locking/lock_manager.h" #include "locking/lock_manager.h"
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
#include "virfile.h" #include "virfile.h"
#include "virnetdevopenvswitch.h" #include "virnetdevopenvswitch.h"
#include "datatypes.h" #include "datatypes.h"
#include "fdstream.h" #include "virfdstream.h"
#include "viruuid.h" #include "viruuid.h"
#include "virtime.h" #include "virtime.h"
#include "locking/domain_lock.h" #include "locking/domain_lock.h"
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
#include "storage_backend.h" #include "storage_backend.h"
#include "virlog.h" #include "virlog.h"
#include "virfile.h" #include "virfile.h"
#include "fdstream.h" #include "virfdstream.h"
#include "configmake.h" #include "configmake.h"
#include "virstring.h" #include "virstring.h"
#include "viraccessapicheck.h" #include "viraccessapicheck.h"
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
#include "stat-time.h" #include "stat-time.h"
#include "virstring.h" #include "virstring.h"
#include "virxml.h" #include "virxml.h"
#include "fdstream.h" #include "virfdstream.h"
#define VIR_FROM_THIS VIR_FROM_STORAGE #define VIR_FROM_THIS VIR_FROM_STORAGE
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
#include "domain_event.h" #include "domain_event.h"
#include "network_event.h" #include "network_event.h"
#include "snapshot_conf.h" #include "snapshot_conf.h"
#include "fdstream.h" #include "virfdstream.h"
#include "storage_conf.h" #include "storage_conf.h"
#include "virstorageobj.h" #include "virstorageobj.h"
#include "storage_event.h" #include "storage_event.h"
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
#include "domain_nwfilter.h" #include "domain_nwfilter.h"
#include "nwfilter_conf.h" #include "nwfilter_conf.h"
#include "virfile.h" #include "virfile.h"
#include "fdstream.h" #include "virfdstream.h"
#include "configmake.h" #include "configmake.h"
#include "virnetdevtap.h" #include "virnetdevtap.h"
#include "virnodesuspend.h" #include "virnodesuspend.h"
......
/* /*
* fdstream.c: generic streams impl for file descriptors * virfdstream.c: generic streams impl for file descriptors
* *
* Copyright (C) 2009-2012, 2014 Red Hat, Inc. * Copyright (C) 2009-2012, 2014 Red Hat, Inc.
* *
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#include <netinet/in.h> #include <netinet/in.h>
#include <termios.h> #include <termios.h>
#include "fdstream.h" #include "virfdstream.h"
#include "virerror.h" #include "virerror.h"
#include "datatypes.h" #include "datatypes.h"
#include "virlog.h" #include "virlog.h"
......
/* /*
* fdstream.h: generic streams impl for file descriptors * virfdstream.h: generic streams impl for file descriptors
* *
* Copyright (C) 2009-2012 Red Hat, Inc. * Copyright (C) 2009-2012 Red Hat, Inc.
* *
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
#include "virkeycode.h" #include "virkeycode.h"
#include "snapshot_conf.h" #include "snapshot_conf.h"
#include "vbox_snapshot_conf.h" #include "vbox_snapshot_conf.h"
#include "fdstream.h" #include "virfdstream.h"
#include "configmake.h" #include "configmake.h"
#include "vbox_common.h" #include "vbox_common.h"
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
#include "node_device_conf.h" #include "node_device_conf.h"
#include "virpci.h" #include "virpci.h"
#include "viruuid.h" #include "viruuid.h"
#include "fdstream.h" #include "virfdstream.h"
#include "virfile.h" #include "virfile.h"
#include "viruri.h" #include "viruri.h"
#include "vircommand.h" #include "vircommand.h"
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include "testutils.h" #include "testutils.h"
#include "fdstream.h" #include "virfdstream.h"
#include "datatypes.h" #include "datatypes.h"
#include "virerror.h" #include "virerror.h"
#include "viralloc.h" #include "viralloc.h"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册