Example #1
0
            public static long saHpiDrtEntryGet(
        long SessionId,
        long EntryId,
        out long NextEntryId,
        out SaHpiDrtEntryT DrtEntry
    )
            {
                long rv;
                bool rc;

                NextEntryId = 0;
                DrtEntry = null;

                HpiSession s = HpiCore.GetSession( SessionId );
                if ( s == null ) {
                return HpiConst.SA_ERR_HPI_INVALID_SESSION;
                }
                HpiMarshal m = s.GetMarshal();
                if ( m == null ) {
                return HpiConst.SA_ERR_HPI_NO_RESPONSE;
                }

                m.MarshalSaHpiSessionIdT( s.GetRemoteSid() );
                m.MarshalSaHpiEntryIdT( EntryId );
                rc = m.Interchange( OhpiConst.RPC_SAHPI_DRT_ENTRY_GET );
                if ( !rc ) {
                m.Close();
                return HpiConst.SA_ERR_HPI_NO_RESPONSE;
                }
                rv = m.DemarshalSaErrorT();
                if ( rv == HpiConst.SA_OK ) {
                NextEntryId = m.DemarshalSaHpiEntryIdT();
                DrtEntry = m.DemarshalSaHpiDrtEntryT();
                }
                s.PutMarshal( m );

                return rv;
            }
Example #2
0
            public SaHpiDrtEntryT DemarshalSaHpiDrtEntryT()
            {
                SaHpiDrtEntryT x = new SaHpiDrtEntryT();

                x.EntryId = DemarshalSaHpiEntryIdT();
                x.DomainId = DemarshalSaHpiDomainIdT();
                x.IsPeer = DemarshalSaHpiBoolT();

                return x;
            }
Example #3
0
 public void MarshalSaHpiDrtEntryT( SaHpiDrtEntryT x )
 {
     MarshalSaHpiEntryIdT( x.EntryId );
     MarshalSaHpiDomainIdT( x.DomainId );
     MarshalSaHpiBoolT( x.IsPeer );
 }
Example #4
0
 /**
  * Check function for HPI struct SaHpiDrtEntryT
  */
 public static bool Check( SaHpiDrtEntryT x )
 {
     if ( x == null ) {
     return false;
     }
     return true;
 }