All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xenctrl: Make the headers C++ friendly
@ 2014-07-02 16:30 Razvan Cojocaru
  2014-07-03 10:56 ` George Dunlap
  2014-07-16 14:48 ` Ian Campbell
  0 siblings, 2 replies; 6+ messages in thread
From: Razvan Cojocaru @ 2014-07-02 16:30 UTC (permalink / raw)
  To: xen-devel; +Cc: Ian.Jackson, tim, Ian.Campbell, Razvan Cojocaru, andrew.cooper3

Moved an enum definition before the typedef that uses it.

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
---
 tools/libxc/xenctrl.h |   19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/tools/libxc/xenctrl.h b/tools/libxc/xenctrl.h
index af6f249..abd8947 100644
--- a/tools/libxc/xenctrl.h
+++ b/tools/libxc/xenctrl.h
@@ -119,6 +119,16 @@ typedef struct xc_interface_core xc_interface;
 typedef struct xc_interface_core xc_evtchn;
 typedef struct xc_interface_core xc_gnttab;
 typedef struct xc_interface_core xc_gntshr;
+
+enum xc_error_code {
+  XC_ERROR_NONE = 0,
+  XC_INTERNAL_ERROR = 1,
+  XC_INVALID_KERNEL = 2,
+  XC_INVALID_PARAM = 3,
+  XC_OUT_OF_MEMORY = 4,
+  /* new codes need to be added to xc_error_level_to_desc too */
+};
+
 typedef enum xc_error_code xc_error_code;
 
 
@@ -1766,15 +1776,6 @@ int xc_hvm_inject_trap(
  */
 
 
-enum xc_error_code {
-  XC_ERROR_NONE = 0,
-  XC_INTERNAL_ERROR = 1,
-  XC_INVALID_KERNEL = 2,
-  XC_INVALID_PARAM = 3,
-  XC_OUT_OF_MEMORY = 4,
-  /* new codes need to be added to xc_error_level_to_desc too */
-};
-
 #define XC_MAX_ERROR_MSG_LEN 1024
 typedef struct xc_error {
   enum xc_error_code code;
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-07-16 14:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-02 16:30 [PATCH] xenctrl: Make the headers C++ friendly Razvan Cojocaru
2014-07-03 10:56 ` George Dunlap
2014-07-03 11:08   ` Razvan Cojocaru
2014-07-03 11:29     ` Slutz, Donald Christopher
2014-07-16 14:48 ` Ian Campbell
2014-07-16 14:58   ` Razvan Cojocaru

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.