]> xenbits.xensource.com Git - libvirt.git/commitdiff
virnetdevmacvlan: Provide stubs for build without macvtap
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 27 Jan 2016 08:49:54 +0000 (09:49 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 27 Jan 2016 09:07:46 +0000 (10:07 +0100)
In 370608b4c76f we have introduced two new internal APIs.
However, there are no stubs for build without macvtap. Therefore
build on systems lacking macvtap support (e.g. mingw or freebds)
fails when trying to link.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virnetdevmacvlan.c

index da71eef9e0d2fafa09073b294cab2dee08ebd724..24091135f97bd3c6ad5f14ed23f806cb25b06a84 100644 (file)
@@ -1330,4 +1330,19 @@ int virNetDevMacVLanVPortProfileRegisterCallback(const char *ifname ATTRIBUTE_UN
                          _("Cannot create macvlan devices on this platform"));
     return -1;
 }
+
+int virNetDevMacVLanReleaseName(const char *name ATTRIBUTE_UNUSED)
+{
+    virReportSystemError(ENOSYS, "%s",
+                         _("Cannot create macvlan devices on this platform"));
+    return -1;
+}
+
+int virNetDevMacVLanReserveName(const char *name ATTRIBUTE_UNUSED,
+                                bool quietFail ATTRIBUTE_UNUSED)
+{
+    virReportSystemError(ENOSYS, "%s",
+                         _("Cannot create macvlan devices on this platform"));
+    return -1;
+}
 #endif /* ! WITH_MACVTAP */