Exemple #1
0
            public SaHpiEventLogInfoT DemarshalSaHpiEventLogInfoT()
            {
                SaHpiEventLogInfoT x = new SaHpiEventLogInfoT();

                x.Entries = DemarshalSaHpiUint32T();
                x.Size = DemarshalSaHpiUint32T();
                x.UserEventMaxSize = DemarshalSaHpiUint32T();
                x.UpdateTimestamp = DemarshalSaHpiTimeT();
                x.CurrentTime = DemarshalSaHpiTimeT();
                x.Enabled = DemarshalSaHpiBoolT();
                x.OverflowFlag = DemarshalSaHpiBoolT();
                x.OverflowResetable = DemarshalSaHpiBoolT();
                x.OverflowAction = DemarshalSaHpiEventLogOverflowActionT();

                return x;
            }
Exemple #2
0
            public static long saHpiEventLogInfoGet(
        long SessionId,
        long ResourceId,
        out SaHpiEventLogInfoT Info
    )
            {
                long rv;
                bool rc;

                Info = 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_EVENT_LOG_INFO_GET );
                if ( !rc ) {
                m.Close();
                return HpiConst.SA_ERR_HPI_NO_RESPONSE;
                }
                rv = m.DemarshalSaErrorT();
                if ( rv == HpiConst.SA_OK ) {
                Info = m.DemarshalSaHpiEventLogInfoT();
                }
                s.PutMarshal( m );

                return rv;
            }
Exemple #3
0
 public void MarshalSaHpiEventLogInfoT( SaHpiEventLogInfoT x )
 {
     MarshalSaHpiUint32T( x.Entries );
     MarshalSaHpiUint32T( x.Size );
     MarshalSaHpiUint32T( x.UserEventMaxSize );
     MarshalSaHpiTimeT( x.UpdateTimestamp );
     MarshalSaHpiTimeT( x.CurrentTime );
     MarshalSaHpiBoolT( x.Enabled );
     MarshalSaHpiBoolT( x.OverflowFlag );
     MarshalSaHpiBoolT( x.OverflowResetable );
     MarshalSaHpiEventLogOverflowActionT( x.OverflowAction );
 }
Exemple #4
0
 /**
  * Check function for HPI struct SaHpiEventLogInfoT
  */
 public static bool Check( SaHpiEventLogInfoT x )
 {
     if ( x == null ) {
     return false;
     }
     return true;
 }