chiark / gitweb /
bus-proxy: never pass on unmatched broadcasts
[elogind.git] / src / shared / virt.h
index f55c9a68fdd5bfee841e6f6df6aedf0edce75827..29f8bb0ea5013a4de549c3861ae6ac9c43c033dc 100644 (file)
@@ -1,38 +1,40 @@
 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
-#ifndef foovirthfoo
-#define foovirthfoo
-
 /***
   This file is part of systemd.
 
-  Copyright 2011 Lennart Poettering
+  Copyright 2014 Tom Gundersen <teg@jklm.no>
 
   systemd is free software; you can redistribute it and/or modify it
-  under the terms of the GNU General Public License as published by
-  the Free Software Foundation; either version 2 of the License, or
+  under the terms of the GNU Lesser General Public License as published by
+  the Free Software Foundation; either version 2.1 of the License, or
   (at your option) any later version.
 
   systemd is distributed in the hope that it will be useful, but
   WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  General Public License for more details.
+  Lesser General Public License for more details.
 
-  You should have received a copy of the GNU General Public License
+  You should have received a copy of the GNU Lesser General Public License
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-int detect_vm(const char **id);
-int detect_container(const char **id);
+#pragma once
+
+typedef struct TunTap TunTap;
+
+#include "networkd-netdev.h"
 
-typedef enum Virtualization {
-        VIRTUALIZATION_NONE = 0,
-        VIRTUALIZATION_VM,
-        VIRTUALIZATION_CONTAINER,
-        _VIRTUALIZATION_MAX,
-        _VIRTUALIZATION_INVALID = -1
-} Virtualization;
+struct TunTap {
+        NetDev meta;
 
-Virtualization detect_virtualization(const char **id);
+        char *user_name;
+        char *group_name;
+        bool one_queue;
+        bool multi_queue;
+        bool packet_info;
+        bool vnet_hdr;
+};
 
-#endif
+extern const NetDevVTable tun_vtable;
+extern const NetDevVTable tap_vtable;