[CRIU] [RFC 1/2] plugin: Explicit assign plugin hooks

Cyrill Gorcunov gorcunov at openvz.org
Thu Sep 18 01:14:08 PDT 2014


So it won't depend on the order in declaration.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 include/criu-plugin.h | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/include/criu-plugin.h b/include/criu-plugin.h
index 3f76b8fe6e54..4be697b0cb15 100644
--- a/include/criu-plugin.h
+++ b/include/criu-plugin.h
@@ -39,16 +39,16 @@
  * Plugin hook points and their arguments in hooks.
  */
 enum {
-	CR_PLUGIN_HOOK__DUMP_UNIX_SK,
-	CR_PLUGIN_HOOK__RESTORE_UNIX_SK,
+	CR_PLUGIN_HOOK__DUMP_UNIX_SK		= 0,
+	CR_PLUGIN_HOOK__RESTORE_UNIX_SK		= 1,
 
-	CR_PLUGIN_HOOK__DUMP_EXT_FILE,
-	CR_PLUGIN_HOOK__RESTORE_EXT_FILE,
+	CR_PLUGIN_HOOK__DUMP_EXT_FILE		= 2,
+	CR_PLUGIN_HOOK__RESTORE_EXT_FILE	= 3,
 
-	CR_PLUGIN_HOOK__DUMP_EXT_MOUNT,
-	CR_PLUGIN_HOOK__RESTORE_EXT_MOUNT,
+	CR_PLUGIN_HOOK__DUMP_EXT_MOUNT		= 4,
+	CR_PLUGIN_HOOK__RESTORE_EXT_MOUNT	= 5,
 
-	CR_PLUGIN_HOOK__DUMP_EXT_LINK,
+	CR_PLUGIN_HOOK__DUMP_EXT_LINK		= 6,
 
 	CR_PLUGIN_HOOK__MAX
 };
-- 
1.9.3



More information about the CRIU mailing list