Re: wbemprox: Implement some properties of Win32_BIOS. (resend 4)
On Sat, 2013-06-22 at 12:17 +0900, Kim Jung Eon (김중언) wrote:
static const struct column col_bios[] = { + { prop_biosversionW, CIM_STRING|CIM_FLAG_ARRAY}, { prop_descriptionW, CIM_STRING }, { prop_manufacturerW, CIM_STRING }, { prop_releasedateW, CIM_DATETIME }, @@ -508,6 +511,7 @@ struct record_baseboard }; struct record_bios { + const struct array *biosversion; const WCHAR *description; const WCHAR *manufacturer; const WCHAR *releasedate; @@ -695,9 +699,13 @@ static const struct record_baseboard data_baseboard[] = { { baseboard_manufacturerW, baseboard_serialnumberW, baseboard_tagW } }; +static const struct array data_bios_biosversion = +{ + 1, (void*)bios_versionW +};
This can't work. BIOSVersion is of type CIM_STRING|CIM_FLAG_ARRAY, which translates to a pointer to an array of string pointers.
participants (1)
-
Hans Leidekker