Skip to content

Commit

Permalink
replication: move include out of root directory
Browse files Browse the repository at this point in the history
The replication.h file is included from migration/colo.c and tests/unit/test-replication.c,
so it should be in include/.

Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
bonzini committed May 26, 2021
1 parent fd5fc4b commit b026295
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion block/replication.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "sysemu/block-backend.h"
#include "qapi/error.h"
#include "qapi/qmp/qdict.h"
#include "replication.h"
#include "block/replication.h"

typedef enum {
BLOCK_REPLICATION_NONE, /* block replication is not started */
Expand Down
4 changes: 2 additions & 2 deletions replication.h → include/block/replication.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ typedef struct ReplicationOps ReplicationOps;
typedef struct ReplicationState ReplicationState;

/**
* SECTION:replication.h
* SECTION:block/replication.h
* @title:Base Replication System
* @short_description: interfaces for handling replication
*
Expand All @@ -32,7 +32,7 @@ typedef struct ReplicationState ReplicationState;
* <example>
* <title>How to use replication interfaces</title>
* <programlisting>
* #include "replication.h"
* #include "block/replication.h"
*
* typedef struct BDRVReplicationState {
* ReplicationState *rs;
Expand Down
2 changes: 1 addition & 1 deletion migration/colo.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "migration/failover.h"
#include "migration/ram.h"
#ifdef CONFIG_REPLICATION
#include "replication.h"
#include "block/replication.h"
#endif
#include "net/colo-compare.h"
#include "net/colo.h"
Expand Down
2 changes: 1 addition & 1 deletion replication.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#include "qemu/osdep.h"
#include "qapi/error.h"
#include "replication.h"
#include "block/replication.h"

static QLIST_HEAD(, ReplicationState) replication_states;

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test-replication.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "qapi/qmp/qdict.h"
#include "qemu/option.h"
#include "qemu/main-loop.h"
#include "replication.h"
#include "block/replication.h"
#include "block/block_int.h"
#include "block/qdict.h"
#include "sysemu/block-backend.h"
Expand Down

0 comments on commit b026295

Please sign in to comment.