Patchwork [7/8] migration: export migrate_get_current()

login
register
mail settings
Submitter Juan Quintela
Date Aug. 18, 2012, 11:17 a.m.
Message ID <1345288635-1369-8-git-send-email-quintela@redhat.com>
Download mbox | patch
Permalink /patch/178449/
State New
Headers show

Comments

Juan Quintela - Aug. 18, 2012, 11:17 a.m.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 migration.c | 2 +-
 migration.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
Orit Wasserman - Aug. 21, 2012, 10:58 a.m.
On 08/18/2012 02:17 PM, Juan Quintela wrote:
> Signed-off-by: Juan Quintela <quintela@redhat.com>
> ---
>  migration.c | 2 +-
>  migration.h | 1 +
>  2 files changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/migration.c b/migration.c
> index 49cd336..186bcf2 100644
> --- a/migration.c
> +++ b/migration.c
> @@ -53,7 +53,7 @@ static NotifierList migration_state_notifiers =
>     migrations at once.  For now we don't need to add
>     dynamic creation of migration */
> 
> -static MigrationState *migrate_get_current(void)
> +MigrationState *migrate_get_current(void)
>  {
>      static MigrationState current_migration = {
>          .state = MIG_STATE_SETUP,
> diff --git a/migration.h b/migration.h
> index 3462917..dabc333 100644
> --- a/migration.h
> +++ b/migration.h
> @@ -81,6 +81,7 @@ void remove_migration_state_change_notifier(Notifier *notify);
>  bool migration_is_active(MigrationState *);
>  bool migration_has_finished(MigrationState *);
>  bool migration_has_failed(MigrationState *);
> +MigrationState *migrate_get_current(void);
> 
>  uint64_t ram_bytes_remaining(void);
>  uint64_t ram_bytes_transferred(void);
> 
Reviewed-by: Orit Wasserman <owasserm@redhat.com>

Patch

diff --git a/migration.c b/migration.c
index 49cd336..186bcf2 100644
--- a/migration.c
+++ b/migration.c
@@ -53,7 +53,7 @@  static NotifierList migration_state_notifiers =
    migrations at once.  For now we don't need to add
    dynamic creation of migration */

-static MigrationState *migrate_get_current(void)
+MigrationState *migrate_get_current(void)
 {
     static MigrationState current_migration = {
         .state = MIG_STATE_SETUP,
diff --git a/migration.h b/migration.h
index 3462917..dabc333 100644
--- a/migration.h
+++ b/migration.h
@@ -81,6 +81,7 @@  void remove_migration_state_change_notifier(Notifier *notify);
 bool migration_is_active(MigrationState *);
 bool migration_has_finished(MigrationState *);
 bool migration_has_failed(MigrationState *);
+MigrationState *migrate_get_current(void);

 uint64_t ram_bytes_remaining(void);
 uint64_t ram_bytes_transferred(void);