conf: include virnetworkportdef.h in domain_conf.h

Now that this file no longer transitively includes
domain_conf.h, it can be included here.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Ján Tomko 2020-02-17 18:51:55 +01:00
parent ab7811db4b
commit 0c37c60f3d
1 changed files with 1 additions and 5 deletions

View File

@ -44,6 +44,7 @@
#include "virnetdevvportprofile.h"
#include "virnetdevbandwidth.h"
#include "virnetdevvlan.h"
#include "virnetworkportdef.h"
#include "virobject.h"
#include "device_conf.h"
#include "virbitmap.h"
@ -3643,11 +3644,6 @@ bool
virDomainDefLifecycleActionAllowed(virDomainLifecycle type,
virDomainLifecycleAction action);
// Forward decl to avoid pulling in virnetworkportdef.h because
// that pulls in virhostdev.h which pulls in domain_conf.h (evil)
typedef struct _virNetworkPortDef virNetworkPortDef;
typedef virNetworkPortDef *virNetworkPortDefPtr;
virNetworkPortDefPtr
virDomainNetDefToNetworkPort(virDomainDefPtr dom,
virDomainNetDefPtr iface);