Commit 43c8e8dd authored by Martin Blix Grydeland's avatar Martin Blix Grydeland

Declare anonymous structs in VSC header files

Declare anonymous vsmw_cluster and vsc_seg structs in VSC header
files. This is to silence errors when the header file is used in other
contexts that don't know about these structs.
parent b2d840cf
......@@ -195,6 +195,10 @@ class CounterSet(object):
fo.write("#define VSC_" + self.name +
"_size PRNDUP(sizeof(" + self.struct + "))\n\n")
fo.write("struct vsmw_cluster;\n");
fo.write("struct vsc_seg;\n");
fo.write("\n");
fo.write(self.struct + " *VSC_" + self.name + "_New")
fo.write("(struct vsmw_cluster *,\n")
fo.write(" struct vsc_seg **, const char *fmt, ...);\n")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment