This file was contenated from the various input modes when I modularized virt-v2v. It was done this way essentially for convenience. However it wasn't a great idea because: - Not very easy to see which file is responsible for each mode. ie. it's a lot more obvious that input_disk.ml might be responsible for -i disk. - It didn't sufficiently isolate each mode. Each mode is logically separate and does not need to be in the same top level file or module. - This single file "open"'d just about every namespace which is a symptom of poor encapsulation. In addition the various *_source and *_servers functions which were called one after another are combined into a single function. (Their separation was an unusual side effect of earlier modularization, not a necessary feature). This is just code movement, there is no change to functionality.
22 lines
830 B
OCaml
22 lines
830 B
OCaml
(* virt-v2v
|
|
* Copyright (C) 2009-2021 Red Hat Inc.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program 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 General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
*)
|
|
|
|
(** [-i vmx] input mode *)
|
|
|
|
module VMX : Input.INPUT
|