[PATCH] tools/utils: move XLU_Operation to libxlu_internal.h

Elliott Mitchell posted 1 patch 9 months, 3 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/96726e1f51811a95b96adc029a7d573d8c254361.1689008310.git.ehem+xen@m5p.com
tools/include/libxlutil.h         | 5 -----
tools/libs/util/libxlu_internal.h | 5 +++++
2 files changed, 5 insertions(+), 5 deletions(-)
[PATCH] tools/utils: move XLU_Operation to libxlu_internal.h
Posted by Elliott Mitchell 9 months, 3 weeks ago
This enumerated value is never used outside of the configuration parser.
As such, move to the internal header.

Signed-off-by: Elliott Mitchell <ehem+xen@m5p.com>
---
 tools/include/libxlutil.h         | 5 -----
 tools/libs/util/libxlu_internal.h | 5 +++++
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/tools/include/libxlutil.h b/tools/include/libxlutil.h
index 4dd3c5e92b..24c31744ae 100644
--- a/tools/include/libxlutil.h
+++ b/tools/include/libxlutil.h
@@ -25,11 +25,6 @@ enum XLU_ConfigValueType {
     XLU_LIST,
 };
 
-enum XLU_Operation {
-    XLU_OP_ASSIGNMENT = 0,
-    XLU_OP_ADDITION,
-};
-
 /* Unless otherwise stated, all functions return an errno value. */
 typedef struct XLU_Config XLU_Config;
 typedef struct XLU_ConfigList XLU_ConfigList;
diff --git a/tools/libs/util/libxlu_internal.h b/tools/libs/util/libxlu_internal.h
index 1f7559ecd9..68bacdc384 100644
--- a/tools/libs/util/libxlu_internal.h
+++ b/tools/libs/util/libxlu_internal.h
@@ -25,6 +25,11 @@
 
 #include "libxlutil.h"
 
+enum XLU_Operation {
+    XLU_OP_ASSIGNMENT = 0,
+    XLU_OP_ADDITION,
+};
+
 struct XLU_ConfigList {
     int avalues; /* available slots */
     int nvalues; /* actual occupied slots */
-- 
2.30.2