public void MarshalSaHpiIdrInfoT( SaHpiIdrInfoT x ) { MarshalSaHpiIdrIdT( x.IdrId ); MarshalSaHpiUint32T( x.UpdateCount ); MarshalSaHpiBoolT( x.ReadOnly ); MarshalSaHpiUint32T( x.NumAreas ); }
public static long saHpiIdrInfoGet( long SessionId, long ResourceId, long IdrId, out SaHpiIdrInfoT IdrInfo ) { long rv; bool rc; IdrInfo = null; HpiSession s = HpiCore.GetSession( SessionId ); if ( s == null ) { return HpiConst.SA_ERR_HPI_INVALID_SESSION; } OhpiMarshal m = s.GetMarshal(); if ( m == null ) { return HpiConst.SA_ERR_HPI_NO_RESPONSE; } m.MarshalSaHpiSessionIdT( s.GetRemoteSid() ); m.MarshalSaHpiResourceIdT( ResourceId ); m.MarshalSaHpiIdrIdT( IdrId ); rc = m.Interchange( OhpiConst.RPC_SAHPI_IDR_INFO_GET ); if ( !rc ) { m.Close(); return HpiConst.SA_ERR_HPI_NO_RESPONSE; } rv = m.DemarshalSaErrorT(); if ( rv == HpiConst.SA_OK ) { IdrInfo = m.DemarshalSaHpiIdrInfoT(); } s.PutMarshal( m ); return rv; }
public SaHpiIdrInfoT DemarshalSaHpiIdrInfoT() { SaHpiIdrInfoT x = new SaHpiIdrInfoT(); x.IdrId = DemarshalSaHpiIdrIdT(); x.UpdateCount = DemarshalSaHpiUint32T(); x.ReadOnly = DemarshalSaHpiBoolT(); x.NumAreas = DemarshalSaHpiUint32T(); return x; }
/** * Check function for HPI struct SaHpiIdrInfoT */ public static bool Check( SaHpiIdrInfoT x ) { if ( x == null ) { return false; } return true; }