271612
From 2df154c93069ab97f38fbb8e290527f74ace5e62 Mon Sep 17 00:00:00 2001
695b7d
From: "Richard W.M. Jones" <rjones@redhat.com>
695b7d
Date: Mon, 27 Mar 2017 12:30:01 +0100
271612
Subject: [PATCH 09/23] Refresh HACKING file.
695b7d
695b7d
Fixes commit b7c3ef13cbd9c9cd49005a32ffb70faf6f5bbe8c.
695b7d
---
695b7d
 HACKING | 72 ++-------------------------------------------------------
695b7d
 1 file changed, 2 insertions(+), 70 deletions(-)
695b7d
695b7d
diff --git a/HACKING b/HACKING
695b7d
index bce40a9..3cd266b 100644
695b7d
--- a/HACKING
695b7d
+++ b/HACKING
695b7d
@@ -7,75 +7,7 @@ General OCaml advice:
695b7d
 
695b7d
 (2) Emacs users: use tuareg-mode for editing OCaml.
695b7d
 
695b7d
-(3) http://www.ocaml-tutorial.org/
695b7d
+(3) https://realworldocaml.org/ is the definitive book which is also
695b7d
+    available online in full.
695b7d
 
695b7d
 (4) http://camltastic.blogspot.com/2008/08/3-things-that-will-confuse-you-when.html
695b7d
-
695b7d
-The code is structured into these files:
695b7d
-
695b7d
-  virt_top_utils.mli / virt_top_utils.ml
695b7d
-
695b7d
-    String functions and other small utility functions.  This is
695b7d
-    included directly into virt_top.ml.
695b7d
-
695b7d
-  virt_top_version.ml
695b7d
-
695b7d
-    The version number (automatically generated by configure).
695b7d
-
695b7d
-  virt_top.mli / virt_top.ml
695b7d
-
695b7d
-    This is the virt-top program.
695b7d
-
695b7d
-    The two interesting functions are called 'collect' and 'redraw'.
695b7d
-
695b7d
-    'collect' collects all the information about domains, etc.
695b7d
-
695b7d
-    'redraw' updates the display on each frame.
695b7d
-
695b7d
-    Another interesting function is 'start_up' which handles all
695b7d
-    start-up stuff, eg. command line arguments, connecting to the
695b7d
-    hypervisor, enabling curses.
695b7d
-
695b7d
-    The function 'main_loop' runs the main loop and has sub-functions
695b7d
-    to deal with keypresses, help screens and so on.
695b7d
-
695b7d
-  virt_top_xml.ml
695b7d
-
695b7d
-    Any code which needs the optional xml-light library goes
695b7d
-    in here.  Mainly for parsing domain XML descriptions to get
695b7d
-    the list of block devices and network interfaces.
695b7d
-
695b7d
-    The reason for having it in a separate file is so that we
695b7d
-    don't depend on xml-light.
695b7d
-
695b7d
-  virt_top_csv.ml
695b7d
-
695b7d
-    Any code which needs the optional ocaml-csv library goes
695b7d
-    in here.  This implements the --csv command line option.
695b7d
-
695b7d
-  virt_top_calendar1.ml
695b7d
-  virt_top_calendar2.ml
695b7d
-
695b7d
-    Any code which needs the optional ocaml-calendar library
695b7d
-    goes in here.  This implements the --end-time command line
695b7d
-    option.  Note there are two incompatible versions of the
695b7d
-    ocaml-calendar library, which is why we have two
695b7d
-    implementations.  The Makefile works out which one to use.
695b7d
-
695b7d
-  virt_top_gettext.ml
695b7d
-
695b7d
-    Gettext interaction (this is generated by ./configure).
695b7d
-
695b7d
-  virt_top_main.ml
695b7d
-
695b7d
-    This is just a small bit of code to glue the modules above
695b7d
-    together.
695b7d
-
695b7d
-The man-page is generated from the single file:
695b7d
-
695b7d
-  virt-top.pod
695b7d
-
695b7d
-which generates (using perldoc) the following:
695b7d
-
695b7d
-  virt-top.1
695b7d
-  virt-top.txt
695b7d
-- 
271612
2.31.1
695b7d