From: Anton P. <ant...@pi...> - 2007-12-19 11:57:38
|
Renier, As I can see field 'ParamType' in SaHpiDimiTestParamsDefinitionT controls MinValue, MaxValue and DefaultParam unions. DefaultParam value can be Bool, Int, Float, Text. MinValue and MaxValue can only be Int and Float. How MinValue and MaxValue fields is marshalled whan ParamType is Bool or Text? I guess in this case they can be marshalled as Int or Float because their values are not used. Anton Pak On Wed, 19 Dec 2007 00:06:13 +0300, Renier Morales <re...@us...> wrote: > ope...@li... wrote on 12/18/2007 01:08:00 > PM: > >> Renier, >> >> As I see this patch: >> o) does not help with marshalling of SaHpiDimiTestVariableParamsListT > >> (saHpiDimiTestStart call). > > Correct. That is still pending. > >> >> SaHpiDimiTestVariableParamsListT struct is described as VarArray. >> The marshalling allows only simple type VarArray. >> >> o) may help with saHpiDimiTestInfoGet call. >> But removing lines from > SaHpiDimiTestParameterValueUnionTypeElements >> is not ok. >> I've tried it and have got the following: >> >> openhpid: marshal.c:479: Marshal: Assertion `0' failed. >> Then daemon dies. > > I'll keep looking into it. The lines definitely need to be removed > though, > as the union in question doesn't have those extra members. > > --Renier > >> >> >> >> Anton Pak >> >> >> On Tue, 18 Dec 2007 19:36:22 +0300, Renier Morales <re...@us...> >> wrote: >> >> > ope...@li... wrote on 11/30/2007 > 01:55:00 >> > PM: >> > >> >> >> >> Also there is aproblem with marshalling of >> > SaHpiDimiTestParamsDefinitionT >> >> that has several unions. >> >> >> >> I see on my test system that marshalling procedure fails for this two >> >> cases. >> >> >> >> Failed function: saHpiDimiTestStart, saHpiDimiTestInfoGet. >> >> >> >> Error message: >> >> Marshal: Assertion >> >> `IsSimpleType( st_type->m_u.m_var_array.m_type->m_type )' failed >> >> >> >> >> > >> > Anton, >> > Let me know if this patch works for you. >> > >> > >> > --Renier >> >> >> >> > ------------------------------------------------------------------------- >> SF.Net email is sponsored by: >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services >> for just about anything Open Source. >> > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> _______________________________________________ >> Openhpi-devel mailing list >> Ope...@li... >> https://lists.sourceforge.net/lists/listinfo/openhpi-devel |