public SaHpiRptEntryT DemarshalSaHpiRptEntryT() { SaHpiRptEntryT x = new SaHpiRptEntryT(); x.EntryId = DemarshalSaHpiEntryIdT(); x.ResourceId = DemarshalSaHpiResourceIdT(); x.ResourceInfo = DemarshalSaHpiResourceInfoT(); x.ResourceEntity = DemarshalSaHpiEntityPathT(); x.ResourceCapabilities = DemarshalSaHpiCapabilitiesT(); x.HotSwapCapabilities = DemarshalSaHpiHsCapabilitiesT(); x.ResourceSeverity = DemarshalSaHpiSeverityT(); x.ResourceFailed = DemarshalSaHpiBoolT(); x.ResourceTag = DemarshalSaHpiTextBufferT(); return x; }
public void MarshalSaHpiRptEntryT( SaHpiRptEntryT x ) { MarshalSaHpiEntryIdT( x.EntryId ); MarshalSaHpiResourceIdT( x.ResourceId ); MarshalSaHpiResourceInfoT( x.ResourceInfo ); MarshalSaHpiEntityPathT( x.ResourceEntity ); MarshalSaHpiCapabilitiesT( x.ResourceCapabilities ); MarshalSaHpiHsCapabilitiesT( x.HotSwapCapabilities ); MarshalSaHpiSeverityT( x.ResourceSeverity ); MarshalSaHpiBoolT( x.ResourceFailed ); MarshalSaHpiTextBufferT( x.ResourceTag ); }
public static long saHpiEventGet( long SessionId, long Timeout, out SaHpiEventT Event, out SaHpiRdrT Rdr, out SaHpiRptEntryT RptEntry, out long EventQueueStatus ) { long rv; bool rc; Event = null; Rdr = null; RptEntry = null; EventQueueStatus = 0; 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.MarshalSaHpiTimeoutT( Timeout ); rc = m.Interchange( OhpiConst.RPC_SAHPI_EVENT_GET ); if ( !rc ) { m.Close(); return HpiConst.SA_ERR_HPI_NO_RESPONSE; } rv = m.DemarshalSaErrorT(); if ( rv == HpiConst.SA_OK ) { Event = m.DemarshalSaHpiEventT(); Rdr = m.DemarshalSaHpiRdrT(); RptEntry = m.DemarshalSaHpiRptEntryT(); EventQueueStatus = m.DemarshalSaHpiEvtQueueStatusT(); } s.PutMarshal( m ); return rv; }
public static long saHpiEventLogEntryGet( long SessionId, long ResourceId, long EntryId, out long PrevEntryId, out long NextEntryId, out SaHpiEventLogEntryT EventLogEntry, out SaHpiRdrT Rdr, out SaHpiRptEntryT RptEntry ) { long rv; bool rc; PrevEntryId = 0; NextEntryId = 0; EventLogEntry = null; Rdr = null; RptEntry = 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.MarshalSaHpiEventLogEntryIdT( EntryId ); rc = m.Interchange( OhpiConst.RPC_SAHPI_EVENT_LOG_ENTRY_GET ); if ( !rc ) { m.Close(); return HpiConst.SA_ERR_HPI_NO_RESPONSE; } rv = m.DemarshalSaErrorT(); if ( rv == HpiConst.SA_OK ) { PrevEntryId = m.DemarshalSaHpiEventLogEntryIdT(); NextEntryId = m.DemarshalSaHpiEventLogEntryIdT(); EventLogEntry = m.DemarshalSaHpiEventLogEntryT(); Rdr = m.DemarshalSaHpiRdrT(); RptEntry = m.DemarshalSaHpiRptEntryT(); } s.PutMarshal( m ); return rv; }
public static long saHpiRptEntryGetByResourceId( long SessionId, long ResourceId, out SaHpiRptEntryT RptEntry ) { long rv; bool rc; RptEntry = 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 ); rc = m.Interchange( OhpiConst.RPC_SAHPI_RPT_ENTRY_GET_BY_RESOURCE_ID ); if ( !rc ) { m.Close(); return HpiConst.SA_ERR_HPI_NO_RESPONSE; } rv = m.DemarshalSaErrorT(); if ( rv == HpiConst.SA_OK ) { RptEntry = m.DemarshalSaHpiRptEntryT(); } s.PutMarshal( m ); return rv; }
/** * Check function for HPI struct SaHpiRptEntryT */ public static bool Check( SaHpiRptEntryT x ) { if ( x == null ) { return false; } if ( !Check( x.ResourceInfo ) ) { return false; } if ( !Check( x.ResourceEntity ) ) { return false; } if ( !Check( x.ResourceTag ) ) { return false; } return true; }