Exemple #1
0
            public SaHpiEventLogEntryT DemarshalSaHpiEventLogEntryT()
            {
                SaHpiEventLogEntryT x = new SaHpiEventLogEntryT();

                x.EntryId = DemarshalSaHpiEventLogEntryIdT();
                x.Timestamp = DemarshalSaHpiTimeT();
                x.Event = DemarshalSaHpiEventT();

                return x;
            }
Exemple #2
0
            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;
            }
Exemple #3
0
 public void MarshalSaHpiEventLogEntryT( SaHpiEventLogEntryT x )
 {
     MarshalSaHpiEventLogEntryIdT( x.EntryId );
     MarshalSaHpiTimeT( x.Timestamp );
     MarshalSaHpiEventT( x.Event );
 }
Exemple #4
0
 /**
  * Check function for HPI struct SaHpiEventLogEntryT
  */
 public static bool Check( SaHpiEventLogEntryT x )
 {
     if ( x == null ) {
     return false;
     }
     if ( !Check( x.Event ) ) {
     return false;
     }
     return true;
 }