From 510d41ff7d12c8a8ba230d3b3f732b19a20f15e3 Mon Sep 17 00:00:00 2001
From: gcontini <1121667+gcontini@users.noreply.github.com>
Date: 周六, 31 10月 2020 10:28:34 +0800
Subject: [PATCH] doc & miscellaneous changes

---
 doc/api/hardware_identifiers.rst |   21 +++++++++++++++++----
 1 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/doc/api/hardware_identifiers.rst b/doc/api/hardware_identifiers.rst
index b4c491e..840c520 100644
--- a/doc/api/hardware_identifiers.rst
+++ b/doc/api/hardware_identifiers.rst
@@ -1,11 +1,24 @@
 ###############################################
-Implement your own hardware signature generator 
+Customize hardware signature generators 
 ###############################################
 
-Customize how default strategy behaves
-*****************************************
+Change the hardware identification strategy
+*************************************************
+
+Included with the library there are three hardware identification strategies: `IP_ADDRESS`, `STRATEGY_ETHERNET` (mac address) and 
+`STRATEGY_DISK` (partition serial number). If you want to change the strategy that is used to generate the default identifier:
+  
+  - locate the file `licensecc_properties.h`` (usually in ``projects/<$project_name>/include/licensecc/<$project_name>``
+  - you can change the order of the strategies in the following code block (the strategies will be tried in sequence until the first one succeeds):
+
+.. code-block:: c
+#define LCC_BARE_TO_METAL_STRATEGIES { STRATEGY_DISK, STRATEGY_ETHERNET, STRATEGY_NONE }
+#define LCC_VM_STRATEGIES { STRATEGY_ETHERNET, STRATEGY_NONE }
+#define LCC_LXC_STRATEGIES { STRATEGY_ETHERNET, STRATEGY_NONE }
+#define LCC_DOCKER_STRATEGIES { STRATEGY_NONE }
+#define LCC_CLOUD_STRATEGIES { STRATEGY_NONE }
 
 Implement your own hardware signature generator 
 *************************************************
 
-.. doxygenclass:: license::hw_identifier::IdentificationStrategy
\ No newline at end of file
+.. doxygenclass:: license::hw_identifier::IdentificationStrategy

--
Gitblit v1.9.1