Hello!

Another DIMI issue.

SaErrorT SAHPI_API saHpiDimiTestStart (
     SAHPI_IN    SaHpiSessionIdT                SessionId,
     SAHPI_IN    SaHpiResourceIdT               ResourceId,
     SAHPI_IN    SaHpiDimiNumT                  DimiNum,
     SAHPI_IN    SaHpiDimiTestNumT              TestNum,
     SAHPI_IN    SaHpiUint8T                    NumberOfParams,
     SAHPI_IN    SaHpiDimiTestVariableParamsT   *ParamsList
);

typedef struct {
    SaHpiUint8T     ParamName[SAHPI_DIMITEST_PARAM_NAME_LEN];
    SaHpiDimiTestParamTypeT  ParamType;
    SaHpiDimiTestParamValueT Value;
} SaHpiDimiTestVariableParamsT;

typedef union {
     SaHpiInt32T             paramint;
     SaHpiBoolT              parambool;
     SaHpiFloat64T           paramfloat;
     SaHpiTextBufferT        paramtext;
} SaHpiDimiTestParamValueT;


How last parameter of saHpiDimiTestStart can be marshalled?
There are no information about union SaHpiDimiTestParamValueT nature.
I guess there can be ways to send this data from HPI client to
HPI server but cannot imagine how to do it with OpenHPI marshalling  
procedure.

        Anton Pak





On Tue, 04 Dec 2007 23:22:43 +0300, Renier Morales <[EMAIL PROTECTED]>  
wrote:

> [EMAIL PROTECTED] wrote on 11/30/2007 01:55:00
> PM:
>
>> Hello.
>>
>> I am invastingating DIMI issues.
>> There is a problem with marshalling of SaHpiDimiTestT type.
>>
>> The declaration in SaHpi.h
>>
>> <quote>
>> typedef struct {
>>      SaHpiTextBufferT            TestName;
>>      SaHpiDimiTestServiceImpactT ServiceImpact; /* Service Impact on
> DIMI
>>                                                    itself */
>>      SaHpiDimiTestAffectedEntityT
>>      EntitiesImpacted[SAHPI_DIMITEST_MAX_ENTITIESIMPACTED];
>>                      /* Entities impacted by the Test. If entity
> contains
>>                          other entities then contained entities are
>> considered
>>                          impacted as well. If Entities impacted by Test
> are
>> more
>>                          than Max number, its recommended to associate
> test
>> with
>>                          higher level entity DIMI. */
>>      SaHpiBoolT              NeedServiceOS;  /* True if a special
> Service
>>                                                 OS is needed for this
> test
>> */
>>      SaHpiTextBufferT        ServiceOS;  /* If a special Service OS
>>                                              is needed to be run for the
>>                                              test, the HPI user is
> required
>>                                              to load the particular
> Service
>>                                              OS before running the
> tests,
>>                                              else DIMI returns an error
>> code.*/
>>      SaHpiTimeT              ExpectedRunDuration; /* Expected run
> duration
>>                                             for a test with default
>>                                             parameters */
>>      SaHpiDimiTestCapabilityT        TestCapabilities;
>>
>>      SaHpiDimiTestParamsDefinitionT
>>
>> TestParameters[SAHPI_DIMITEST_MAX_PARAMETERS];
>> } SaHpiDimiTestT;
>>
>> </quote>
>>
>>
>> There is no way to set:
>>       o) Number of impacted entities
>
> I would expect that the first entity path found with a ROOT entity type  
> in
> position 0 would mark the end of the impacted entities. Still, I'll
> forward the question on to the SAF.
>
>>       o) number of test parameters
>
> I will forward this also to the SAF.
>
>>
>> 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
>>
>
> I am looking into this and will also be testing the patch you posted on
> SF.
>
> Thanks,
>
>         --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://sourceforge.net/services/buy/index.php
_______________________________________________
Openhpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openhpi-devel

Reply via email to