Beispiel #1
0
            public SaHpiLoadIdT DemarshalSaHpiLoadIdT()
            {
                SaHpiLoadIdT x = new SaHpiLoadIdT();

                x.LoadNumber = DemarshalSaHpiLoadNumberT();
                x.LoadName = DemarshalSaHpiTextBufferT();

                return x;
            }
Beispiel #2
0
            public static long saHpiResourceLoadIdSet(
        long SessionId,
        long ResourceId,
        SaHpiLoadIdT LoadId
    )
            {
                long rv;
                bool rc;
                rc = HpiUtil.Check( LoadId );
                if ( !rc ) {
                return HpiConst.SA_ERR_HPI_INVALID_PARAMS;
                }

                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.MarshalSaHpiLoadIdT( LoadId );
                rc = m.Interchange( OhpiConst.RPC_SAHPI_RESOURCE_LOADID_SET );
                if ( !rc ) {
                m.Close();
                return HpiConst.SA_ERR_HPI_NO_RESPONSE;
                }
                rv = m.DemarshalSaErrorT();
                if ( rv == HpiConst.SA_OK ) {
                // No output arguments
                }
                s.PutMarshal( m );

                return rv;
            }
Beispiel #3
0
 public void MarshalSaHpiLoadIdT( SaHpiLoadIdT x )
 {
     MarshalSaHpiLoadNumberT( x.LoadNumber );
     MarshalSaHpiTextBufferT( x.LoadName );
 }
Beispiel #4
0
 /**
  * Check function for HPI struct SaHpiLoadIdT
  */
 public static bool Check( SaHpiLoadIdT x )
 {
     if ( x == null ) {
     return false;
     }
     if ( !Check( x.LoadName ) ) {
     return false;
     }
     return true;
 }