Beispiel #1
0
        public ReturnCode GetOfferedIncompatibleQosStatus(
            ref OfferedIncompatibleQosStatus status)
        {
            ReturnCode result;

            using (OfferedIncompatibleQosStatusMarshaler marshaler =
                       new OfferedIncompatibleQosStatusMarshaler())
            {
                if (status == null)
                {
                    status = new OfferedIncompatibleQosStatus();
                }
                if (status.Policies == null)
                {
                    status.Policies = new QosPolicyCount[28];
                }
                marshaler.CopyIn(status);

                result = Gapi.DataWriter.get_offered_incompatible_qos_status(
                    GapiPeer, marshaler.GapiPtr);

                if (result == ReturnCode.Ok)
                {
                    marshaler.CopyOut(ref status);
                }
            }

            return(result);
        }
Beispiel #2
0
 private void PrivateOfferedIncompatibleQos(
     IntPtr entityData,
     IntPtr writerPtr,
     IntPtr gapi_status)
 {
     if (listener != null)
     {
         IDataWriter dataWriter = (IDataWriter)OpenSplice.SacsSuperClass.fromUserData(writerPtr);
         OfferedIncompatibleQosStatus status = new OfferedIncompatibleQosStatus();
         OfferedIncompatibleQosStatusMarshaler.CopyOut(gapi_status, ref status, 0);
         listener.OnOfferedIncompatibleQos(dataWriter, status);
     }
 }