diff mbox

[v2,1/2] libxc: move migration_stream's definition to xenguest.h

Message ID 1457513197-21022-1-git-send-email-wency@cn.fujitsu.com (mailing list archive)
State New, archived
Headers show

Commit Message

Wen Congyang March 9, 2016, 8:46 a.m. UTC
xc_domain_save() and xc_domain_restore's parameter will use this type,
so it should be public.

Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
---
 tools/libxc/include/xenguest.h |  5 +++++
 tools/libxc/xc_sr_common.h     | 10 ----------
 2 files changed, 5 insertions(+), 10 deletions(-)

Comments

Wei Liu March 10, 2016, 5:28 p.m. UTC | #1
On Wed, Mar 09, 2016 at 04:46:36PM +0800, Wen Congyang wrote:
> xc_domain_save() and xc_domain_restore's parameter will use this type,
> so it should be public.
> 
> Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
> ---
>  tools/libxc/include/xenguest.h |  5 +++++
>  tools/libxc/xc_sr_common.h     | 10 ----------
>  2 files changed, 5 insertions(+), 10 deletions(-)
> 
> diff --git a/tools/libxc/include/xenguest.h b/tools/libxc/include/xenguest.h
> index affc42b..973e5a6 100644
> --- a/tools/libxc/include/xenguest.h
> +++ b/tools/libxc/include/xenguest.h
> @@ -75,6 +75,11 @@ struct save_callbacks {
>      void* data;
>  };
>  
> +typedef enum {
> +    MIG_STREAM_NONE, /* plain stream */
> +    MIG_STREAM_REMUS,

You also need to make them have XC_ prefix.

Wei.
diff mbox

Patch

diff --git a/tools/libxc/include/xenguest.h b/tools/libxc/include/xenguest.h
index affc42b..973e5a6 100644
--- a/tools/libxc/include/xenguest.h
+++ b/tools/libxc/include/xenguest.h
@@ -75,6 +75,11 @@  struct save_callbacks {
     void* data;
 };
 
+typedef enum {
+    MIG_STREAM_NONE, /* plain stream */
+    MIG_STREAM_REMUS,
+} xc_migration_stream_t;
+
 /**
  * This function will save a running domain.
  *
diff --git a/tools/libxc/xc_sr_common.h b/tools/libxc/xc_sr_common.h
index 66f595f..e7568b5 100644
--- a/tools/libxc/xc_sr_common.h
+++ b/tools/libxc/xc_sr_common.h
@@ -180,16 +180,6 @@  struct xc_sr_context
 
     xc_dominfo_t dominfo;
 
-    /*
-     * migration stream
-     * 0: Plain VM
-     * 1: Remus
-     */
-    enum {
-        MIG_STREAM_NONE, /* plain stream */
-        MIG_STREAM_REMUS,
-    } migration_stream;
-
     union /* Common save or restore data. */
     {
         struct /* Save data. */