Ejemplo n.º 1
0
        public ReturnCode GetRequestedIncompatibleQosStatus(
            ref RequestedIncompatibleQosStatus status)
        {
            ReturnCode result;

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

                result = Gapi.DataReader.get_requested_incompatible_qos_status(
                    GapiPeer, marshaler.GapiPtr);

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

            return(result);
        }
Ejemplo n.º 2
0
 private void PrivateRequestedIncompatibleQos(
     IntPtr entityData,
     IntPtr enityPtr,
     IntPtr gapi_status)
 {
     if (listener != null)
     {
         IDataReader dataReader = (IDataReader)OpenSplice.SacsSuperClass.fromUserData(enityPtr);
         RequestedIncompatibleQosStatus status = new RequestedIncompatibleQosStatus();
         RequestedIncompatibleQosStatusMarshaler.CopyOut(gapi_status, ref status, 0);
         listener.OnRequestedIncompatibleQos(dataReader, status);
     }
 }