Extract 'struct net' (for net namespaces).
[virt-mem.git] / extract / codegen / kerneldb_to_parser.ml
index d78c108..4bda418 100644 (file)
@@ -69,7 +69,13 @@ let structs = [
       "name",          { mandatory_field = true };
       "dev_addr",      { mandatory_field = true };
     ]
-  }
+  };
+  "net", {
+    opener = "struct net {"; closer = "};"; mandatory_struct = false;
+    fields = [
+      "dev_base_head'next", { mandatory_field = true };
+    ]
+  };
 ]
 
 let debug = false