summaryrefslogtreecommitdiffstats
path: root/HACKING
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-04-03 22:24:32 +0100
committerRichard Jones <rjones@redhat.com>2009-04-03 22:24:32 +0100
commitf5d2602bf6d40ecc71a5a17e0be9f480e9a4453a (patch)
tree629afe9a3c3ef715c5a15abfbaa95bdc26ed8ff9 /HACKING
parent8ae9f67a1767c44ce1650d54665d1e7936181603 (diff)
downloadlibguestfs-f5d2602bf6d40ecc71a5a17e0be9f480e9a4453a.tar.gz
libguestfs-f5d2602bf6d40ecc71a5a17e0be9f480e9a4453a.tar.xz
libguestfs-f5d2602bf6d40ecc71a5a17e0be9f480e9a4453a.zip
Added a HACKING file.
Diffstat (limited to 'HACKING')
-rw-r--r--HACKING28
1 files changed, 28 insertions, 0 deletions
diff --git a/HACKING b/HACKING
new file mode 100644
index 00000000..b2fab3ed
--- /dev/null
+++ b/HACKING
@@ -0,0 +1,28 @@
+Adding a new action
+----------------------------------------------------------------------
+
+All action functions are generated automatically, so there are only
+two files you need to edit:
+
+(1) src/generator.ml: Add your new action, parameters, description,
+etc. to the big list called 'functions' at the top of this file.
+
+(2) Edit/create a C file in daemon/ subdirectory which implements your
+'do_action' function. Take a look at one of the numerous examples
+there.
+
+You will need to run src/generator.ml (from the top directory) which
+regenerates all the auto-generated files, and then continue with the
+ordinary build process.
+
+Formatting
+----------------------------------------------------------------------
+
+Try to use GNU / Emacs default formatting, following the convention
+used elsewhere in the source.
+
+Patches
+----------------------------------------------------------------------
+
+Submit patches to the fedora-virt mailing list:
+http://www.redhat.com/mailman/listinfo/fedora-virt